package r7;

import java.io.IOException;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class j extends n7.a {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ int f16616e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ o f16617f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final /* synthetic */ int f16618g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final /* synthetic */ int f16619h;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ j(String str, o oVar, int i, int i5, int i8) {
        super(str, true);
        this.f16616e = i8;
        this.f16617f = oVar;
        this.f16618g = i;
        this.f16619h = i5;
    }

    @Override // n7.a
    public final long a() {
        switch (this.f16616e) {
            case u0.f15495q /* 0 */:
                int i = this.f16618g;
                int i5 = this.f16619h;
                o oVar = this.f16617f;
                oVar.getClass();
                try {
                    oVar.f16643M.n(i, i5, true);
                    return -1L;
                } catch (IOException e8) {
                    oVar.a(2, 2, e8);
                    return -1L;
                }
            case 1:
                z zVar = this.f16617f.f16633A;
                int i8 = this.f16619h;
                zVar.getClass();
                I1.a.t(i8, "errorCode");
                synchronized (this.f16617f) {
                    this.f16617f.f16645O.remove(Integer.valueOf(this.f16618g));
                }
                return -1L;
            default:
                o oVar2 = this.f16617f;
                try {
                    int i9 = this.f16618g;
                    int i10 = this.f16619h;
                    oVar2.getClass();
                    I1.a.t(i10, "statusCode");
                    oVar2.f16643M.r(i9, i10);
                    return -1L;
                } catch (IOException e9) {
                    oVar2.a(2, 2, e9);
                    return -1L;
                }
        }
    }
}
