	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_read_command
_test_read_command:                     ## @test_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	l___const.test_read_command.argv+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.test_read_command.argv(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_h2o_read_command
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movl	-68(%rbp), %edi
	callq	_WIFEXITED
	movl	%eax, %edi
	callq	_ok
	movl	-68(%rbp), %edi
	callq	_WEXITSTATUS
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-80(%rbp), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_h2o_memis
	movl	%eax, %edi
	callq	_ok
	leaq	-80(%rbp), %rdi
	callq	_h2o_buffer_dispose
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %r14d
	movl	$1, %edx
	callq	_setenv
	movq	-64(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_h2o_read_command
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movl	-68(%rbp), %edi
	callq	_WIFEXITED
	movl	%eax, %edi
	callq	_ok
	movl	-68(%rbp), %edi
	callq	_WEXITSTATUS
	xorl	%edi, %edi
	cmpl	$75, %eax
	sete	%dil
	callq	_ok
	movq	-80(%rbp), %rax
	movl	(%rax), %r15d
	movl	4(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_h2o_memis
	movl	%eax, %edi
	callq	_ok
	leaq	-80(%rbp), %rdi
	callq	_h2o_buffer_dispose
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_unsetenv
	leaq	L_.str.4(%rip), %rdi
	movq	%rdi, -64(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_h2o_read_command
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	-68(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	-68(%rbp), %edi
	callq	_WEXITSTATUS
	xorl	%r14d, %r14d
	cmpl	$127, %eax
	sete	%r14b
	jmp	LBB0_8
LBB0_6:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %edi
	callq	_ok
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"t/00unit/assets/read_command.pl"

L_.str.1:                               ## @.str.1
	.asciz	"hello"

	.section	__DATA,__const
	.p2align	4                               ## @__const.test_read_command.argv
l___const.test_read_command.argv:
	.quad	L_.str
	.quad	L_.str.1
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"READ_COMMAND_EXIT_STATUS"

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

L_.str.4:                               ## @.str.4
	.asciz	"t/00unit/assets"

	.no_dead_strip	_test_read_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_read_command
_test_read_command:                     ; @test_read_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, l___const.test_read_command.argv@PAGE
Lloh4:
	add	x8, x8, l___const.test_read_command.argv@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_h2o_read_command
	mov	x19, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	cbnz	w19, LBB0_2
; %bb.1:
	ldr	w0, [sp, #4]
	bl	_WIFEXITED
	bl	_ok
	ldr	w0, [sp, #4]
	bl	_WEXITSTATUS
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #8]
	ldp	w20, w19, [x8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_h2o_memis
	bl	_ok
	add	x0, sp, #8
	bl	_h2o_buffer_dispose
LBB0_2:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_setenv
	ldr	x0, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_h2o_read_command
	mov	x19, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	cbnz	w19, LBB0_4
; %bb.3:
	ldr	w0, [sp, #4]
	bl	_WIFEXITED
	bl	_ok
	ldr	w0, [sp, #4]
	bl	_WEXITSTATUS
	cmp	w0, #75
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #8]
	ldp	w20, w19, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_h2o_memis
	bl	_ok
	add	x0, sp, #8
	bl	_h2o_buffer_dispose
LBB0_4:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_unsetenv
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	str	x0, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_h2o_read_command
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	ldr	w0, [sp, #4]
	bl	_WIFEXITED
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [sp, #4]
	bl	_WEXITSTATUS
	cmp	w0, #127
	cset	w0, eq
LBB0_8:
	bl	_ok
	ldur	x8, [x29, #-24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"t/00unit/assets/read_command.pl"

l_.str.1:                               ; @.str.1
	.asciz	"hello"

	.section	__DATA,__const
	.p2align	3                               ; @__const.test_read_command.argv
l___const.test_read_command.argv:
	.quad	l_.str
	.quad	l_.str.1
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"READ_COMMAND_EXIT_STATUS"

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

l_.str.4:                               ; @.str.4
	.asciz	"t/00unit/assets"

	.no_dead_strip	_test_read_command
.subsections_via_symbols
