	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_httpd_senddone
_isc_httpd_senddone:                    ## @isc_httpd_senddone
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, -56(%rbp)
	movq	(%rsi), %r12
	movq	%r12, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_ENTER
	movq	%r12, %rdi
	callq	_ISC_HTTPD_ISSEND
	movl	%eax, %edi
	callq	_INSIST
	leaq	L_.str.1(%rip), %rdi
	callq	_NOTICE
	movl	8(%r15), %edi
	leaq	32(%r12), %rsi
	movq	_link@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_ISC_LIST_UNLINK
	cmpq	$0, 24(%r12)
	je	LBB0_2
## %bb.1:
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_isc_buffer_length
	xorl	%edi, %edi
	testq	%rax, %rax
	cmovgq	%rbx, %rdi
	movl	20(%r12), %esi
	callq	*24(%r12)
	leaq	L_.str.2(%rip), %rdi
	callq	_NOTICE
LBB0_2:
	leaq	16(%r12), %rbx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ISC_LINK_LINKED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %edi
	movl	(%r13), %edx
	movq	%rbx, %rsi
	callq	_ISC_LIST_UNLINK
	leaq	L_.str.3(%rip), %rdi
	callq	_NOTICE
LBB0_4:
	movq	(%r15), %rax
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_HTTPD_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_7
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_destroy_client
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	callq	_ISC_HTTPD_SETRECV
	leaq	L_.str.4(%rip), %rdi
	callq	_NOTICE
	movq	%r12, %rdi
	callq	_reset_client
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)
	movq	_HTTP_RECVLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, -64(%rbp)
	movl	4(%r12), %edi
	movq	_isc_httpd_recvdone@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-72(%rbp), %rsi
	movl	$1, %edx
	movq	%r14, %rcx
	movq	%r12, %r9
	callq	_isc_socket_recv
LBB0_8:
	leaq	-56(%rbp), %rdi
	callq	_isc_event_free
	leaq	L_.str(%rip), %rdi
	callq	_EXIT
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"senddone"

L_.str.1:                               ## @.str.1
	.asciz	"senddone unlinked header"

	.comm	_link,4,2                       ## @link
L_.str.2:                               ## @.str.2
	.asciz	"senddone free callback performed"

L_.str.3:                               ## @.str.3
	.asciz	"senddone body buffer unlinked"

	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_HTTPD_CLOSE,4,2                ## @HTTPD_CLOSE
L_.str.4:                               ## @.str.4
	.asciz	"senddone restarting recv on socket"

	.comm	_HTTP_RECVLEN,8,3               ## @HTTP_RECVLEN
	.comm	_isc_httpd_recvdone,4,2         ## @isc_httpd_recvdone
	.no_dead_strip	_isc_httpd_senddone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_httpd_senddone
_isc_httpd_senddone:                    ; @isc_httpd_senddone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x1]
	stp	x19, x1, [sp, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ENTER
	mov	x0, x19
	bl	_ISC_HTTPD_ISSEND
	bl	_INSIST
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NOTICE
	ldr	w0, [x21, #8]
	add	x1, x19, #32
Lloh4:
	adrp	x23, _link@GOTPAGE
Lloh5:
	ldr	x23, [x23, _link@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_ISC_LIST_UNLINK
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	add	x22, x19, #16
	mov	x0, x22
	bl	_isc_buffer_length
	cmp	x0, #0
	csel	x0, x22, xzr, gt
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #20]
	blr	x8
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NOTICE
LBB0_2:
	add	x22, x19, #16
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ISC_LINK_LINKED
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21, #8]
	ldr	w2, [x23]
	mov	x1, x22
	bl	_ISC_LIST_UNLINK
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_NOTICE
LBB0_4:
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _ISC_R_SUCCESS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _HTTPD_CLOSE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HTTPD_CLOSE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
	add	x0, sp, #16
	bl	_destroy_client
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_ISC_HTTPD_SETRECV
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_NOTICE
	mov	x0, x19
	bl	_reset_client
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _HTTP_RECVLEN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HTTP_RECVLEN@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	sub	x9, x9, #1
	stp	x8, x9, [sp]
	ldr	w0, [x19, #4]
Lloh21:
	adrp	x8, _isc_httpd_recvdone@GOTPAGE
Lloh22:
	ldr	x8, [x8, _isc_httpd_recvdone@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x1, sp
	mov	w2, #1
	mov	x3, x20
	mov	x5, x19
	bl	_isc_socket_recv
LBB0_8:
	add	x0, sp, #24
	bl	_isc_event_free
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_EXIT
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"senddone"

l_.str.1:                               ; @.str.1
	.asciz	"senddone unlinked header"

	.comm	_link,4,2                       ; @link
l_.str.2:                               ; @.str.2
	.asciz	"senddone free callback performed"

l_.str.3:                               ; @.str.3
	.asciz	"senddone body buffer unlinked"

	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_HTTPD_CLOSE,4,2                ; @HTTPD_CLOSE
l_.str.4:                               ; @.str.4
	.asciz	"senddone restarting recv on socket"

	.comm	_HTTP_RECVLEN,8,3               ; @HTTP_RECVLEN
	.comm	_isc_httpd_recvdone,4,2         ; @isc_httpd_recvdone
	.no_dead_strip	_isc_httpd_senddone
.subsections_via_symbols
