	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_stdin_record
_handle_stdin_record:                   ## @handle_stdin_record
	.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	$440, %rsp                      ## imm = 0x1B8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rdx
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r13
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.2:
	movq	_FCGI_RECORD_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_append_content
	testq	%rax, %rax
	je	LBB0_20
LBB0_3:
	movq	16(%r13), %rdi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	callq	_h2o_req_log_error
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_5:
	movq	%rsi, %r15
	movq	$100, -456(%rbp)
	leaq	8(%r13), %r12
	movq	8(%r13), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	movq	%r12, -472(%rbp)                ## 8-byte Spill
	movq	%r14, -464(%rbp)                ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	%rdx, %rsi
	callq	_h2o_buffer_reserve
	movq	_FCGI_RECORD_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	(%r15), %rdx
	movl	%eax, %edi
	callq	_memcpy
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movq	(%r12), %rax
	movq	%rsi, (%rax)
	movq	8(%rax), %rdi
	leaq	-448(%rbp), %rdx
	leaq	-456(%rbp), %rcx
	movq	%rbx, %r8
	jmp	LBB0_8
LBB0_6:
	movq	_FCGI_RECORD_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	leaq	-448(%rbp), %rax
	leaq	-456(%rbp), %rcx
	movq	%rdx, %rsi
	movq	%rax, %rdx
	xorl	%r8d, %r8d
LBB0_8:
	callq	_phr_parse_headers
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.13:
	movq	16(%r13), %rdi
	movq	-456(%rbp), %rdx
	leaq	-448(%rbp), %rsi
	callq	_fill_headers
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_9:
	cmpl	$-2, %ebx
	jne	LBB0_12
## %bb.10:
	movq	-472(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_19
## %bb.11:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_h2o_buffer_reserve
	movq	_FCGI_RECORD_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	-464(%rbp), %rcx                ## 8-byte Reload
	addq	(%rcx), %rsi
	movq	(%r15), %rdx
	movl	%eax, %edi
	callq	_memcpy
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_19
LBB0_15:
	movq	16(%r13), %rdi
	movl	(%rdi), %eax
	movl	%eax, 28(%r13)
	leaq	24(%r13), %rsi
	callq	_h2o_start_response
	movl	$1, (%r13)
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.18:
	movq	-472(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_h2o_buffer_consume
	jmp	LBB0_19
LBB0_12:
	movq	16(%r13), %rdi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_16:
	movq	(%r15), %rdx
	movl	%ebx, %esi
	subq	%rsi, %rdx
	jne	LBB0_17
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	addq	$440, %rsp                      ## imm = 0x1B8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_FCGI_RECORD_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	-464(%rbp), %rcx                ## 8-byte Reload
	addq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_append_content
	testq	%rax, %rax
	movl	$0, %ebx
	jne	LBB0_3
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FCGI_RECORD_HEADER_SIZE,8,3    ## @FCGI_RECORD_HEADER_SIZE
	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate memory"

L_.str.1:                               ## @.str.1
	.asciz	"received broken response"

	.no_dead_strip	_handle_stdin_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_stdin_record
_handle_stdin_record:                   ; @handle_stdin_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x1]
	cbz	x8, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #32]
	ldr	x23, [x9]
	ldr	w9, [x0]
	cbz	w9, LBB0_5
; %bb.2:
	ldr	x9, [x23]
Lloh3:
	adrp	x10, _FCGI_RECORD_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FCGI_RECORD_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x19
	mov	x2, x8
	bl	_append_content
	cbz	x0, LBB0_19
LBB0_3:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
LBB0_4:
	bl	_h2o_req_log_error
	mov	w0, #-1
	b	LBB0_19
LBB0_5:
	mov	x20, x1
	mov	w9, #100
	str	x9, [sp]
	mov	x21, x19
	ldr	x9, [x21, #8]!
	ldr	x22, [x9]
	cbz	x22, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x8
	bl	_h2o_buffer_reserve
	ldr	x8, [x23]
Lloh11:
	adrp	x9, _FCGI_RECORD_HEADER_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FCGI_RECORD_HEADER_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	x2, [x20]
	bl	_memcpy
	ldr	x8, [x20]
	add	x1, x8, x22
	ldr	x8, [x21]
	str	x1, [x8]
	ldr	x0, [x8, #8]
	add	x2, sp, #8
	mov	x3, sp
	mov	x4, x22
	b	LBB0_8
LBB0_7:
	ldr	x9, [x23]
Lloh14:
	adrp	x10, _FCGI_RECORD_HEADER_SIZE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FCGI_RECORD_HEADER_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x0, x10, x9
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x8
	mov	x4, #0
LBB0_8:
	bl	_phr_parse_headers
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	x0, [x19, #16]
	ldr	x2, [sp]
	add	x1, sp, #8
	bl	_fill_headers
	cbz	x0, LBB0_14
; %bb.10:
	mov	w0, #-1
	b	LBB0_19
LBB0_11:
	cmn	w22, #2
	b.ne	LBB0_16
; %bb.12:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
; %bb.13:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_h2o_buffer_reserve
	ldr	x8, [x23]
Lloh17:
	adrp	x9, _FCGI_RECORD_HEADER_SIZE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FCGI_RECORD_HEADER_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	x2, [x20]
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x9, [x21]
	str	x8, [x9]
	b	LBB0_19
LBB0_14:
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	str	w8, [x19, #28]
	add	x1, x19, #24
	bl	_h2o_start_response
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.15:
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_buffer_consume
	b	LBB0_18
LBB0_16:
	ldr	x0, [x19, #16]
Lloh20:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_17:
	ldr	x9, [x20]
	mov	w8, w22
	subs	x2, x9, x8
	b.ne	LBB0_21
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_21:
	ldr	x9, [x23]
Lloh28:
	adrp	x10, _FCGI_RECORD_HEADER_SIZE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _FCGI_RECORD_HEADER_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	mov	x0, x19
	bl	_append_content
	cbnz	x0, LBB0_3
	b	LBB0_19
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FCGI_RECORD_HEADER_SIZE,8,3    ; @FCGI_RECORD_HEADER_SIZE
	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate memory"

l_.str.1:                               ; @.str.1
	.asciz	"received broken response"

	.no_dead_strip	_handle_stdin_record
.subsections_via_symbols
