package com.vinfast.companion.settings.ui.accountsetting.glmyprofilename;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes6.dex */
@kotlin.Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n"}, d2 = {"<anonymous>", "", "it"}, k = 3, mv = {2, 2, 0}, xi = 48)
@kotlin.coroutines.jvm.internal.DebugMetadata(c = "com.vinfast.companion.settings.ui.accountsetting.glmyprofilename.GlMyProfileNameViewModel$updateProfileName$1", f = "GlMyProfileNameViewModel.kt", l = {}, m = "invokeSuspend", v = 1)
final class GlMyProfileNameViewModel$updateProfileName$1 extends kotlin.coroutines.jvm.internal.SuspendLambda implements kotlin.jvm.functions.Function2<kotlin.Unit, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> {
    int n;
    final /* synthetic */ com.vinfast.companion.settings.ui.accountsetting.glmyprofilename.GlMyProfileNameViewModel o;
    final /* synthetic */ java.lang.String p;
    final /* synthetic */ java.lang.String q;
    final /* synthetic */ com.vinfast.companion.core.base.ui.model.Gender r;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    GlMyProfileNameViewModel$updateProfileName$1(com.vinfast.companion.settings.ui.accountsetting.glmyprofilename.GlMyProfileNameViewModel glMyProfileNameViewModel, java.lang.String str, java.lang.String str2, com.vinfast.companion.core.base.ui.model.Gender gender, kotlin.coroutines.Continuation continuation) {
        super(2, continuation);
        this.o = glMyProfileNameViewModel;
        this.p = str;
        this.q = str2;
        this.r = gender;
    }

    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final java.lang.Object invoke(kotlin.Unit unit, kotlin.coroutines.Continuation continuation) {
        return create(unit, continuation).invokeSuspend(kotlin.Unit.a);
    }

    public final kotlin.coroutines.Continuation create(java.lang.Object obj, kotlin.coroutines.Continuation continuation) {
        return new com.vinfast.companion.settings.ui.accountsetting.glmyprofilename.GlMyProfileNameViewModel$updateProfileName$1(this.o, this.p, this.q, this.r, continuation);
    }

    public final java.lang.Object invokeSuspend(java.lang.Object obj) {
        kotlin.coroutines.intrinsics.IntrinsicsKt.g();
        if (this.n != 0) {
            throw new java.lang.IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        kotlin.ResultKt.b(obj);
        this.o.getUserManager().D(this.p, this.q, this.r);
        this.o._updateUserSuccess.n(kotlin.coroutines.jvm.internal.Boxing.a(true));
        return kotlin.Unit.a;
    }
}
