	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xsignal
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_3
## %bb.11:
	movl	%eax, %ebx
	jle	LBB0_14
## %bb.12:
	leaq	-52(%rbp), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_wait
	cmpl	%ebx, %eax
	jne	LBB0_13
LBB0_14:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_xsignal
	xorl	%eax, %eax
	cmpl	$-1, %ebx
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_16
LBB0_1:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_UPRINTF
LBB0_16:
	movl	$-1, %eax
LBB0_17:
	movq	_code@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
LBB0_3:
	movl	$3, %edi
	callq	_closefrom
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xsignal
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_5:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rsi
	testq	%rax, %rax
	cmoveq	%r15, %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_strlcpy
	movq	_ftp_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_ttyout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_fputs
	movl	(%rbx), %esi
	movl	$10, %edi
	callq	_putc
LBB0_7:
	cmpl	$2, %r12d
	jl	LBB0_9
## %bb.8:
	movq	_altarg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_execl
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_execl
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_warn
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s [command [args]]\n"

	.comm	_code,4,2                       ## @code
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
L_.str.1:                               ## @.str.1
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ## @_PATH_BSHELL
	.comm	_ftp_debug,8,3                  ## @ftp_debug
	.comm	_ttyout,4,2                     ## @ttyout
L_.str.2:                               ## @.str.2
	.asciz	"-c"

	.comm	_altarg,4,2                     ## @altarg
L_.str.3:                               ## @.str.3
	.asciz	"Can't execute `%s'"

L_.str.4:                               ## @.str.4
	.asciz	"Can't fork a subshell; try again later"

.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	x20, 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	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	cbz	w0, LBB0_6
; %bb.1:
Lloh8:
	adrp	x24, _SIGINT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh10:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_xsignal
	mov	x22, x0
	bl	_fork
	cbz	w0, LBB0_12
; %bb.2:
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #60
	bl	_wait
	cmp	w0, w23
	b.ne	LBB0_3
LBB0_4:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_xsignal
	cmn	w23, #1
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #0
	b	LBB0_9
LBB0_6:
	ldr	x1, [x1]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UPRINTF
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
LBB0_8:
	mov	w8, #-1
LBB0_9:
Lloh17:
	adrp	x9, _code@GOTPAGE
Lloh18:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
LBB0_12:
	mov	w0, #3
	bl	_closefrom
	ldr	w0, [x24]
Lloh23:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_xsignal
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh28:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh29:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x22, x8, x0, eq
	mov	x0, x22
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x1, x22, x0, eq
	mov	x0, x19
	mov	x2, x21
	bl	_strlcpy
Lloh31:
	adrp	x8, _ftp_debug@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ftp_debug@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh34:
	adrp	x21, _ttyout@GOTPAGE
Lloh35:
	ldr	x21, [x21, _ttyout@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_fputs
	ldr	w1, [x21]
	mov	w0, #10
	bl	_putc
LBB0_14:
	cmp	w20, #2
	b.lt	LBB0_16
; %bb.15:
Lloh36:
	adrp	x8, _altarg@GOTPAGE
Lloh37:
	ldr	x8, [x8, _altarg@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	stp	x8, xzr, [sp, #-16]!
Lloh39:
	adrp	x2, l_.str.2@PAGE
Lloh40:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	bl	_execl
	add	sp, sp, #16
	b	LBB0_17
LBB0_16:
	mov	x0, x22
	mov	x1, x19
	mov	x2, #0
	bl	_execl
LBB0_17:
	str	x22, [sp, #-16]!
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	add	sp, sp, #16
Lloh43:
	adrp	x8, _code@GOTPAGE
Lloh44:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh45:
	str	w9, [x8]
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s [command [args]]\n"

	.comm	_code,4,2                       ; @code
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
l_.str.1:                               ; @.str.1
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
	.comm	_ftp_debug,8,3                  ; @ftp_debug
	.comm	_ttyout,4,2                     ; @ttyout
l_.str.2:                               ; @.str.2
	.asciz	"-c"

	.comm	_altarg,4,2                     ; @altarg
l_.str.3:                               ; @.str.3
	.asciz	"Can't execute `%s'"

l_.str.4:                               ; @.str.4
	.asciz	"Can't fork a subshell; try again later"

.subsections_via_symbols
