package A1;

import x0.AbstractC1709a;

/* JADX INFO: renamed from: A1.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0012m {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final T0.F f208a;

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

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

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

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

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

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

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

    public C0012m(T0.F f3) {
        this.f208a = f3;
    }

    public final void a(byte[] bArr, int i, int i5) {
        if (this.f210c) {
            int i8 = this.f213f;
            int i9 = (i + 1) - i8;
            if (i9 >= i5) {
                this.f213f = (i5 - i) + i8;
            } else {
                this.f211d = ((bArr[i9] & 192) >> 6) == 0;
                this.f210c = false;
            }
        }
    }

    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$PrimitiveArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    public final void b(int i, long j8, boolean z8) {
        AbstractC1709a.j(this.f215h != -9223372036854775807L);
        if (this.f212e == 182 && z8 && this.f209b) {
            this.f208a.a(this.f215h, this.f211d ? 1 : 0, (int) (j8 - this.f214g), i, null);
        }
        if (this.f212e != 179) {
            this.f214g = j8;
        }
    }
}
