package defpackage;

import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0004\u001a\u00020\u0002*\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lj77;", "Lrd4;", "Le6a;", "it", "<anonymous>", "(Lj77;Lrd4;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "io.ktor.client.plugins.api.ResponseHook$install$1", f = "KtorCallContexts.kt", i = {}, l = {57}, m = "invokeSuspend", n = {}, s = {})
final class b38 extends SuspendLambda implements ir3<j77<rd4, e6a>, rd4, Continuation<? super e6a>, Object> {
    public int a;
    public /* synthetic */ j77 b;
    public final /* synthetic */ ir3 c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public b38(ir3 ir3Var, Continuation continuation) {
        super(3, continuation);
        this.c = ir3Var;
    }

    @Override // defpackage.ir3
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        b38 b38Var = new b38(this.c, (Continuation) obj3);
        b38Var.b = (j77) obj;
        return b38Var.invokeSuspend(e6a.a);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.a;
        if (i == 0) {
            s38.b(obj);
            j77 j77Var = this.b;
            uv6 uv6Var = new uv6();
            Object d = j77Var.getD();
            this.a = 1;
            if (this.c.invoke(uv6Var, d, this) == ck1Var) {
                return ck1Var;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
        }
        return e6a.a;
    }
}
