	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_ls
_command_ls:                            ## @command_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -212(%rbp)                ## 4-byte Spill
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_optreset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movb	$1, %cl
	xorl	%edx, %edx
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_getopt
	xorl	%ecx, %ecx
	movb	$1, %dl
	cmpl	$108, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.4:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subl	%eax, %ebx
	incl	%ebx
	cmpl	$2, %ebx
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_7
LBB0_6:
	movq	(%r15,%rax,8), %rbx
LBB0_7:
	movq	%rbx, -208(%rbp)
	leaq	-200(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movl	-200(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	leaq	-208(%rbp), %rdi
	callq	_ls_getdir
	movl	%eax, -184(%rbp)                ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.14:
	xorl	%eax, %eax
	callq	_pager_open
	movq	-208(%rbp), %rdi
	callq	_pager_output
	leaq	L_.str.4(%rip), %rdi
	callq	_pager_output
	movl	-184(%rbp), %edi                ## 4-byte Reload
	callq	_readdirfd
	testq	%rax, %rax
	je	LBB0_28
## %bb.15:
	movq	%rax, %r12
	leaq	L_.str.5(%rip), %rbx
	movl	%r13d, %eax
	notb	%al
	movb	%al, -177(%rbp)                 ## 1-byte Spill
	jmp	LBB0_16
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r12), %r8
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.5(%rip), %rbx
	movq	%r14, %rdi
	callq	_pager_output
	testq	%rax, %rax
	jne	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	-184(%rbp), %edi                ## 4-byte Reload
	callq	_readdirfd
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_28
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 8(%r12)
	setne	%al
	testb	%al, -177(%rbp)                 ## 1-byte Folded Reload
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, -192(%rbp)
	movl	$0, -200(%rbp)
	movq	-208(%rbp), %rdi
	movq	%rdi, -224(%rbp)                ## 8-byte Spill
	callq	_strlen
	movq	%rax, %rbx
	movq	(%r12), %r15
	movq	%r15, %rdi
	callq	_strlen
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	leaq	L_.str.7(%rip), %rsi
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_sprintf
	movq	%r14, %rdi
	leaq	-200(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, -192(%rbp)
	movl	$0, -200(%rbp)
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %rdi
	callq	_free
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	8(%r12), %eax
	movl	-200(%rbp), %ecx
	sarl	$12, %ecx
	testl	%eax, %eax
	cmovnel	%eax, %ecx
	movq	_typestr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	testb	$1, %r13b
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-192(%rbp), %r8d
	movq	(%r12), %r9
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_26
LBB0_28:
	xorl	%eax, %eax
	callq	_pager_close
	movl	-184(%rbp), %edi                ## 4-byte Reload
	callq	_close
	movl	-212(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_29
LBB0_13:
	movq	_CMD_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_pager_close
LBB0_29:
	movq	-208(%rbp), %rdi
	callq	_free
	jmp	LBB0_30
LBB0_9:
	movq	_typestr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-200(%rbp), %ecx
	sarl	$12, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	testb	$1, %r12b
	je	LBB0_10
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_3
LBB0_10:
	movl	-192(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_printf
LBB0_3:
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.comm	_optind,4,2                     ## @optind
	.comm	_optreset,4,2                   ## @optreset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l"

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

L_.str.2:                               ## @.str.2
	.asciz	" %c %8d %s\n"

	.comm	_typestr,8,3                    ## @typestr
L_.str.3:                               ## @.str.3
	.asciz	" %c  %s\n"

	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	"."

L_.str.6:                               ## @.str.6
	.asciz	".."

L_.str.7:                               ## @.str.7
	.asciz	"%s/%s"

	.no_dead_strip	_command_ls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_ls
_command_ls:                            ; @command_ls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	mov	w8, #0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-96]
Lloh3:
	adrp	x23, _CMD_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CMD_OK@GOTPAGEOFF]
	ldr	w19, [x23]
Lloh5:
	adrp	x26, _optind@GOTPAGE
Lloh6:
	ldr	x26, [x26, _optind@GOTPAGEOFF]
	mov	w9, #1
	str	w9, [x26]
Lloh7:
	adrp	x10, _optreset@GOTPAGE
Lloh8:
	ldr	x10, [x10, _optreset@GOTPAGEOFF]
Lloh9:
	str	w9, [x10]
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x9
	mov	x24, x8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	mov	w9, #0
	mov	w8, #1
	cmp	w0, #108
	b.eq	LBB0_1
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.3:
	ldrsw	x8, [x26]
	sub	x8, x8, #1
	sub	w9, w21, w8
	cmp	w9, #2
	b.ge	LBB0_6
; %bb.4:
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	w19, [x23]
	b	LBB0_27
LBB0_6:
	add	x8, x20, x8, lsl #3
	ldr	x20, [x8, #8]
LBB0_7:
	str	x20, [sp, #24]
	add	x1, sp, #32
	mov	x0, x20
	bl	_stat
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w0, [sp, #32]
	bl	_S_ISDIR
	cbz	w0, LBB0_29
LBB0_9:
	add	x0, sp, #24
	bl	_ls_getdir
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.10:
	mov	x20, x0
	bl	_pager_open
	ldr	x0, [sp, #24]
	bl	_pager_output
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pager_output
	mov	x0, x20
	bl	_readdirfd
	cbz	x0, LBB0_24
; %bb.11:
	mov	x26, x0
Lloh16:
	adrp	x21, l_.str.5@PAGE
Lloh17:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh18:
	adrp	x22, l_.str.6@PAGE
Lloh19:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh20:
	adrp	x25, _typestr@GOTPAGE
Lloh21:
	ldr	x25, [x25, _typestr@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x26]
	str	x8, [sp]
	add	x0, sp, #48
	mov	w1, #128
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_snprintf
	add	x0, sp, #48
	bl	_pager_output
	cbnz	x0, LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	bl	_readdirfd
	mov	x26, x0
	cbz	x0, LBB0_24
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x26]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x26]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x26, #8]
	cmp	w8, #0
	cset	w8, ne
	bic	w8, w8, w24
	tbnz	w8, #0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	str	xzr, [sp, #40]
	str	wzr, [sp, #32]
	ldr	x28, [sp, #24]
	mov	x0, x28
	bl	_strlen
	mov	x27, x0
	ldr	x23, [x26]
	mov	x0, x23
	bl	_strlen
	add	x8, x27, x0
	add	x0, x8, #2
	bl	_malloc
	cbz	x0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x27, x0
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x28
	mov	x3, x23
	bl	_sprintf
	add	x1, sp, #32
	mov	x0, x27
	bl	_stat
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	str	xzr, [sp, #40]
	str	wzr, [sp, #32]
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x27
	bl	_free
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x25]
	ldr	w9, [x26, #8]
	ldr	w10, [sp, #32]
	asr	w10, w10, #12
	cmp	w9, #0
	csel	w9, w10, w9, eq
	ldr	w3, [x8, w9, sxtw #2]
	tbz	w24, #0, LBB0_12
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #40]
	ldr	x9, [x26]
	stp	x8, x9, [sp]
	add	x0, sp, #48
	mov	w1, #128
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_24:
	bl	_pager_close
	mov	x0, x20
	bl	_close
	b	LBB0_26
LBB0_25:
Lloh28:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
	bl	_pager_close
LBB0_26:
	ldr	x0, [sp, #24]
	bl	_free
LBB0_27:
	ldur	x8, [x29, #-96]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.28:
	mov	x0, x19
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_29:
Lloh34:
	adrp	x8, _typestr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _typestr@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	w9, [sp, #32]
	asr	w9, w9, #12
	ldr	w1, [x8, w9, sxtw #2]
	tbz	w25, #0, LBB0_31
; %bb.30:
	str	x20, [sp]
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_32
LBB0_31:
	ldr	x8, [sp, #40]
	stp	x8, x20, [sp]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_32:
	bl	_printf
	ldr	w19, [x23]
	b	LBB0_27
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.comm	_optind,4,2                     ; @optind
	.comm	_optreset,4,2                   ; @optreset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l"

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

l_.str.2:                               ; @.str.2
	.asciz	" %c %8d %s\n"

	.comm	_typestr,8,3                    ; @typestr
l_.str.3:                               ; @.str.3
	.asciz	" %c  %s\n"

	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	"."

l_.str.6:                               ; @.str.6
	.asciz	".."

l_.str.7:                               ; @.str.7
	.asciz	"%s/%s"

	.no_dead_strip	_command_ls
.subsections_via_symbols
