	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_ls
_cmd_ls:                                ## @cmd_ls
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	incq	%rax
	movq	%rax, %rdi
	callq	_r_str_trim_ro
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movsbl	(%rbx), %ecx
	cmpl	$101, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$63, %ecx
	jne	LBB0_9
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_13
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_r_core_cmdf
	jmp	LBB0_13
LBB0_9:
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rbx
	cmovneq	%rax, %rbx
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_r_fs_check
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_r_core_cmdf
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_r_syscmd_ls
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_r_cons_print
	movq	%rbx, %rdi
	callq	_free
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: l[es] # ls to list files, le[ss] to less a file\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Usage: less [file]\n"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"md %s"

	.no_dead_strip	_cmd_ls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_ls
_cmd_ls:                                ; @cmd_ls
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x0, #1
	bl	_r_str_trim_ro
	mov	x2, x0
	b	LBB0_3
LBB0_2:
	mov	x2, #0
LBB0_3:
	ldrsb	w8, [x20]
	cmp	w8, #101
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #63
	b.ne	LBB0_8
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	b	LBB0_13
LBB0_6:
	cbz	x2, LBB0_10
; %bb.7:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_r_core_cmdf
	b	LBB0_13
LBB0_8:
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x2, #0
	csel	x20, x8, x2, eq
	ldr	w0, [x19]
	mov	x1, x20
	bl	_r_fs_check
	cbz	w0, LBB0_11
; %bb.9:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_r_core_cmdf
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_r_syscmd_ls
	cbz	x0, LBB0_13
; %bb.12:
	mov	x19, x0
	bl	_r_cons_print
	mov	x0, x19
	bl	_free
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: l[es] # ls to list files, le[ss] to less a file\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Usage: less [file]\n"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"md %s"

	.no_dead_strip	_cmd_ls
.subsections_via_symbols
