package o;

import java.io.IOException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class EF extends Oc0 {
    public final /* synthetic */ int e;
    public final /* synthetic */ KF f;
    public final /* synthetic */ int g;
    public final /* synthetic */ int h;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ EF(String str, KF kf, int i, int i2, int i3) {
        super(str, true);
        this.e = i3;
        this.f = kf;
        this.g = i;
        this.h = i2;
    }

    @Override // o.Oc0
    public final long a() throws IOException {
        switch (this.e) {
            case 0:
                KF kf = this.f;
                try {
                    kf.H.j(this.g, true, this.h);
                    break;
                } catch (IOException e) {
                    kf.b(2, 2, e);
                    return -1L;
                }
            default:
                KF kf2 = this.f;
                try {
                    kf2.H.l(this.g, this.h);
                    break;
                } catch (IOException e2) {
                    kf2.b(2, 2, e2);
                    return -1L;
                }
        }
        return -1L;
    }
}
