package h3;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class C3 extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f16734a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ String f16735b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C3(String str, A4.d dVar) {
        super(2, dVar);
        this.f16735b = str;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C3(this.f16735b, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C3) create((V4.C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Object objH;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f16734a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V2.L3 l32 = V2.L3.f7428a;
            this.f16734a = 1;
            objH = l32.h(this.f16735b, this);
            if (objH == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            objH = ((w4.n) obj).f25472a;
        }
        Throwable thA = w4.n.a(objH);
        if (thA != null) {
            a5.c cVar = K2.p.f4116a;
            String message = thA.getMessage();
            if (message == null) {
                message = "Failed to remove";
            }
            K2.p.a(message, (10 & 2) != 0 ? "" : "Could not resolve a playable download URL for this link.", K2.r.f4127b, (10 & 8) != 0 ? androidx.media3.common.C.DEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MS : 4000L);
        }
        return C3137A.f25453a;
    }
}
