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;

/* renamed from: ᵧˏˆᵔ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3643 extends AbstractRunnableC4177 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final Object f13541;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final /* synthetic */ C3960 f13542;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final /* synthetic */ int f13543;

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

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

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C3643(C3960 c3960, Callable callable) {
        this(c3960, EnumC2524.f9848);
        this.f13543 = 1;
        this.f13542 = c3960;
        this.f13541 = callable;
    }

    public C3643(C3960 c3960, Executor executor) {
        this.f13544 = c3960;
        executor.getClass();
        this.f13545 = executor;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C3643(C3960 c3960, C0553 c0553, Executor executor) {
        this(c3960, executor);
        this.f13543 = 0;
        this.f13542 = c3960;
        this.f13541 = c0553;
    }

    @Override // defpackage.AbstractRunnableC4177
    /* renamed from: ˇʼʤˎ */
    public final Object mo1690() {
        int i = this.f13543;
        Object obj = this.f13541;
        switch (i) {
            case 0:
                return ((C0553) obj).call();
            default:
                return ((Callable) obj).call();
        }
    }

    @Override // defpackage.AbstractRunnableC4177
    /* renamed from: ˏˋٴ */
    public final String mo1691() {
        int i = this.f13543;
        Object obj = this.f13541;
        switch (i) {
            case 0:
                return ((C0553) obj).toString();
            default:
                return ((Callable) obj).toString();
        }
    }

    @Override // defpackage.AbstractRunnableC4177
    /* renamed from: ᵥᵯˎ */
    public final void mo1692(Throwable th) {
        C3960 c3960 = this.f13544;
        c3960.f14940 = null;
        if (th instanceof ExecutionException) {
            c3960.m8217(((ExecutionException) th).getCause());
        } else if (th instanceof CancellationException) {
            c3960.cancel(false);
        } else {
            c3960.m8217(th);
        }
    }

    @Override // defpackage.AbstractRunnableC4177
    /* renamed from: ᵴᵳ */
    public final void mo1693(Object obj) {
        this.f13544.f14940 = null;
        int i = this.f13543;
        C3960 c3960 = this.f13542;
        switch (i) {
            case 0:
                c3960.m8219((ListenableFuture) obj);
                break;
            default:
                c3960.m8218(obj);
                break;
        }
    }

    @Override // defpackage.AbstractRunnableC4177
    /* renamed from: ᵻᵢﹳᵰ */
    public final boolean mo1694() {
        return this.f13544.isDone();
    }
}
