package defpackage;

import java.util.Locale;

/* JADX INFO: renamed from: ˇᵩᵧ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0990 implements InterfaceC0728 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public long f4340;

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

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

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public int f4343;

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

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

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final Object f4346;

    public C0990(int i, int i2, C5286 c5286, int i3, Object obj, long j, long j2) {
        this.f4343 = i;
        this.f4341 = i2;
        this.f4346 = c5286;
        this.f4342 = i3;
        this.f4344 = obj;
        this.f4340 = j;
        this.f4345 = j2;
    }

    public C0990(C3176 c3176) {
        this.f4346 = c3176;
        this.f4340 = -9223372036854775807L;
        this.f4341 = -1;
    }

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

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public void mo2600(InterfaceC4550 interfaceC4550, int i) {
        InterfaceC5226 interfaceC5226Mo2743 = interfaceC4550.mo2743(i, 2);
        this.f4344 = interfaceC5226Mo2743;
        String str = AbstractC0956.f4222;
        interfaceC5226Mo2743.mo1742(((C3176) this.f4346).f12057);
    }

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

    /* JADX WARN: Removed duplicated region for block: B:23:0x007f  */
    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void mo2602(C4545 c4545, long j, int i, boolean z) {
        int iM10653;
        ((InterfaceC5226) this.f4344).getClass();
        int i2 = this.f4341;
        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 + ". Dropping packet.");
        }
        int iM9623 = c4545.m9623();
        ((InterfaceC5226) this.f4344).mo1740(iM9623, c4545);
        if (this.f4342 == 0) {
            byte[] bArr = c4545.f17284;
            byte[] bArr2 = {0, 0, 1, -74};
            ᵻᵪ.ᵱʡˏ(bArr, "array");
            int i3 = 0;
            loop0: while (true) {
                if (i3 >= bArr.length - 3) {
                    i3 = -1;
                    break;
                }
                for (int i4 = 0; i4 < 4; i4++) {
                    if (bArr[i3 + i4] != bArr2[i4]) {
                        break;
                    }
                }
                break loop0;
                i3++;
            }
            if (i3 != -1) {
                c4545.m9624(i3 + 4);
                int i5 = (c4545.m9622() >> 6) == 0 ? 1 : 0;
                this.f4343 = i5;
            }
        }
        this.f4342 += iM9623;
        if (z) {
            if (this.f4340 == -9223372036854775807L) {
                this.f4340 = j;
            }
            ((InterfaceC5226) this.f4344).mo1741(ᵸᵺᵜ.ˁˌᵩ(90000, this.f4345, j, this.f4340), this.f4343, this.f4342, 0, null);
            this.f4342 = 0;
        }
        this.f4341 = i;
    }
}
