	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_spawnp                     ## -- Begin function h2o_spawnp
	.p2align	4, 0x90
_h2o_spawnp:                            ## @h2o_spawnp
	.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
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_build_spawn_env
	movq	%rax, %r13
	leaq	-44(%rbp), %rdi
	callq	_posix_spawn_file_actions_init
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_6
## %bb.2:
	addq	$8, %rbx
	leaq	-44(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_posix_spawn_file_actions_addclose
	movl	(%rbx), %esi
	addq	$8, %rbx
	cmpl	$-1, %esi
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx), %edx
	cmpl	$-1, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_posix_spawn_file_actions_adddup2
	movl	-8(%rbx), %esi
	jmp	LBB0_5
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.10:
	movq	%r13, %r9
	testq	%r13, %r13
	jne	LBB0_12
## %bb.11:
	movq	_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
LBB0_12:
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_posix_spawnp
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_13
LBB0_7:
	movq	_cloexec_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movq	%r13, %r9
	testq	%r13, %r13
	jne	LBB0_9
## %bb.8:
	movq	_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
LBB0_9:
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_posix_spawnp
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
LBB0_13:
	movq	%r13, %rdi
	callq	_free
	movq	_errno@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %eax
	sbbl	%eax, %eax
	orl	-48(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cloexec_mutex,4,2              ## @cloexec_mutex
	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_spawnp                     ; -- Begin function h2o_spawnp
	.p2align	2
_h2o_spawnp:                            ; @h2o_spawnp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_build_spawn_env
	mov	x19, x0
	add	x0, sp, #12
	bl	_posix_spawn_file_actions_init
	cbz	x23, LBB0_6
; %bb.1:
	ldr	w1, [x23]
	cmn	w1, #1
	b.eq	LBB0_6
; %bb.2:
	add	x23, x23, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_posix_spawn_file_actions_addclose
	ldr	w1, [x23], #8
	cmn	w1, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w2, [x23, #-4]
	cmn	w2, #1
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_posix_spawn_file_actions_adddup2
	ldur	w1, [x23, #-8]
	b	LBB0_3
LBB0_6:
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cbz	w22, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _environ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x5, x8, x19, eq
	add	x0, sp, #8
	add	x2, sp, #12
	mov	x1, x21
	mov	x3, #0
	mov	x4, x20
	bl	_posix_spawnp
	str	w0, [x23]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x22, _cloexec_mutex@GOTPAGE
Lloh6:
	ldr	x22, [x22, _cloexec_mutex@GOTPAGEOFF]
	mov	x0, x22
	bl	_pthread_mutex_lock
Lloh7:
	adrp	x8, _environ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x5, x8, x19, eq
	add	x0, sp, #8
	add	x2, sp, #12
	mov	x1, x21
	mov	x3, #0
	mov	x4, x20
	bl	_posix_spawnp
	str	w0, [x23]
	mov	x0, x22
	bl	_pthread_mutex_unlock
LBB0_9:
	mov	x0, x19
	bl	_free
	ldr	w8, [x23]
	ldr	w9, [sp, #8]
	cmp	w8, #0
	csinv	w0, w9, wzr, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cloexec_mutex,4,2              ; @cloexec_mutex
	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
.subsections_via_symbols
