package defpackage;

import android.content.Context;
import java.io.File;

/* renamed from: ˀʢ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0501 extends AbstractC2162 implements InterfaceC0362 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final /* synthetic */ Object f2639;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final /* synthetic */ Object f2640;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final /* synthetic */ Object f2641;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public int f2642;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final /* synthetic */ int f2643;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0501(Object obj, Object obj2, Object obj3, InterfaceC4943 interfaceC4943, int i) {
        super(1, interfaceC4943);
        this.f2643 = i;
        this.f2639 = obj;
        this.f2641 = obj2;
        this.f2640 = obj3;
    }

    @Override // defpackage.InterfaceC0362
    /* renamed from: ᵴᵳ */
    public final Object mo1588(Object obj) {
        int i = this.f2643;
        C3637 c3637 = C3637.f13536;
        Object obj2 = this.f2640;
        Object obj3 = this.f2641;
        Object obj4 = this.f2639;
        switch (i) {
            case 0:
                return new C0501((C0499) obj4, (InterfaceC0805) obj3, (String) obj2, (InterfaceC4943) obj, 0).mo1109(c3637);
            default:
                return new C0501((C3860) obj4, (EnumC2960) obj3, (InterfaceC3759) obj2, (InterfaceC4943) obj, 1).mo1109(c3637);
        }
    }

    @Override // defpackage.AbstractC1297
    /* renamed from: ᵸʓᵠ */
    public final Object mo1109(Object obj) {
        Context context;
        File databasePath;
        String absolutePath;
        int i = this.f2643;
        Object obj2 = this.f2640;
        Object obj3 = this.f2641;
        Object obj4 = this.f2639;
        EnumC3346 enumC3346 = EnumC3346.f12524;
        switch (i) {
            case 0:
                int i2 = this.f2642;
                if (i2 == 0) {
                    ʼٴ.ᵺᵠ(obj);
                    C0499 c0499 = (C0499) obj4;
                    InterfaceC0805 interfaceC0805 = (InterfaceC0805) obj3;
                    String str = (String) obj2;
                    this.f2642 = 1;
                    String str2 = (str.equals(":memory:") || (context = c0499.f2635.f18572) == null || (databasePath = context.getDatabasePath(str)) == null || (absolutePath = databasePath.getAbsolutePath()) == null) ? str : absolutePath;
                    C0103 c0103 = new C0103(str2, (c0499.f2636 || c0499.f2637 || str2.equals(":memory:")) ? false : true);
                    Object objM1511 = AbstractC0220.m1511(c0103.f1386, new C4914(c0103, new C3604(), null, c0499, interfaceC0805, str2, str2), this);
                    if (objM1511 == enumC3346) {
                        break;
                    }
                } else if (i2 != 1) {
                    ᵹˉᵞ.ᵳٴᵶ("call to 'resume' before 'invoke' with coroutine");
                    break;
                } else {
                    ʼٴ.ᵺᵠ(obj);
                    break;
                }
                break;
            default:
                int i3 = this.f2642;
                if (i3 == 0) {
                    ʼٴ.ᵺᵠ(obj);
                    this.f2642 = 1;
                    Object objM8509 = ((C3860) obj4).m8509((EnumC2960) obj3, (InterfaceC3759) obj2, this);
                    if (objM8509 == enumC3346) {
                        break;
                    }
                } else if (i3 != 1) {
                    ᵹˉᵞ.ᵳٴᵶ("call to 'resume' before 'invoke' with coroutine");
                    break;
                } else {
                    ʼٴ.ᵺᵠ(obj);
                    break;
                }
                break;
        }
        return enumC3346;
    }
}
