	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_daemon_cleanup                 ## -- Begin function daemon_cleanup
	.p2align	4, 0x90
_daemon_cleanup:                        ## @daemon_cleanup
	.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	%rdi, %r14
	callq	_log_assert
	xorl	%eax, %eax
	callq	_signal_handling_record
	xorl	%edi, %edi
	callq	_log_thread_set
	movq	56(%r14), %rax
	movq	16(%rax), %rdi
	callq	_slabhash_clear
	movq	56(%r14), %rax
	movq	8(%rax), %rdi
	callq	_slabhash_clear
	movq	80(%r14), %rdi
	callq	_local_zones_delete
	movq	$0, 80(%r14)
	movq	72(%r14), %rdi
	callq	_respip_set_delete
	movq	$0, 72(%r14)
	movq	64(%r14), %rdi
	callq	_views_delete
	movq	$0, 64(%r14)
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_auth_zones_cleanup
LBB0_2:
	movl	48(%r14), %edi
	callq	_daemon_remote_clear
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_worker_delete
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	40(%r14), %rdi
	callq	_free
	movq	$0, 40(%r14)
	movl	$0, (%r14)
	leaq	32(%r14), %rdi
	callq	_alloc_clear_special
	movq	$0, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_daemon_cleanup                 ; -- Begin function daemon_cleanup
	.p2align	2
_daemon_cleanup:                        ; @daemon_cleanup
	.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	x19, x0
	bl	_log_assert
	bl	_signal_handling_record
	mov	x0, #0
	bl	_log_thread_set
	ldr	x8, [x19, #56]
	ldr	x0, [x8, #16]
	bl	_slabhash_clear
	ldr	x8, [x19, #56]
	ldr	x0, [x8, #8]
	bl	_slabhash_clear
	ldr	x0, [x19, #80]
	bl	_local_zones_delete
	str	xzr, [x19, #80]
	ldr	x0, [x19, #72]
	bl	_respip_set_delete
	str	xzr, [x19, #72]
	ldr	x0, [x19, #64]
	bl	_views_delete
	str	xzr, [x19, #64]
	ldr	x8, [x19, #56]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_auth_zones_cleanup
LBB0_2:
	ldr	w0, [x19, #48]
	bl	_daemon_remote_clear
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x20, lsl #2]
	bl	_worker_delete
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x19, #40]
	bl	_free
	str	xzr, [x19, #40]
	str	wzr, [x19]
	add	x0, x19, #32
	bl	_alloc_clear_special
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
