package n1;

import T0.AbstractC0302b;
import u0.F;

/* JADX INFO: renamed from: n1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1249a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f14974a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f14975b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f14976c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public long f14977d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean f14978e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final x0.o f14979f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final x0.o f14980g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f14981h;
    public int i;

    public C1249a(x0.o oVar, x0.o oVar2, boolean z8) throws F {
        this.f14980g = oVar;
        this.f14979f = oVar2;
        this.f14978e = z8;
        oVar2.F(12);
        this.f14974a = oVar2.x();
        oVar.F(12);
        this.i = oVar.x();
        AbstractC0302b.c("first_chunk must be 1", oVar.g() == 1);
        this.f14975b = -1;
    }

    public final boolean a() {
        int i = this.f14975b + 1;
        this.f14975b = i;
        if (i == this.f14974a) {
            return false;
        }
        boolean z8 = this.f14978e;
        x0.o oVar = this.f14979f;
        this.f14977d = z8 ? oVar.y() : oVar.v();
        if (this.f14975b == this.f14981h) {
            x0.o oVar2 = this.f14980g;
            this.f14976c = oVar2.x();
            oVar2.G(4);
            int i5 = this.i - 1;
            this.i = i5;
            this.f14981h = i5 > 0 ? oVar2.x() - 1 : -1;
        }
        return true;
    }
}
