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\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00010\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.BookingServiceRepositoryProvider$cancelAppointment$1", f = "BookingServiceRepositoryProvider.kt", l = {397, 398}, m = "invokeSuspend", v = 1)
final class BookingServiceRepositoryProvider$cancelAppointment$1 extends kotlin.coroutines.jvm.internal.SuspendLambda implements kotlin.jvm.functions.Function2<kotlinx.coroutines.flow.FlowCollector<? super kotlin.Unit>, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> {
    java.lang.Object n;
    int o;
    private /* synthetic */ java.lang.Object p;
    final /* synthetic */ java.lang.String q;
    final /* synthetic */ java.lang.String r;
    final /* synthetic */ java.lang.String s;
    final /* synthetic */ com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProvider t;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    BookingServiceRepositoryProvider$cancelAppointment$1(java.lang.String str, java.lang.String str2, java.lang.String str3, com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProvider bookingServiceRepositoryProvider, kotlin.coroutines.Continuation continuation) {
        super(2, continuation);
        this.q = str;
        this.r = str2;
        this.s = str3;
        this.t = bookingServiceRepositoryProvider;
    }

    /* 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.BookingServiceRepositoryProvider$cancelAppointment$1 bookingServiceRepositoryProvider$cancelAppointment$1 = new com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProvider$cancelAppointment$1(this.q, this.r, this.s, this.t, continuation);
        bookingServiceRepositoryProvider$cancelAppointment$1.p = obj;
        return bookingServiceRepositoryProvider$cancelAppointment$1;
    }

    /* JADX WARN: Code restructure failed: missing block: B:14:0x0067, code lost:
    
        if (r0.emit(r8, r7) == r1) goto L15;
     */
    /*
        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 r8) {
        /*
            r7 = this;
            java.lang.Object r0 = r7.p
            kotlinx.coroutines.flow.FlowCollector r0 = (kotlinx.coroutines.flow.FlowCollector) r0
            java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.g()
            int r2 = r7.o
            r3 = 2
            r4 = 1
            if (r2 == 0) goto L2a
            if (r2 == r4) goto L22
            if (r2 != r3) goto L1a
            java.lang.Object r7 = r7.n
            com.vinfast.companion.serviceskit.domain.request.CancelAppointmentRequest r7 = (com.vinfast.companion.serviceskit.domain.request.CancelAppointmentRequest) r7
            kotlin.ResultKt.b(r8)
            goto L6a
        L1a:
            java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
            java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
            r7.<init>(r8)
            throw r7
        L22:
            java.lang.Object r2 = r7.n
            com.vinfast.companion.serviceskit.domain.request.CancelAppointmentRequest r2 = (com.vinfast.companion.serviceskit.domain.request.CancelAppointmentRequest) r2
            kotlin.ResultKt.b(r8)
            goto L53
        L2a:
            kotlin.ResultKt.b(r8)
            com.vinfast.companion.serviceskit.domain.request.CancelAppointmentRequest r2 = new com.vinfast.companion.serviceskit.domain.request.CancelAppointmentRequest
            java.lang.String r8 = r7.q
            java.lang.String r5 = r7.r
            java.lang.Integer r5 = kotlin.text.StringsKt.x(r5)
            java.lang.String r6 = r7.s
            r2.<init>(r8, r5, r6)
            com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProvider r8 = r7.t
            com.vinfast.companion.serviceskit.data.api.BookingServiceApi r8 = com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProvider.p(r8)
            r7.p = r0
            java.lang.Object r5 = kotlin.coroutines.jvm.internal.SpillingKt.a(r2)
            r7.n = r5
            r7.o = r4
            java.lang.Object r8 = r8.L(r2, r7)
            if (r8 != r1) goto L53
            goto L69
        L53:
            kotlin.Unit r8 = kotlin.Unit.a
            java.lang.Object r4 = kotlin.coroutines.jvm.internal.SpillingKt.a(r0)
            r7.p = r4
            java.lang.Object r2 = kotlin.coroutines.jvm.internal.SpillingKt.a(r2)
            r7.n = r2
            r7.o = r3
            java.lang.Object r7 = r0.emit(r8, r7)
            if (r7 != r1) goto L6a
        L69:
            return r1
        L6a:
            kotlin.Unit r7 = kotlin.Unit.a
            return r7
        */
        throw new UnsupportedOperationException("Method not decompiled: com.vinfast.companion.serviceskit.data.repository.BookingServiceRepositoryProvider$cancelAppointment$1.invokeSuspend(java.lang.Object):java.lang.Object");
    }
}
