	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcs_connect_finalize           ## -- Begin function mcs_connect_finalize
	.p2align	4, 0x90
_mcs_connect_finalize:                  ## @mcs_connect_finalize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_mcs_send_connect_initial
	movl	%ebx, %edi
	callq	_mcs_recv_connect_response
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	callq	_mcs_send_edrq
	xorl	%eax, %eax
	callq	_mcs_send_aurq
	movq	_g_mcs_userid@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mcs_recv_aucf
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_MCS_USERCHANNEL_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_mcs_send_cjrq
	xorl	%eax, %eax
	callq	_mcs_recv_cjcf
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	_MCS_GLOBAL_CHANNEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_mcs_send_cjrq
	xorl	%eax, %eax
	callq	_mcs_recv_cjcf
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_g_num_channels@GOTPCREL(%rip), %r14
	movq	_True@GOTPCREL(%rip), %r12
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.5:
	movq	_g_channels@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_mcs_send_cjrq
	xorl	%eax, %eax
	callq	_mcs_recv_cjcf
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_iso_disconnect
	movq	_False@GOTPCREL(%rip), %r12
LBB0_9:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_mcs_userid,8,3               ## @g_mcs_userid
	.comm	_MCS_USERCHANNEL_BASE,8,3       ## @MCS_USERCHANNEL_BASE
	.comm	_MCS_GLOBAL_CHANNEL,8,3         ## @MCS_GLOBAL_CHANNEL
	.comm	_g_num_channels,4,2             ## @g_num_channels
	.comm	_g_channels,8,3                 ## @g_channels
	.comm	_True,4,2                       ## @True
	.comm	_False,4,2                      ## @False
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcs_connect_finalize           ; -- Begin function mcs_connect_finalize
	.p2align	2
_mcs_connect_finalize:                  ; @mcs_connect_finalize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_mcs_send_connect_initial
	mov	x0, x19
	bl	_mcs_recv_connect_response
	cbz	w0, LBB0_8
; %bb.1:
	bl	_mcs_send_edrq
	bl	_mcs_send_aurq
Lloh0:
	adrp	x19, _g_mcs_userid@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_mcs_userid@GOTPAGEOFF]
	mov	x0, x19
	bl	_mcs_recv_aucf
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MCS_USERCHANNEL_BASE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MCS_USERCHANNEL_BASE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_mcs_send_cjrq
	bl	_mcs_recv_cjcf
	cbz	w0, LBB0_8
; %bb.3:
Lloh5:
	adrp	x8, _MCS_GLOBAL_CHANNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MCS_GLOBAL_CHANNEL@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	bl	_mcs_send_cjrq
	bl	_mcs_recv_cjcf
	cbz	w0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x20, _g_num_channels@GOTPAGE
Lloh9:
	ldr	x20, [x20, _g_num_channels@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.5:
	mov	x21, #0
Lloh10:
	adrp	x22, _g_channels@GOTPAGE
Lloh11:
	ldr	x22, [x22, _g_channels@GOTPAGEOFF]
Lloh12:
	adrp	x19, _True@GOTPAGE
Lloh13:
	ldr	x19, [x19, _True@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x0, [x8, x21, lsl #3]
	bl	_mcs_send_cjrq
	bl	_mcs_recv_cjcf
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.lo	LBB0_6
	b	LBB0_9
LBB0_8:
	bl	_iso_disconnect
Lloh14:
	adrp	x19, _False@GOTPAGE
Lloh15:
	ldr	x19, [x19, _False@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh16:
	adrp	x19, _True@GOTPAGE
Lloh17:
	ldr	x19, [x19, _True@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_g_mcs_userid,8,3               ; @g_mcs_userid
	.comm	_MCS_USERCHANNEL_BASE,8,3       ; @MCS_USERCHANNEL_BASE
	.comm	_MCS_GLOBAL_CHANNEL,8,3         ; @MCS_GLOBAL_CHANNEL
	.comm	_g_num_channels,4,2             ; @g_num_channels
	.comm	_g_channels,8,3                 ; @g_channels
	.comm	_True,4,2                       ; @True
	.comm	_False,4,2                      ; @False
.subsections_via_symbols
