package ʬ;

import java.util.concurrent.CancellationException;

/* renamed from: ʬ.㳳  reason: contains not printable characters */
/* compiled from: Task */
public final class RunnableC0603 implements Runnable {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final /* synthetic */ C0591 f3570;

    /* renamed from: ඓ  reason: contains not printable characters */
    public final /* synthetic */ C0595 f3571;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final /* synthetic */ C0590 f3572;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final /* synthetic */ AbstractC0605 f3573;

    /* renamed from: ʬ.㳳$K  reason: contains not printable characters */
    /* compiled from: Task */
    public class C0604 implements AbstractC0605<TContinuationResult, Void> {
        public C0604() {
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        @Override // ʬ.AbstractC0605
        public Void then(C0595 r3) throws Exception {
            if (RunnableC0603.this.f3572 == null) {
                if (r3.m2028()) {
                    RunnableC0603.this.f3570.m2021();
                } else if (r3.m2029()) {
                    RunnableC0603.this.f3570.m2022(r3.m2034());
                } else {
                    RunnableC0603.this.f3570.m2023(r3.m2030());
                }
                return null;
            }
            throw null;
        }
    }

    public RunnableC0603(C0591 r1, AbstractC0605 r2, C0595 r3) {
        this.f3570 = r1;
        this.f3573 = r2;
        this.f3571 = r3;
    }

    public void run() {
        try {
            C0595 r0 = (C0595) this.f3573.then(this.f3571);
            if (r0 == null) {
                this.f3570.m2023((Object) null);
            } else {
                r0.m2036(new C0604(), C0595.f3546, null);
            }
        } catch (CancellationException unused) {
            this.f3570.m2021();
        } catch (Exception e) {
            this.f3570.m2022(e);
        }
    }
}
