	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CcpLayerFinish
_CcpLayerFinish:                        ## @CcpLayerFinish
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_fsm2ccp
	movq	%rax, %r15
	movq	_LogCCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	8(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_free
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_2:
	movq	%r15, %rdi
	callq	_ccp_Required
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_ST_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_LogLCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%rdi), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_log_Printf
	movq	(%r14), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fsm_Close                      ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogCCP,4,2                     ## @LogCCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: LayerFinish.\n"

	.comm	_ST_OPENED,8,3                  ## @ST_OPENED
	.comm	_LogLCP,4,2                     ## @LogLCP
L_.str.1:                               ## @.str.1
	.asciz	"%s: Closing due to CCP completion\n"

	.no_dead_strip	_CcpLayerFinish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CcpLayerFinish
_CcpLayerFinish:                        ; @CcpLayerFinish
	.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	_fsm2ccp
	mov	x20, x0
Lloh0:
	adrp	x8, _LogCCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogCCP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	ldr	x0, [x20]
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x0]
	bl	_free
	str	x21, [x20]
	mov	x0, x21
	cbnz	x21, LBB0_1
LBB0_2:
	mov	x0, x20
	bl	_ccp_Required
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _ST_OPENED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ST_OPENED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _LogLCP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LogLCP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w2, [x0, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_log_Printf
	ldr	x0, [x19]
LBB0_5:
	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
	b	_fsm_Close
LBB0_6:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LogCCP,4,2                     ; @LogCCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: LayerFinish.\n"

	.comm	_ST_OPENED,8,3                  ; @ST_OPENED
	.comm	_LogLCP,4,2                     ; @LogLCP
l_.str.1:                               ; @.str.1
	.asciz	"%s: Closing due to CCP completion\n"

	.no_dead_strip	_CcpLayerFinish
.subsections_via_symbols
