package o;

import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bh, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0832bh implements InterfaceC0795bD {
    public final InterfaceC2747vn l;
    public final int m;
    public final int n;

    public AbstractC0832bh(InterfaceC2747vn interfaceC2747vn, int i, int i2) {
        this.l = interfaceC2747vn;
        this.m = i;
        this.n = i2;
    }

    @Override // o.InterfaceC2104oz
    public Object a(InterfaceC2294qz interfaceC2294qz, InterfaceC0220Im interfaceC0220Im) {
        Object objR = C80.r(new C2484t(interfaceC2294qz, this, (InterfaceC0220Im) null, 3), interfaceC0220Im);
        return objR == EnumC0091Dn.l ? objR : Oh0.a;
    }

    /* JADX WARN: Removed duplicated region for block: B:9:0x0014  */
    @Override // o.InterfaceC0795bD
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final o.InterfaceC2104oz b(o.InterfaceC2747vn r5, int r6, int r7) {
        /*
            r4 = this;
            o.vn r0 = r4.l
            o.vn r5 = r5.M(r0)
            r1 = 1
            int r2 = r4.n
            int r3 = r4.m
            if (r7 == r1) goto Le
            goto L25
        Le:
            r7 = -3
            if (r3 != r7) goto L12
            goto L24
        L12:
            if (r6 != r7) goto L16
        L14:
            r6 = r3
            goto L24
        L16:
            r7 = -2
            if (r3 != r7) goto L1a
            goto L24
        L1a:
            if (r6 != r7) goto L1d
            goto L14
        L1d:
            int r6 = r6 + r3
            if (r6 < 0) goto L21
            goto L24
        L21:
            r6 = 2147483647(0x7fffffff, float:NaN)
        L24:
            r7 = r2
        L25:
            boolean r0 = o.F3.c(r5, r0)
            if (r0 == 0) goto L30
            if (r6 != r3) goto L30
            if (r7 != r2) goto L30
            return r4
        L30:
            o.bh r5 = r4.d(r5, r6, r7)
            return r5
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0832bh.b(o.vn, int, int):o.oz");
    }

    public abstract Object c(InterfaceC0817bZ interfaceC0817bZ, InterfaceC0220Im interfaceC0220Im);

    public abstract AbstractC0832bh d(InterfaceC2747vn interfaceC2747vn, int i, int i2);

    public InterfaceC2104oz e() {
        return null;
    }

    public String toString() {
        ArrayList arrayList = new ArrayList(4);
        C0281Kv c0281Kv = C0281Kv.l;
        InterfaceC2747vn interfaceC2747vn = this.l;
        if (interfaceC2747vn != c0281Kv) {
            arrayList.add("context=" + interfaceC2747vn);
        }
        int i = this.m;
        if (i != -3) {
            arrayList.add("capacity=" + i);
        }
        int i2 = this.n;
        if (i2 != 1) {
            arrayList.add("onBufferOverflow=".concat(AbstractC2462sn.x(i2)));
        }
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append('[');
        return AbstractC0126Ew.n(sb, AbstractC3117zi.i0(arrayList, ", ", null, null, null, 62), ']');
    }
}
