package m5;

import m3.AbstractC2467b;
import w4.C3137A;
import w4.C3140b;

/* JADX INFO: loaded from: classes3.dex */
public final class t extends C4.i implements J4.f {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ C3140b f21278b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C1.k f21279c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public t(C1.k kVar, A4.d dVar) {
        super(3, dVar);
        this.f21279c = kVar;
    }

    @Override // J4.f
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        t tVar = new t(this.f21279c, (A4.d) obj3);
        tVar.f21278b = (C3140b) obj;
        return tVar.invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f21277a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            C3140b c3140b = this.f21278b;
            C1.k kVar = this.f21279c;
            y yVar = (y) kVar.f691c;
            byte bQ = yVar.q();
            if (bQ == 1) {
                return kVar.h(true);
            }
            if (bQ == 0) {
                return kVar.h(false);
            }
            if (bQ != 6) {
                if (bQ == 8) {
                    return kVar.g();
                }
                y.m(yVar, "Can't begin reading element, unexpected token", 0, null, 6);
                throw null;
            }
            this.f21277a = 1;
            obj = C1.k.a(kVar, c3140b, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return (l5.m) obj;
    }
}
