package defpackage;

import java.io.IOException;

/* renamed from: ᵤʼ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3402 implements InterfaceC0772 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ C3425 f12680;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final int f12681;

    public C3402(C3425 c3425, int i) {
        this.f12680 = c3425;
        this.f12681 = i;
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ˇʼʤˎ */
    public final int mo1125(C2720 c2720, C2441 c2441, int i) {
        C3425 c3425 = this.f12680;
        if (c3425.m7803()) {
            return -3;
        }
        int i2 = this.f12681;
        c3425.m7799(i2);
        int iM4780 = c3425.f12771[i2].m4780(c2720, c2441, i, c3425.f12787);
        if (iM4780 == -3) {
            c3425.m7800(i2);
        }
        return iM4780;
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ˌᵜᵹᵩ */
    public final int mo1126(long j) {
        C3425 c3425 = this.f12680;
        if (c3425.m7803()) {
            return 0;
        }
        int i = this.f12681;
        c3425.m7799(i);
        C1666 c1666 = c3425.f12771[i];
        int iM4789 = c1666.m4789(c3425.f12787, j);
        c1666.m4768(iM4789);
        if (iM4789 == 0) {
            c3425.m7800(i);
        }
        return iM4789;
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ᵥᵯˎ */
    public final boolean mo1128() {
        C3425 c3425 = this.f12680;
        return !c3425.m7803() && c3425.f12771[this.f12681].m4773(c3425.f12787);
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ᵴᵳ */
    public final void mo1129() throws IOException {
        int i = this.f12681;
        C3425 c3425 = this.f12680;
        c3425.f12771[i].m4772();
        ᵧˉʙ r0 = c3425.f12791;
        int iM5319 = c3425.f12801.m5319(c3425.f12800);
        IOException iOException = (IOException) r0.ᵾᵬ;
        if (iOException != null) {
            throw iOException;
        }
        HandlerC5173 handlerC5173 = (HandlerC5173) r0.ᵿʗᵝʽ;
        if (handlerC5173 != null) {
            if (iM5319 == Integer.MIN_VALUE) {
                iM5319 = handlerC5173.f19260;
            }
            IOException iOException2 = handlerC5173.f19259;
            if (iOException2 != null && handlerC5173.f19257 > iM5319) {
                throw iOException2;
            }
        }
    }
}
