package ʬ;

/* renamed from: ʬ.㿎  reason: contains not printable characters */
/* compiled from: Task */
public class C0609 implements AbstractC0605<TResult, C0595<TContinuationResult>> {

    /* renamed from: K  reason: contains not printable characters */
    public final /* synthetic */ AbstractC0605 f3579;

    public C0609(C0595 r1, AbstractC0605 r2) {
        this.f3579 = r2;
    }

    @Override // ʬ.AbstractC0605
    public Object then(C0595 r2) throws Exception {
        if (r2.m2029()) {
            Exception r22 = r2.m2034();
            C0595 r0 = new C0595();
            if (r0.m2037(r22)) {
                return r0;
            }
            throw new IllegalStateException("Cannot set the error on a completed task.");
        } else if (r2.m2028()) {
            return C0595.m2027();
        } else {
            return r2.m2035(this.f3579);
        }
    }
}
