package defpackage;

import defpackage.fg8;
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\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u0003*\u00020\u00002\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Ljg8;", "Lfd4;", "request", "Lua4;", "<anonymous>", "(Ljg8;Lfd4;)Lua4;"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "io.ktor.client.plugins.api.Send$install$1", f = "CommonHooks.kt", i = {}, l = {46}, m = "invokeSuspend", n = {}, s = {})
final class gg8 extends SuspendLambda implements ir3<jg8, fd4, Continuation<? super ua4>, Object> {
    public int a;
    public /* synthetic */ jg8 b;
    public /* synthetic */ fd4 c;
    public final /* synthetic */ ir3 d;
    public final /* synthetic */ ta4 e;

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

    @Override // defpackage.ir3
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        gg8 gg8Var = new gg8(this.d, this.e, (Continuation) obj3);
        gg8Var.b = (jg8) obj;
        gg8Var.c = (fd4) obj2;
        return gg8Var.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) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            return obj;
        }
        s38.b(obj);
        jg8 jg8Var = this.b;
        fd4 fd4Var = this.c;
        fg8.a aVar = new fg8.a(jg8Var, this.e.d);
        this.b = null;
        this.a = 1;
        Object objInvoke = this.d.invoke(aVar, fd4Var, this);
        return objInvoke == ck1Var ? ck1Var : objInvoke;
    }
}
