package defpackage;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/* renamed from: ʽᵻᵜᵠ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0183 extends AbstractC5102 {
    private static final C0183 zzb;
    private InterfaceC1752 zzd = C3223.f12153;

    static {
        C0183 c0183 = new C0183();
        zzb = c0183;
        AbstractC5102.m10565(C0183.class, c0183);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public static C3990 m1410() {
        return (C3990) zzb.m10573();
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public static void m1411(C0183 c0183, ArrayList arrayList) {
        InterfaceC1752 interfaceC1752 = c0183.zzd;
        if (!((AbstractC1528) interfaceC1752).f6117) {
            int size = interfaceC1752.size();
            c0183.zzd = interfaceC1752.mo4968(size + size);
        }
        List list = c0183.zzd;
        int size2 = arrayList.size();
        if (list instanceof ArrayList) {
            ((ArrayList) list).ensureCapacity(list.size() + size2);
        } else if (list instanceof C3223) {
            C3223 c3223 = (C3223) list;
            int i = c3223.f12156 + size2;
            int length = c3223.f12155.length;
            if (i > length) {
                if (length != 0) {
                    while (length < i) {
                        length = AbstractC4737.m10017(length, 3, 2, 1, 10);
                    }
                    c3223.f12155 = Arrays.copyOf(c3223.f12155, length);
                } else {
                    c3223.f12155 = new Object[Math.max(i, 10)];
                }
            }
        }
        int size3 = list.size();
        int size4 = arrayList.size();
        for (int i2 = 0; i2 < size4; i2++) {
            Object obj = arrayList.get(i2);
            if (obj == null) {
                String strM8596 = AbstractC3915.m8596(list.size() - size3, "Element at index ", " is null.");
                int size5 = list.size();
                while (true) {
                    size5--;
                    if (size5 < size3) {
                        C1260.m3813(strM8596);
                        return;
                    }
                    list.remove(size5);
                }
            } else {
                list.add(obj);
            }
        }
    }

    @Override // defpackage.AbstractC5102
    /* renamed from: ᵶᵷᵕ */
    public final Object mo1084(int i) {
        int i2 = i - 1;
        if (i2 == 0) {
            return (byte) 1;
        }
        if (i2 == 2) {
            return new C5381(zzb, "\u0004\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b", new Object[]{"zzd", C2216.class});
        }
        if (i2 == 3) {
            return new C0183();
        }
        if (i2 == 4) {
            return new C3990(zzb);
        }
        if (i2 == 5) {
            return zzb;
        }
        throw null;
    }
}
