package defpackage;

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

/* renamed from: ᵰʧ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4324 extends FutureTask implements Comparable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final boolean f16189;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final long f16190;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ C1325 f16191;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final String f16192;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C4324(C1325 c1325, Runnable runnable, boolean z, String str) {
        super(runnable, null);
        this.f16191 = c1325;
        long andIncrement = C1325.f5433.getAndIncrement();
        this.f16190 = andIncrement;
        this.f16192 = str;
        this.f16189 = z;
        if (andIncrement == Long.MAX_VALUE) {
            C1736 c1736 = ((C4205) ((ᵢˇᵭ) c1325).ᵧᵾˀˈ).f15715;
            C4205.m9132(c1736);
            c1736.f6937.m6038("Tasks index overflow");
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C4324(C1325 c1325, Callable callable, boolean z) {
        super(callable);
        this.f16191 = c1325;
        long andIncrement = C1325.f5433.getAndIncrement();
        this.f16190 = andIncrement;
        this.f16192 = "Task exception on worker thread";
        this.f16189 = z;
        if (andIncrement == Long.MAX_VALUE) {
            C1736 c1736 = ((C4205) ((ᵢˇᵭ) c1325).ᵧᵾˀˈ).f15715;
            C4205.m9132(c1736);
            c1736.f6937.m6038("Tasks index overflow");
        }
    }

    @Override // java.lang.Comparable
    public final int compareTo(Object obj) {
        C4324 c4324 = (C4324) obj;
        boolean z = c4324.f16189;
        boolean z2 = this.f16189;
        if (z2 != z) {
            return !z2 ? 1 : -1;
        }
        long j = c4324.f16190;
        long j2 = this.f16190;
        if (j2 < j) {
            return -1;
        }
        if (j2 > j) {
            return 1;
        }
        C1736 c1736 = ((C4205) ((ᵢˇᵭ) this.f16191).ᵧᵾˀˈ).f15715;
        C4205.m9132(c1736);
        c1736.f6932.m6039(Long.valueOf(j2), "Two tasks share the same index. index");
        return 0;
    }

    @Override // java.util.concurrent.FutureTask
    public final void setException(Throwable th) {
        C1736 c1736 = ((C4205) ((ᵢˇᵭ) this.f16191).ᵧᵾˀˈ).f15715;
        C4205.m9132(c1736);
        c1736.f6937.m6039(th, this.f16192);
        super.setException(th);
    }
}
