package a0;

import a.AbstractC0212a;
import d4.C0550i;
import i4.EnumC0643a;
import j4.AbstractC0806h;
import java.util.LinkedHashMap;
import kotlin.jvm.functions.Function2;

/* JADX INFO: loaded from: classes.dex */
public final class h extends AbstractC0806h implements Function2 {

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public /* synthetic */ Object f3554l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ AbstractC0806h f3555m;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public h(Function2 function2, h4.c cVar) {
        super(2, cVar);
        this.f3555m = (AbstractC0806h) function2;
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [j4.h, kotlin.jvm.functions.Function2] */
    @Override // j4.AbstractC0799a
    public final h4.c create(Object obj, h4.c cVar) {
        h hVar = new h(this.f3555m, cVar);
        hVar.f3554l = obj;
        return hVar;
    }

    @Override // kotlin.jvm.functions.Function2
    public final Object invoke(Object obj, Object obj2) {
        return ((h) create((C0213a) obj, (h4.c) obj2)).invokeSuspend(C0550i.f6143a);
    }

    /* JADX WARN: Type inference failed for: r5v5, types: [j4.h, kotlin.jvm.functions.Function2] */
    @Override // j4.AbstractC0799a
    public final Object invokeSuspend(Object obj) throws Throwable {
        EnumC0643a enumC0643a = EnumC0643a.f6670k;
        int i = this.f3553k;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C0213a c0213a = (C0213a) this.f3554l;
            AbstractC0212a.H(obj);
            return c0213a;
        }
        AbstractC0212a.H(obj);
        C0213a c0213a2 = new C0213a(new LinkedHashMap(((C0213a) this.f3554l).a()), false);
        this.f3554l = c0213a2;
        this.f3553k = 1;
        return this.f3555m.invoke(c0213a2, this) == enumC0643a ? enumC0643a : c0213a2;
    }
}
