package defpackage;

import java.util.Locale;

/* JADX INFO: renamed from: ˈᵷᵧᵳ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1125 implements InterfaceC0728 {

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public static final int[] f4811 = {13, 14, 16, 18, 20, 21, 27, 32, 6, 7, 6, 6, 1, 1, 1, 1};

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public static final int[] f4812 = {18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 1, 1, 1, 1, 1, 1};

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final boolean f4813;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final int f4814;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public long f4815;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final C3176 f4816;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public int f4817;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public InterfaceC5226 f4818;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public long f4819;

    public C1125(C3176 c3176) {
        this.f4816 = c3176;
        String str = c3176.f12057.f19987;
        str.getClass();
        this.f4813 = "audio/amr-wb".equals(str);
        this.f4814 = c3176.f12056;
        this.f4815 = -9223372036854775807L;
        this.f4817 = -1;
        this.f4819 = 0L;
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ʽˈˋ */
    public final void mo2599(long j, long j2) {
        this.f4815 = j;
        this.f4819 = j2;
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public final void mo2600(InterfaceC4550 interfaceC4550, int i) {
        InterfaceC5226 interfaceC5226Mo2743 = interfaceC4550.mo2743(i, 1);
        this.f4818 = interfaceC5226Mo2743;
        interfaceC5226Mo2743.mo1742(this.f4816.f12057);
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo2601(long j) {
        this.f4815 = j;
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public final void mo2602(C4545 c4545, long j, int i, boolean z) {
        int iM10653;
        this.f4818.getClass();
        int i2 = this.f4817;
        if (i2 != -1 && i != (iM10653 = C5141.m10653(i2))) {
            String str = AbstractC0956.f4222;
            Locale locale = Locale.US;
            ˋˀᵧ.ʿٴˇ("Received RTP packet with unexpected sequence number. Expected: " + iM10653 + "; received: " + i + ".");
        }
        c4545.m9609(1);
        int iM9622 = (c4545.m9622() >> 3) & 15;
        boolean z2 = (iM9622 >= 0 && iM9622 <= 8) || iM9622 == 15;
        boolean z3 = this.f4813;
        String str2 = z3 ? "WB" : "NB";
        if (!z2) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ(ᵱˉˈ.ᵸˆˁ("Illegal AMR %s frame type %s", new Object[]{str2, Integer.valueOf(iM9622)}));
            return;
        }
        int i3 = z3 ? f4812[iM9622] : f4811[iM9622];
        int iM9623 = c4545.m9623();
        ᵻᵪ.ᵻʽᵯ("compound payload not supported currently", iM9623 == i3);
        this.f4818.mo1740(iM9623, c4545);
        this.f4818.mo1741(ᵸᵺᵜ.ˁˌᵩ(this.f4814, this.f4819, j, this.f4815), 1, iM9623, 0, null);
        this.f4817 = i;
    }
}
