package R4;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ n(String str, q qVar, int i, Object obj, int i5) {
        super(str, true);
        this.f2696e = i5;
        this.f2697f = qVar;
        this.f2698g = i;
    }

    @Override // N4.a
    public final long a() {
        switch (this.f2696e) {
            case 0:
                this.f2697f.f2721u.getClass();
                try {
                    this.f2697f.f2711G.m(this.f2698g, EnumC0183b.CANCEL);
                    synchronized (this.f2697f) {
                        this.f2697f.I.remove(Integer.valueOf(this.f2698g));
                    }
                    return -1L;
                } catch (IOException unused) {
                    return -1L;
                }
            case 1:
                this.f2697f.f2721u.getClass();
                try {
                    this.f2697f.f2711G.m(this.f2698g, EnumC0183b.CANCEL);
                    synchronized (this.f2697f) {
                        this.f2697f.I.remove(Integer.valueOf(this.f2698g));
                    }
                    return -1L;
                } catch (IOException unused2) {
                    return -1L;
                }
            default:
                this.f2697f.f2721u.getClass();
                synchronized (this.f2697f) {
                    this.f2697f.I.remove(Integer.valueOf(this.f2698g));
                }
                return -1L;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public n(String str, q qVar, int i, List list, boolean z5) {
        super(str, true);
        this.f2696e = 0;
        this.f2697f = qVar;
        this.f2698g = i;
    }
}
