package defpackage;

import java.io.InputStream;
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\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004*\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lj77;", "Ltd4;", "Lua4;", "<destruct>", "Le6a;", "<anonymous>", "(Lj77;Ltd4;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "io.ktor.client.plugins.DefaultTransformersJvmKt$platformResponseDefaultTransformers$1", f = "DefaultTransformersJvm.kt", i = {}, l = {33}, m = "invokeSuspend", n = {}, s = {})
final class b22 extends SuspendLambda implements ir3<j77<td4, ua4>, td4, Continuation<? super e6a>, Object> {
    public int a;
    public /* synthetic */ j77 b;
    public /* synthetic */ td4 c;

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

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.a;
        e6a e6aVar = e6a.a;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            return e6aVar;
        }
        s38.b(obj);
        j77 j77Var = this.b;
        td4 td4Var = this.c;
        fz9 fz9Var = td4Var.a;
        Object obj2 = td4Var.b;
        if ((obj2 instanceof bn0) && cr4.b(fz9Var.a, iw7.a.getOrCreateKotlinClass(InputStream.class))) {
            td4 td4Var2 = new td4(fz9Var, new a22(new cc0((bn0) obj2)));
            this.b = null;
            this.a = 1;
            if (j77Var.h(td4Var2, this) == ck1Var) {
                return ck1Var;
            }
        }
        return e6aVar;
    }
}
