package o;

import java.io.IOException;
import java.util.List;

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

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

    @Override // o.Oc0
    public final long a() {
        switch (this.e) {
            case 0:
                this.f.v.getClass();
                try {
                    this.f.H.l(this.g, 9);
                    synchronized (this.f) {
                        this.f.J.remove(Integer.valueOf(this.g));
                    }
                    return -1L;
                } catch (IOException unused) {
                    return -1L;
                }
            case 1:
                this.f.v.getClass();
                try {
                    this.f.H.l(this.g, 9);
                    synchronized (this.f) {
                        this.f.J.remove(Integer.valueOf(this.g));
                    }
                    return -1L;
                } catch (IOException unused2) {
                    return -1L;
                }
            default:
                this.f.v.getClass();
                synchronized (this.f) {
                    this.f.J.remove(Integer.valueOf(this.g));
                }
                return -1L;
        }
    }

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public HF(String str, KF kf, int i, List list, boolean z) {
        super(str, true);
        this.f = kf;
        this.g = i;
    }
}
