	.file	"957894.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"."
	.section	.data.rel.local,"aw"
	.align 8
	.type	DEFAULT_FILES, @object
	.size	DEFAULT_FILES, 8
DEFAULT_FILES:
	.quad	.LC0
	.globl	g_args
	.bss
	.align 16
	.type	g_args, @object
	.size	g_args, 16
g_args:
	.zero	16
	.section	.rodata
.LC1:
	.string	": %s"
	.text
	.type	err_sys, @function
err_sys:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 2288
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -2296[rbp], rdi
	mov	QWORD PTR -184[rbp], rsi
	mov	QWORD PTR -176[rbp], rdx
	mov	QWORD PTR -168[rbp], rcx
	mov	QWORD PTR -160[rbp], r8
	mov	QWORD PTR -152[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -144[rbp], xmm0
	movaps	XMMWORD PTR -128[rbp], xmm1
	movaps	XMMWORD PTR -112[rbp], xmm2
	movaps	XMMWORD PTR -96[rbp], xmm3
	movaps	XMMWORD PTR -80[rbp], xmm4
	movaps	XMMWORD PTR -64[rbp], xmm5
	movaps	XMMWORD PTR -48[rbp], xmm6
	movaps	XMMWORD PTR -32[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -200[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2280[rbp], 8
	mov	DWORD PTR -2276[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -2272[rbp], rax
	lea	rax, -192[rbp]
	mov	QWORD PTR -2264[rbp], rax
	lea	rcx, -2280[rbp]
	mov	rdx, QWORD PTR -2296[rbp]
	lea	rax, -2256[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	vsnprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	r12, rax
	lea	rax, -2256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 2048
	mov	rbx, rdx
	sub	rbx, rax
	lea	rax, -2256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -2256[rbp]
	add	rax, rdx
	mov	rcx, r12
	lea	rdx, .LC1[rip]
	mov	rsi, rbx
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -2256[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 10
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stderr[rip]
	lea	rax, -2256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edi, 0
	call	fflush@PLT
	nop
	mov	rax, QWORD PTR -200[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	add	rsp, 2288
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	err_sys, .-err_sys
	.type	arg_init, @function
arg_init:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, DEFAULT_FILES[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	arg_init, .-arg_init
	.type	cmp, @function
cmp:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp, .-cmp
	.type	sort, @function
sort:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, cmp[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sort, .-sort
	.type	isdir, @function
isdir:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L9
	mov	eax, 1
	jmp	.L11
.L9:
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isdir, .-isdir
	.type	classify, @function
classify:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L14
.L17:
	mov	rdx, QWORD PTR g_args[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	isdir
	test	eax, eax
	je	.L15
	mov	rdx, QWORD PTR g_args[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR [rcx]
	mov	QWORD PTR [rdx], rax
	jmp	.L16
.L15:
	mov	rdx, QWORD PTR g_args[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR [rcx]
	mov	QWORD PTR [rdx], rax
.L16:
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR g_args[rip+8]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	classify, .-classify
	.type	fmt_mode, @function
fmt_mode:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	movabs	rax, 3255307777713450285
	mov	QWORD PTR ms.2[rip], rax
	mov	WORD PTR ms.2[rip+8], 11565
	mov	BYTE PTR ms.2[rip+10], 0
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L19
	mov	BYTE PTR ms.2[rip], 100
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L21
	mov	BYTE PTR ms.2[rip], 108
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 8192
	jne	.L22
	mov	BYTE PTR ms.2[rip], 99
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 24576
	jne	.L23
	mov	BYTE PTR ms.2[rip], 98
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 4096
	jne	.L24
	mov	BYTE PTR ms.2[rip], 112
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 49152
	jne	.L20
	mov	BYTE PTR ms.2[rip], 115
.L20:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 256
	test	eax, eax
	je	.L25
	mov	BYTE PTR ms.2[rip+1], 114
.L25:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 128
	test	eax, eax
	je	.L26
	mov	BYTE PTR ms.2[rip+2], 119
.L26:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 64
	test	eax, eax
	je	.L27
	mov	BYTE PTR ms.2[rip+3], 120
.L27:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 32
	test	eax, eax
	je	.L28
	mov	BYTE PTR ms.2[rip+4], 114
.L28:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 16
	test	eax, eax
	je	.L29
	mov	BYTE PTR ms.2[rip+5], 119
.L29:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 8
	test	eax, eax
	je	.L30
	mov	BYTE PTR ms.2[rip+6], 120
.L30:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 4
	test	eax, eax
	je	.L31
	mov	BYTE PTR ms.2[rip+7], 114
.L31:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 2
	test	eax, eax
	je	.L32
	mov	BYTE PTR ms.2[rip+8], 119
.L32:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L33
	mov	BYTE PTR ms.2[rip+9], 120
.L33:
	lea	rax, ms.2[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	fmt_mode, .-fmt_mode
	.section	.rodata
.LC2:
	.string	""
	.text
	.type	fmt_owner, @function
fmt_owner:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L38
.L36:
	lea	rax, .LC2[rip]
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	fmt_owner, .-fmt_owner
	.type	fmt_group, @function
fmt_group:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	getgrgid@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L42
.L40:
	lea	rax, .LC2[rip]
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	fmt_group, .-fmt_group
	.section	.rodata
.LC3:
	.string	"%F %H:%M"
	.text
	.type	fmt_time, @function
fmt_time:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, .LC3[rip]
	mov	esi, 64
	lea	rdi, buf.1[rip]
	call	strftime@PLT
	lea	rax, buf.1[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	fmt_time, .-fmt_time
	.section	.rodata
.LC4:
	.string	"ls: no memory"
.LC5:
	.string	"%s -> "
.LC6:
	.string	"ls: can not read link %s"
	.text
	.type	fmt_name, @function
fmt_name:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L46
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L47
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	err_sys
	mov	edi, 1
	call	exit@PLT
.L47:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, 4096
	sub	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readlink@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L48
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	err_sys
	mov	edi, 1
	call	exit@PLT
.L48:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L49
.L46:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -16[rbp], rax
.L49:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	fmt_name, .-fmt_name
	.section	.rodata
.LC7:
	.string	"%7ld"
	.text
	.type	fmt_size, @function
fmt_size:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, .LC7[rip]
	mov	esi, 32
	lea	rdi, buf.0[rip]
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, buf.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	fmt_size, .-fmt_size
	.section	.rodata
.LC8:
	.string	"%s "
.LC9:
	.string	"%-2d "
.LC10:
	.string	"%-8s "
.LC11:
	.string	"%-s"
	.text
	.type	print_line, @function
print_line:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	fmt_mode
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	edi, eax
	call	fmt_owner
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	edi, eax
	call	fmt_group
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	fmt_size
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 88
	mov	rdi, rax
	call	fmt_time
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fmt_name
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	print_line, .-print_line
	.section	.rodata
.LC12:
	.string	"ls: can not access %s"
	.text
	.type	do_files, @function
do_files:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L55
.L58:
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -168[rbp], rax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L56
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	err_sys
	jmp	.L57
.L56:
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_line
.L57:
	add	DWORD PTR -172[rbp], 1
.L55:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L58
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	do_files, .-do_files
	.type	listdir, @function
listdir:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -48[rbp], 32
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L61
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	err_sys
	mov	edi, 1
	call	exit@PLT
.L61:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L64
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	err_sys
	mov	eax, 0
	jmp	.L63
.L66:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L65
	sal	DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L65:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -44[rbp]
	lea	ecx, 1[rax]
	mov	DWORD PTR -44[rbp], ecx
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rcx+rax]
	mov	rdi, rdx
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
.L64:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L66
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
.L63:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	listdir, .-listdir
	.section	.rodata
.LC13:
	.string	"ls: can not get current dir"
.LC14:
	.string	"ls: can not chdir"
.LC15:
	.string	"\n%s:\n"
	.text
	.type	do_dirs, @function
do_dirs:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L68
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	err_sys
	mov	edi, 1
	call	exit@PLT
.L68:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L69
.L77:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	listdir
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L79
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L72
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	err_sys
	jmp	.L73
.L72:
	cmp	DWORD PTR -60[rbp], 0
	jle	.L74
	mov	eax, DWORD PTR g_args[rip+8]
	cmp	eax, 1
	jle	.L74
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L74:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	do_files
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L80
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	err_sys
	mov	edi, 1
	call	exit@PLT
.L80:
	nop
.L73:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L75
.L76:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -36[rbp], 1
.L75:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L76
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L71
.L79:
	nop
.L71:
	add	DWORD PTR -40[rbp], 1
.L69:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L77
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	do_dirs, .-do_dirs
	.globl	main
	.type	main, @function
main:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR g_args[rip+8]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR g_args[rip+8]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L82
	cmp	QWORD PTR -16[rbp], 0
	jne	.L83
.L82:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L85
.L83:
	lea	rdi, g_args[rip]
	call	arg_init
	lea	rcx, -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	classify
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	do_dirs
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L85:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	main, .-main
	.local	ms.2
	.comm	ms.2,11,8
	.local	buf.1
	.comm	buf.1,64,32
	.local	buf.0
	.comm	buf.0,32,32
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"957894.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	".\000"
	.data
	.align	2
	.type	DEFAULT_FILES, %object
	.size	DEFAULT_FILES, 4
DEFAULT_FILES:
	.word	.LC0
	.comm	g_args,8,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	": %s\000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	err_sys, %function
err_sys:
	@ args = 4, pretend = 16, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2064
	ldr	r3, [fp, #4]
	str	r3, [fp, #-2072]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-2068]
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2068]
	ldr	r2, [fp, #-2072]
	mov	r1, #2048
	bl	vsnprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, r2
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r5, r3, #2048
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L3+4
	mov	r1, r5
	mov	r0, r4
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L3+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L3+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L3+16
	ldr	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	mov	r0, #0
	bl	fflush
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #16
	bx	lr
.L4:
	.align	2
.L3:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	stderr
	.size	err_sys, .-err_sys
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arg_init, %function
arg_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L6
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	DEFAULT_FILES
	.size	arg_init, .-arg_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	strcasecmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cmp, .-cmp
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r3, .L11
	mov	r2, #4
	ldr	r0, [fp, #-8]
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	cmp
	.size	sort, .-sort
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isdir, %function
isdir:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L14
	mov	r3, #1
	b	.L16
.L14:
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.size	isdir, .-isdir
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	classify, %function
classify:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L21
.L24:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	isdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L23
.L22:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L23:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r3, .L25
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	g_args
	.size	classify, .-classify
	.section	.rodata
	.align	2
.LC5:
	.ascii	"----------\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmt_mode, %function
fmt_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L44
	ldr	r2, .L44+4
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L28
	ldr	r3, .L44
	mov	r2, #100
	strb	r2, [r3]
	b	.L29
.L28:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L30
	ldr	r3, .L44
	mov	r2, #108
	strb	r2, [r3]
	b	.L29
.L30:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #8192
	bne	.L31
	ldr	r3, .L44
	mov	r2, #99
	strb	r2, [r3]
	b	.L29
.L31:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #24576
	bne	.L32
	ldr	r3, .L44
	mov	r2, #98
	strb	r2, [r3]
	b	.L29
.L32:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #4096
	bne	.L33
	ldr	r3, .L44
	mov	r2, #112
	strb	r2, [r3]
	b	.L29
.L33:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #49152
	bne	.L29
	ldr	r3, .L44
	mov	r2, #115
	strb	r2, [r3]
.L29:
	ldr	r3, [fp, #-8]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L34
	ldr	r3, .L44
	mov	r2, #114
	strb	r2, [r3, #1]
.L34:
	ldr	r3, [fp, #-8]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L44
	mov	r2, #119
	strb	r2, [r3, #2]
.L35:
	ldr	r3, [fp, #-8]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L44
	mov	r2, #120
	strb	r2, [r3, #3]
.L36:
	ldr	r3, [fp, #-8]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L44
	mov	r2, #114
	strb	r2, [r3, #4]
.L37:
	ldr	r3, [fp, #-8]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L44
	mov	r2, #119
	strb	r2, [r3, #5]
.L38:
	ldr	r3, [fp, #-8]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L44
	mov	r2, #120
	strb	r2, [r3, #6]
.L39:
	ldr	r3, [fp, #-8]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L44
	mov	r2, #114
	strb	r2, [r3, #7]
.L40:
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L44
	mov	r2, #119
	strb	r2, [r3, #8]
.L41:
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L44
	mov	r2, #120
	strb	r2, [r3, #9]
.L42:
	ldr	r3, .L44
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L45:
	.align	2
.L44:
	.word	ms.6327
	.word	.LC5
	.size	fmt_mode, .-fmt_mode
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmt_owner, %function
fmt_owner:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	getpwuid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	b	.L49
.L47:
	ldr	r3, .L50
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC6
	.size	fmt_owner, .-fmt_owner
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmt_group, %function
fmt_group:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	getgrgid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	b	.L55
.L53:
	ldr	r3, .L56
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC6
	.size	fmt_group, .-fmt_group
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%F %H:%M\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmt_time, %function
fmt_time:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	localtime
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L60
	mov	r1, #64
	ldr	r0, .L60+4
	bl	strftime
	ldr	r3, .L60+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC7
	.word	buf.6350
	.size	fmt_time, .-fmt_time
	.section	.rodata
	.align	2
.LC8:
	.ascii	"ls: no memory\000"
	.align	2
.LC9:
	.ascii	"%s -> \000"
	.align	2
.LC10:
	.ascii	"ls: can not read link %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmt_name, %function
fmt_name:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L63
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L64
	ldr	r0, .L68
	bl	err_sys
	mov	r0, #1
	bl	exit
.L64:
	ldr	r3, [fp, #-28]
	ldr	r2, .L68+4
	mov	r1, #4096
	ldr	r0, [fp, #-16]
	bl	snprintf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r1, r2, r3
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #4096
	mov	r2, r3
	ldr	r0, [fp, #-28]
	bl	readlink
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L65
	ldr	r1, [fp, #-28]
	ldr	r0, .L68+8
	bl	err_sys
	mov	r0, #1
	bl	exit
.L65:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	b	.L66
.L63:
	ldr	r0, [fp, #-28]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-16]
.L66:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	fmt_name, .-fmt_name
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%7ld\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmt_size, %function
fmt_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L72
	mov	r1, #32
	ldr	r0, .L72+4
	bl	snprintf
	ldr	r3, .L72+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC11
	.word	buf.6362
	.size	fmt_size, .-fmt_size
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%s \000"
	.align	2
.LC13:
	.ascii	"%-2d \000"
	.align	2
.LC14:
	.ascii	"%-8s \000"
	.align	2
.LC15:
	.ascii	"%-s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_line, %function
print_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L75
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	fmt_mode
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L75+4
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L75
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r1, .L75+8
	bl	fprintf
	ldr	r3, .L75
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	fmt_owner
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L75+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L75
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	fmt_group
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L75+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L75
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	fmt_size
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L75+4
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L75
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #64
	mov	r0, r3
	bl	fmt_time
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L75+4
	mov	r0, r4
	bl	fprintf
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	fmt_name
	str	r0, [fp, #-16]
	ldr	r3, .L75
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L75+16
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, .L75
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L76:
	.align	2
.L75:
	.word	stdout
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	print_line, .-print_line
	.section	.rodata
	.align	2
.LC16:
	.ascii	"ls: can not access %s\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_files, %function
do_files:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L78
.L81:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-104]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	ldr	r1, [fp, #-104]
	ldr	r0, .L83+4
	bl	err_sys
	b	.L80
.L79:
	sub	r3, fp, #100
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	print_line
.L80:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L78:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	blt	.L81
	nop
	ldr	r3, .L83
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC17
	.word	.LC16
	.size	do_files, .-do_files
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	listdir, %function
listdir:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #32
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L86
	ldr	r0, .L92
	bl	err_sys
	mov	r0, #1
	bl	exit
.L86:
	ldr	r0, [fp, #-40]
	bl	opendir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L89
	ldr	r1, [fp, #-40]
	ldr	r0, .L92+4
	bl	err_sys
	mov	r3, #0
	b	.L88
.L91:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L90
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	realloc
	str	r0, [fp, #-32]
.L90:
	ldr	r3, [fp, #-16]
	add	r1, r3, #11
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	mov	r0, r1
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
.L89:
	ldr	r0, [fp, #-20]
	bl	readdir
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L91
	ldr	r0, [fp, #-20]
	bl	closedir
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
.L88:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC8
	.word	.LC16
	.size	listdir, .-listdir
	.section	.rodata
	.align	2
.LC18:
	.ascii	"ls: can not get current dir\000"
	.align	2
.LC19:
	.ascii	"ls: can not chdir\000"
	.align	2
.LC20:
	.ascii	"\012%s:\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_dirs, %function
do_dirs:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r1, #4096
	ldr	r0, [fp, #-20]
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	ldr	r0, .L108+4
	bl	err_sys
	mov	r0, #1
	bl	exit
.L95:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L96
.L104:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	listdir
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	sort
	ldr	r0, [fp, #-16]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	ldr	r0, .L108+8
	bl	err_sys
	b	.L100
.L99:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L101
	ldr	r3, .L108+12
	ldr	r3, [r3, #4]
	cmp	r3, #1
	ble	.L101
	ldr	r3, .L108+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L108+20
	mov	r0, r3
	bl	fprintf
.L101:
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	do_files
	ldr	r0, [fp, #-20]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L107
	ldr	r0, .L108+8
	bl	err_sys
	mov	r0, #1
	bl	exit
.L107:
	nop
.L100:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L102
.L103:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L102:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L103
	ldr	r0, [fp, #-12]
	bl	free
	b	.L98
.L106:
	nop
.L98:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L96:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L104
	ldr	r0, [fp, #-20]
	bl	free
	nop
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L105
	bl	__stack_chk_fail
.L105:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC21
	.word	.LC18
	.word	.LC19
	.word	g_args
	.word	stdout
	.word	.LC20
	.size	do_dirs, .-do_dirs
	.section	.rodata
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L116+4
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, .L116+4
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L111
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L112
.L111:
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #1
	b	.L114
.L112:
	ldr	r0, .L116+4
	bl	arg_init
	sub	r3, fp, #24
	sub	r1, fp, #20
	ldr	r2, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	classify
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	do_dirs
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
.L114:
	ldr	r2, .L116
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L115
	bl	__stack_chk_fail
.L115:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC22
	.word	g_args
	.size	main, .-main
	.local	ms.6327
	.comm	ms.6327,11,4
	.local	buf.6350
	.comm	buf.6350,64,4
	.local	buf.6362
	.comm	buf.6362,32,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
