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

import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p190.p198.AbstractC3548;
import p138.p176.p177.p190.p198.C3558;
import p138.p176.p177.p190.p239.C4140;
import p138.p176.p177.p190.p239.C4149;
import p138.p176.p177.p190.p239.C4150;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ޝ.ޗ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3684 extends AbstractC3548 {

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ޝ.ޗ$֏, reason: contains not printable characters */
    public static final class C3685 implements AbstractC3548.InterfaceC3554 {

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

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final C4140 f11339 = new C4140();

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final int f11340;

        public C3685(int i, C4149 c4149) {
            this.f11340 = i;
            this.f11338 = c4149;
        }

        @Override // p138.p176.p177.p190.p198.AbstractC3548.InterfaceC3554
        /* JADX INFO: renamed from: ֏ */
        public AbstractC3548.C3553 mo5865(C3558 c3558, long j) {
            long j2 = c3558.f10563;
            int iMin = (int) Math.min(1880000L, c3558.f10562 - j2);
            this.f11339.m6689(iMin);
            c3558.m5875(this.f11339.f13227, 0, iMin, false);
            C4140 c4140 = this.f11339;
            int i = c4140.f13229;
            long j3 = -1;
            long j4 = -1;
            long j5 = -9223372036854775807L;
            while (c4140.m6679() >= 188) {
                byte[] bArr = c4140.f13227;
                int i2 = c4140.f13228;
                while (i2 < i && bArr[i2] != 71) {
                    i2++;
                }
                int i3 = i2 + 188;
                if (i3 > i) {
                    break;
                }
                long jM1847 = C0567.m1847(c4140, i2, this.f11340);
                if (jM1847 != -9223372036854775807L) {
                    long jM6737 = this.f11338.m6737(jM1847);
                    if (jM6737 > j) {
                        return j5 == -9223372036854775807L ? AbstractC3548.C3553.m5863(jM6737, j2) : AbstractC3548.C3553.m5862(j2 + j4);
                    }
                    if (100000 + jM6737 > j) {
                        return AbstractC3548.C3553.m5862(j2 + ((long) i2));
                    }
                    j5 = jM6737;
                    j4 = i2;
                }
                c4140.m6693(i3);
                j3 = i3;
            }
            return j5 != -9223372036854775807L ? AbstractC3548.C3553.m5864(j5, j2 + j3) : AbstractC3548.C3553.f10544;
        }

        @Override // p138.p176.p177.p190.p198.AbstractC3548.InterfaceC3554
        /* JADX INFO: renamed from: ֏ */
        public void mo5866() {
            this.f11339.m6683(C4150.f13264);
        }
    }

    public C3684(C4149 c4149, long j, long j2, int i) {
        super(new AbstractC3548.C3550(), new C3685(i, c4149), j, 0L, j + 1, 0L, j2, 188L, 940);
    }
}
