package com.vinfast.companion.car.screen;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 2, 0}, xi = 48)
@kotlin.coroutines.jvm.internal.DebugMetadata(c = "com.vinfast.companion.car.screen.NearbyChargersScreen$fetchData$1", f = "NearbyChargersScreen.kt", l = {285}, m = "invokeSuspend", v = 1)
final class NearbyChargersScreen$fetchData$1 extends kotlin.coroutines.jvm.internal.SuspendLambda implements kotlin.jvm.functions.Function2<kotlinx.coroutines.CoroutineScope, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> {
    int n;
    final /* synthetic */ com.vinfast.companion.car.screen.NearbyChargersScreen o;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    NearbyChargersScreen$fetchData$1(com.vinfast.companion.car.screen.NearbyChargersScreen nearbyChargersScreen, kotlin.coroutines.Continuation continuation) {
        super(2, continuation);
        this.o = nearbyChargersScreen;
    }

    public final kotlin.coroutines.Continuation create(java.lang.Object obj, kotlin.coroutines.Continuation continuation) {
        return new com.vinfast.companion.car.screen.NearbyChargersScreen$fetchData$1(this.o, continuation);
    }

    public final java.lang.Object invokeSuspend(java.lang.Object obj) {
        java.lang.Object objG = kotlin.coroutines.intrinsics.IntrinsicsKt.g();
        int i = this.n;
        if (i == 0) {
            kotlin.ResultKt.b(obj);
            kotlinx.coroutines.flow.MutableSharedFlow mutableSharedFlow = this.o._trigger;
            android.location.Location location = this.o.location;
            this.n = 1;
            if (mutableSharedFlow.emit(location, this) == objG) {
                return objG;
            }
        } else {
            if (i != 1) {
                throw new java.lang.IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            kotlin.ResultKt.b(obj);
        }
        return kotlin.Unit.a;
    }

    public final java.lang.Object invoke(kotlinx.coroutines.CoroutineScope coroutineScope, kotlin.coroutines.Continuation continuation) {
        return create(coroutineScope, continuation).invokeSuspend(kotlin.Unit.a);
    }
}
