package defpackage;

import android.database.SQLException;
import java.util.Set;

/* JADX INFO: renamed from: ⁱٴ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5557 extends AbstractC2498 implements InterfaceC0321 {

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public /* synthetic */ Object f20968;

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public final /* synthetic */ C2557 f20969;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final /* synthetic */ int f20970;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public int f20971;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C5557(C2557 c2557, InterfaceC2643 interfaceC2643, int i) {
        super(2, interfaceC2643);
        this.f20970 = i;
        this.f20969 = c2557;
    }

    @Override // defpackage.AbstractC1090
    /* JADX INFO: renamed from: ˊᵙᵾᵲ */
    public final Object mo1078(Object obj) {
        InterfaceC3725 interfaceC3725;
        int i = this.f20970;
        C2557 c2557 = this.f20969;
        EnumC0111 enumC0111 = EnumC0111.f1384;
        InterfaceC2643 interfaceC2643 = null;
        switch (i) {
            case 0:
                int i2 = this.f20971;
                if (i2 != 0) {
                    if (i2 == 1) {
                        ᵟˌᵫ.ˊˌˊ(obj);
                        return obj;
                    }
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                    return null;
                }
                ᵟˌᵫ.ˊˌˊ(obj);
                C4424 c4424 = (C4424) this.f20968;
                this.f20971 = 1;
                Object objM6283 = C2557.m6283(c2557, c4424, this);
                return objM6283 == enumC0111 ? enumC0111 : objM6283;
            default:
                int i3 = this.f20971;
                try {
                    if (i3 == 0) {
                        ᵟˌᵫ.ˊˌˊ(obj);
                        interfaceC3725 = (InterfaceC3725) this.f20968;
                        this.f20968 = interfaceC3725;
                        this.f20971 = 1;
                        obj = interfaceC3725.mo8387(this);
                        if (obj == enumC0111) {
                            return enumC0111;
                        }
                    } else {
                        if (i3 != 1) {
                            if (i3 == 2) {
                                ᵟˌᵫ.ˊˌˊ(obj);
                                return (Set) obj;
                            }
                            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                            return null;
                        }
                        interfaceC3725 = (InterfaceC3725) this.f20968;
                        ᵟˌᵫ.ˊˌˊ(obj);
                    }
                    if (!((Boolean) obj).booleanValue()) {
                        EnumC3995 enumC3995 = EnumC3995.f15298;
                        C5557 c5557 = new C5557(c2557, interfaceC2643, 0);
                        this.f20968 = null;
                        this.f20971 = 2;
                        obj = interfaceC3725.mo8388(enumC3995, c5557, this);
                        if (obj == enumC0111) {
                            return enumC0111;
                        }
                        return (Set) obj;
                    }
                } catch (SQLException unused) {
                }
                return C2817.f10823;
        }
    }

    @Override // defpackage.InterfaceC0321
    /* JADX INFO: renamed from: ᵝᵶ */
    public final Object mo1564(Object obj, Object obj2) {
        int i = this.f20970;
        C5063 c5063 = C5063.f19112;
        switch (i) {
            case 0:
                return ((C5557) mo1565((InterfaceC2643) obj2, (C4424) obj)).mo1078(c5063);
            default:
                return ((C5557) mo1565((InterfaceC2643) obj2, (InterfaceC3725) obj)).mo1078(c5063);
        }
    }

    @Override // defpackage.AbstractC1090
    /* JADX INFO: renamed from: ᵟᵹᵙ */
    public final InterfaceC2643 mo1565(InterfaceC2643 interfaceC2643, Object obj) {
        switch (this.f20970) {
            case 0:
                C5557 c5557 = new C5557(this.f20969, interfaceC2643, 0);
                c5557.f20968 = obj;
                return c5557;
            default:
                C5557 c55572 = new C5557(this.f20969, interfaceC2643, 1);
                c55572.f20968 = obj;
                return c55572;
        }
    }
}
