	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_read_command               ## -- Begin function h2o_read_command
	.p2align	4, 0x90
_h2o_read_command:                      ## @h2o_read_command
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$-1, -72(%rbp)
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	movq	%rdx, %rdi
	callq	_h2o_buffer_init
	movq	_cloexec_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	leaq	-72(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	je	LBB0_1
LBB0_13:
	movq	_cloexec_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movl	$-1, %r14d
LBB0_14:
	movl	-72(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_16
## %bb.15:
	callq	_close
LBB0_16:
	movl	-68(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_18
## %bb.17:
	callq	_close
LBB0_18:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:
	movq	%r13, %rdi
	callq	_h2o_buffer_dispose
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-72(%rbp), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	testq	%rax, %rax
	js	LBB0_13
## %bb.2:
	movl	-68(%rbp), %eax
	movl	%eax, -60(%rbp)
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, -56(%rbp)
	leaq	-60(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_h2o_spawnp
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.3:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	-68(%rbp), %edi
	callq	_close
	movl	$-1, -68(%rbp)
	movq	_cloexec_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r13, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	callq	_h2o_buffer_reserve
	movq	%rax, %r12
	movq	%rax, %rbx
	shrq	$32, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-72(%rbp), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r15), %rcx
	cmpq	%rcx, (%r14)
	je	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	addl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_8:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rcx
	cmpq	%rcx, (%r14)
	je	LBB0_9
LBB0_11:
	xorl	%r14d, %r14d
	cmpl	%r12d, %eax
	setne	%r14b
	negl	%r14d
	jmp	LBB0_14
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
	.comm	_cloexec_mutex,4,2              ## @cloexec_mutex
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function h2o_read_command
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_h2o_read_command
	.p2align	2
_h2o_read_command:                      ; @h2o_read_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x8, #-1
	str	x8, [sp]
Lloh3:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh4:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	mov	x0, x2
	bl	_h2o_buffer_init
Lloh5:
	adrp	x0, _cloexec_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _cloexec_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	mov	x0, sp
	bl	_pipe
	cbz	x0, LBB0_10
LBB0_1:
Lloh7:
	adrp	x0, _cloexec_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _cloexec_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	w20, #-1
LBB0_2:
	ldr	w0, [sp]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_close
LBB0_4:
	ldr	w0, [sp, #4]
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	bl	_close
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_h2o_buffer_dispose
LBB0_8:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	ldr	w0, [sp]
Lloh12:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_fcntl
	tbnz	x0, #63, LBB0_1
; %bb.11:
	ldr	w8, [sp, #4]
	str	w8, [sp, #12]
Lloh18:
	adrp	x8, lCPI0_0@PAGE
Lloh19:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #16]
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w3, #1
	bl	_h2o_spawnp
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.12:
	mov	x21, x0
	ldr	w0, [sp, #4]
	bl	_close
	mov	w8, #-1
	str	w8, [sp, #4]
Lloh20:
	adrp	x0, _cloexec_mutex@GOTPAGE
Lloh21:
	ldr	x0, [x0, _cloexec_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
Lloh22:
	adrp	x24, _errno@GOTPAGE
Lloh23:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh24:
	adrp	x25, _EINTR@GOTPAGE
Lloh25:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x19
	mov	w1, #8192
	bl	_h2o_buffer_reserve
	mov	x22, x0
	lsr	x23, x0, #32
LBB0_14:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [sp]
	mov	x1, x23
	mov	x2, x22
	bl	_read
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w0, #0
	b.le	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_17
LBB0_19:
	cmp	w0, w21
	csetm	w20, ne
	b	LBB0_2
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
	.comm	_cloexec_mutex,4,2              ; @cloexec_mutex
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
