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;

/* renamed from: ˌʽᵢ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1570 implements InterfaceC3579, InterfaceC1783, InterfaceC3708, InterfaceC0816, InterfaceC2326 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public Object f6227;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f6228;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public Object f6229;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Object f6230;

    public C1570(int i, String str) {
        this.f6228 = i;
        switch (i) {
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
                C0553 c0553 = new C0553(6);
                this.f6230 = c0553;
                this.f6229 = c0553;
                this.f6227 = str;
                break;
            default:
                C2153 c2153 = new C2153();
                c2153.f8518 = AbstractC2924.m7101("video/mp2t");
                c2153.f8516 = AbstractC2924.m7101(str);
                this.f6227 = new C3446(c2153);
                break;
        }
    }

    public C1570(Context context, TypedArray typedArray) {
        this.f6228 = 4;
        this.f6227 = context;
        this.f6230 = typedArray;
    }

    public C1570(SystemForegroundService systemForegroundService) {
        this.f6228 = 3;
        this.f6227 = new C4171(systemForegroundService);
        this.f6230 = new Handler(Looper.getMainLooper());
    }

    public /* synthetic */ C1570(Object obj, Object obj2, Object obj3, int i) {
        this.f6228 = i;
        this.f6227 = obj;
        this.f6230 = obj2;
        this.f6229 = obj3;
    }

    public C1570(ArrayList arrayList) {
        this.f6228 = 6;
        this.f6227 = DesugarCollections.unmodifiableList(new ArrayList(arrayList));
        this.f6230 = new long[arrayList.size() * 2];
        for (int i = 0; i < arrayList.size(); i++) {
            C4374 c4374 = (C4374) arrayList.get(i);
            int i2 = i * 2;
            long[] jArr = (long[]) this.f6230;
            jArr[i2] = c4374.f16356;
            jArr[i2 + 1] = c4374.f16354;
        }
        long[] jArr2 = (long[]) this.f6230;
        long[] jArrCopyOf = Arrays.copyOf(jArr2, jArr2.length);
        this.f6229 = jArrCopyOf;
        Arrays.sort(jArrCopyOf);
    }

    public C1570(C0524 c0524, String str, ArrayList arrayList) {
        this.f6228 = 11;
        this.f6227 = str;
        this.f6230 = arrayList;
        this.f6229 = c0524;
    }

    public C1570(final AbstractC2646 abstractC2646, final String str) {
        this.f6228 = 10;
        this.f6227 = C4476.f16696;
        final int i = 1;
        this.f6230 = AbstractC0220.m1513(new InterfaceC5454(this) { // from class: ᵘˌʾ

            /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
            public final /* synthetic */ C1570 f9782;

            {
                this.f9782 = this;
            }

            /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
            @Override // defpackage.InterfaceC5454
            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 = abstractC2646;
                C1570 c1570 = this.f9782;
                switch (i2) {
                    case 0:
                        int i3 = AbstractC1103.f4739;
                        int i4 = C2625.f10148;
                        C1428 c1428M4330 = new C1428().m4330(((String) serializable).getBytes());
                        ByteBuffer byteBuffer = c1428M4330.f5818;
                        byteBuffer.put((byte) 0);
                        if (byteBuffer.remaining() < 8) {
                            c1428M4330.m4331();
                        }
                        C1428 c1428M43302 = c1428M4330.m4330("".getBytes());
                        c1428M43302.m4331();
                        ByteBuffer byteBuffer2 = c1428M43302.f5818;
                        byteBuffer2.flip();
                        if (byteBuffer2.remaining() > 0) {
                            c1428M43302.f5816 = byteBuffer2.remaining() + c1428M43302.f5816;
                            long j8 = 0;
                            switch (byteBuffer2.remaining()) {
                                case 1:
                                    j = 0;
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 2:
                                    c = '\b';
                                    j2 = 0;
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 3:
                                    c = '\b';
                                    j3 = 0;
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 4:
                                    c = '\b';
                                    j4 = 0;
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 5:
                                    c = '\b';
                                    j5 = 0;
                                    j4 = j5 ^ ((byteBuffer2.get(4) & 255) << 32);
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                                    j6 = 0;
                                    c = '\b';
                                    j5 = ((byteBuffer2.get(5) & 255) << 40) ^ j6;
                                    j4 = j5 ^ ((byteBuffer2.get(4) & 255) << 32);
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
                                    j6 = (byteBuffer2.get(6) & 255) << 48;
                                    c = '\b';
                                    j5 = ((byteBuffer2.get(5) & 255) << 40) ^ j6;
                                    j4 = j5 ^ ((byteBuffer2.get(4) & 255) << 32);
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C1339.BYTES_FIELD_NUMBER /* 8 */:
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 9:
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 10:
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 11:
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 12:
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 13:
                                    j8 ^= (byteBuffer2.get(12) & 255) << 32;
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 14:
                                    j8 ^= (byteBuffer2.get(13) & 255) << 40;
                                    j8 ^= (byteBuffer2.get(12) & 255) << 32;
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 15:
                                    j8 = (byteBuffer2.get(14) & 255) << 48;
                                    j8 ^= (byteBuffer2.get(13) & 255) << 40;
                                    j8 ^= (byteBuffer2.get(12) & 255) << 32;
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                default:
                                    throw new AssertionError("Should never get here.");
                            }
                        }
                        long j9 = c1428M43302.f5820;
                        long j10 = c1428M43302.f5816;
                        long j11 = j9 ^ j10;
                        long j12 = j10 ^ c1428M43302.f5815;
                        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;
                        c1428M43302.f5820 = j20;
                        c1428M43302.f5815 = j19 + j20;
                        byte[] bArrArray = ByteBuffer.wrap(new byte[16]).order(ByteOrder.LITTLE_ENDIAN).putLong(c1428M43302.f5820).putLong(c1428M43302.f5815).array();
                        bArrArray.getClass();
                        return ((C0315) c1570.f6227).m9516((byte[]) bArrArray.clone());
                    default:
                        return ((C0315) c1570.f6227).m9516(((AbstractC2646) serializable).m6635());
                }
            }
        });
        final int i2 = 0;
        this.f6229 = AbstractC0220.m1513(new InterfaceC5454(this) { // from class: ᵘˌʾ

            /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
            public final /* synthetic */ C1570 f9782;

            {
                this.f9782 = this;
            }

            /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
            @Override // defpackage.InterfaceC5454
            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;
                C1570 c1570 = this.f9782;
                switch (i22) {
                    case 0:
                        int i3 = AbstractC1103.f4739;
                        int i4 = C2625.f10148;
                        C1428 c1428M4330 = new C1428().m4330(((String) serializable).getBytes());
                        ByteBuffer byteBuffer = c1428M4330.f5818;
                        byteBuffer.put((byte) 0);
                        if (byteBuffer.remaining() < 8) {
                            c1428M4330.m4331();
                        }
                        C1428 c1428M43302 = c1428M4330.m4330("".getBytes());
                        c1428M43302.m4331();
                        ByteBuffer byteBuffer2 = c1428M43302.f5818;
                        byteBuffer2.flip();
                        if (byteBuffer2.remaining() > 0) {
                            c1428M43302.f5816 = byteBuffer2.remaining() + c1428M43302.f5816;
                            long j8 = 0;
                            switch (byteBuffer2.remaining()) {
                                case 1:
                                    j = 0;
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 2:
                                    c = '\b';
                                    j2 = 0;
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 3:
                                    c = '\b';
                                    j3 = 0;
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 4:
                                    c = '\b';
                                    j4 = 0;
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 5:
                                    c = '\b';
                                    j5 = 0;
                                    j4 = j5 ^ ((byteBuffer2.get(4) & 255) << 32);
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                                    j6 = 0;
                                    c = '\b';
                                    j5 = ((byteBuffer2.get(5) & 255) << 40) ^ j6;
                                    j4 = j5 ^ ((byteBuffer2.get(4) & 255) << 32);
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
                                    j6 = (byteBuffer2.get(6) & 255) << 48;
                                    c = '\b';
                                    j5 = ((byteBuffer2.get(5) & 255) << 40) ^ j6;
                                    j4 = j5 ^ ((byteBuffer2.get(4) & 255) << 32);
                                    j3 = j4 ^ ((byteBuffer2.get(3) & 255) << 24);
                                    j2 = j3 ^ ((byteBuffer2.get(2) & 255) << 16);
                                    j = j2 ^ ((byteBuffer2.get(1) & 255) << c);
                                    j7 = j ^ (byteBuffer2.get(0) & 255);
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case C1339.BYTES_FIELD_NUMBER /* 8 */:
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 9:
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 10:
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 11:
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 12:
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 13:
                                    j8 ^= (byteBuffer2.get(12) & 255) << 32;
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 14:
                                    j8 ^= (byteBuffer2.get(13) & 255) << 40;
                                    j8 ^= (byteBuffer2.get(12) & 255) << 32;
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                case 15:
                                    j8 = (byteBuffer2.get(14) & 255) << 48;
                                    j8 ^= (byteBuffer2.get(13) & 255) << 40;
                                    j8 ^= (byteBuffer2.get(12) & 255) << 32;
                                    j8 ^= (byteBuffer2.get(11) & 255) << 24;
                                    j8 ^= (byteBuffer2.get(10) & 255) << 16;
                                    j8 ^= (byteBuffer2.get(9) & 255) << 8;
                                    j8 ^= byteBuffer2.get(8) & 255;
                                    j7 = byteBuffer2.getLong();
                                    c1428M43302.f5820 = (Long.rotateLeft(j7 * (-8663945395140668459L), 31) * 5545529020109919103L) ^ c1428M43302.f5820;
                                    c1428M43302.f5815 ^= Long.rotateLeft(j8 * 5545529020109919103L, 33) * (-8663945395140668459L);
                                    byteBuffer2.position(byteBuffer2.limit());
                                    break;
                                default:
                                    throw new AssertionError("Should never get here.");
                            }
                        }
                        long j9 = c1428M43302.f5820;
                        long j10 = c1428M43302.f5816;
                        long j11 = j9 ^ j10;
                        long j12 = j10 ^ c1428M43302.f5815;
                        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;
                        c1428M43302.f5820 = j20;
                        c1428M43302.f5815 = j19 + j20;
                        byte[] bArrArray = ByteBuffer.wrap(new byte[16]).order(ByteOrder.LITTLE_ENDIAN).putLong(c1428M43302.f5820).putLong(c1428M43302.f5815).array();
                        bArrArray.getClass();
                        return ((C0315) c1570.f6227).m9516((byte[]) bArrArray.clone());
                    default:
                        return ((C0315) c1570.f6227).m9516(((AbstractC2646) serializable).m6635());
                }
            }
        });
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public static C1570 m4541(Context context, AttributeSet attributeSet, int[] iArr, int i) {
        return new C1570(context, context.obtainStyledAttributes(attributeSet, iArr, i, 0));
    }

    @Override // defpackage.InterfaceC0816
    public void accept(Object obj, Object obj2) {
        C3017 c3017 = (C3017) ((C2935) obj).m3715();
        BinderC3533 binderC3533 = new BinderC3533((C2182) this.f6227, (C3664) this.f6229);
        String str = (String) this.f6230;
        Parcel parcelM8908 = c3017.m8908();
        parcelM8908.writeString(str);
        AbstractC3092.m7422(parcelM8908, binderC3533);
        c3017.m8910(parcelM8908, 28);
    }

    @Override // defpackage.InterfaceC2765
    public Object get() {
        return new ʽᵡ((Context) ((InterfaceC2765) this.f6227).get(), (C3089) ((InterfaceC2765) this.f6230).get(), (C1368) ((ˎᵖᵗ) this.f6229).get(), 25);
    }

    public String toString() {
        switch (this.f6228) {
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
                StringBuilder sb = new StringBuilder(32);
                sb.append((String) this.f6227);
                sb.append('{');
                C0553 c0553 = (C0553) ((C0553) this.f6230).f2894;
                String str = "";
                while (c0553 != null) {
                    Object obj = c0553.f2892;
                    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);
                    }
                    c0553 = (C0553) c0553.f2894;
                    str = ", ";
                }
                sb.append('}');
                return sb.toString();
            default:
                return super.toString();
        }
    }

    @Override // defpackage.InterfaceC3708
    /* renamed from: ˇʼʤˎ */
    public long mo1886(int i) {
        long[] jArr = (long[]) this.f6229;
        ᵛᵾˏ.ᵯٴᵦ(i >= 0);
        ᵛᵾˏ.ᵯٴᵦ(i < jArr.length);
        return jArr[i];
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public void m4542() {
        ((TypedArray) this.f6230).recycle();
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public Drawable m4543(int i) {
        int resourceId;
        Drawable drawableM5498;
        if (!((TypedArray) this.f6230).hasValue(i) || (resourceId = ((TypedArray) this.f6230).getResourceId(i, 0)) == 0) {
            return null;
        }
        C3159 c3159M7512 = C3159.m7512();
        Context context = (Context) this.f6227;
        synchronized (c3159M7512) {
            drawableM5498 = c3159M7512.f11991.m5498(context, resourceId, true);
        }
        return drawableM5498;
    }

    @Override // defpackage.InterfaceC3708
    /* renamed from: ˎˏʜʾ */
    public List mo1887(long j) {
        List list = (List) this.f6227;
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        for (int i = 0; i < list.size(); i++) {
            long[] jArr = (long[]) this.f6230;
            int i2 = i * 2;
            if (jArr[i2] <= j && j < jArr[i2 + 1]) {
                C4374 c4374 = (C4374) list.get(i);
                C0551 c0551 = c4374.f16355;
                if (c0551.f2874 == -3.4028235E38f) {
                    arrayList2.add(c4374);
                } else {
                    arrayList.add(c0551);
                }
            }
        }
        Collections.sort(arrayList2, new C2360(24));
        for (int i3 = 0; i3 < arrayList2.size(); i3++) {
            C0767 c0767M2346 = ((C4374) arrayList2.get(i3)).f16355.m2346();
            c0767M2346.f3636 = (-1) - i3;
            c0767M2346.f3640 = 1;
            arrayList.add(c0767M2346.m2850());
        }
        return arrayList;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public String m4544(String str, long j, int i, long j2) {
        ArrayList arrayList = (ArrayList) this.f6229;
        ArrayList arrayList2 = (ArrayList) this.f6230;
        StringBuilder sb = new StringBuilder();
        int i2 = 0;
        while (true) {
            int size = arrayList2.size();
            ArrayList arrayList3 = (ArrayList) this.f6227;
            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++;
        }
    }

    @Override // defpackage.InterfaceC2326
    /* renamed from: ˏᵙ */
    public void mo1806(String str, int i, Throwable th, byte[] bArr, Map map) {
        ((C0524) this.f6229).m2286(true, i, th, bArr, (String) this.f6227, (ArrayList) this.f6230, map);
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public void m4545(C2143 c2143, ByteArrayOutputStream byteArrayOutputStream) {
        HashMap map = (HashMap) this.f6227;
        C1457 c1457 = new C1457(byteArrayOutputStream, map, (HashMap) this.f6230, (InterfaceC3555) this.f6229);
        InterfaceC3555 interfaceC3555 = (InterfaceC3555) map.get(C2143.class);
        if (interfaceC3555 == null) {
            throw new EncodingException(AbstractC2990.m7322(C2143.class, "No encoder for "));
        }
        interfaceC3555.mo1298(c2143, c1457);
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public File m4546() {
        String str = (String) ((InterfaceC5454) this.f6230).get();
        String str2 = (String) ((InterfaceC5454) this.f6229).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());
    }

    @Override // defpackage.InterfaceC3579
    /* renamed from: ᵥᵯˎ */
    public void mo2767(C3493 c3493) {
        long jM3778;
        ((C1240) this.f6230).getClass();
        String str = AbstractC3558.f13329;
        C1240 c1240 = (C1240) this.f6230;
        synchronized (c1240) {
            try {
                long j = c1240.f5199;
                jM3778 = j != -9223372036854775807L ? j + c1240.f5201 : c1240.m3778();
            } finally {
            }
        }
        long jM3771 = ((C1240) this.f6230).m3771();
        if (jM3778 == -9223372036854775807L || jM3771 == -9223372036854775807L) {
            return;
        }
        C3446 c3446 = (C3446) this.f6227;
        if (jM3771 != c3446.f12925) {
            C2153 c2153M7829 = c3446.m7829();
            c2153M7829.f8505 = jM3771;
            C3446 c34462 = new C3446(c2153M7829);
            this.f6227 = c34462;
            ((InterfaceC2154) this.f6229).mo4407(c34462);
        }
        int iM7959 = c3493.m7959();
        ((InterfaceC2154) this.f6229).mo4406(iM7959, c3493);
        ((InterfaceC2154) this.f6229).mo4410(jM3778, 1, iM7959, 0, null);
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public Typeface m4547(int i, int i2, C3959 c3959) {
        int resourceId = ((TypedArray) this.f6230).getResourceId(i, 0);
        if (resourceId == 0) {
            return null;
        }
        if (((TypedValue) this.f6229) == null) {
            this.f6229 = new TypedValue();
        }
        Context context = (Context) this.f6227;
        TypedValue typedValue = (TypedValue) this.f6229;
        ThreadLocal threadLocal = AbstractC4701.f17378;
        if (context.isRestricted()) {
            return null;
        }
        return AbstractC4701.m9891(context, resourceId, typedValue, i2, c3959, true);
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public void m4548(EnumC3315 enumC3315) {
        RunnableC4158 runnableC4158 = (RunnableC4158) this.f6229;
        if (runnableC4158 != null) {
            runnableC4158.run();
        }
        RunnableC4158 runnableC41582 = new RunnableC4158((C4171) this.f6227, enumC3315);
        this.f6229 = runnableC41582;
        ((Handler) this.f6230).postAtFrontOfQueue(runnableC41582);
    }

    @Override // defpackage.InterfaceC3579
    /* renamed from: ᵴᵳ */
    public void mo2775(C1240 c1240, InterfaceC1982 interfaceC1982, C4996 c4996) {
        this.f6230 = c1240;
        c4996.m10451();
        c4996.m10452();
        InterfaceC2154 interfaceC2154Mo4996 = interfaceC1982.mo4996(c4996.f18548, 5);
        this.f6229 = interfaceC2154Mo4996;
        interfaceC2154Mo4996.mo4407((C3446) this.f6227);
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public ColorStateList m4549(int i) {
        int resourceId;
        ColorStateList colorStateListM10989;
        TypedArray typedArray = (TypedArray) this.f6230;
        return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (colorStateListM10989 = AbstractC5363.m10989((Context) this.f6227, resourceId)) == null) ? typedArray.getColorStateList(i) : colorStateListM10989;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public Drawable m4550(int i) {
        int resourceId;
        TypedArray typedArray = (TypedArray) this.f6230;
        return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0) ? typedArray.getDrawable(i) : ᵕˏᵛ.ˑᵥˁ((Context) this.f6227, resourceId);
    }

    @Override // defpackage.InterfaceC3708
    /* renamed from: ᵹᵝᵶ */
    public int mo1889() {
        return ((long[]) this.f6229).length;
    }

    @Override // defpackage.InterfaceC3708
    /* renamed from: ᵻᵢﹳᵰ */
    public int mo1890(long j) {
        long[] jArr = (long[]) this.f6229;
        int iM8148 = AbstractC3558.m8148(jArr, j, false);
        if (iM8148 < jArr.length) {
            return iM8148;
        }
        return -1;
    }
}
