	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run
_run:                                   ## @run
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_tflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pflag@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_8
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_fprintf
	movq	%rbx, %r12
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	16(%r12), %r15
	leaq	L_.str.1(%rip), %r13
	xorl	%ebx, %ebx
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %eax
	movq	%r13, %rsi
	callq	_fprintf
	movq	(%r15), %rax
	addq	$8, %r15
	movq	%rax, %rdx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movq	_pflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r12, %rbx
	je	LBB0_7
## %bb.5:
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_prompt
	testl	%eax, %eax
	je	LBB0_21
## %bb.6:
	cmpl	$1, %eax
	je	LBB0_8
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_fprintf
	movl	(%r14), %edi
	callq	_fflush
LBB0_8:
	movq	_childerr@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	callq	_vfork
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.20:
	movl	%eax, %edi
	callq	_pids_add
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_waitchildren
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	callq	_warn
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_xexit
LBB0_11:
	movq	_oflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.14:
	movq	__PATH_DEVNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_12:
	movq	__PATH_TTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movl	$-1, %r14d
LBB0_15:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %r14d
	jle	LBB0_19
## %bb.16:
	movl	%r14d, %edi
	callq	_dup2
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_18:
	movl	%r14d, %edi
	callq	_close
LBB0_19:
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_execvp
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_tflag,8,3                      ## @tflag
	.comm	_pflag,8,3                      ## @pflag
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	" %s"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_childerr,8,3                   ## @childerr
L_.str.3:                               ## @.str.3
	.asciz	"vfork"

	.comm	_oflag,4,2                      ## @oflag
	.comm	__PATH_TTY,4,2                  ## @_PATH_TTY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.4:                               ## @.str.4
	.asciz	"can't open /dev/tty"

	.comm	__PATH_DEVNULL,4,2              ## @_PATH_DEVNULL
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
L_.str.5:                               ## @.str.5
	.asciz	"can't dup2 to stdin"

	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run
_run:                                   ; @run
	.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	x19, x0
Lloh0:
	adrp	x8, _tflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tflag@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _pflag@GOTPAGE
Lloh4:
	ldr	x22, [x22, _pflag@GOTPAGEOFF]
	ldr	x9, [x22]
	orr	x8, x8, x9
	cbz	x8, LBB0_8
; %bb.1:
Lloh5:
	adrp	x21, _stderr@GOTPAGE
Lloh6:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19]
	mov	x9, sp
	str	x8, [x9]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x9, x8
	add	x8, x19, #16
Lloh9:
	adrp	x20, l_.str.1@PAGE
Lloh10:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ldr	w0, [x21]
	mov	x8, sp
	str	x9, [x8]
	mov	x1, x20
	bl	_fprintf
	ldr	x10, [x23], #8
	mov	x9, x10
	mov	x8, x23
	cbnz	x10, LBB0_3
LBB0_4:
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.5:
	bl	_prompt
	cbz	w0, LBB0_11
; %bb.6:
	cmp	w0, #1
	b.eq	LBB0_8
LBB0_7:
	ldr	w0, [x21]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
	bl	_fflush
LBB0_8:
Lloh13:
	adrp	x8, _childerr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _childerr@GOTPAGEOFF]
Lloh15:
	str	xzr, [x8]
	bl	_vfork
	cbz	w0, LBB0_13
; %bb.9:
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.10:
	bl	_pids_add
	ldr	x0, [x19]
	mov	w1, #0
	bl	_waitchildren
LBB0_11:
	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
LBB0_12:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	ldr	x0, [x19]
	mov	w1, #1
	bl	_xexit
LBB0_13:
Lloh18:
	adrp	x8, _oflag@GOTPAGE
Lloh19:
	ldr	x8, [x8, _oflag@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.14:
Lloh21:
	adrp	x8, __PATH_DEVNULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, __PATH_DEVNULL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x8, __PATH_TTY@GOTPAGE
Lloh28:
	ldr	x8, [x8, __PATH_TTY@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_17:
Lloh35:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	cmp	w20, w1
	b.le	LBB0_21
; %bb.18:
	mov	x0, x20
	bl	_dup2
	cbz	w0, LBB0_20
; %bb.19:
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_20:
	mov	x0, x20
	bl	_close
LBB0_21:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_execvp
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x8]
Lloh43:
	adrp	x8, _childerr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _childerr@GOTPAGEOFF]
Lloh45:
	str	x9, [x8]
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_tflag,8,3                      ; @tflag
	.comm	_pflag,8,3                      ; @pflag
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	" %s"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_childerr,8,3                   ; @childerr
l_.str.3:                               ; @.str.3
	.asciz	"vfork"

	.comm	_oflag,4,2                      ; @oflag
	.comm	__PATH_TTY,4,2                  ; @_PATH_TTY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.4:                               ; @.str.4
	.asciz	"can't open /dev/tty"

	.comm	__PATH_DEVNULL,4,2              ; @_PATH_DEVNULL
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
l_.str.5:                               ; @.str.5
	.asciz	"can't dup2 to stdin"

	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_run
.subsections_via_symbols
