package com.vinfast.companion.serviceskit.data.repository;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes6.dex */
@kotlin.Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/flow/FlowCollector;", ""}, k = 3, mv = {2, 2, 0}, xi = 48)
@kotlin.coroutines.jvm.internal.DebugMetadata(c = "com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1", f = "BookingServiceRepositoryProviderStub.kt", l = {175, 176}, m = "invokeSuspend", v = 1)
final class BookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1 extends kotlin.coroutines.jvm.internal.SuspendLambda implements kotlin.jvm.functions.Function2<kotlinx.coroutines.flow.FlowCollector<? super java.lang.String>, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> {
    java.lang.Object n;
    java.lang.Object o;
    int p;
    private /* synthetic */ java.lang.Object q;
    final /* synthetic */ java.lang.String r;
    final /* synthetic */ java.lang.Integer[] s;
    final /* synthetic */ long t;
    final /* synthetic */ java.lang.String u;
    final /* synthetic */ java.lang.String v;
    final /* synthetic */ java.lang.Double w;
    final /* synthetic */ java.lang.Double x;
    final /* synthetic */ com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub y;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    BookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1(java.lang.String str, java.lang.Integer[] numArr, long j, java.lang.String str2, java.lang.String str3, java.lang.Double d, java.lang.Double d2, com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub bookingServiceRepositoryProviderStub, kotlin.coroutines.Continuation continuation) {
        super(2, continuation);
        this.r = str;
        this.s = numArr;
        this.t = j;
        this.u = str2;
        this.v = str3;
        this.w = d;
        this.x = d2;
        this.y = bookingServiceRepositoryProviderStub;
    }

    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final java.lang.Object invoke(kotlinx.coroutines.flow.FlowCollector flowCollector, kotlin.coroutines.Continuation continuation) {
        return create(flowCollector, continuation).invokeSuspend(kotlin.Unit.a);
    }

    public final kotlin.coroutines.Continuation create(java.lang.Object obj, kotlin.coroutines.Continuation continuation) {
        com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1 bookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1 = new com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1(this.r, this.s, this.t, this.u, this.v, this.w, this.x, this.y, continuation);
        bookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1.q = obj;
        return bookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1;
    }

    /* JADX WARN: Code restructure failed: missing block: B:19:0x0087, code lost:
    
        if (r0.emit(r4, r14) == r1) goto L20;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object invokeSuspend(java.lang.Object r15) {
        /*
            r14 = this;
            java.lang.Object r0 = r14.q
            kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
            java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.g()
            int r2 = r14.p
            r3 = 2
            r4 = 1
            if (r2 == 0) goto L2e
            if (r2 == r4) goto L26
            if (r2 != r3) goto L1e
            java.lang.Object r0 = r14.o
            com.vinfast.companion.core.base.BaseResponse r0 = (com.vinfast.companion.core.base.BaseResponse) r0
            java.lang.Object r14 = r14.n
            com.vinfast.companion.serviceskit.domain.request.UpdateReservedTimeSlotMobileServiceRequest r14 = (com.vinfast.companion.serviceskit.domain.request.UpdateReservedTimeSlotMobileServiceRequest) r14
            kotlin.ResultKt.b(r15)
            goto L8a
        L1e:
            java.lang.IllegalStateException r14 = new java.lang.IllegalStateException
            java.lang.String r15 = "call to 'resume' before 'invoke' with coroutine"
            r14.<init>(r15)
            throw r14
        L26:
            java.lang.Object r2 = r14.n
            com.vinfast.companion.serviceskit.domain.request.UpdateReservedTimeSlotMobileServiceRequest r2 = (com.vinfast.companion.serviceskit.domain.request.UpdateReservedTimeSlotMobileServiceRequest) r2
            kotlin.ResultKt.b(r15)
            goto L5c
        L2e:
            kotlin.ResultKt.b(r15)
            com.vinfast.companion.serviceskit.domain.request.UpdateReservedTimeSlotMobileServiceRequest r5 = new com.vinfast.companion.serviceskit.domain.request.UpdateReservedTimeSlotMobileServiceRequest
            java.lang.String r6 = r14.r
            java.lang.Integer[] r7 = r14.s
            long r8 = r14.t
            java.lang.String r10 = r14.u
            java.lang.String r11 = r14.v
            java.lang.Double r12 = r14.w
            java.lang.Double r13 = r14.x
            r5.<init>(r6, r7, r8, r10, r11, r12, r13)
            com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub r15 = r14.y
            com.vinfast.companion.serviceskit.data.api.BookingServiceApi r15 = com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub.p(r15)
            r14.q = r0
            java.lang.Object r2 = kotlin.coroutines.jvm.internal.SpillingKt.a(r5)
            r14.n = r2
            r14.p = r4
            java.lang.Object r15 = r15.l(r5, r14)
            if (r15 != r1) goto L5b
            goto L89
        L5b:
            r2 = r5
        L5c:
            com.vinfast.companion.core.base.BaseResponse r15 = (com.vinfast.companion.core.base.BaseResponse) r15
            java.lang.Object r4 = r15.a()
            com.vinfast.companion.serviceskit.domain.response.TimeSlotReservationDto r4 = (com.vinfast.companion.serviceskit.domain.response.TimeSlotReservationDto) r4
            if (r4 == 0) goto L6b
            java.lang.String r4 = r4.getAppointmentId()
            goto L6c
        L6b:
            r4 = 0
        L6c:
            kotlin.jvm.internal.Intrinsics.i(r4)
            java.lang.Object r5 = kotlin.coroutines.jvm.internal.SpillingKt.a(r0)
            r14.q = r5
            java.lang.Object r2 = kotlin.coroutines.jvm.internal.SpillingKt.a(r2)
            r14.n = r2
            java.lang.Object r15 = kotlin.coroutines.jvm.internal.SpillingKt.a(r15)
            r14.o = r15
            r14.p = r3
            java.lang.Object r14 = r0.emit(r4, r14)
            if (r14 != r1) goto L8a
        L89:
            return r1
        L8a:
            kotlin.Unit r14 = kotlin.Unit.a
            return r14
        */
        throw new UnsupportedOperationException("Method not decompiled: com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProviderStub$updateMobileServiceReservedTimeSlot$1.invokeSuspend(java.lang.Object):java.lang.Object");
    }
}
