package y7;

import A6.n;
import O6.p;
import P6.j;
import P6.l;
import P6.m;
import java.io.IOException;
import x7.B;

/* JADX INFO: loaded from: classes.dex */
public final class h extends P6.h implements p {

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ j f19074r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ long f19075s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ l f19076t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ B f19077u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ l f19078v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ l f19079w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ m f19080x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ m f19081y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final /* synthetic */ m f19082z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public h(j jVar, long j8, l lVar, B b8, l lVar2, l lVar3, m mVar, m mVar2, m mVar3) {
        super(2);
        this.f19074r = jVar;
        this.f19075s = j8;
        this.f19076t = lVar;
        this.f19077u = b8;
        this.f19078v = lVar2;
        this.f19079w = lVar3;
        this.f19080x = mVar;
        this.f19081y = mVar2;
        this.f19082z = mVar3;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) throws IOException {
        int iIntValue = ((Number) obj).intValue();
        long jLongValue = ((Number) obj2).longValue();
        B b8 = this.f19077u;
        if (iIntValue == 1) {
            j jVar = this.f19074r;
            if (jVar.f5532q) {
                throw new IOException("bad zip: zip64 extra repeated");
            }
            jVar.f5532q = true;
            if (jLongValue < this.f19075s) {
                throw new IOException("bad zip: zip64 extra too short");
            }
            l lVar = this.f19076t;
            long jR = lVar.f5534q;
            if (jR == 4294967295L) {
                jR = b8.r();
            }
            lVar.f5534q = jR;
            l lVar2 = this.f19078v;
            lVar2.f5534q = lVar2.f5534q == 4294967295L ? b8.r() : 0L;
            l lVar3 = this.f19079w;
            lVar3.f5534q = lVar3.f5534q == 4294967295L ? b8.r() : 0L;
        } else if (iIntValue == 10) {
            if (jLongValue < 4) {
                throw new IOException("bad zip: NTFS extra too short");
            }
            b8.y(4L);
            b.e(b8, (int) (jLongValue - 4), new g(this.f19080x, b8, this.f19081y, this.f19082z));
        }
        return n.f457a;
    }
}
