package p138.p176.p177.p242.p270;

import com.google.android.gms.tasks.RuntimeExecutionException;
import java.util.concurrent.CancellationException;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.އ.ޖ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC5081 implements Runnable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ AbstractC5062 f15251;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ C5080 f15252;

    public RunnableC5081(C5080 c5080, AbstractC5062 abstractC5062) {
        this.f15252 = c5080;
        this.f15251 = abstractC5062;
    }

    /* JADX WARN: Type inference incomplete: some casts might be missing */
    @Override // java.lang.Runnable
    public final void run() {
        try {
            AbstractC5062 abstractC5062Mo8542 = this.f15252.f15249.mo8542((TResult) this.f15251.mo8552());
            if (abstractC5062Mo8542 == null) {
                C5080 c5080 = this.f15252;
                c5080.f15250.m8561(new NullPointerException("Continuation returned null"));
            } else {
                abstractC5062Mo8542.mo8549(C5064.f15216, (InterfaceC5060) this.f15252);
                abstractC5062Mo8542.mo8548(C5064.f15216, (InterfaceC5059) this.f15252);
                abstractC5062Mo8542.mo8546(C5064.f15216, (InterfaceC5057) this.f15252);
            }
        } catch (RuntimeExecutionException e) {
            if (!(e.getCause() instanceof Exception)) {
                this.f15252.f15250.m8561(e);
                return;
            }
            C5080 c50802 = this.f15252;
            c50802.f15250.m8561((Exception) e.getCause());
        } catch (CancellationException unused) {
            this.f15252.f15250.m8565();
        } catch (Exception e2) {
            this.f15252.f15250.m8561(e2);
        }
    }
}
