package kotlinx.coroutines.rx3;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@kotlin.Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0002\u0018\u0000*\b\b\u0000\u0010\u0002*\u00020\u00012\b\u0012\u0004\u0012\u00028\u00000\u0003J\u0017\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00028\u0000H\u0014¢\u0006\u0004\b\u0006\u0010\u0007J\u001f\u0010\f\u001a\u00020\u00052\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\nH\u0014¢\u0006\u0004\b\f\u0010\rR\u001a\u0010\u0011\u001a\b\u0012\u0004\u0012\u00028\u00000\u000e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010¨\u0006\u0012"}, d2 = {"Lkotlinx/coroutines/rx3/RxSingleCoroutine;", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "T", "Lkotlinx/coroutines/AbstractCoroutine;", "value", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "m1", "(Ljava/lang/Object;)V", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "cause", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "handled", "l1", "(Ljava/lang/Throwable;Z)V", "Lio/reactivex/rxjava3/core/SingleEmitter;", "d", "Lio/reactivex/rxjava3/core/SingleEmitter;", "subscriber", "kotlinx-coroutines-rx3"}, k = 1, mv = {2, 1, 0}, xi = 48)
final class RxSingleCoroutine<T> extends kotlinx.coroutines.AbstractCoroutine<T> {

    /* JADX INFO: renamed from: d, reason: from kotlin metadata */
    private final io.reactivex.rxjava3.core.SingleEmitter subscriber;

    protected void l1(java.lang.Throwable cause, boolean handled) {
        try {
            if (this.subscriber.a(cause)) {
                return;
            }
        } catch (java.lang.Throwable th) {
            kotlin.ExceptionsKt.a(cause, th);
        }
        kotlinx.coroutines.rx3.RxCancellableKt.a(cause, getContext());
    }

    protected void m1(java.lang.Object value) {
        try {
            this.subscriber.onSuccess(value);
        } catch (java.lang.Throwable th) {
            kotlinx.coroutines.rx3.RxCancellableKt.a(th, getContext());
        }
    }
}
