package defpackage;

import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;

/* renamed from: ˑʽᵨ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2021 extends ˁˈᵸ {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final /* synthetic */ int f8113;

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public static C1361 m5556(C3493 c3493) {
        String strM7961 = c3493.m7961();
        strM7961.getClass();
        String strM79612 = c3493.m7961();
        strM79612.getClass();
        return new C1361(strM7961, strM79612, c3493.m7948(), c3493.m7948(), Arrays.copyOfRange(c3493.f13082, c3493.f13083, c3493.f13081));
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final C3034 m5557(C1304 c1304, ByteBuffer byteBuffer) {
        switch (this.f8113) {
            case 0:
                if (byteBuffer.get() != 116) {
                    return null;
                }
                C4089 c4089 = new C4089(byteBuffer.limit(), byteBuffer.array());
                c4089.m8956(12);
                int iM8952 = (c4089.m8952() + c4089.m8966(12)) - 4;
                c4089.m8956(44);
                c4089.m8959(c4089.m8966(12));
                c4089.m8956(16);
                ArrayList arrayList = new ArrayList();
                while (c4089.m8952() < iM8952) {
                    c4089.m8956(48);
                    int iM8966 = c4089.m8966(8);
                    c4089.m8956(4);
                    int iM89522 = c4089.m8952() + c4089.m8966(12);
                    String str = null;
                    String str2 = null;
                    while (c4089.m8952() < iM89522) {
                        int iM89662 = c4089.m8966(8);
                        int iM89663 = c4089.m8966(8);
                        int iM89523 = c4089.m8952() + iM89663;
                        if (iM89662 == 2) {
                            int iM89664 = c4089.m8966(16);
                            c4089.m8956(8);
                            if (iM89664 == 3) {
                                while (c4089.m8952() < iM89523) {
                                    int iM89665 = c4089.m8966(8);
                                    Charset charset = StandardCharsets.US_ASCII;
                                    byte[] bArr = new byte[iM89665];
                                    c4089.m8960(iM89665, bArr);
                                    String str3 = new String(bArr, charset);
                                    int iM89666 = c4089.m8966(8);
                                    for (int i = 0; i < iM89666; i++) {
                                        c4089.m8959(c4089.m8966(8));
                                    }
                                    str = str3;
                                }
                            }
                        } else if (iM89662 == 21) {
                            Charset charset2 = StandardCharsets.US_ASCII;
                            byte[] bArr2 = new byte[iM89663];
                            c4089.m8960(iM89663, bArr2);
                            str2 = new String(bArr2, charset2);
                        }
                        c4089.m8957(iM89523 * 8);
                    }
                    c4089.m8957(iM89522 * 8);
                    if (str != null && str2 != null) {
                        arrayList.add(new C2552(iM8966, str.concat(str2)));
                    }
                }
                if (arrayList.isEmpty()) {
                    return null;
                }
                return new C3034(arrayList);
            default:
                return new C3034(m5556(new C3493(byteBuffer.limit(), byteBuffer.array())));
        }
    }
}
