	.file	"218894340.c"
	.intel_syntax noprefix
	.text
	.globl	maxfile
	.bss
	.align 4
	.type	maxfile, @object
	.size	maxfile, 4
maxfile:
	.zero	4
	.globl	restline
	.data
	.align 4
	.type	restline, @object
	.size	restline, 4
restline:
	.long	80
	.section	.rodata
.LC0:
	.string	"line: %d"
	.text
	.globl	erro
	.type	erro, @function
erro:
.LFB6:
	.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	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	erro, .-erro
	.section	.rodata
.LC1:
	.string	"lstat"
.LC2:
	.string	"\033[1;34m"
.LC3:
	.string	"%s"
.LC4:
	.string	"\033[0m"
.LC5:
	.string	"\033[1;32m"
.LC6:
	.string	"  "
	.text
	.globl	show
	.type	show, @function
show:
.LFB7:
	.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	lstat@PLT
	cmp	eax, -1
	jne	.L3
	mov	esi, 51
	lea	rdi, .LC1[rip]
	call	erro
.L3:
	mov	edx, DWORD PTR restline[rip]
	mov	eax, DWORD PTR maxfile[rip]
	cmp	edx, eax
	jge	.L4
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR restline[rip], 80
.L4:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR maxfile[rip]
	cmp	DWORD PTR -164[rbp], eax
	jge	.L5
	mov	eax, DWORD PTR maxfile[rip]
	sub	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -164[rbp], eax
.L5:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 64
	test	eax, eax
	je	.L8
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	DWORD PTR -168[rbp], 0
	jmp	.L9
.L10:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -168[rbp], 1
.L9:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR restline[rip]
	mov	edx, DWORD PTR maxfile[rip]
	add	edx, 2
	sub	eax, edx
	mov	DWORD PTR restline[rip], eax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	show, .-show
	.section	.rodata
.LC7:
	.string	"chdir"
.LC8:
	.string	"opendir"
	.text
	.globl	my_readir
	.type	my_readir, @function
