package o;

import java.io.Serializable;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Bw, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0048Bw extends Q implements InterfaceC0022Aw, Serializable {
    public final Enum[] l;

    public C0048Bw(Enum[] enumArr) {
        this.l = enumArr;
    }

    private final Object writeReplace() {
        return new C0074Cw(this.l);
    }

    @Override // o.AbstractC2864x
    public final int a() {
        return this.l.length;
    }

    /* JADX WARN: Removed duplicated region for block: B:10:0x0015  */
    @Override // o.AbstractC2864x, java.util.Collection, java.util.List
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean contains(java.lang.Object r4) {
        /*
            r3 = this;
            boolean r0 = r4 instanceof java.lang.Enum
            if (r0 != 0) goto L5
            goto L1a
        L5:
            java.lang.Enum r4 = (java.lang.Enum) r4
            int r0 = r4.ordinal()
            if (r0 < 0) goto L15
            java.lang.Enum[] r1 = r3.l
            int r2 = r1.length
            if (r0 >= r2) goto L15
            r0 = r1[r0]
            goto L16
        L15:
            r0 = 0
        L16:
            if (r0 != r4) goto L1a
            r4 = 1
            return r4
        L1a:
            r4 = 0
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0048Bw.contains(java.lang.Object):boolean");
    }

    @Override // java.util.List
    public final Object get(int i) {
        Enum[] enumArr = this.l;
        int length = enumArr.length;
        if (i < 0 || i >= length) {
            throw new IndexOutOfBoundsException(AbstractC0126Ew.i(i, length, "index: ", ", size: "));
        }
        return enumArr[i];
    }

    /* JADX WARN: Removed duplicated region for block: B:10:0x0015  */
    @Override // o.Q, java.util.List
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int indexOf(java.lang.Object r4) {
        /*
            r3 = this;
            boolean r0 = r4 instanceof java.lang.Enum
            if (r0 != 0) goto L5
            goto L19
        L5:
            java.lang.Enum r4 = (java.lang.Enum) r4
            int r0 = r4.ordinal()
            if (r0 < 0) goto L15
            java.lang.Enum[] r1 = r3.l
            int r2 = r1.length
            if (r0 >= r2) goto L15
            r1 = r1[r0]
            goto L16
        L15:
            r1 = 0
        L16:
            if (r1 != r4) goto L19
            return r0
        L19:
            r4 = -1
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0048Bw.indexOf(java.lang.Object):int");
    }

    @Override // o.Q, java.util.List
    public final int lastIndexOf(Object obj) {
        if (obj instanceof Enum) {
            return indexOf((Enum) obj);
        }
        return -1;
    }
}
