package r7;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public m(String str, o oVar, int i, List list) {
        super(str, true);
        this.f16627f = oVar;
        this.f16628g = i;
    }

    private final long b() {
        this.f16627f.f16633A.getClass();
        try {
            this.f16627f.f16643M.r(this.f16628g, 9);
            synchronized (this.f16627f) {
                this.f16627f.f16645O.remove(Integer.valueOf(this.f16628g));
            }
            return -1L;
        } catch (IOException unused) {
            return -1L;
        }
    }

    @Override // n7.a
    public final long a() {
        switch (this.f16626e) {
            case u0.f15495q /* 0 */:
                return b();
            default:
                this.f16627f.f16633A.getClass();
                try {
                    this.f16627f.f16643M.r(this.f16628g, 9);
                    synchronized (this.f16627f) {
                        this.f16627f.f16645O.remove(Integer.valueOf(this.f16628g));
                    }
                    return -1L;
                } catch (IOException unused) {
                    return -1L;
                }
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public m(String str, o oVar, int i, List list, boolean z8) {
        super(str, true);
        this.f16627f = oVar;
        this.f16628g = i;
    }
}
