	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shell                          ## -- Begin function shell
	.p2align	4, 0x90
_shell:                                 ## @shell
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_SIGINT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGQUIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_signal
	xorl	%eax, %eax
	callq	_unraw
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	-36(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_wait
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_raw
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movl	(%r15), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_signal
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SHELL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_value
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	callq	_value
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_6:
	movq	%rax, %rbx
	incq	%rbx
LBB0_7:
	xorl	%eax, %eax
	callq	_shell_uid
	movl	(%r14), %edi
	callq	_value
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_execl
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SHELL,4,2                      ## @SHELL
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"[sh]\r"

L_str.3:                                ## @str.3
	.asciz	"\r\ncan't execl!\r"

L_str.4:                                ## @str.4
	.asciz	"\r\n!\r"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shell                          ; -- Begin function shell
	.p2align	2
_shell:                                 ; @shell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x20, _SIGINT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x19, _SIG_IGN@GOTPAGE
Lloh5:
	ldr	x19, [x19, _SIG_IGN@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
Lloh6:
	adrp	x21, _SIGQUIT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SIGQUIT@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_signal
	bl	_unraw
	bl	_fork
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_wait
	cmp	x19, x0
	b.ne	LBB0_2
; %bb.3:
	bl	_raw
Lloh8:
	adrp	x0, l_str.4@PAGE
Lloh9:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	ldr	w0, [x20]
Lloh10:
	adrp	x19, _SIG_DFL@GOTPAGE
Lloh11:
	ldr	x19, [x19, _SIG_DFL@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_signal
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w0, [x21]
Lloh12:
	adrp	x19, _SIG_DFL@GOTPAGE
Lloh13:
	ldr	x19, [x19, _SIG_DFL@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
	ldr	w0, [x20]
	ldr	w1, [x19]
	bl	_signal
Lloh14:
	adrp	x20, _SHELL@GOTPAGE
Lloh15:
	ldr	x20, [x20, _SHELL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_value
	mov	w1, #47
	bl	_strrchr
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	bl	_value
	mov	x19, x0
	b	LBB0_7
LBB0_6:
	add	x19, x0, #1
LBB0_7:
	bl	_shell_uid
	ldr	w0, [x20]
	bl	_value
	mov	x1, x19
	mov	x2, #0
	bl	_execl
Lloh16:
	adrp	x0, l_str.3@PAGE
Lloh17:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SHELL,4,2                      ; @SHELL
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"[sh]\r"

l_str.3:                                ; @str.3
	.asciz	"\r\ncan't execl!\r"

l_str.4:                                ; @str.4
	.asciz	"\r\n!\r"

.subsections_via_symbols
