	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_create                    ## -- Begin function proc_create
	.p2align	4, 0x90
_proc_create:                           ## @proc_create
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elf_version
	movq	_EV_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -64(%rbp)
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.3:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movq	_WUNTRACED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rsi
	movl	%r15d, %edi
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.5:
	movl	-52(%rbp), %edi
	callq	_WIFSTOPPED
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	_PS_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_proc_init
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movl	%eax, %r14d
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	callq	_proc_free
	xorl	%edi, %edi
LBB0_9:
	movl	%r14d, %ebx
	jmp	LBB0_15
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DPRINTF
	jmp	LBB0_13
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-52(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DPRINTFX
LBB0_13:
	xorl	%edi, %edi
LBB0_14:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_15:
	movq	%rdi, (%r15)
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_PS_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rdi
	movl	%eax, (%rdi)
	jmp	LBB0_14
LBB0_18:
	movq	_PT_TRACE_ME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	jne	LBB0_24
## %bb.19:
	testq	%r12, %r12
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	*(%r12)
LBB0_21:
	testq	%r13, %r13
	je	LBB0_23
## %bb.22:
	movq	_environ@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
LBB0_23:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_execvp
	movl	$2, %edi
	callq	__exit
LBB0_24:
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
	.comm	_EV_NONE,8,3                    ## @EV_NONE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,4,2                      ## @errno
	.comm	_PT_TRACE_ME,4,2                ## @PT_TRACE_ME
	.comm	_environ,8,3                    ## @environ
	.comm	_WUNTRACED,4,2                  ## @WUNTRACED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: child process %d didn't stop as expected"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: child process %d status 0x%x"

	.comm	_PS_IDLE,4,2                    ## @PS_IDLE
	.comm	_PS_STOP,4,2                    ## @PS_STOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_create                    ; -- Begin function proc_create
	.p2align	2
_proc_create:                           ; @proc_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.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	x19, x5
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_elf_version
Lloh3:
	adrp	x8, _EV_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_2:
	str	xzr, [sp, #8]
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:
	mov	x23, x0
	cbz	w0, LBB0_16
; %bb.4:
Lloh9:
	adrp	x8, _WUNTRACED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WUNTRACED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x1, sp, #4
	mov	x0, x23
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:
	ldr	w0, [sp, #4]
	bl	_WIFSTOPPED
	cbz	w0, LBB0_11
; %bb.6:
Lloh12:
	adrp	x8, _PS_IDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PS_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x23
	mov	w1, #0
	bl	_proc_init
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.7:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.8:
	bl	_proc_free
	b	LBB0_12
LBB0_9:
	mov	x0, #0
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_10:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_DPRINTF
	b	LBB0_12
LBB0_11:
Lloh23:
	adrp	x8, _ENOENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	ldr	w2, [sp, #4]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_DPRINTFX
LBB0_12:
	mov	x0, #0
LBB0_13:
	str	x0, [x19]
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
Lloh28:
	adrp	x8, _PS_STOP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PS_STOP@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	x0, [sp, #8]
	str	w8, [x0]
	b	LBB0_13
LBB0_16:
Lloh31:
	adrp	x8, _PT_TRACE_ME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PT_TRACE_ME@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_ptrace
	cbnz	x0, LBB0_22
; %bb.17:
	cbz	x25, LBB0_19
; %bb.18:
	ldr	x8, [x25]
	mov	x0, x24
	blr	x8
LBB0_19:
	cbz	x22, LBB0_21
; %bb.20:
Lloh34:
	adrp	x8, _environ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh36:
	str	x22, [x8]
LBB0_21:
	mov	x0, x21
	mov	x1, x20
	bl	_execvp
	mov	w0, #2
	bl	__exit
LBB0_22:
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
	.comm	_EV_NONE,8,3                    ; @EV_NONE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,4,2                      ; @errno
	.comm	_PT_TRACE_ME,4,2                ; @PT_TRACE_ME
	.comm	_environ,8,3                    ; @environ
	.comm	_WUNTRACED,4,2                  ; @WUNTRACED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: child process %d didn't stop as expected"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: child process %d status 0x%x"

	.comm	_PS_IDLE,4,2                    ; @PS_IDLE
	.comm	_PS_STOP,4,2                    ; @PS_STOP
.subsections_via_symbols
