	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_httpd_accept
_isc_httpd_accept:                      ## @isc_httpd_accept
	.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, %rbx
	movq	%rdi, %r14
	movq	%rsi, -56(%rbp)
	movq	(%rsi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_ENTER
	movq	%r15, %rdi
	callq	_LOCK
	movq	%r15, %rdi
	callq	_MSHUTTINGDOWN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_17
LBB0_2:
	movq	(%rbx), %rax
	movq	_ISC_R_CANCELED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_17
LBB0_4:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:
	movl	8(%rbx), %edi
	addq	$8, %rbx
	leaq	-44(%rbp), %rsi
	callq	_isc_socket_getpeername
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	16(%r15), %esi
	leaq	-44(%rbp), %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movl	8(%r15), %edi
	movl	$56, %esi
	callq	_isc_mem_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r12
	movq	%r15, 48(%rax)
	movq	_link@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_ISC_LINK_INIT
	movl	12(%r15), %edi
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_ISC_LIST_APPEND
	movq	%r12, %rdi
	callq	_ISC_HTTPD_SETRECV
	movl	(%rbx), %edi
	movl	%edi, 4(%r12)
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	callq	_isc_socket_setname
	movq	$0, 40(%r12)
	movl	8(%r15), %edi
	movq	_HTTP_SENDGROW@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_isc_mem_get
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	(%r13), %edx
	movl	%edx, (%r12)
	leaq	32(%r12), %rdi
	movq	%rax, %rsi
	callq	_isc_buffer_init
	movl	20(%r12), %edi
	callq	_ISC_LIST_INIT
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_isc_buffer_initnull
	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
	movq	%rax, %rdi
	callq	_POST
	leaq	L_.str.6(%rip), %rdi
	callq	_NOTICE
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_NOTICE
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	callq	_NOTICE
LBB0_8:
	movq	%rbx, %rdi
	callq	_isc_socket_detach
	jmp	LBB0_15
LBB0_12:
	movl	8(%r15), %edi
	movq	%r12, %rsi
	movl	$56, %edx
	callq	_isc_mem_put
	movq	%rbx, %rdi
	callq	_isc_socket_detach
LBB0_14:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r13
LBB0_15:
	movl	4(%r15), %edi
	leaq	_isc_httpd_accept(%rip), %rdx
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_isc_socket_accept
	cmpq	(%r13), %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.7(%rip), %rdi
LBB0_17:
	callq	_NOTICE
LBB0_18:
	movq	%r15, %rdi
	callq	_UNLOCK
	movq	%r15, %rdi
	callq	_httpdmgr_destroy
	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	"accept"

L_.str.1:                               ## @.str.1
	.asciz	"accept shutting down, goto out"

	.comm	_ISC_R_CANCELED,8,3             ## @ISC_R_CANCELED
L_.str.2:                               ## @.str.2
	.asciz	"accept canceled, goto out"

	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"accept returned failure, goto requeue"

L_.str.4:                               ## @.str.4
	.asciz	"accept failed to allocate memory, goto requeue"

	.comm	_link,4,2                       ## @link
L_.str.5:                               ## @.str.5
	.asciz	"httpd"

	.comm	_HTTP_SENDGROW,4,2              ## @HTTP_SENDGROW
	.comm	_HTTP_RECVLEN,8,3               ## @HTTP_RECVLEN
	.comm	_isc_httpd_recvdone,4,2         ## @isc_httpd_recvdone
L_.str.6:                               ## @.str.6
	.asciz	"accept queued recv on socket"

L_.str.7:                               ## @.str.7
	.asciz	"accept could not reaccept due to failure"

	.no_dead_strip	_isc_httpd_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_httpd_accept
_isc_httpd_accept:                      ; @isc_httpd_accept
	.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
	str	x1, [sp, #24]
	ldr	x19, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ENTER
	mov	x0, x19
	bl	_LOCK
	mov	x0, x19
	bl	_MSHUTTINGDOWN
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_2:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _ISC_R_CANCELED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ISC_R_CANCELED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_4:
Lloh9:
	adrp	x23, _ISC_R_SUCCESS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x21, #8]!
	add	x1, sp, #4
	bl	_isc_socket_getpeername
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x19, #16]
	add	x0, sp, #4
	blr	x8
	cbz	w0, LBB0_14
LBB0_7:
	ldr	w0, [x19, #8]
	mov	w1, #56
	bl	_isc_mem_get
	cbz	x0, LBB0_12
; %bb.8:
	mov	x22, x0
	str	x19, [x0, #48]
Lloh11:
	adrp	x24, _link@GOTPAGE
Lloh12:
	ldr	x24, [x24, _link@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_ISC_LINK_INIT
	ldr	w0, [x19, #12]
	ldr	w2, [x24]
	mov	x1, x22
	bl	_ISC_LIST_APPEND
	mov	x0, x22
	bl	_ISC_HTTPD_SETRECV
	ldr	w0, [x21]
	str	w0, [x22, #4]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, #0
	bl	_isc_socket_setname
	str	xzr, [x22, #40]
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x24, _HTTP_SENDGROW@GOTPAGE
Lloh16:
	ldr	x24, [x24, _HTTP_SENDGROW@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_isc_mem_get
	str	x0, [x22, #24]
	cbz	x0, LBB0_13
; %bb.9:
	mov	x1, x0
	ldr	w2, [x24]
	str	w2, [x22]
	add	x0, x22, #32
	bl	_isc_buffer_init
	ldr	w0, [x22, #20]
	bl	_ISC_LIST_INIT
	add	x0, x22, #16
	bl	_isc_buffer_initnull
	mov	x0, x22
	bl	_reset_client
	ldr	x8, [x22, #8]
Lloh17:
	adrp	x9, _HTTP_RECVLEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HTTP_RECVLEN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	sub	x9, x9, #1
	stp	x8, x9, [sp, #8]
	ldr	w0, [x22, #4]
Lloh20:
	adrp	x8, _isc_httpd_recvdone@GOTPAGE
Lloh21:
	ldr	x8, [x8, _isc_httpd_recvdone@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, x20
	mov	x5, x22
	bl	_isc_socket_recv
	bl	_POST
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_NOTICE
	b	LBB0_15
LBB0_12:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_NOTICE
	b	LBB0_14
LBB0_13:
	ldr	w0, [x19, #8]
	mov	x1, x22
	mov	w2, #56
	bl	_isc_mem_put
LBB0_14:
	mov	x0, x21
	bl	_isc_socket_detach
LBB0_15:
	ldr	w0, [x19, #4]
Lloh29:
	adrp	x2, _isc_httpd_accept@PAGE
Lloh30:
	add	x2, x2, _isc_httpd_accept@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_isc_socket_accept
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.16:
Lloh31:
	adrp	x0, l_.str.7@PAGE
Lloh32:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_17:
	bl	_NOTICE
LBB0_18:
	mov	x0, x19
	bl	_UNLOCK
	mov	x0, x19
	bl	_httpdmgr_destroy
	add	x0, sp, #24
	bl	_isc_event_free
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept"

l_.str.1:                               ; @.str.1
	.asciz	"accept shutting down, goto out"

	.comm	_ISC_R_CANCELED,8,3             ; @ISC_R_CANCELED
l_.str.2:                               ; @.str.2
	.asciz	"accept canceled, goto out"

	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"accept returned failure, goto requeue"

l_.str.4:                               ; @.str.4
	.asciz	"accept failed to allocate memory, goto requeue"

	.comm	_link,4,2                       ; @link
l_.str.5:                               ; @.str.5
	.asciz	"httpd"

	.comm	_HTTP_SENDGROW,4,2              ; @HTTP_SENDGROW
	.comm	_HTTP_RECVLEN,8,3               ; @HTTP_RECVLEN
	.comm	_isc_httpd_recvdone,4,2         ; @isc_httpd_recvdone
l_.str.6:                               ; @.str.6
	.asciz	"accept queued recv on socket"

l_.str.7:                               ; @.str.7
	.asciz	"accept could not reaccept due to failure"

	.no_dead_strip	_isc_httpd_accept
.subsections_via_symbols
