package defpackage;

import androidx.datastore.core.CorruptionException;
import java.io.Serializable;

/* JADX INFO: renamed from: ᵣˌ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3349 extends AbstractC2498 implements InterfaceC0778 {

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

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

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public final /* synthetic */ Object f12853;

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C3349(Object obj, Object obj2, Object obj3, InterfaceC2643 interfaceC2643, int i) {
        super(1, interfaceC2643);
        this.f12854 = i;
        this.f12856 = obj;
        this.f12851 = obj2;
        this.f12853 = obj3;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C3349(C4861 c4861, InterfaceC3822 interfaceC3822, InterfaceC0321 interfaceC0321, InterfaceC2643 interfaceC2643) {
        super(1, interfaceC2643);
        this.f12854 = 1;
        this.f12851 = c4861;
        this.f12856 = interfaceC3822;
        this.f12853 = interfaceC0321;
    }

    @Override // defpackage.InterfaceC0778
    /* JADX INFO: renamed from: ʽˈˋ */
    public final Object mo1706(Object obj) {
        int i = this.f12854;
        C5063 c5063 = C5063.f19112;
        Object obj2 = this.f12853;
        Object obj3 = this.f12851;
        Object obj4 = this.f12856;
        switch (i) {
            case 0:
                return new C3349((C2761) obj4, (C4861) obj3, (C0532) obj2, (InterfaceC2643) obj, 0).mo1078(c5063);
            case 1:
                return new C3349((C4861) obj3, (InterfaceC3822) obj4, (InterfaceC0321) obj2, (InterfaceC2643) obj).mo1078(c5063);
            default:
                return new C3349((C5434) obj4, (String) obj3, (InterfaceC0321) obj2, (InterfaceC2643) obj, 2).mo1078(c5063);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:44:0x00a0  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x00a5  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x00aa  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x00bf  */
    @Override // defpackage.AbstractC1090
    /* JADX INFO: renamed from: ˊᵙᵾᵲ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object mo1078(Object obj) {
        C2761 c2761;
        C0532 c0532;
        C4261 c4261;
        Object obj2;
        Throwable th;
        InterfaceC4296 interfaceC4296;
        int i = this.f12854;
        Object obj3 = this.f12853;
        Object obj4 = this.f12851;
        Object obj5 = this.f12856;
        EnumC0111 enumC0111 = EnumC0111.f1384;
        switch (i) {
            case 0:
                C0532 c05322 = (C0532) obj3;
                C2761 c27612 = (C2761) obj5;
                C4861 c4861 = (C4861) obj4;
                int i2 = this.f12855;
                try {
                } catch (CorruptionException unused) {
                    Object obj6 = c27612.f10617;
                    this.f12852 = c05322;
                    this.f12855 = 3;
                    obj = c4861.m10105(obj6, true, this);
                    if (obj == enumC0111) {
                        return enumC0111;
                    }
                }
                if (i2 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj);
                    this.f12852 = c27612;
                    this.f12855 = 1;
                    obj = c4861.m10104(this);
                    if (obj == enumC0111) {
                        return enumC0111;
                    }
                    c2761 = c27612;
                } else {
                    if (i2 != 1) {
                        if (i2 == 2) {
                            c0532 = (C0532) ((Serializable) this.f12852);
                            ᵟˌᵫ.ˊˌˊ(obj);
                            c0532.f2730 = ((Number) obj).intValue();
                            return C5063.f19112;
                        }
                        if (i2 != 3) {
                            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                            return null;
                        }
                        c05322 = (C0532) ((Serializable) this.f12852);
                        ᵟˌᵫ.ˊˌˊ(obj);
                        c05322.f2730 = ((Number) obj).intValue();
                        return C5063.f19112;
                    }
                    c2761 = (C2761) ((Serializable) this.f12852);
                    ᵟˌᵫ.ˊˌˊ(obj);
                }
                c2761.f10617 = obj;
                InterfaceC0636 interfaceC0636M10103 = c4861.m10103();
                this.f12852 = c05322;
                this.f12855 = 2;
                obj = interfaceC0636M10103.mo1892(this);
                if (obj == enumC0111) {
                    return enumC0111;
                }
                c0532 = c05322;
                c0532.f2730 = ((Number) obj).intValue();
                return C5063.f19112;
            case 1:
                C4861 c48612 = (C4861) obj4;
                int i3 = this.f12855;
                if (i3 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj);
                    this.f12855 = 1;
                    obj = C4861.m10100(c48612, true, this);
                    if (obj == enumC0111) {
                        return enumC0111;
                    }
                } else {
                    if (i3 != 1) {
                        if (i3 != 2) {
                            if (i3 != 3) {
                                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                                return null;
                            }
                            Object obj7 = this.f12852;
                            ᵟˌᵫ.ˊˌˊ(obj);
                            return obj7;
                        }
                        c4261 = (C4261) this.f12852;
                        ᵟˌᵫ.ˊˌˊ(obj);
                        obj2 = c4261.f16261;
                        if ((obj2 == null ? obj2.hashCode() : 0) == c4261.f16262) {
                            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Data in DataStore was mutated but DataStore is only compatible with Immutable types.");
                            return null;
                        }
                        if (!ᵥˈᵛ.ˊᵫᵗ(c4261.f16261, obj)) {
                            this.f12852 = obj;
                            this.f12855 = 3;
                            if (c48612.m10105(obj, true, this) == enumC0111) {
                                return enumC0111;
                            }
                        }
                        return obj;
                    }
                    ᵟˌᵫ.ˊˌˊ(obj);
                }
                c4261 = (C4261) obj;
                ᵤـ r12 = new ᵤـ((InterfaceC0321) obj3, c4261, (InterfaceC2643) null, 20);
                this.f12852 = c4261;
                this.f12855 = 2;
                obj = ᵲᵧˇ.ᵠˏˏ((InterfaceC3822) obj5, r12, this);
                if (obj == enumC0111) {
                    return enumC0111;
                }
                obj2 = c4261.f16261;
                if ((obj2 == null ? obj2.hashCode() : 0) == c4261.f16262) {
                }
                break;
            default:
                int i4 = this.f12855;
                if (i4 != 0) {
                    if (i4 != 1) {
                        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                        return null;
                    }
                    interfaceC4296 = (InterfaceC4296) this.f12852;
                    try {
                        ᵟˌᵫ.ˊˌˊ(obj);
                        ᵣˉ.ᵮᵣᵗˈ(interfaceC4296, (Throwable) null);
                        return obj;
                    } catch (Throwable th2) {
                        th = th2;
                        try {
                            throw th;
                        } catch (Throwable th3) {
                            ᵣˉ.ᵮᵣᵗˈ(interfaceC4296, th);
                            throw th3;
                        }
                    }
                }
                ᵟˌᵫ.ˊˌˊ(obj);
                InterfaceC4296 interfaceC4296Mo5461 = ((C5434) obj5).f20620.mo5461((String) obj4);
                InterfaceC0321 interfaceC0321 = (InterfaceC0321) obj3;
                try {
                    this.f12852 = interfaceC4296Mo5461;
                    this.f12855 = 1;
                    Object objMo1564 = interfaceC0321.mo1564(interfaceC4296Mo5461, this);
                    if (objMo1564 == enumC0111) {
                        return enumC0111;
                    }
                    obj = objMo1564;
                    interfaceC4296 = interfaceC4296Mo5461;
                    ᵣˉ.ᵮᵣᵗˈ(interfaceC4296, (Throwable) null);
                    return obj;
                } catch (Throwable th4) {
                    th = th4;
                    interfaceC4296 = interfaceC4296Mo5461;
                    throw th;
                }
        }
    }
}
