package defpackage;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

/* JADX INFO: renamed from: ᵯʕ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4276 extends FutureTask implements Comparable {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final long f16331;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final String f16332;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final boolean f16333;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final /* synthetic */ C1961 f16334;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C4276(C1961 c1961, Runnable runnable, boolean z, String str) {
        super(runnable, null);
        this.f16334 = c1961;
        long andIncrement = C1961.f7786.getAndIncrement();
        this.f16331 = andIncrement;
        this.f16332 = str;
        this.f16333 = z;
        if (andIncrement == Long.MAX_VALUE) {
            C3485 c3485 = ((C1103) ((ᵜᵪʾ) c1961).ˌᴵ).f4729;
            C1103.m3564(c3485);
            c3485.f13423.m4476("Tasks index overflow");
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C4276(C1961 c1961, Callable callable, boolean z) {
        super(callable);
        this.f16334 = c1961;
        long andIncrement = C1961.f7786.getAndIncrement();
        this.f16331 = andIncrement;
        this.f16332 = "Task exception on worker thread";
        this.f16333 = z;
        if (andIncrement == Long.MAX_VALUE) {
            C3485 c3485 = ((C1103) ((ᵜᵪʾ) c1961).ˌᴵ).f4729;
            C1103.m3564(c3485);
            c3485.f13423.m4476("Tasks index overflow");
        }
    }

    @Override // java.lang.Comparable
    public final int compareTo(Object obj) {
        C4276 c4276 = (C4276) obj;
        boolean z = c4276.f16333;
        boolean z2 = this.f16333;
        if (z2 != z) {
            return !z2 ? 1 : -1;
        }
        long j = c4276.f16331;
        long j2 = this.f16331;
        if (j2 < j) {
            return -1;
        }
        if (j2 > j) {
            return 1;
        }
        C3485 c3485 = ((C1103) ((ᵜᵪʾ) this.f16334).ˌᴵ).f4729;
        C1103.m3564(c3485);
        c3485.f13415.m4474(Long.valueOf(j2), "Two tasks share the same index. index");
        return 0;
    }

    @Override // java.util.concurrent.FutureTask
    public final void setException(Throwable th) {
        C3485 c3485 = ((C1103) ((ᵜᵪʾ) this.f16334).ˌᴵ).f4729;
        C1103.m3564(c3485);
        c3485.f13423.m4474(th, this.f16332);
        super.setException(th);
    }
}
