	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_posix_spawn
_do_posix_spawn:                        ## @do_posix_spawn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rbp), %eax
	movq	%rsi, -72(%rbp)
	movq	%rdx, -24(%rbp)
	movq	%rcx, -32(%rbp)
	movq	%r8, -64(%rbp)
	movq	%r9, -56(%rbp)
	movl	%eax, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	_RFSPAWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rfork
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %edi
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	movq	%rcx, %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.3:
	callq	_vfork
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %edi
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	jmp	LBB0_12
LBB0_6:
	leaq	-72(%rbp), %rdi
	callq	__posix_spawn_thr
	xorl	%edi, %edi
LBB0_7:
	cmpq	$0, -40(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	movl	%eax, %esi
	callq	__waitpid
	movq	-40(%rbp), %rax
	jmp	LBB0_12
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movl	%edi, (%rbx)
LBB0_11:
	xorl	%eax, %eax
                                        ## kill: def $rax killed $eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFSPAWN,4,2                    ## @RFSPAWN
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__RFORK_THREAD_STACK_SIZE,4,2   ## @_RFORK_THREAD_STACK_SIZE
	.no_dead_strip	_do_posix_spawn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_posix_spawn
_do_posix_spawn:                        ; @do_posix_spawn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	x3, x2, [sp, #48]
	stp	x1, x4, [sp, #8]
	str	x5, [sp, #24]
	str	w6, [sp, #32]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _RFSPAWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFSPAWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rfork
	cbz	w0, LBB0_6
; %bb.1:
	mov	x8, x0
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x20, _errno@GOTPAGE
Lloh4:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	x0, x8
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.3:
	bl	_vfork
	cbz	w0, LBB0_6
; %bb.4:
	mov	x8, x0
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [x20]
	b	LBB0_12
LBB0_6:
	add	x0, sp, #8
	bl	__posix_spawn_thr
	mov	w0, #0
	mov	w8, #0
LBB0_7:
	mov	x0, x8
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _WNOHANG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WNOHANG@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, #0
	bl	__waitpid
	ldr	x0, [sp, #40]
	b	LBB0_12
LBB0_9:
	cbz	x19, LBB0_11
; %bb.10:
	mov	x1, #0
	str	w0, [x19]
LBB0_11:
	mov	x0, #0
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RFSPAWN,4,2                    ; @RFSPAWN
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__RFORK_THREAD_STACK_SIZE,4,2   ; @_RFORK_THREAD_STACK_SIZE
	.no_dead_strip	_do_posix_spawn
.subsections_via_symbols
