	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_LinkClosed              ## -- Begin function bundle_LinkClosed
	.p2align	4, 0x90
_bundle_LinkClosed:                     ## @bundle_LinkClosed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_log_SetTtyCommandMode
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_DATALINK_CLOSED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	cmpq	%rdx, (%rax)
	setne	%sil
	addl	%esi, %ecx
	jmp	LBB0_4
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_PHYS_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_bundle_DownInterface
LBB0_8:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ncp2initial
	movq	%rbx, %rdi
	callq	_mp_Down
	movq	_PHASE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bundle_NewPhase
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_bundle_StopSessionTimer
LBB0_10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bundle_StopIdleTimer           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DATALINK_CLOSED,8,3            ## @DATALINK_CLOSED
	.comm	_PHYS_AUTO,8,3                  ## @PHYS_AUTO
	.comm	_PHASE_DEAD,4,2                 ## @PHASE_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_LinkClosed              ; -- Begin function bundle_LinkClosed
	.p2align	2
_bundle_LinkClosed:                     ; @bundle_LinkClosed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_log_SetTtyCommandMode
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	w9, #0
Lloh0:
	adrp	x10, _DATALINK_CLOSED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DATALINK_CLOSED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x8]
	cmp	x11, x10
	cinc	w9, w9, ne
	b	LBB0_2
LBB0_5:
	cbz	w9, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PHYS_AUTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHYS_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_bundle_DownInterface
LBB0_9:
	add	x20, x19, #8
	mov	x0, x20
	bl	_ncp2initial
	mov	x0, x20
	bl	_mp_Down
Lloh6:
	adrp	x8, _PHASE_DEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHASE_DEAD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bundle_NewPhase
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_bundle_StopSessionTimer
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bundle_StopIdleTimer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DATALINK_CLOSED,8,3            ; @DATALINK_CLOSED
	.comm	_PHYS_AUTO,8,3                  ; @PHYS_AUTO
	.comm	_PHASE_DEAD,4,2                 ; @PHASE_DEAD
.subsections_via_symbols
