package defpackage;

import androidx.media3.container.NalUnitUtil;
import defpackage.gj1;
import defpackage.yg1;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugProbesKt;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0002\n\u0000¨\u0006\u0000"}, d2 = {"kotlinx-coroutines-core"}, k = 2, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class h32 {
    public static final Object a(long j, Continuation continuation) {
        if (j > 0) {
            ts0 ts0Var = new ts0(1, dr4.d(continuation));
            ts0Var.r();
            if (j < Long.MAX_VALUE) {
                b(ts0Var.e).b(j, ts0Var);
            }
            Object objQ = ts0Var.q();
            ck1 ck1Var = ck1.a;
            if (objQ == ck1Var) {
                DebugProbesKt.probeCoroutineSuspended(continuation);
            }
            if (objQ == ck1Var) {
                return objQ;
            }
        }
        return e6a.a;
    }

    public static final f32 b(gj1 gj1Var) {
        gj1.b bVarCb = gj1Var.cb(yg1.b.a);
        f32 f32Var = bVarCb instanceof f32 ? (f32) bVarCb : null;
        return f32Var == null ? zz1.a : f32Var;
    }
}
