package p138.p176.p177.p190.p198.p207;

import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.p194.C3526;
import p138.p176.p177.p190.p198.InterfaceC3562;
import p138.p176.p177.p190.p198.InterfaceC3575;
import p138.p176.p177.p190.p198.p207.InterfaceC3690;
import p138.p176.p177.p190.p239.C4140;
import p138.p176.p177.p190.p239.C4149;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ޝ.ޖ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3683 implements InterfaceC3680 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C4149 f11335;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public InterfaceC3575 f11336;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public boolean f11337;

    @Override // p138.p176.p177.p190.p198.p207.InterfaceC3680
    /* JADX INFO: renamed from: ֏ */
    public void mo6031(C4140 c4140) {
        long j;
        long j2 = -9223372036854775807L;
        if (!this.f11337) {
            if (this.f11335.m6735() == -9223372036854775807L) {
                return;
            }
            this.f11336.mo5884(C3431.m5580(null, "application/x-scte35", this.f11335.m6735()));
            this.f11337 = true;
        }
        int iM6679 = c4140.m6679();
        this.f11336.mo5885(c4140, iM6679);
        InterfaceC3575 interfaceC3575 = this.f11336;
        C4149 c4149 = this.f11335;
        if (c4149.f13258 == -9223372036854775807L) {
            j = c4149.f13256;
            if (j == Long.MAX_VALUE) {
            }
            interfaceC3575.mo5883(j, 1, iM6679, 0, null);
        }
        j2 = c4149.f13257 + c4149.f13258;
        j = j2;
        interfaceC3575.mo5883(j, 1, iM6679, 0, null);
    }

    @Override // p138.p176.p177.p190.p198.p207.InterfaceC3680
    /* JADX INFO: renamed from: ֏ */
    public void mo6032(C4149 c4149, InterfaceC3562 interfaceC3562, InterfaceC3690.C3694 c3694) {
        this.f11335 = c4149;
        c3694.m6035();
        InterfaceC3575 interfaceC3575Mo5891 = interfaceC3562.mo5891(c3694.m6037(), 4);
        this.f11336 = interfaceC3575Mo5891;
        interfaceC3575Mo5891.mo5884(C3431.m5589(c3694.m6036(), "application/x-scte35", (String) null, -1, (C3526) null));
    }
}
