	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiCleanupClient                ## -- Begin function CiCleanupClient
	.p2align	4, 0x90
_CiCleanupClient:                       ## @CiCleanupClient
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	callq	_CiFreeConfiguration
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_CLog
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_CLog
	movl	80(%rbx), %edi
	callq	_FreeEraser
	movq	72(%rbx), %rdi
	callq	_FreeLog
	movq	$0, 72(%rbx)
	movl	64(%rbx), %edi
	callq	_ReleaseCedar
	movq	56(%rbx), %rdi
	callq	_DeleteLock
	movq	48(%rbx), %rdi
	callq	_DeleteLock
	movl	$1, (%rbx)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	movq	40(%rbx), %rdi
	callq	_ReleaseThread
LBB0_3:
	movl	28(%rbx), %edi
	callq	_ReleaseList
	movl	24(%rbx), %edi
	callq	_FreeSockList
	movq	16(%rbx), %rdi
	callq	_Free
	movq	%rbx, %rdi
	callq	_Free
	xorl	%eax, %eax
	callq	_StopCedarLog
	movq	_ci_active_sessions_lock@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_DeleteLock
	movq	$0, (%rbx)
	movq	_ci_num_active_sessions@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LC_END"

L_.str.1:                               ## @.str.1
	.asciz	"L_LINE"

	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_ci_active_sessions_lock,8,3    ## @ci_active_sessions_lock
	.comm	_ci_num_active_sessions,8,3     ## @ci_num_active_sessions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiCleanupClient                ; -- Begin function CiCleanupClient
	.p2align	2
_CiCleanupClient:                       ; @CiCleanupClient
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_CiFreeConfiguration
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_CLog
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_CLog
	ldr	w0, [x19, #80]
	bl	_FreeEraser
	ldr	x0, [x19, #72]
	bl	_FreeLog
	str	xzr, [x19, #72]
	ldr	w0, [x19, #64]
	bl	_ReleaseCedar
	ldr	x0, [x19, #56]
	bl	_DeleteLock
	ldr	x0, [x19, #48]
	bl	_DeleteLock
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _INFINITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_WaitThread
	ldr	x0, [x19, #40]
	bl	_ReleaseThread
LBB0_3:
	ldr	w0, [x19, #28]
	bl	_ReleaseList
	ldr	w0, [x19, #24]
	bl	_FreeSockList
	ldr	x0, [x19, #16]
	bl	_Free
	mov	x0, x19
	bl	_Free
	bl	_StopCedarLog
Lloh7:
	adrp	x19, _ci_active_sessions_lock@GOTPAGE
Lloh8:
	ldr	x19, [x19, _ci_active_sessions_lock@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_DeleteLock
	str	xzr, [x19]
Lloh9:
	adrp	x8, _ci_num_active_sessions@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ci_num_active_sessions@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LC_END"

l_.str.1:                               ; @.str.1
	.asciz	"L_LINE"

	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_ci_active_sessions_lock,8,3    ; @ci_active_sessions_lock
	.comm	_ci_num_active_sessions,8,3     ; @ci_num_active_sessions
.subsections_via_symbols
