	.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	%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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SIGINT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, %r14d
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	cltq
	movl	$1, %r15d
	cmpq	%rbx, %rax
	jae	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_bangexp
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	__PATH_CSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r8
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	movq	%r12, %r9
	pushq	$0
	callq	_run_command
	addq	$16, %rsp
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_signal
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHELL"

	.comm	__PATH_CSHELL,8,3               ## @_PATH_CSHELL
L_.str.1:                               ## @.str.1
	.asciz	"-c"

L_str:                                  ## @str
	.asciz	"!"

.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _SIGINT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_signal
	mov	x19, x0
Lloh8:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x9, x21
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x21
	b.hs	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_bangexp
	tbnz	x0, #63, LBB0_3
; %bb.2:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_value
Lloh15:
	adrp	x8, __PATH_CSHELL@GOTPAGE
Lloh16:
	ldr	x8, [x8, __PATH_CSHELL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x0, x8, x0, eq
Lloh18:
	adrp	x4, l_.str.1@PAGE
Lloh19:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	w2, #-1
	mov	w3, #-1
	mov	x5, x20
	mov	x6, #0
	bl	_run_command
	ldr	w0, [x23]
	mov	x1, x19
	bl	_signal
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHELL"

	.comm	__PATH_CSHELL,8,3               ; @_PATH_CSHELL
l_.str.1:                               ; @.str.1
	.asciz	"-c"

l_str:                                  ; @str
	.asciz	"!"

.subsections_via_symbols
