	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function httpdmgr_destroy
_httpdmgr_destroy:                      ## @httpdmgr_destroy
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_ENTER
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_LOCK
	movq	%r15, %rdi
	callq	_MSHUTTINGDOWN
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	48(%r15), %edi
	callq	_ISC_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_NOTICE
	leaq	44(%r15), %rdi
	callq	_isc_socket_detach
	leaq	40(%r15), %rdi
	callq	_isc_task_detach
	movq	$0, 32(%r15)
	movl	28(%r15), %edi
	callq	_ISC_LIST_HEAD
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	callq	_isc_mem_free
	movl	28(%r15), %edi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_ISC_LIST_UNLINK
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_isc_mem_put
	movl	28(%r15), %edi
	callq	_ISC_LIST_HEAD
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_UNLOCK
	movq	%r14, %rdi
	callq	_isc_mutex_destroy
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	8(%r15), %edi
	callq	*%rax
LBB0_10:
	movq	(%r15), %rax
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movl	$56, %edx
	callq	_isc_mem_putanddetach
	leaq	L_.str(%rip), %rdi
	callq	_EXIT
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_NOTICE
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UNLOCK                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"httpdmgr_destroy"

L_.str.1:                               ## @.str.1
	.asciz	"httpdmgr_destroy not shutting down yet"

L_.str.2:                               ## @.str.2
	.asciz	"httpdmgr_destroy clients still active"

L_.str.3:                               ## @.str.3
	.asciz	"httpdmgr_destroy detaching socket, task, and timermgr"

	.comm	_link,4,2                       ## @link
	.no_dead_strip	_httpdmgr_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function httpdmgr_destroy
_httpdmgr_destroy:                      ; @httpdmgr_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ENTER
	add	x20, x19, #24
	mov	x0, x20
	bl	_LOCK
	mov	x0, x19
	bl	_MSHUTTINGDOWN
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w0, [x19, #48]
	bl	_ISC_LIST_EMPTY
	cbz	w0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_NOTICE
	add	x0, x19, #44
	bl	_isc_socket_detach
	add	x0, x19, #40
	bl	_isc_task_detach
	str	xzr, [x19, #32]
	ldr	w0, [x19, #28]
	bl	_ISC_LIST_HEAD
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
Lloh4:
	adrp	x22, _link@GOTPAGE
Lloh5:
	ldr	x22, [x22, _link@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_isc_mem_free
	ldr	w0, [x19, #28]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_ISC_LIST_UNLINK
	ldr	x0, [x19]
	mov	x1, x21
	mov	w2, #4
	bl	_isc_mem_put
	ldr	w0, [x19, #28]
	bl	_ISC_LIST_HEAD
	mov	x21, x0
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x20
	bl	_UNLOCK
	mov	x0, x20
	bl	_isc_mutex_destroy
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	blr	x8
LBB0_7:
	ldr	x8, [x19]
	str	x8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #56
	bl	_isc_mem_putanddetach
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_EXIT
	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
	add	sp, sp, #64
	ret
LBB0_8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_NOTICE
	mov	x0, x20
	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
	add	sp, sp, #64
	b	_UNLOCK
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"httpdmgr_destroy"

l_.str.1:                               ; @.str.1
	.asciz	"httpdmgr_destroy not shutting down yet"

l_.str.2:                               ; @.str.2
	.asciz	"httpdmgr_destroy clients still active"

l_.str.3:                               ; @.str.3
	.asciz	"httpdmgr_destroy detaching socket, task, and timermgr"

	.comm	_link,4,2                       ; @link
	.no_dead_strip	_httpdmgr_destroy
.subsections_via_symbols
