package o;

import android.os.OutcomeReceiver;
import java.util.concurrent.atomic.AtomicBoolean;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Mm, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0323Mm extends AtomicBoolean implements OutcomeReceiver {
    public final C2448sg l;

    public C0323Mm(C2448sg c2448sg) {
        super(false);
        this.l = c2448sg;
    }

    public final void onError(Throwable th) {
        if (compareAndSet(false, true)) {
            this.l.resumeWith(new H20(th));
        }
    }

    public final void onResult(Object obj) {
        if (compareAndSet(false, true)) {
            this.l.resumeWith(obj);
        }
    }

    @Override // java.util.concurrent.atomic.AtomicBoolean
    public final String toString() {
        return "ContinuationOutcomeReceiver(outcomeReceived = " + get() + ')';
    }
}
