	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bundle_LayerFinish
_bundle_LayerFinish:                    ## @bundle_LayerFinish
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_isncp
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r15, %rdi
	callq	_ncp_LayersUnfinished
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_bundle_Phase
	movq	_PHASE_DEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_PHASE_TERMINATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_bundle_NewPhase
LBB0_4:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	movq	_DATALINK_OPEN@GOTPCREL(%rip), %r12
	movq	_CLOSE_STAYDOWN@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_datalink_Close
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_fsm2initial
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mp_Down                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHASE_DEAD,8,3                 ## @PHASE_DEAD
	.comm	_PHASE_TERMINATE,4,2            ## @PHASE_TERMINATE
	.comm	_DATALINK_OPEN,8,3              ## @DATALINK_OPEN
	.comm	_CLOSE_STAYDOWN,4,2             ## @CLOSE_STAYDOWN
	.no_dead_strip	_bundle_LayerFinish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bundle_LayerFinish
_bundle_LayerFinish:                    ; @bundle_LayerFinish
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_isncp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ncp_LayersUnfinished
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_bundle_Phase
Lloh0:
	adrp	x8, _PHASE_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHASE_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _PHASE_TERMINATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHASE_TERMINATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bundle_NewPhase
LBB0_5:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_10
; %bb.6:
Lloh6:
	adrp	x22, _DATALINK_OPEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DATALINK_OPEN@GOTPAGEOFF]
Lloh8:
	adrp	x23, _CLOSE_STAYDOWN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CLOSE_STAYDOWN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	bl	_datalink_Close
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	bl	_fsm2initial
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mp_Down
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHASE_DEAD,8,3                 ; @PHASE_DEAD
	.comm	_PHASE_TERMINATE,4,2            ; @PHASE_TERMINATE
	.comm	_DATALINK_OPEN,8,3              ; @DATALINK_OPEN
	.comm	_CLOSE_STAYDOWN,4,2             ; @CLOSE_STAYDOWN
	.no_dead_strip	_bundle_LayerFinish
.subsections_via_symbols
