package defpackage;

import com.google.common.util.concurrent.ListenableFuture;
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;

/* JADX INFO: renamed from: ᵺᵔ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5132 extends AbstractRunnableC2690 {

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final Object f19298;

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

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

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final /* synthetic */ int f19301;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final /* synthetic */ C1523 f19302;

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C5132(C1523 c1523, Callable callable) {
        this(c1523, EnumC2921.f11255);
        this.f19301 = 1;
        this.f19302 = c1523;
        this.f19298 = callable;
    }

    public C5132(C1523 c1523, Executor executor) {
        this.f19300 = c1523;
        executor.getClass();
        this.f19299 = executor;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C5132(C1523 c1523, ʽᵺᴵ r3, Executor executor) {
        this(c1523, executor);
        this.f19301 = 0;
        this.f19302 = c1523;
        this.f19298 = r3;
    }

    @Override // defpackage.AbstractRunnableC2690
    /* JADX INFO: renamed from: ʽˈˋ */
    public final void mo6482(Object obj) {
        this.f19300.f6162 = null;
        int i = this.f19301;
        C1523 c1523 = this.f19302;
        switch (i) {
            case 0:
                c1523.m10932((ListenableFuture) obj);
                break;
            default:
                c1523.m10929(obj);
                break;
        }
    }

    @Override // defpackage.AbstractRunnableC2690
    /* JADX INFO: renamed from: ᵨᵣ */
    public final Object mo6484() {
        int i = this.f19301;
        Object obj = this.f19298;
        switch (i) {
            case 0:
                return ((ʽᵺᴵ) obj).call();
            default:
                return ((Callable) obj).call();
        }
    }

    @Override // defpackage.AbstractRunnableC2690
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo6485(Throwable th) {
        C1523 c1523 = this.f19300;
        c1523.f6162 = null;
        if (th instanceof ExecutionException) {
            c1523.m10927(((ExecutionException) th).getCause());
        } else if (th instanceof CancellationException) {
            c1523.cancel(false);
        } else {
            c1523.m10927(th);
        }
    }

    @Override // defpackage.AbstractRunnableC2690
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public final boolean mo6487() {
        return this.f19300.isDone();
    }

    @Override // defpackage.AbstractRunnableC2690
    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public final String mo6488() {
        int i = this.f19301;
        Object obj = this.f19298;
        switch (i) {
            case 0:
                return ((ʽᵺᴵ) obj).toString();
            default:
                return ((Callable) obj).toString();
        }
    }
}
