package defpackage;

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

/* JADX INFO: renamed from: ᵫˉᵱ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3965 extends AbstractC2498 implements InterfaceC0778 {

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

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

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

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

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public final /* synthetic */ Object f15172;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C3965(Object obj, Object obj2, Object obj3, InterfaceC2643 interfaceC2643, int i) {
        super(1, interfaceC2643);
        this.f15170 = i;
        this.f15168 = obj;
        this.f15169 = obj2;
        this.f15172 = obj3;
    }

    @Override // defpackage.InterfaceC0778
    /* JADX INFO: renamed from: ʽˈˋ */
    public final Object mo1706(Object obj) {
        int i = this.f15170;
        C5063 c5063 = C5063.f19112;
        Object obj2 = this.f15172;
        Object obj3 = this.f15169;
        Object obj4 = this.f15168;
        switch (i) {
            case 0:
                return new C3965((C0424) obj4, (InterfaceC1153) obj3, (String) obj2, (InterfaceC2643) obj, 0).mo1078(c5063);
            default:
                return new C3965((C5434) obj4, (EnumC3995) obj3, (InterfaceC0321) obj2, (InterfaceC2643) obj, 1).mo1078(c5063);
        }
    }

    @Override // defpackage.AbstractC1090
    /* JADX INFO: renamed from: ˊᵙᵾᵲ */
    public final Object mo1078(Object obj) {
        Context context;
        File databasePath;
        String absolutePath;
        int i = this.f15170;
        Object obj2 = this.f15172;
        Object obj3 = this.f15169;
        Object obj4 = this.f15168;
        EnumC0111 enumC0111 = EnumC0111.f1384;
        switch (i) {
            case 0:
                int i2 = this.f15171;
                if (i2 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj);
                    C0424 c0424 = (C0424) obj4;
                    InterfaceC1153 interfaceC1153 = (InterfaceC1153) obj3;
                    String str = (String) obj2;
                    this.f15171 = 1;
                    String str2 = (str.equals(":memory:") || (context = c0424.f2364.f14297) == null || (databasePath = context.getDatabasePath(str)) == null || (absolutePath = databasePath.getAbsolutePath()) == null) ? str : absolutePath;
                    C1157 c1157 = new C1157(str2, (c0424.f2366 || c0424.f2363 || str2.equals(":memory:")) ? false : true);
                    Object obj5 = ᵽˊᵘᵬ.ᵔᵖᵹᵫ(c1157.f4943, new C5530(c1157, new C2406(), null, c0424, interfaceC1153, str2, str2), this);
                    if (obj5 == enumC0111) {
                    }
                } else if (i2 != 1) {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                } else {
                    ᵟˌᵫ.ˊˌˊ(obj);
                }
                break;
            default:
                int i3 = this.f15171;
                if (i3 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj);
                    this.f15171 = 1;
                    Object objM11067 = ((C5434) obj4).m11067((EnumC3995) obj3, (InterfaceC0321) obj2, this);
                    if (objM11067 == enumC0111) {
                    }
                } else if (i3 != 1) {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                } else {
                    ᵟˌᵫ.ˊˌˊ(obj);
                }
                break;
        }
        return enumC0111;
    }
}
