package o;

import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Iq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0224Iq {
    public final String a;
    public final OD b;

    public C0224Iq(Set set, OD od) {
        this.a = b(set);
        this.b = od;
    }

    public static String b(Set set) {
        StringBuilder sb = new StringBuilder();
        Iterator it = set.iterator();
        while (it.hasNext()) {
            C0572Wb c0572Wb = (C0572Wb) it.next();
            sb.append(c0572Wb.a);
            sb.append('/');
            sb.append(c0572Wb.b);
            if (it.hasNext()) {
                sb.append(' ');
            }
        }
        return sb.toString();
    }

    public final String a() {
        Set setUnmodifiableSet;
        Set setUnmodifiableSet2;
        String str = this.a;
        OD od = this.b;
        synchronized (((HashSet) od.m)) {
            setUnmodifiableSet = Collections.unmodifiableSet((HashSet) od.m);
        }
        if (setUnmodifiableSet.isEmpty()) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(' ');
        synchronized (((HashSet) od.m)) {
            setUnmodifiableSet2 = Collections.unmodifiableSet((HashSet) od.m);
        }
        sb.append(b(setUnmodifiableSet2));
        return sb.toString();
    }
}
