	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_read
_on_read:                               ## @on_read
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movl	(%r14), %r13d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.9:
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.10:
	movl	32(%r14), %edi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_h2o_req_log_error
LBB0_11:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errorclose                     ## TAILCALL
LBB0_1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_FCGI_RECORD_HEADER_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	callq	_handle_stdin_record
	testl	%eax, %eax
	jne	LBB0_25
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_h2o_buffer_consume
	movq	(%r15), %rax
	movq	(%rax), %rcx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r12), %rcx
	jb	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_decode_header
	movq	(%r12), %r8
	movq	-64(%rbp), %rcx
	leaq	(%rcx,%r8), %rbx
	addq	-56(%rbp), %rbx
	movq	(%r15), %rdx
	cmpq	%rbx, (%rdx)
	jb	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r14), %edi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	8(%rdx), %rax
	addq	%rax, %r8
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_h2o_req_log_error
	jmp	LBB0_14
LBB0_15:
	cmpl	$0, (%r14)
	je	LBB0_21
## %bb.16:
	testl	%r13d, %r13d
	jne	LBB0_19
## %bb.17:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
LBB0_19:
	cmpl	$0, 16(%r14)
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_do_send
	jmp	LBB0_21
LBB0_6:
	cmpl	$130, %eax
	jne	LBB0_27
## %bb.7:
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.22:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_h2o_buffer_consume
	movl	$1, %r12d
	jmp	LBB0_23
LBB0_27:
	movl	32(%r14), %edi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r12d, %r12d
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_h2o_req_log_error
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_h2o_buffer_consume
	cmpl	$0, (%r14)
	je	LBB0_25
LBB0_23:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_send_eos_and_close
	jmp	LBB0_26
LBB0_18:
	leaq	16(%r14), %rdi
	callq	_h2o_doublebuffer_prepare_empty
	movl	32(%r14), %edi
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_h2o_send
LBB0_21:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	_on_rw_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_set_timeout
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	32(%r14), %edi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_h2o_req_log_error
LBB0_25:
	movq	%r14, %rdi
	callq	_errorclose
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fastcgi connection closed unexpectedly"

	.comm	_FCGI_RECORD_HEADER_SIZE,8,3    ## @FCGI_RECORD_HEADER_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%.*s"

L_.str.2:                               ## @.str.2
	.asciz	"received FCGI_END_REQUEST before end of the headers"

L_.str.3:                               ## @.str.3
	.asciz	"received unexpected record, type: %u"

	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ## @H2O_SEND_STATE_IN_PROGRESS
	.comm	_on_rw_timeout,4,2              ## @on_rw_timeout
	.no_dead_strip	_on_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_read
_on_read:                               ; @on_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x0, #8]
	ldr	w23, [x19]
	cbz	x1, LBB0_4
; %bb.1:
	cbnz	w23, LBB0_3
; %bb.2:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_h2o_req_log_error
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_errorclose
LBB0_4:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh5:
	adrp	x25, _FCGI_RECORD_HEADER_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FCGI_RECORD_HEADER_SIZE@GOTPAGEOFF]
	ldr	x10, [x25]
	cmp	x9, x10
	b.hs	LBB0_10
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_25
; %bb.6:
	cbnz	w23, LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_24
LBB0_8:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_25
; %bb.9:
	mov	x0, x19
	bl	_do_send
	b	LBB0_25
LBB0_10:
Lloh7:
	adrp	x24, _MODULE_NAME@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MODULE_NAME@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x1, sp, #24
	mov	x0, x19
	bl	_handle_stdin_record
	cbnz	w0, LBB0_28
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_h2o_buffer_consume
	ldr	x8, [x20]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.lo	LBB0_5
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x8, #8]
	add	x0, sp, #24
	bl	_decode_header
	ldr	x9, [x25]
	ldp	x8, x10, [sp, #24]
	add	x11, x8, x9
	add	x21, x11, x10
	ldr	x10, [x20]
	ldr	x11, [x10]
	cmp	x11, x21
	b.lo	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w11, [sp, #40]
	cmp	w11, #128
	b.eq	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w11, #129
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	x8, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x19, #32]
	ldr	w1, [x24]
	ldrsw	x10, [x10, #8]
	add	x9, x9, x10
	stp	x8, x9, [sp]
	mov	x2, x22
	bl	_h2o_req_log_error
	b	LBB0_12
LBB0_18:
	cmp	w11, #130
	b.ne	LBB0_21
; %bb.19:
	ldr	w8, [x19]
	cbz	w8, LBB0_27
; %bb.20:
	mov	x0, x20
	mov	x1, x21
	bl	_h2o_buffer_consume
	mov	w1, #1
	b	LBB0_23
LBB0_21:
	ldr	w0, [x19, #32]
	ldr	w1, [x24]
	str	x11, [sp]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_h2o_req_log_error
	mov	x0, x20
	mov	x1, x21
	bl	_h2o_buffer_consume
	ldr	w8, [x19]
	cbz	w8, LBB0_28
; %bb.22:
	mov	w1, #0
LBB0_23:
	mov	x0, x19
	bl	_send_eos_and_close
	b	LBB0_26
LBB0_24:
	add	x0, x19, #16
	bl	_h2o_doublebuffer_prepare_empty
	ldr	w0, [x19, #32]
Lloh13:
	adrp	x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x1, #0
	mov	w2, #0
	bl	_h2o_send
LBB0_25:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _on_rw_timeout@GOTPAGE
Lloh17:
	ldr	x8, [x8, _on_rw_timeout@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_set_timeout
LBB0_26:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
	ldr	w0, [x19, #32]
	ldr	w1, [x24]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_h2o_req_log_error
LBB0_28:
	mov	x0, x19
	bl	_errorclose
	b	LBB0_26
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fastcgi connection closed unexpectedly"

	.comm	_FCGI_RECORD_HEADER_SIZE,8,3    ; @FCGI_RECORD_HEADER_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%.*s"

l_.str.2:                               ; @.str.2
	.asciz	"received FCGI_END_REQUEST before end of the headers"

l_.str.3:                               ; @.str.3
	.asciz	"received unexpected record, type: %u"

	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ; @H2O_SEND_STATE_IN_PROGRESS
	.comm	_on_rw_timeout,4,2              ; @on_rw_timeout
	.no_dead_strip	_on_read
.subsections_via_symbols
