package defpackage;

import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Looper;
import android.os.Parcel;
import android.util.AttributeSet;
import android.util.TypedValue;
import androidx.work.impl.foreground.SystemForegroundService;
import com.google.firebase.encoders.EncodingException;
import j$.util.DesugarCollections;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;

/* JADX INFO: renamed from: ᵽᵾʿ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5398 implements InterfaceC4951, InterfaceC3069, InterfaceC4153, InterfaceC2272, InterfaceC1937 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f20482;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public Object f20483;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public Object f20484;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public Object f20485;

    public C5398(int i, String str) {
        this.f20482 = i;
        switch (i) {
            case C5224.BYTES_FIELD_NUMBER /* 8 */:
                ʽᵺᴵ r2 = new ʽᵺᴵ(9);
                this.f20483 = r2;
                this.f20485 = r2;
                this.f20484 = str;
                break;
            default:
                C4753 c4753 = new C4753();
                c4753.f18111 = AbstractC4208.m9132("video/mp2t");
                c4753.f18101 = AbstractC4208.m9132(str);
                this.f20484 = new C5286(c4753);
                break;
        }
    }

    public C5398(Context context, TypedArray typedArray) {
        this.f20482 = 4;
        this.f20484 = context;
        this.f20483 = typedArray;
    }

    public C5398(SystemForegroundService systemForegroundService) {
        this.f20482 = 3;
        this.f20484 = new C0727(systemForegroundService);
        this.f20483 = new Handler(Looper.getMainLooper());
    }

    public /* synthetic */ C5398(Object obj, Object obj2, Object obj3, int i) {
        this.f20482 = i;
        this.f20484 = obj;
        this.f20483 = obj2;
        this.f20485 = obj3;
    }

    public C5398(ArrayList arrayList) {
        this.f20482 = 6;
        this.f20484 = DesugarCollections.unmodifiableList(new ArrayList(arrayList));
        this.f20483 = new long[arrayList.size() * 2];
        for (int i = 0; i < arrayList.size(); i++) {
            C2296 c2296 = (C2296) arrayList.get(i);
            int i2 = i * 2;
            long[] jArr = (long[]) this.f20483;
            jArr[i2] = c2296.f9013;
            jArr[i2 + 1] = c2296.f9014;
        }
        long[] jArr2 = (long[]) this.f20483;
        long[] jArrCopyOf = Arrays.copyOf(jArr2, jArr2.length);
        this.f20485 = jArrCopyOf;
        Arrays.sort(jArrCopyOf);
    }

    public C5398(C2894 c2894, String str, ArrayList arrayList) {
        this.f20482 = 11;
        this.f20484 = str;
        this.f20483 = arrayList;
        this.f20485 = c2894;
    }

    public C5398(final AbstractC4667 abstractC4667, final String str) {
        this.f20482 = 10;
        this.f20484 = C3240.f12335;
        final int i = 1;
        this.f20483 = ᵽˊᵘᵬ.ˊᵙᵾᵲ(new InterfaceC5188(this) { // from class: ˆˊˁ

            /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
            public final /* synthetic */ C5398 f3714;

            {
                this.f3714 = this;
            }

            /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
            @Override // defpackage.InterfaceC5188
            public final Object get() {
                long j;
                char c;
                long j2;
                long j3;
                long j4;
                long j5;
                long j6;
                long j7;
                int i2 = i;
                Serializable serializable = abstractC4667;
                C5398 c5398 = this.f3714;
                switch (i2) {
                    case 0:
                        int i3 = AbstractC4536.f17259;
                        int i4 = C2339.f9191;
                        C3794 c3794M8460 = new C3794().m8460(((String) serializable).getBytes());
                        ByteBuffer byteBuffer = c3794M8460.f14410;
                        byteBuffer.put((byte) 0);
                        if (byteBuffer.remaining() < 8) {
                            c3794M8460.m8461();
                        }
                        C3794 c3794M84602 = c3794M8460.m8460("".getBytes());
                        c3794M84602.m8461();
                        ByteBuffer byteBuffer2 = c3794M84602.f14410;
                        byteBuffer2.flip();
                        if (byteBuffer2.remaining() > 0) {
                            c3794M84602.f14412 = byteBuffer2.remaining() + c3794M84602.f14412;
                            long j8 = 0;
                            switch (byteBuffer2.remaining()) {
                                case 1:
                                    j = 0;
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 2:
                                    c = '\b';
                                    j2 = 0;
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 3:
                                    c = '\b';
                                    j3 = 0;
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 4:
                                    c = '\b';
                                    j4 = 0;
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 5:
                                    c = '\b';
                                    j5 = 0;
                                    j4 = j5 ^ (((long) (byteBuffer2.get(4) & 255)) << 32);
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                                    j6 = 0;
                                    c = '\b';
                                    j5 = (((long) (byteBuffer2.get(5) & 255)) << 40) ^ j6;
                                    j4 = j5 ^ (((long) (byteBuffer2.get(4) & 255)) << 32);
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                                    j6 = ((long) (byteBuffer2.get(6) & 255)) << 48;
                                    c = '\b';
                                    j5 = (((long) (byteBuffer2.get(5) & 255)) << 40) ^ j6;
                                    j4 = j5 ^ (((long) (byteBuffer2.get(4) & 255)) << 32);
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C5224.BYTES_FIELD_NUMBER /* 8 */:
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 9:
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 10:
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 11:
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 12:
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 13:
                                    j8 ^= ((long) (byteBuffer2.get(12) & 255)) << 32;
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 14:
                                    j8 ^= ((long) (byteBuffer2.get(13) & 255)) << 40;
                                    j8 ^= ((long) (byteBuffer2.get(12) & 255)) << 32;
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 15:
                                    j8 = ((long) (byteBuffer2.get(14) & 255)) << 48;
                                    j8 ^= ((long) (byteBuffer2.get(13) & 255)) << 40;
                                    j8 ^= ((long) (byteBuffer2.get(12) & 255)) << 32;
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                default:
                                    throw new AssertionError("Should never get here.");
                            }
                        }
                        long j9 = c3794M84602.f14411;
                        long j10 = c3794M84602.f14412;
                        long j11 = j9 ^ j10;
                        long j12 = j10 ^ c3794M84602.f14409;
                        long j13 = j11 + j12;
                        long j14 = j12 + j13;
                        long j15 = (j13 ^ (j13 >>> 33)) * (-49064778989728563L);
                        long j16 = (j15 ^ (j15 >>> 33)) * (-4265267296055464877L);
                        long j17 = (j14 ^ (j14 >>> 33)) * (-49064778989728563L);
                        long j18 = (j17 ^ (j17 >>> 33)) * (-4265267296055464877L);
                        long j19 = j18 ^ (j18 >>> 33);
                        long j20 = (j16 ^ (j16 >>> 33)) + j19;
                        c3794M84602.f14411 = j20;
                        c3794M84602.f14409 = j19 + j20;
                        byte[] bArrArray = ByteBuffer.wrap(new byte[16]).order(ByteOrder.LITTLE_ENDIAN).putLong(c3794M84602.f14411).putLong(c3794M84602.f14409).array();
                        bArrArray.getClass();
                        return ((C0189) c5398.f20484).m7391((byte[]) bArrArray.clone());
                    default:
                        return ((C0189) c5398.f20484).m7391(((AbstractC4667) serializable).m9797());
                }
            }
        });
        final int i2 = 0;
        this.f20485 = ᵽˊᵘᵬ.ˊᵙᵾᵲ(new InterfaceC5188(this) { // from class: ˆˊˁ

            /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
            public final /* synthetic */ C5398 f3714;

            {
                this.f3714 = this;
            }

            /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
            @Override // defpackage.InterfaceC5188
            public final Object get() {
                long j;
                char c;
                long j2;
                long j3;
                long j4;
                long j5;
                long j6;
                long j7;
                int i22 = i2;
                Serializable serializable = str;
                C5398 c5398 = this.f3714;
                switch (i22) {
                    case 0:
                        int i3 = AbstractC4536.f17259;
                        int i4 = C2339.f9191;
                        C3794 c3794M8460 = new C3794().m8460(((String) serializable).getBytes());
                        ByteBuffer byteBuffer = c3794M8460.f14410;
                        byteBuffer.put((byte) 0);
                        if (byteBuffer.remaining() < 8) {
                            c3794M8460.m8461();
                        }
                        C3794 c3794M84602 = c3794M8460.m8460("".getBytes());
                        c3794M84602.m8461();
                        ByteBuffer byteBuffer2 = c3794M84602.f14410;
                        byteBuffer2.flip();
                        if (byteBuffer2.remaining() > 0) {
                            c3794M84602.f14412 = byteBuffer2.remaining() + c3794M84602.f14412;
                            long j8 = 0;
                            switch (byteBuffer2.remaining()) {
                                case 1:
                                    j = 0;
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 2:
                                    c = '\b';
                                    j2 = 0;
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 3:
                                    c = '\b';
                                    j3 = 0;
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 4:
                                    c = '\b';
                                    j4 = 0;
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 5:
                                    c = '\b';
                                    j5 = 0;
                                    j4 = j5 ^ (((long) (byteBuffer2.get(4) & 255)) << 32);
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                                    j6 = 0;
                                    c = '\b';
                                    j5 = (((long) (byteBuffer2.get(5) & 255)) << 40) ^ j6;
                                    j4 = j5 ^ (((long) (byteBuffer2.get(4) & 255)) << 32);
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                                    j6 = ((long) (byteBuffer2.get(6) & 255)) << 48;
                                    c = '\b';
                                    j5 = (((long) (byteBuffer2.get(5) & 255)) << 40) ^ j6;
                                    j4 = j5 ^ (((long) (byteBuffer2.get(4) & 255)) << 32);
                                    j3 = j4 ^ (((long) (byteBuffer2.get(3) & 255)) << 24);
                                    j2 = j3 ^ (((long) (byteBuffer2.get(2) & 255)) << 16);
                                    j = j2 ^ (((long) (byteBuffer2.get(1) & 255)) << c);
                                    j7 = j ^ ((long) (byteBuffer2.get(0) & 255));
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C5224.BYTES_FIELD_NUMBER /* 8 */:
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 9:
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 10:
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 11:
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 12:
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 13:
                                    j8 ^= ((long) (byteBuffer2.get(12) & 255)) << 32;
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 14:
                                    j8 ^= ((long) (byteBuffer2.get(13) & 255)) << 40;
                                    j8 ^= ((long) (byteBuffer2.get(12) & 255)) << 32;
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 15:
                                    j8 = ((long) (byteBuffer2.get(14) & 255)) << 48;
                                    j8 ^= ((long) (byteBuffer2.get(13) & 255)) << 40;
                                    j8 ^= ((long) (byteBuffer2.get(12) & 255)) << 32;
                                    j8 ^= ((long) (byteBuffer2.get(11) & 255)) << 24;
                                    j8 ^= ((long) (byteBuffer2.get(10) & 255)) << 16;
                                    j8 ^= ((long) (byteBuffer2.get(9) & 255)) << 8;
                                    j8 ^= (long) (byteBuffer2.get(8) & 255);
                                    j7 = byteBuffer2.getLong();
                                    c3794M84602.f14411 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c3794M84602.f14411;
                                    c3794M84602.f14409 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                default:
                                    throw new AssertionError("Should never get here.");
                            }
                        }
                        long j9 = c3794M84602.f14411;
                        long j10 = c3794M84602.f14412;
                        long j11 = j9 ^ j10;
                        long j12 = j10 ^ c3794M84602.f14409;
                        long j13 = j11 + j12;
                        long j14 = j12 + j13;
                        long j15 = (j13 ^ (j13 >>> 33)) * (-49064778989728563L);
                        long j16 = (j15 ^ (j15 >>> 33)) * (-4265267296055464877L);
                        long j17 = (j14 ^ (j14 >>> 33)) * (-49064778989728563L);
                        long j18 = (j17 ^ (j17 >>> 33)) * (-4265267296055464877L);
                        long j19 = j18 ^ (j18 >>> 33);
                        long j20 = (j16 ^ (j16 >>> 33)) + j19;
                        c3794M84602.f14411 = j20;
                        c3794M84602.f14409 = j19 + j20;
                        byte[] bArrArray = ByteBuffer.wrap(new byte[16]).order(ByteOrder.LITTLE_ENDIAN).putLong(c3794M84602.f14411).putLong(c3794M84602.f14409).array();
                        bArrArray.getClass();
                        return ((C0189) c5398.f20484).m7391((byte[]) bArrArray.clone());
                    default:
                        return ((C0189) c5398.f20484).m7391(((AbstractC4667) serializable).m9797());
                }
            }
        });
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public static C5398 m11010(Context context, AttributeSet attributeSet, int[] iArr, int i) {
        return new C5398(context, context.obtainStyledAttributes(attributeSet, iArr, i, 0));
    }

    @Override // defpackage.InterfaceC2272
    public void accept(Object obj, Object obj2) {
        C5427 c5427 = (C5427) ((C3631) obj).m1904();
        BinderC5194 binderC5194 = new BinderC5194((C2585) this.f20484, (C5519) this.f20485);
        String str = (String) this.f20483;
        Parcel parcelM10695 = c5427.m10695();
        parcelM10695.writeString(str);
        AbstractC4376.m9382(parcelM10695, binderC5194);
        c5427.m10690(parcelM10695, 28);
    }

    @Override // defpackage.InterfaceC2142
    public Object get() {
        return new ᵯᵨᵲ((Context) ((InterfaceC2142) this.f20484).get(), (C0520) ((InterfaceC2142) this.f20483).get(), (C0967) ((ˑᵤʽˏ) this.f20485).get(), 25);
    }

    public String toString() {
        switch (this.f20482) {
            case C5224.BYTES_FIELD_NUMBER /* 8 */:
                StringBuilder sb = new StringBuilder(32);
                sb.append((String) this.f20484);
                sb.append('{');
                ʽᵺᴵ r5 = (ʽᵺᴵ) ((ʽᵺᴵ) this.f20483).ᵔᵖᵹᵫ;
                String str = "";
                while (r5 != null) {
                    Object obj = r5.ᵜᵪʾ;
                    sb.append(str);
                    if (obj == null || !obj.getClass().isArray()) {
                        sb.append(obj);
                    } else {
                        sb.append((CharSequence) Arrays.deepToString(new Object[]{obj}), 1, r2.length() - 1);
                    }
                    r5 = (ʽᵺᴵ) r5.ᵔᵖᵹᵫ;
                    str = ", ";
                }
                sb.append('}');
                return sb.toString();
            default:
                return super.toString();
        }
    }

    @Override // defpackage.InterfaceC4951
    /* JADX INFO: renamed from: ʽˈˋ */
    public void mo5708(C0085 c0085, InterfaceC4550 interfaceC4550, C4173 c4173) {
        this.f20483 = c0085;
        c4173.m9112();
        c4173.m9111();
        InterfaceC5226 interfaceC5226Mo2743 = interfaceC4550.mo2743(c4173.f15928, 5);
        this.f20485 = interfaceC5226Mo2743;
        interfaceC5226Mo2743.mo1742((C5286) this.f20484);
    }

    @Override // defpackage.InterfaceC4153
    /* JADX INFO: renamed from: ˊᵫᵗ */
    public int mo3131() {
        return ((long[]) this.f20485).length;
    }

    @Override // defpackage.InterfaceC4153
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public int mo3132(long j) {
        long[] jArr = (long[]) this.f20485;
        int iM3210 = AbstractC0956.m3210(jArr, j, false);
        if (iM3210 < jArr.length) {
            return iM3210;
        }
        return -1;
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public Typeface m11011(int i, int i2, C0760 c0760) {
        int resourceId = ((TypedArray) this.f20483).getResourceId(i, 0);
        if (resourceId == 0) {
            return null;
        }
        if (((TypedValue) this.f20485) == null) {
            this.f20485 = new TypedValue();
        }
        Context context = (Context) this.f20484;
        TypedValue typedValue = (TypedValue) this.f20485;
        ThreadLocal threadLocal = AbstractC0354.f2145;
        if (context.isRestricted()) {
            return null;
        }
        return AbstractC0354.m1673(context, resourceId, typedValue, i2, c0760, true);
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public void m11012() {
        ((TypedArray) this.f20483).recycle();
    }

    @Override // defpackage.InterfaceC4153
    /* JADX INFO: renamed from: ᵨᵣ */
    public long mo3133(int i) {
        long[] jArr = (long[]) this.f20485;
        ᵻᵪ.ᵱᵽʡᵚ(i >= 0);
        ᵻᵪ.ᵱᵽʡᵚ(i < jArr.length);
        return jArr[i];
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public void m11013(EnumC1653 enumC1653) {
        RunnableC1508 runnableC1508 = (RunnableC1508) this.f20485;
        if (runnableC1508 != null) {
            runnableC1508.run();
        }
        RunnableC1508 runnableC15082 = new RunnableC1508((C0727) this.f20484, enumC1653);
        this.f20485 = runnableC15082;
        ((Handler) this.f20483).postAtFrontOfQueue(runnableC15082);
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public Drawable m11014(int i) {
        int resourceId;
        Drawable drawableM10916;
        if (!((TypedArray) this.f20483).hasValue(i) || (resourceId = ((TypedArray) this.f20483).getResourceId(i, 0)) == 0) {
            return null;
        }
        C0359 c0359M1680 = C0359.m1680();
        Context context = (Context) this.f20484;
        synchronized (c0359M1680) {
            drawableM10916 = c0359M1680.f2163.m10916(context, resourceId, true);
        }
        return drawableM10916;
    }

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public File m11015() {
        String str = (String) ((InterfaceC5188) this.f20483).get();
        String str2 = (String) ((InterfaceC5188) this.f20485).get();
        StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 1 + String.valueOf(str2).length() + 3);
        sb.append(str);
        sb.append("/");
        sb.append(str2);
        sb.append(".pb");
        return new File(sb.toString());
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public ColorStateList m11016(int i) {
        int resourceId;
        ColorStateList colorStateListM4515;
        TypedArray typedArray = (TypedArray) this.f20483;
        return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (colorStateListM4515 = AbstractC1630.m4515((Context) this.f20484, resourceId)) == null) ? typedArray.getColorStateList(i) : colorStateListM4515;
    }

    @Override // defpackage.InterfaceC4951
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public void mo5743(C4545 c4545) {
        long jM1139;
        ((C0085) this.f20483).getClass();
        String str = AbstractC0956.f4222;
        C0085 c0085 = (C0085) this.f20483;
        synchronized (c0085) {
            try {
                long j = c0085.f1296;
                jM1139 = j != -9223372036854775807L ? j + c0085.f1295 : c0085.m1139();
            } finally {
            }
        }
        long jM1136 = ((C0085) this.f20483).m1136();
        if (jM1139 == -9223372036854775807L || jM1136 == -9223372036854775807L) {
            return;
        }
        C5286 c5286 = (C5286) this.f20484;
        if (jM1136 != c5286.f19975) {
            C4753 c4753M10878 = c5286.m10878();
            c4753M10878.f18094 = jM1136;
            C5286 c52862 = new C5286(c4753M10878);
            this.f20484 = c52862;
            ((InterfaceC5226) this.f20485).mo1742(c52862);
        }
        int iM9623 = c4545.m9623();
        ((InterfaceC5226) this.f20485).mo1740(iM9623, c4545);
        ((InterfaceC5226) this.f20485).mo1741(jM1139, 1, iM9623, 0, null);
    }

    @Override // defpackage.InterfaceC4153
    /* JADX INFO: renamed from: ᵵᵽ */
    public List mo3134(long j) {
        List list = (List) this.f20484;
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        for (int i = 0; i < list.size(); i++) {
            long[] jArr = (long[]) this.f20483;
            int i2 = i * 2;
            if (jArr[i2] <= j && j < jArr[i2 + 1]) {
                C2296 c2296 = (C2296) list.get(i);
                C4847 c4847 = c2296.f9015;
                if (c4847.f18491 == -3.4028235E38f) {
                    arrayList2.add(c2296);
                } else {
                    arrayList.add(c4847);
                }
            }
        }
        Collections.sort(arrayList2, new C2262(24));
        for (int i3 = 0; i3 < arrayList2.size(); i3++) {
            C0030 c0030M10086 = ((C2296) arrayList2.get(i3)).f9015.m10086();
            c0030M10086.f1158 = (-1) - i3;
            c0030M10086.f1168 = 1;
            arrayList.add(c0030M10086.m1016());
        }
        return arrayList;
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public Drawable m11017(int i) {
        int resourceId;
        TypedArray typedArray = (TypedArray) this.f20483;
        return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0) ? typedArray.getDrawable(i) : ᵥˇᵛˎ.ᵶˇᵱ((Context) this.f20484, resourceId);
    }

    @Override // defpackage.InterfaceC1937
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public void mo5191(String str, int i, Throwable th, byte[] bArr, Map map) {
        ((C2894) this.f20485).m6937(true, i, th, bArr, (String) this.f20484, (ArrayList) this.f20483, map);
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public void m11018(C3343 c3343, ByteArrayOutputStream byteArrayOutputStream) {
        HashMap map = (HashMap) this.f20484;
        C3891 c3891 = new C3891(byteArrayOutputStream, map, (HashMap) this.f20483, (InterfaceC2474) this.f20485);
        InterfaceC2474 interfaceC2474 = (InterfaceC2474) map.get(C3343.class);
        if (interfaceC2474 == null) {
            throw new EncodingException(AbstractC2704.m6520(C3343.class, "No encoder for "));
        }
        interfaceC2474.mo1073(c3343, c3891);
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public String m11019(String str, long j, int i, long j2) {
        ArrayList arrayList = (ArrayList) this.f20485;
        ArrayList arrayList2 = (ArrayList) this.f20483;
        StringBuilder sb = new StringBuilder();
        int i2 = 0;
        while (true) {
            int size = arrayList2.size();
            ArrayList arrayList3 = (ArrayList) this.f20484;
            if (i2 >= size) {
                sb.append((String) arrayList3.get(arrayList2.size()));
                return sb.toString();
            }
            sb.append((String) arrayList3.get(i2));
            if (((Integer) arrayList2.get(i2)).intValue() == 1) {
                sb.append(str);
            } else if (((Integer) arrayList2.get(i2)).intValue() == 2) {
                sb.append(String.format(Locale.US, (String) arrayList.get(i2), Long.valueOf(j)));
            } else if (((Integer) arrayList2.get(i2)).intValue() == 3) {
                sb.append(String.format(Locale.US, (String) arrayList.get(i2), Integer.valueOf(i)));
            } else if (((Integer) arrayList2.get(i2)).intValue() == 4) {
                sb.append(String.format(Locale.US, (String) arrayList.get(i2), Long.valueOf(j2)));
            }
            i2++;
        }
    }
}
