package o;

import java.io.IOException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ho, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0196Ho extends AbstractC0706aK implements SC {
    public final /* synthetic */ int m;
    public final /* synthetic */ Object n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f148o;
    public final /* synthetic */ Object p;
    public final /* synthetic */ Object q;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0196Ho(Object obj, Object obj2, Object obj3, Object obj4, int i) {
        super(2);
        this.m = i;
        this.n = obj;
        this.f148o = obj2;
        this.p = obj3;
        this.q = obj4;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) throws IOException {
        Object objC;
        switch (this.m) {
            case 0:
                C0321Mk c0321Mk = (C0321Mk) obj;
                int iIntValue = ((Number) obj2).intValue();
                if (c0321Mk.N(iIntValue & 1, (iIntValue & 3) != 2)) {
                    C3114zg0 c3114zg0 = (C3114zg0) this.n;
                    InterfaceC3052yy interfaceC3052yy = (InterfaceC3052yy) this.f148o;
                    C1597jh0 c1597jh0 = AbstractC1692kh0.u;
                    boolean zG = c3114zg0.g();
                    J7 j7 = C0140Fk.a;
                    if (zG) {
                        c0321Mk.V(1666853325);
                        c0321Mk.q(false);
                        objC = c3114zg0.c();
                    } else {
                        c0321Mk.V(1666599280);
                        boolean zF = c0321Mk.f(c3114zg0);
                        objC = c0321Mk.K();
                        if (zF || objC == j7) {
                            AbstractC2220q90 abstractC2220q90O = BP.o();
                            OC ocE = abstractC2220q90O != null ? abstractC2220q90O.e() : null;
                            AbstractC2220q90 abstractC2220q90Q = BP.q(abstractC2220q90O);
                            try {
                                Object objC2 = c3114zg0.c();
                                BP.t(abstractC2220q90O, abstractC2220q90Q, ocE);
                                c0321Mk.f0(objC2);
                                objC = objC2;
                            } catch (Throwable th) {
                                BP.t(abstractC2220q90O, abstractC2220q90Q, ocE);
                                throw th;
                            }
                        }
                        c0321Mk.q(false);
                    }
                    c0321Mk.V(1378811975);
                    Object obj3 = this.p;
                    float f = F3.c(objC, obj3) ? 1.0f : 0.0f;
                    c0321Mk.q(false);
                    Float fValueOf = Float.valueOf(f);
                    boolean zF2 = c0321Mk.f(c3114zg0);
                    Object objK = c0321Mk.K();
                    if (zF2 || objK == j7) {
                        objK = AbstractC0752ap.E(new C0170Go(0, c3114zg0));
                        c0321Mk.f0(objK);
                    }
                    Object value = ((InterfaceC3007ya0) objK).getValue();
                    c0321Mk.V(1378811975);
                    float f2 = F3.c(value, obj3) ? 1.0f : 0.0f;
                    c0321Mk.q(false);
                    Float fValueOf2 = Float.valueOf(f2);
                    boolean zF3 = c0321Mk.f(c3114zg0);
                    Object objK2 = c0321Mk.K();
                    if (zF3 || objK2 == j7) {
                        objK2 = AbstractC0752ap.E(new C0170Go(1, c3114zg0));
                        c0321Mk.f0(objK2);
                    }
                    c0321Mk.V(955869654);
                    c0321Mk.q(false);
                    C2734vg0 c2734vg0C = Eg0.c(c3114zg0, fValueOf, fValueOf2, interfaceC3052yy, c1597jh0, c0321Mk, 0);
                    boolean zF4 = c0321Mk.f(c2734vg0C);
                    Object objK3 = c0321Mk.K();
                    if (zF4 || objK3 == j7) {
                        objK3 = new C2769w(13, c2734vg0C);
                        c0321Mk.f0(objK3);
                    }
                    MP mpA = androidx.compose.ui.graphics.a.a(JP.a, (OC) objK3);
                    C0554Vj c0554Vj = (C0554Vj) this.q;
                    InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(C0669Zu.m, false);
                    int iHashCode = Long.hashCode(c0321Mk.R);
                    AW awL = c0321Mk.l();
                    MP mpF = AbstractC1692kh0.F(c0321Mk, mpA);
                    InterfaceC0062Ck.b.getClass();
                    C0744al c0744al = C0036Bk.b;
                    c0321Mk.Y();
                    if (c0321Mk.Q) {
                        c0321Mk.k(c0744al);
                    } else {
                        c0321Mk.i0();
                    }
                    AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk, C0036Bk.f);
                    AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
                    C0975d6 c0975d6 = C0036Bk.i;
                    if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                        AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
                    }
                    AbstractC2378rs0.f0(mpF, c0321Mk, C0036Bk.c);
                    c0554Vj.d(obj3, c0321Mk, 0);
                    c0321Mk.q(true);
                } else {
                    c0321Mk.Q();
                }
                return Oh0.a;
            default:
                int iIntValue2 = ((Number) obj).intValue();
                long jLongValue = ((Number) obj2).longValue();
                InterfaceC1687kf interfaceC1687kf = (InterfaceC1687kf) this.n;
                if (iIntValue2 == 21589) {
                    if (jLongValue < 1) {
                        throw new IOException("bad zip: extended timestamp extra too short");
                    }
                    byte b = interfaceC1687kf.readByte();
                    boolean z = (b & 1) == 1;
                    boolean z2 = (b & 2) == 2;
                    boolean z3 = (b & 4) == 4;
                    long j = z ? 5L : 1L;
                    if (z2) {
                        j += 4;
                    }
                    if (z3) {
                        j += 4;
                    }
                    if (jLongValue < j) {
                        throw new IOException("bad zip: extended timestamp extra too short");
                    }
                    if (z) {
                        ((B10) this.f148o).l = Long.valueOf(interfaceC1687kf.t() * 1000);
                    }
                    if (z2) {
                        ((B10) this.p).l = Long.valueOf(interfaceC1687kf.t() * 1000);
                    }
                    if (z3) {
                        ((B10) this.q).l = Long.valueOf(interfaceC1687kf.t() * 1000);
                    }
                }
                return Oh0.a;
        }
    }
}