my_readir:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	lea	r11, -2498560[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2168
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -2500760[rbp], rdi
	mov	DWORD PTR -2500764[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2500744[rbp], 0
	lea	rax, -2500560[rbp]
	mov	edx, 2500000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -2500704[rbp]
	mov	rax, QWORD PTR -2500760[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	cmp	eax, -1
	jne	.L13
	mov	esi, 89
	lea	rdi, .LC1[rip]
	call	erro
.L13:
	mov	eax, DWORD PTR -2500680[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L14
	mov	rax, QWORD PTR -2500760[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L15
	mov	esi, 93
	lea	rdi, .LC7[rip]
	call	erro
.L15:
	lea	rax, -560[rbp]
	mov	esi, 500
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -560[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -2500736[rbp], rax
	cmp	QWORD PTR -2500736[rbp], 0
	jne	.L17
	mov	esi, 97
	lea	rdi, .LC8[rip]
	call	erro
	jmp	.L17
.L19:
	mov	eax, DWORD PTR maxfile[rip]
	movsx	rbx, eax
	mov	rax, QWORD PTR -2500728[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jnb	.L18
	mov	rax, QWORD PTR -2500728[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR maxfile[rip], eax
.L18:
	mov	rax, QWORD PTR -2500728[rbp]
	lea	rdx, 19[rax]
	lea	rsi, -2500560[rbp]
	mov	eax, DWORD PTR -2500744[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -2500744[rbp], 1
.L17:
	mov	rax, QWORD PTR -2500736[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -2500728[rbp], rax
	cmp	QWORD PTR -2500728[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -2500744[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -2500720[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L20:
	cmp	rsp, rdx
	je	.L21
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L20
.L21:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L22
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L22:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -2500712[rbp], rax
	mov	DWORD PTR -2500752[rbp], 0
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -2500752[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -2500752[rbp], 1
.L23:
	mov	eax, DWORD PTR -2500752[rbp]
	cmp	eax, DWORD PTR -2500744[rbp]
	jl	.L24
	mov	DWORD PTR -2500752[rbp], 0
	jmp	.L25
.L29:
	mov	DWORD PTR -2500748[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -2500748[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -2500712[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	rcx, -2500560[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -2500712[rbp]
	mov	ecx, DWORD PTR -2500748[rbp]
	movsx	rcx, ecx
	mov	eax, DWORD PTR [rax+rcx*4]
	lea	rsi, -2500560[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jle	.L27
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500748[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -2500740[rbp], eax
	mov	eax, DWORD PTR -2500748[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -2500712[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500748[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -2500748[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -2500712[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -2500740[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
.L27:
	add	DWORD PTR -2500748[rbp], 1
.L26:
	mov	eax, DWORD PTR -2500744[rbp]
	sub	eax, DWORD PTR -2500752[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2500748[rbp], eax
	jl	.L28
	add	DWORD PTR -2500752[rbp], 1
.L25:
	mov	eax, DWORD PTR -2500744[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2500752[rbp], eax
	jl	.L29
	cmp	DWORD PTR -2500764[rbp], 3
	je	.L30
	cmp	DWORD PTR -2500764[rbp], 3
	jg	.L31
	cmp	DWORD PTR -2500764[rbp], 2
	je	.L32
	cmp	DWORD PTR -2500764[rbp], 2
	jg	.L31
	cmp	DWORD PTR -2500764[rbp], 0
	je	.L33
	cmp	DWORD PTR -2500764[rbp], 1
	je	.L34
	jmp	.L31
.L33:
	mov	DWORD PTR -2500752[rbp], 0
	mov	DWORD PTR -2500748[rbp], 0
	jmp	.L35
.L38:
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rax, -48[rax]
	add	rax, rbp
	sub	rax, 2500512
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L50
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	rcx, -2500560[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	show
	jmp	.L37
.L50:
	nop
.L37:
	add	DWORD PTR -2500752[rbp], 1
.L35:
	mov	eax, DWORD PTR -2500752[rbp]
	cmp	eax, DWORD PTR -2500744[rbp]
	jl	.L38
	mov	edi, 10
	call	putchar@PLT
	jmp	.L31
.L34:
	mov	DWORD PTR -2500752[rbp], 0
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	rcx, -2500560[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	show
	add	DWORD PTR -2500752[rbp], 1
.L39:
	mov	eax, DWORD PTR -2500752[rbp]
	cmp	eax, DWORD PTR -2500744[rbp]
	jl	.L40
	mov	edi, 10
	call	putchar@PLT
	jmp	.L31
.L32:
	mov	DWORD PTR -2500752[rbp], 0
	jmp	.L41
.L44:
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rax, -48[rax]
	add	rax, rbp
	sub	rax, 2500512
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L51
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	rcx, -2500560[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	print
	jmp	.L43
.L51:
	nop
.L43:
	add	DWORD PTR -2500752[rbp], 1
.L41:
	mov	eax, DWORD PTR -2500752[rbp]
	cmp	eax, DWORD PTR -2500744[rbp]
	jl	.L44
	jmp	.L31
.L30:
	mov	DWORD PTR -2500752[rbp], 0
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -2500712[rbp]
	mov	edx, DWORD PTR -2500752[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	rcx, -2500560[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	print
	add	DWORD PTR -2500752[rbp], 1
.L45:
	mov	eax, DWORD PTR -2500752[rbp]
	cmp	eax, DWORD PTR -2500744[rbp]
	jl	.L46
	nop
.L31:
	mov	rsp, rbx
	jmp	.L47
.L14:
	mov	rax, QWORD PTR -2500760[rbp]
	mov	rdi, rax
	call	print
.L47:
	mov	rax, QWORD PTR -2500736[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	my_readir, .-my_readir
	.section	.rodata
.LC9:
	.string	"stat"
.LC10:
	.string	"."
.LC11:
	.string	".."
.LC12:
	.string	"\033[1;33m"
	.text
	.globl	r
	.type	r, @function
r:
.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, 2192
	mov	QWORD PTR -2184[rbp], rdi
	mov	DWORD PTR -2188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2016[rbp], 0
	mov	QWORD PTR -2008[rbp], 0
	lea	rdx, -2000[rbp]
	mov	eax, 0
	mov	ecx, 123
	mov	rdi, rdx
	rep stosq
	lea	rdx, -2160[rbp]
	mov	rax, QWORD PTR -2184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	cmp	eax, -1
	jne	.L53
	mov	esi, 172
	lea	rdi, .LC1[rip]
	call	erro
.L53:
	mov	rax, QWORD PTR -2184[rbp]
	mov	rdi, rax
	call	chdir@PLT
	cmp	eax, -1
	jne	.L54
	mov	esi, 174
	lea	rdi, .LC7[rip]
	call	erro
.L54:
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -2176[rbp], rax
	cmp	QWORD PTR -2176[rbp], 0
	jne	.L56
	mov	esi, 177
	lea	rdi, .LC8[rip]
	call	erro
	jmp	.L56
.L61:
	mov	rax, QWORD PTR -2168[rbp]
	lea	rdx, 19[rax]
	lea	rax, -2160[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	lstat@PLT
	cmp	eax, -1
	jne	.L57
	mov	esi, 181
	lea	rdi, .LC9[rip]
	call	erro
.L57:
	mov	eax, DWORD PTR -2136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L56
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L56
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	jmp	.L56
.L59:
	lea	rdx, -1008[rbp]
	lea	rax, -2016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -2016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -2016[rbp+rax]
	cmp	al, 47
	je	.L60
	lea	rax, -2016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR -2016[rbp+rax], 47
.L60:
	mov	rax, QWORD PTR -2168[rbp]
	lea	rdx, 19[rax]
	lea	rax, -2016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2016[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2188[rbp]
	lea	edx, -4[rax]
	lea	rax, -2016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
	mov	edx, DWORD PTR -2188[rbp]
	lea	rax, -2016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	r
	lea	rax, -2016[rbp]
	mov	edx, 1000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L56:
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -2168[rbp], rax
	cmp	QWORD PTR -2168[rbp], 0
	jne	.L61
	lea	rdi, .LC11[rip]
	call	chdir@PLT
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	closedir@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	r, .-r
	.section	.rodata
.LC13:
	.string	" %ld"
.LC14:
	.string	" %s"
.LC15:
	.string	" %s\n"
	.text
	.globl	print
	.type	print, @function
print:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -192[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	cmp	eax, -1
	jne	.L64
	mov	esi, 213
	lea	rdi, .LC1[rip]
	call	erro
.L64:
	mov	eax, DWORD PTR -168[rbp]
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L65
	mov	edi, 108
	call	putchar@PLT
	jmp	.L66
.L65:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L67
	mov	edi, 45
	call	putchar@PLT
	jmp	.L66
.L67:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L68
	mov	edi, 100
	call	putchar@PLT
	jmp	.L66
.L68:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 8192
	jne	.L69
	mov	edi, 99
	call	putchar@PLT
	jmp	.L66
.L69:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 24576
	jne	.L70
	mov	edi, 98
	call	putchar@PLT
	jmp	.L66
.L70:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 4096
	jne	.L71
	mov	edi, 102
	call	putchar@PLT
	jmp	.L66
.L71:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 49152
	jne	.L66
	mov	edi, 115
	call	putchar@PLT
.L66:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 256
	test	eax, eax
	je	.L72
	mov	edi, 114
	call	putchar@PLT
	jmp	.L73
.L72:
	mov	edi, 45
	call	putchar@PLT
.L73:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 128
	test	eax, eax
	je	.L74
	mov	edi, 119
	call	putchar@PLT
	jmp	.L75
.L74:
	mov	edi, 45
	call	putchar@PLT
.L75:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 64
	test	eax, eax
	je	.L76
	mov	edi, 120
	call	putchar@PLT
	jmp	.L77
.L76:
	mov	edi, 45
	call	putchar@PLT
.L77:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 32
	test	eax, eax
	je	.L78
	mov	edi, 114
	call	putchar@PLT
	jmp	.L79
.L78:
	mov	edi, 45
	call	putchar@PLT
.L79:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 16
	test	eax, eax
	je	.L80
	mov	edi, 119
	call	putchar@PLT
	jmp	.L81
.L80:
	mov	edi, 45
	call	putchar@PLT
.L81:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 8
	test	eax, eax
	je	.L82
	mov	edi, 120
	call	putchar@PLT
	jmp	.L83
.L82:
	mov	edi, 45
	call	putchar@PLT
.L83:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 4
	test	eax, eax
	je	.L84
	mov	edi, 114
	call	putchar@PLT
	jmp	.L85
.L84:
	mov	edi, 45
	call	putchar@PLT
.L85:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 2
	test	eax, eax
	je	.L86
	mov	edi, 119
	call	putchar@PLT
	jmp	.L87
.L86:
	mov	edi, 45
	call	putchar@PLT
.L87:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 1
	test	eax, eax
	je	.L88
	mov	edi, 120
	call	putchar@PLT
	jmp	.L89
.L88:
	mov	edi, 45
	call	putchar@PLT
.L89:
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -208[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	getgrgid@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -192[rbp]
	add	rax, 88
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -48[rbp+rax], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L90
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L94
.L90:
	mov	eax, DWORD PTR -212[rbp]
	and	eax, 64
	test	eax, eax
	je	.L92
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L94
.L92:
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L94:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print, .-print
	.section	.rodata
.LC16:
	.string	"flag = %d\n"
.LC17:
	.string	"\350\276\223\345\205\245\351\224\231\350\257\257"
.LC18:
	.string	"getcwd"
.LC19:
	.string	"\347\233\256\345\275\225\350\267\257\345\276\204:%s\n"
.LC20:
	.string	"flag"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -144[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	WORD PTR -80[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -16[rbp], 0
	mov	DWORD PTR -140[rbp], 0
	jmp	.L96
.L103:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L97
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	DWORD PTR -136[rbp], 1
	jmp	.L98
.L102:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 97
	jne	.L99
	add	DWORD PTR -144[rbp], 1
	jmp	.L100
.L99:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 108
	jne	.L101
	add	DWORD PTR -144[rbp], 2
	jmp	.L100
.L101:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 82
	jne	.L100
	add	DWORD PTR -144[rbp], 4
	nop
.L100:
	add	DWORD PTR -136[rbp], 1
.L98:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L102
.L97:
	add	DWORD PTR -140[rbp], 1
.L96:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L103
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -148[rbp], 1
	jg	.L104
	mov	esi, 337
	lea	rdi, .LC17[rip]
	call	erro
	jmp	.L105
.L104:
	cmp	DWORD PTR -148[rbp], 2
	jne	.L106
	lea	rax, -128[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L107
	mov	esi, 341
	lea	rdi, .LC18[rip]
	call	erro
.L107:
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
	jmp	.L105
.L106:
	cmp	DWORD PTR -148[rbp], 3
	jne	.L105
	cmp	DWORD PTR -144[rbp], 0
	jne	.L108
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
	jmp	.L105
.L108:
	cmp	DWORD PTR -144[rbp], 3
	jle	.L109
	lea	rax, -128[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L110
	mov	esi, 354
	lea	rdi, .LC18[rip]
	call	erro
.L110:
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -144[rbp]
	lea	edx, -4[rax]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	r
	jmp	.L105
.L109:
	lea	rax, -128[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L111
	mov	esi, 362
	lea	rdi, .LC18[rip]
	call	erro
.L111:
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
.L105:
	cmp	DWORD PTR -148[rbp], 3
	jle	.L112
	cmp	DWORD PTR -144[rbp], 0
	jne	.L113
	mov	esi, 369
	lea	rdi, .LC20[rip]
	call	erro
	jmp	.L112
.L113:
	cmp	DWORD PTR -144[rbp], 3
	jg	.L114
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
	jmp	.L112
.L114:
	cmp	DWORD PTR -144[rbp], 3
	jle	.L112
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -144[rbp]
	lea	edx, -4[rax]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	my_readir
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	r
.L112:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L116
	call	__stack_chk_fail@PLT
.L116:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.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	"218894340.c"
	.text
	.global	maxfile
	.bss
	.align	2
	.type	maxfile, %object
	.size	maxfile, 4
maxfile:
	.space	4
	.global	restline
	.data
	.align	2
	.type	restline, %object
	.size	restline, 4
restline:
	.word	80
	.section	.rodata
	.align	2
.LC0:
	.ascii	"line: %d\000"
	.text
	.align	2
	.global	erro
	.syntax unified
	.arm
	.fpu softvfp
	.type	erro, %function
erro:
	@ 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	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	erro, .-erro
	.section	.rodata
	.align	2
.LC1:
	.ascii	"lstat\000"
	.align	2
.LC2:
	.ascii	"\033[1;34m\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"\033[0m\000"
	.align	2
.LC5:
	.ascii	"\033[1;32m\000"
	.align	2
.LC6:
	.ascii	"  \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	show
	.syntax unified
	.arm
	.fpu softvfp
	.type	show, %function
show:
	@ 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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	mov	r1, #51
	ldr	r0, .L14+4
	bl	erro
.L5:
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L6
	mov	r0, #10
	bl	putchar
	ldr	r3, .L14+8
	mov	r2, #80
	str	r2, [r3]
.L6:
	ldr	r0, [fp, #-112]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, .L14+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bge	.L7
	ldr	r3, .L14+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	str	r3, [fp, #-104]
.L7:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L8
	ldr	r0, .L14+16
	bl	printf
	ldr	r1, [fp, #-112]
	ldr	r0, .L14+20
	bl	printf
	ldr	r0, .L14+24
	bl	printf
	b	.L9
.L8:
	ldr	r3, [fp, #-84]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L14+28
	bl	printf
	ldr	r1, [fp, #-112]
	ldr	r0, .L14+20
	bl	printf
	ldr	r0, .L14+24
	bl	printf
	b	.L9
.L10:
	ldr	r1, [fp, #-112]
	ldr	r0, .L14+20
	bl	printf
.L9:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L11
.L12:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L11:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L12
	ldr	r0, .L14+32
	bl	printf
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, .L14+12
	ldr	r3, [r3]
	add	r3, r3, #2
	sub	r3, r2, r3
	ldr	r2, .L14+8
	str	r3, [r2]
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC1
	.word	restline
	.word	maxfile
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	show, .-show
	.section	.rodata
	.align	2
.LC8:
	.ascii	"chdir\000"
	.align	2
.LC9:
	.ascii	"opendir\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	my_readir
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_readir, %function
my_readir:
	@ args = 0, pretend = 0, frame = 2500632
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2490368
	sub	sp, sp, #10240
	sub	sp, sp, #28
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	str	r0, [r3, #-2068]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	str	r1, [r3, #-2072]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2056]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	sub	r3, r3, #1936
	sub	r3, r3, #8
	ldr	r2, .L54+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L54+8
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #2490368
	sub	r2, r2, #12
	sub	r2, r2, #8192
	mov	r1, r3
	ldr	r0, [r2, #-2068]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	mov	r1, #89
	ldr	r0, .L54+12
	bl	erro
.L17:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2016]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L18
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r0, [r3, #-2068]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	mov	r1, #93
	ldr	r0, .L54+16
	bl	erro
.L19:
	sub	r3, fp, #516
	mov	r1, #500
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r4, r3
	sub	r3, fp, #516
	mov	r0, r3
	bl	opendir
	str	r0, [r4, #-2052]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2052]
	cmp	r3, #0
	bne	.L21
	mov	r1, #97
	ldr	r0, .L54+20
	bl	erro
	b	.L21
.L23:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2048]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r2, .L54+24
	ldr	r2, [r2]
	cmp	r3, r2
	bls	.L22
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2048]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L54+24
	str	r2, [r3]
.L22:
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r1, [r3, #-2056]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r2, r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2048]
	add	r3, r3, #11
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2056]
	add	r3, r3, #1
	str	r3, [r2, #-2056]
.L21:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r4, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r0, [r3, #-2052]
	bl	readdir
	str	r0, [r4, #-2048]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2048]
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	ip, [r3, #-2056]
	mov	r3, sp
	mov	r4, r3
	sub	r2, ip, #1
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	str	r2, [r3, #-2044]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r2, r3, #2
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r1, r3
	add	r3, r2, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [r1, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2064]
	b	.L24
.L25:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r1, [r3, #-2064]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	str	r3, [r2, r1, lsl #2]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	add	r3, r3, #1
	str	r3, [r2, #-2064]
.L24:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2064]
	ldr	r3, [r3, #-2056]
	cmp	r2, r3
	blt	.L25
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2064]
	b	.L26
.L30:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2060]
	b	.L27
.L29:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r0, r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	add	r2, r3, #1
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2040]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	ble	.L28
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r1, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [r1, #-2036]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	add	r2, r3, #1
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2040]
	ldr	r1, [r3, r2, lsl #2]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	str	r1, [r2, r3, lsl #2]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	add	r1, r3, #1
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2036]
	str	r3, [r2, r1, lsl #2]
.L28:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	add	r3, r3, #1
	str	r3, [r2, #-2060]
.L27:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2056]
	ldr	r3, [r3, #-2064]
	sub	r3, r2, r3
	sub	r2, r3, #1
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2060]
	cmp	r3, r2
	blt	.L29
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	add	r3, r3, #1
	str	r3, [r2, #-2064]
.L26:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2056]
	sub	r2, r3, #1
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	cmp	r3, r2
	blt	.L30
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2072]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L31
.L33:
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L32
.L36:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2064]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2060]
	b	.L37
.L40:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	sub	r3, r3, #1936
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L52
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r0, r3
	bl	show
	b	.L39
.L52:
	nop
.L39:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	add	r3, r3, #1
	str	r3, [r2, #-2064]
.L37:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2064]
	ldr	r3, [r3, #-2056]
	cmp	r2, r3
	blt	.L40
	mov	r0, #10
	bl	putchar
	b	.L31
.L35:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2064]
	b	.L41
.L42:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r0, r3
	bl	show
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	add	r3, r3, #1
	str	r3, [r2, #-2064]
.L41:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2064]
	ldr	r3, [r3, #-2056]
	cmp	r2, r3
	blt	.L42
	mov	r0, #10
	bl	putchar
	b	.L31
.L34:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2064]
	b	.L43
.L46:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	sub	r3, r3, #1936
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L53
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r0, r3
	bl	print
	b	.L45
.L53:
	nop
.L45:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	add	r3, r3, #1
	str	r3, [r2, #-2064]
.L43:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2064]
	ldr	r3, [r3, #-2056]
	cmp	r2, r3
	blt	.L46
	b	.L31
.L32:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2064]
	b	.L47
.L48:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2040]
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L54+28
	sub	r3, fp, #12
	add	r2, r3, r2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r0, r3
	bl	print
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2064]
	add	r3, r3, #1
	str	r3, [r2, #-2064]
.L47:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2064]
	ldr	r3, [r3, #-2056]
	cmp	r2, r3
	blt	.L48
	nop
.L31:
	mov	sp, r4
	b	.L49
.L18:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r0, [r3, #-2068]
	bl	print
.L49:
	sub	r3, fp, #2490368
	sub	r3, r3, #12
	sub	r3, r3, #8192
	ldr	r0, [r3, #-2052]
	bl	closedir
	mov	r3, #0
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC10
	.word	2500000
	.word	-2500592
	.word	.LC1
	.word	.LC8
	.word	.LC9
	.word	maxfile
	.word	-2500504
	.size	my_readir, .-my_readir
	.section	.rodata
	.align	2
.LC11:
	.ascii	"stat\000"
	.align	2
.LC12:
	.ascii	".\000"
	.align	2
.LC13:
	.ascii	"..\000"
	.align	2
.LC14:
	.ascii	"\033[1;33m\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	r
	.syntax unified
	.arm
	.fpu softvfp
	.type	r, %function
r:
	@ args = 0, pretend = 0, frame = 2112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2112
	str	r0, [fp, #-2112]
	str	r1, [fp, #-2116]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2008]
	sub	r3, fp, #2000
	sub	r3, r3, #4
	mov	r2, #996
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2096
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2112]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L57
	mov	r1, #172
	ldr	r0, .L67+4
	bl	erro
.L57:
	ldr	r0, [fp, #-2112]
	bl	chdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L58
	mov	r1, #174
	ldr	r0, .L67+8
	bl	erro
.L58:
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #1008
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-2108]
	ldr	r3, [fp, #-2108]
	cmp	r3, #0
	bne	.L60
	mov	r1, #177
	ldr	r0, .L67+12
	bl	erro
	b	.L60
.L65:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #11
	sub	r2, fp, #2096
	sub	r2, r2, #4
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L61
	mov	r1, #181
	ldr	r0, .L67+16
	bl	erro
.L61:
	ldr	r3, [fp, #-2084]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L60
	ldr	r3, [fp, #-2104]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L67+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-2104]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L67+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	b	.L60
.L63:
	sub	r2, fp, #1008
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2004]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L64
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3, #-2004]
.L64:
	ldr	r3, [fp, #-2104]
	add	r2, r3, #11
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r0, .L67+28
	bl	printf
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	ldr	r0, .L67+32
	bl	printf
	ldr	r3, [fp, #-2116]
	sub	r2, r3, #4
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	my_readir
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2116]
	mov	r0, r3
	bl	r
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L60:
	ldr	r0, [fp, #-2108]
	bl	readdir
	str	r0, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L67+24
	bl	chdir
	ldr	r0, [fp, #-2108]
	bl	closedir
	nop
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC15
	.word	.LC1
	.word	.LC8
	.word	.LC9
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC4
	.size	r, .-r
	.section	.rodata
	.align	2
.LC16:
	.ascii	" %ld\000"
	.align	2
.LC17:
	.ascii	" %s\000"
	.align	2
.LC18:
	.ascii	" %s\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L70
	mov	r1, #213
	ldr	r0, .L101+4
	bl	erro
.L70:
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L71
	mov	r0, #108
	bl	putchar
	b	.L72
.L71:
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L73
	mov	r0, #45
	bl	putchar
	b	.L72
.L73:
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L74
	mov	r0, #100
	bl	putchar
	b	.L72
.L74:
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #8192
	bne	.L75
	mov	r0, #99
	bl	putchar
	b	.L72
.L75:
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #24576
	bne	.L76
	mov	r0, #98
	bl	putchar
	b	.L72
.L76:
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #4096
	bne	.L77
	mov	r0, #102
	bl	putchar
	b	.L72
.L77:
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #49152
	bne	.L72
	mov	r0, #115
	bl	putchar
.L72:
	ldr	r3, [fp, #-144]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L78
	mov	r0, #114
	bl	putchar
	b	.L79
.L78:
	mov	r0, #45
	bl	putchar
.L79:
	ldr	r3, [fp, #-144]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L80
	mov	r0, #119
	bl	putchar
	b	.L81
.L80:
	mov	r0, #45
	bl	putchar
.L81:
	ldr	r3, [fp, #-144]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L82
	mov	r0, #120
	bl	putchar
	b	.L83
.L82:
	mov	r0, #45
	bl	putchar
.L83:
	ldr	r3, [fp, #-144]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L84
	mov	r0, #114
	bl	putchar
	b	.L85
.L84:
	mov	r0, #45
	bl	putchar
.L85:
	ldr	r3, [fp, #-144]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L86
	mov	r0, #119
	bl	putchar
	b	.L87
.L86:
	mov	r0, #45
	bl	putchar
.L87:
	ldr	r3, [fp, #-144]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L88
	mov	r0, #120
	bl	putchar
	b	.L89
.L88:
	mov	r0, #45
	bl	putchar
.L89:
	ldr	r3, [fp, #-144]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L90
	mov	r0, #114
	bl	putchar
	b	.L91
.L90:
	mov	r0, #45
	bl	putchar
.L91:
	ldr	r3, [fp, #-144]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L92
	mov	r0, #119
	bl	putchar
	b	.L93
.L92:
	mov	r0, #45
	bl	putchar
.L93:
	ldr	r3, [fp, #-144]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L94
	mov	r0, #120
	bl	putchar
	b	.L95
.L94:
	mov	r0, #45
	bl	putchar
.L95:
	ldr	r3, [fp, #-112]
	mov	r1, r3
	ldr	r0, .L101+8
	bl	printf
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	getpwuid
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-104]
	mov	r0, r3
	bl	getgrgid
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-140]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L101+12
	bl	printf
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L101+12
	bl	printf
	ldr	r3, [fp, #-88]
	mov	r1, r3
	ldr	r0, .L101+8
	bl	printf
	sub	r3, fp, #132
	add	r3, r3, #64
	mov	r0, r3
	bl	ctime
	mov	r2, r0
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #40
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-36]
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L101+12
	bl	printf
	ldr	r3, [fp, #-144]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L96
	ldr	r0, .L101+16
	bl	printf
	ldr	r1, [fp, #-152]
	ldr	r0, .L101+20
	bl	printf
	ldr	r0, .L101+24
	bl	printf
	b	.L100
.L96:
	ldr	r3, [fp, #-144]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L98
	ldr	r0, .L101+28
	bl	printf
	ldr	r1, [fp, #-152]
	ldr	r0, .L101+20
	bl	printf
	ldr	r0, .L101+24
	bl	printf
	b	.L100
.L98:
	ldr	r1, [fp, #-152]
	ldr	r0, .L101+20
	bl	printf
.L100:
	nop
	ldr	r3, .L101
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC19
	.word	.LC1
	.word	.LC16
	.word	.LC17
	.word	.LC2
	.word	.LC18
	.word	.LC4
	.word	.LC5
	.size	print, .-print
	.section	.rodata
	.align	2
.LC20:
	.ascii	"flag = %d\012\000"
	.align	2
.LC21:
	.ascii	"\350\276\223\345\205\245\351\224\231\350\257\257\000"
	.align	2
.LC22:
	.ascii	"getcwd\000"
	.align	2
.LC23:
	.ascii	"\347\233\256\345\275\225\350\267\257\345\276\204:%s"
	.ascii	"\012\000"
	.align	2
.LC24:
	.ascii	"flag\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L125
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-112]
	sub	r3, fp, #108
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-60]
	sub	r3, fp, #56
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L104
.L111:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L105
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L106
.L110:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L107
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	b	.L108
.L107:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L109
	ldr	r3, [fp, #-128]
	add	r3, r3, #2
	str	r3, [fp, #-128]
	b	.L108
.L109:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L108
	ldr	r3, [fp, #-128]
	add	r3, r3, #4
	str	r3, [fp, #-128]
	nop
.L108:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L106:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	blt	.L110
.L105:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L104:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L111
	ldr	r1, [fp, #-128]
	ldr	r0, .L125+4
	bl	printf
	ldr	r3, [fp, #-136]
	cmp	r3, #1
	bgt	.L112
	ldr	r1, .L125+8
	ldr	r0, .L125+12
	bl	erro
	b	.L113
.L112:
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	bne	.L114
	sub	r3, fp, #112
	mov	r1, #50
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L115
	ldr	r1, .L125+16
	ldr	r0, .L125+20
	bl	erro
.L115:
	sub	r3, fp, #112
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	my_readir
	b	.L113
.L114:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	bne	.L113
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bne	.L116
	ldr	r3, [fp, #-140]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #112
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	my_readir
	b	.L113
.L116:
	ldr	r3, [fp, #-128]
	cmp	r3, #3
	ble	.L117
	sub	r3, fp, #112
	mov	r1, #50
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L118
	ldr	r1, .L125+24
	ldr	r0, .L125+20
	bl	erro
.L118:
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, .L125+28
	bl	printf
	ldr	r3, [fp, #-128]
	sub	r2, r3, #4
	sub	r3, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	my_readir
	sub	r3, fp, #112
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	r
	b	.L113
.L117:
	sub	r3, fp, #112
	mov	r1, #50
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	ldr	r1, .L125+32
	ldr	r0, .L125+20
	bl	erro
.L119:
	sub	r3, fp, #112
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	my_readir
.L113:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	ble	.L120
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bne	.L121
	ldr	r1, .L125+36
	ldr	r0, .L125+40
	bl	erro
	b	.L120
.L121:
	ldr	r3, [fp, #-128]
	cmp	r3, #3
	bgt	.L122
	ldr	r3, [fp, #-136]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #112
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	my_readir
	b	.L120
.L122:
	ldr	r3, [fp, #-128]
	cmp	r3, #3
	ble	.L120
	ldr	r3, [fp, #-136]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-128]
	sub	r2, r3, #4
	sub	r3, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	my_readir
	sub	r3, fp, #112
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	r
.L120:
	mov	r3, #0
	ldr	r2, .L125
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L124
	bl	__stack_chk_fail
.L124:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC25
	.word	.LC20
	.word	337
	.word	.LC21
	.word	341
	.word	.LC22
	.word	354
	.word	.LC23
	.word	362
	.word	369
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
