package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.pn, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2178pn extends AbstractC0561Vq implements P50 {
    public C1785lg0 B;
    public C2730ve0 C;
    public MK D;
    public boolean E;
    public boolean F;
    public boolean G;
    public InterfaceC1955nT H;
    public C2066oe0 I;
    public HG J;
    public C0983dA K;

    public static void K0(MK mk, String str, boolean z, boolean z2) {
        if (z || !z2) {
            return;
        }
        Ie0 ie0 = mk.e;
        C0661Zm c0661Zm = mk.v;
        if (ie0 == null) {
            int length = str.length();
            c0661Zm.g(new C2730ve0(str, 4, AbstractC2378rs0.u(length, length)));
        } else {
            C2730ve0 c2730ve0E = mk.d.e(AbstractC0008Ai.S(new C1616jr(), new C1314gj(str, 1)));
            ie0.a(null, c2730ve0E);
            c0661Zm.g(c2730ve0E);
        }
    }

    @Override // o.P50
    public final boolean c0() {
        return true;
    }

    @Override // o.P50
    public final void d0(N50 n50) {
        boolean z = this.G;
        C0977d7 c0977d7 = this.C.a;
        DJ[] djArr = Y50.a;
        Z50 z50 = W50.D;
        DJ[] djArr2 = Y50.a;
        DJ dj = djArr2[17];
        z50.a(n50, c0977d7);
        C0977d7 c0977d72 = this.B.a;
        Z50 z502 = W50.E;
        DJ dj2 = djArr2[18];
        z502.a(n50, c0977d72);
        long j = this.C.b;
        Z50 z503 = W50.F;
        DJ dj3 = djArr2[19];
        z503.a(n50, new Ue0(j));
        R3 r3 = ME.n;
        Z50 z504 = W50.r;
        DJ dj4 = djArr2[9];
        z504.a(n50, r3);
        boolean z2 = false;
        n50.d(M50.f, new C1726l0(null, new C2083on(this, 0)));
        boolean z3 = this.F;
        Oh0 oh0 = Oh0.a;
        if (!z3) {
            n50.d(W50.i, oh0);
        }
        if (z) {
            n50.d(W50.J, oh0);
        }
        if (this.F && !this.E) {
            z2 = true;
        }
        Z50 z505 = W50.L;
        DJ dj5 = djArr2[25];
        z505.a(n50, Boolean.valueOf(z2));
        Y50.a(n50, new C2083on(this, 1));
        if (z2) {
            n50.d(M50.i, new C1726l0(null, new C2083on(this, 2)));
            n50.d(M50.m, new C1726l0(null, new C2083on(this, n50)));
        }
        n50.d(M50.h, new C1726l0(null, new C2353rg(1, this)));
        int i = this.J.e;
        C1988nn c1988nn = new C1988nn(this, 6);
        n50.d(W50.G, new GG(i));
        n50.d(M50.n, new C1726l0(null, c1988nn));
        n50.d(M50.b, new C1726l0(null, new C1988nn(this, 7)));
        n50.d(M50.c, new C1726l0(null, new C1988nn(this, 1)));
        if (!Ue0.c(this.C.b) && !z) {
            n50.d(M50.f226o, new C1726l0(null, new C1988nn(this, 2)));
            if (this.F && !this.E) {
                n50.d(M50.p, new C1726l0(null, new C1988nn(this, 3)));
            }
        }
        if (!this.F || this.E) {
            return;
        }
        n50.d(M50.q, new C1726l0(null, new C1988nn(this, 5)));
    }
}
