	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_httpd_recvdone
_isc_httpd_recvdone:                    ## @isc_httpd_recvdone
	.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	$72, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -104(%rbp)
	movq	(%rsi), %r12
	movq	%r12, -88(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_ENTER
	movq	%r12, %rdi
	callq	_ISC_HTTPD_ISRECV
	movl	%eax, %edi
	callq	_INSIST
	movq	(%rbx), %rax
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	_process_request
	movq	_ISC_R_NOTFOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movslq	(%r12), %rax
	movq	_HTTP_RECVLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-1(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.5:
	movq	%rax, %rdx
	addq	64(%r12), %rdx
	movq	%rdx, -80(%rbp)
	notl	%eax
	addl	%eax, %ecx
	movl	%ecx, -72(%rbp)
	movl	20(%r12), %edi
	leaq	_isc_httpd_recvdone(%rip), %r8
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	movq	%r14, %rcx
	movq	%r12, %r9
	callq	_isc_socket_recv
	jmp	LBB0_18
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_NOTICE
	jmp	LBB0_4
LBB0_6:
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.7:
	movq	%r12, %rdi
	callq	_ISC_HTTPD_SETSEND
	leaq	24(%r12), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_isc_buffer_initnull
	leaq	-108(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_isc_time_now
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_isc_time_formathttptimestamp
	movq	56(%r12), %rax
	movl	16(%rax), %edi
	callq	_ISC_LIST_HEAD
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	52(%r12), %edi
	movl	12(%rbx), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ISC_LIST_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_11:
	movq	56(%r12), %r10
	movl	48(%r12), %esi
	movl	52(%r12), %edi
	leaq	44(%r12), %rcx
	leaq	40(%r12), %r8
	leaq	8(%r12), %r9
	leaq	36(%r12), %rbx
	leaq	32(%r12), %rax
	subq	$8, %rsp
	xorl	%edx, %edx
	pushq	%rax
	pushq	%rbx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	callq	*(%r10)
	jmp	LBB0_13
LBB0_4:
	leaq	-88(%rbp), %rdi
	callq	_destroy_client
LBB0_18:
	leaq	-104(%rbp), %rdi
	callq	_isc_event_free
	leaq	L_.str(%rip), %rdi
	callq	_EXIT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	48(%r12), %esi
	movl	52(%r12), %edi
	movl	8(%rbx), %edx
	leaq	44(%r12), %rcx
	leaq	40(%r12), %r8
	leaq	8(%r12), %r9
	leaq	36(%r12), %r10
	leaq	32(%r12), %rax
	subq	$8, %rsp
	pushq	%rax
	pushq	%r10
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	callq	*(%rbx)
LBB0_13:
	addq	$32, %rsp
	cmpq	(%r13), %rax
	je	LBB0_15
## %bb.14:
	movq	56(%r12), %r10
	movl	48(%r12), %esi
	movl	52(%r12), %edi
	leaq	44(%r12), %rcx
	leaq	40(%r12), %r8
	leaq	8(%r12), %r9
	leaq	36(%r12), %rbx
	leaq	32(%r12), %rax
	subq	$8, %rsp
	xorl	%edx, %edx
	pushq	%rax
	pushq	%rbx
	pushq	%r15
	callq	*8(%r10)
	addq	$32, %rsp
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_RUNTIME_CHECK
LBB0_15:
	movq	%r12, %rdi
	callq	_isc_httpd_response
	movq	8(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_isc_httpd_addheader
	leaq	L_.str.3(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_isc_httpd_addheader
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_isc_httpd_addheader
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_isc_httpd_addheader
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_isc_httpd_addheader
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_isc_httpd_addheader
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_isc_httpd_addheader
	movq	%r15, %rdi
	callq	_isc_buffer_usedlength
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_isc_httpd_addheaderuint
	movq	%r12, %rdi
	callq	_isc_httpd_endheaders
	leaq	16(%r12), %r13
	movl	16(%r12), %edi
	leaq	28(%r12), %rsi
	movq	%r15, %rbx
	movq	_link@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_ISC_LIST_APPEND
	movq	%rbx, %rdi
	callq	_isc_buffer_length
	testq	%rax, %rax
	jle	LBB0_17
## %bb.16:
	movl	(%r13), %edi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_ISC_LIST_APPEND
LBB0_17:
	movl	20(%r12), %edi
	movq	_isc_httpd_senddone@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %r8
	callq	_isc_socket_sendv
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv"

	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"recv destroying client"

	.comm	_ISC_R_NOTFOUND,8,3             ## @ISC_R_NOTFOUND
	.comm	_HTTP_RECVLEN,4,2               ## @HTTP_RECVLEN
	.comm	_link,4,2                       ## @link
L_.str.2:                               ## @.str.2
	.asciz	"Content-Type"

L_.str.3:                               ## @.str.3
	.asciz	"Date"

L_.str.4:                               ## @.str.4
	.asciz	"Expires"

L_.str.5:                               ## @.str.5
	.asciz	"Last-Modified"

L_.str.6:                               ## @.str.6
	.asciz	"Pragma: no-cache"

L_.str.7:                               ## @.str.7
	.asciz	"Cache-Control: no-cache"

L_.str.8:                               ## @.str.8
	.asciz	"Server: libisc"

L_.str.9:                               ## @.str.9
	.asciz	"Content-Length"

	.comm	_isc_httpd_senddone,4,2         ## @isc_httpd_senddone
	.no_dead_strip	_isc_httpd_recvdone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_httpd_recvdone
_isc_httpd_recvdone:                    ; @isc_httpd_recvdone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x1]
	stp	x19, x1, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ENTER
	mov	x0, x19
	bl	_ISC_HTTPD_ISRECV
	bl	_INSIST
	ldr	x8, [x21]
Lloh5:
	adrp	x24, _ISC_R_SUCCESS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_process_request
Lloh7:
	adrp	x8, _ISC_R_NOTFOUND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISC_R_NOTFOUND@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldrsw	x8, [x19]
Lloh10:
	adrp	x9, _HTTP_RECVLEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HTTP_RECVLEN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	sub	w10, w9, #1
	cmp	w8, w10
	b.ge	LBB0_11
; %bb.3:
	ldr	x10, [x19, #64]
	add	x10, x10, x8
	str	x10, [sp, #40]
	mvn	w8, w8
	add	w8, w9, w8
	str	w8, [sp, #48]
	ldr	w0, [x19, #20]
Lloh13:
	adrp	x4, _isc_httpd_recvdone@PAGE
Lloh14:
	add	x4, x4, _isc_httpd_recvdone@PAGEOFF
	add	x1, sp, #40
	mov	w2, #1
	mov	x3, x20
	mov	x5, x19
	bl	_isc_socket_recv
	b	LBB0_12
LBB0_4:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NOTICE
	b	LBB0_11
LBB0_5:
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_ISC_HTTPD_SETSEND
	add	x21, x19, #24
	mov	x0, x21
	bl	_isc_buffer_initnull
	add	x0, sp, #20
	bl	_isc_time_now
	add	x0, sp, #20
	add	x1, sp, #40
	mov	w2, #32
	bl	_isc_time_formathttptimestamp
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #16]
	bl	_ISC_LIST_HEAD
Lloh17:
	adrp	x23, _link@GOTPAGE
Lloh18:
	ldr	x23, [x23, _link@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #52]
	ldr	w1, [x22, #12]
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ISC_LIST_NEXT
	mov	x22, x0
	cbnz	x0, LBB0_8
LBB0_10:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	add	x3, x19, #44
	ldp	w1, w0, [x19, #48]
	add	x4, x19, #40
	add	x5, x19, #8
	add	x7, x19, #36
	add	x9, x19, #32
	str	x9, [sp]
	mov	x2, #0
	mov	x6, x21
	blr	x8
	b	LBB0_15
LBB0_11:
	add	x0, sp, #24
	bl	_destroy_client
LBB0_12:
	add	x0, sp, #32
	bl	_isc_event_free
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_EXIT
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	ldr	x8, [x22]
	add	x3, x19, #44
	add	x4, x19, #40
	ldp	w1, w0, [x19, #48]
	add	x5, x19, #8
	add	x7, x19, #36
	add	x9, x19, #32
	ldr	w2, [x22, #8]
	str	x9, [sp]
	mov	x6, x21
	blr	x8
LBB0_15:
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	add	x3, x19, #44
	ldp	w1, w0, [x19, #48]
	add	x4, x19, #40
	add	x5, x19, #8
	add	x7, x19, #36
	add	x9, x19, #32
	str	x9, [sp]
	mov	x2, #0
	mov	x6, x21
	blr	x8
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_RUNTIME_CHECK
LBB0_17:
	mov	x0, x19
	bl	_isc_httpd_response
	ldr	x2, [x19, #8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_isc_httpd_addheader
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #40
	mov	x0, x19
	bl	_isc_httpd_addheader
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #40
	mov	x0, x19
	bl	_isc_httpd_addheader
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #40
	mov	x0, x19
	bl	_isc_httpd_addheader
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_isc_httpd_addheader
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_isc_httpd_addheader
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_isc_httpd_addheader
	mov	x0, x21
	bl	_isc_buffer_usedlength
	mov	x2, x0
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_isc_httpd_addheaderuint
	mov	x0, x19
	bl	_isc_httpd_endheaders
	mov	x22, x19
	ldr	w0, [x22, #16]!
	add	x1, x22, #12
	ldr	w2, [x23]
	bl	_ISC_LIST_APPEND
	mov	x0, x21
	bl	_isc_buffer_length
	cmp	x0, #1
	b.lt	LBB0_19
; %bb.18:
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_ISC_LIST_APPEND
LBB0_19:
	ldr	w0, [x19, #20]
Lloh40:
	adrp	x8, _isc_httpd_senddone@GOTPAGE
Lloh41:
	ldr	x8, [x8, _isc_httpd_senddone@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x1, x22
	mov	x2, x20
	mov	x4, x19
	bl	_isc_socket_sendv
	b	LBB0_12
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv"

	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"recv destroying client"

	.comm	_ISC_R_NOTFOUND,8,3             ; @ISC_R_NOTFOUND
	.comm	_HTTP_RECVLEN,4,2               ; @HTTP_RECVLEN
	.comm	_link,4,2                       ; @link
l_.str.2:                               ; @.str.2
	.asciz	"Content-Type"

l_.str.3:                               ; @.str.3
	.asciz	"Date"

l_.str.4:                               ; @.str.4
	.asciz	"Expires"

l_.str.5:                               ; @.str.5
	.asciz	"Last-Modified"

l_.str.6:                               ; @.str.6
	.asciz	"Pragma: no-cache"

l_.str.7:                               ; @.str.7
	.asciz	"Cache-Control: no-cache"

l_.str.8:                               ; @.str.8
	.asciz	"Server: libisc"

l_.str.9:                               ; @.str.9
	.asciz	"Content-Length"

	.comm	_isc_httpd_senddone,4,2         ; @isc_httpd_senddone
	.no_dead_strip	_isc_httpd_recvdone
.subsections_via_symbols
