	.file	"67326632.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"[d"
.LC1:
	.string	"[l"
.LC2:
	.string	"[-"
	.text
	.globl	printPermission
	.type	printPermission, @function
printPermission:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 16384
	test	eax, eax
	je	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 40960
	test	eax, eax
	je	.L4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L4:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 256
	test	eax, eax
	je	.L5
	mov	edi, 114
	call	putchar@PLT
	jmp	.L6
.L5:
	mov	edi, 45
	call	putchar@PLT
.L6:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 128
	test	eax, eax
	je	.L7
	mov	edi, 119
	call	putchar@PLT
	jmp	.L8
.L7:
	mov	edi, 45
	call	putchar@PLT
.L8:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 64
	test	eax, eax
	je	.L9
	mov	edi, 120
	call	putchar@PLT
	jmp	.L10
.L9:
	mov	edi, 45
	call	putchar@PLT
.L10:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 32
	test	eax, eax
	je	.L11
	mov	edi, 114
	call	putchar@PLT
	jmp	.L12
.L11:
	mov	edi, 45
	call	putchar@PLT
.L12:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 16
	test	eax, eax
	je	.L13
	mov	edi, 119
	call	putchar@PLT
	jmp	.L14
.L13:
	mov	edi, 45
	call	putchar@PLT
.L14:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 8
	test	eax, eax
	je	.L15
	mov	edi, 120
	call	putchar@PLT
	jmp	.L16
.L15:
	mov	edi, 45
	call	putchar@PLT
.L16:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 4
	test	eax, eax
	je	.L17
	mov	edi, 114
	call	putchar@PLT
	jmp	.L18
.L17:
	mov	edi, 45
	call	putchar@PLT
.L18:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 2
	test	eax, eax
	je	.L19
	mov	edi, 119
	call	putchar@PLT
	jmp	.L20
.L19:
	mov	edi, 45
	call	putchar@PLT
.L20:
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 1
	test	eax, eax
	je	.L21
	mov	edi, 120
	call	putchar@PLT
	jmp	.L22
.L21:
	mov	edi, 45
	call	putchar@PLT
.L22:
	mov	edi, 93
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printPermission, .-printPermission
	.section	.rodata
.LC3:
	.string	"failed to open directory"
.LC4:
	.string	"."
.LC5:
	.string	".."
.LC6:
	.string	"stat failed"
.LC7:
	.string	"    "
.LC8:
	.string	"%s (%d bytes)\n"
.LC9:
	.string	"%s (sub-directory)\n"
.LC10:
	.string	"readdir failed"
.LC11:
	.string	"closedir failed"
	.text
	.globl	printFilesWithPermisions
	.type	printFilesWithPermisions, @function
printFilesWithPermisions:
.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, 1248
	mov	QWORD PTR -1224[rbp], rdi
	mov	DWORD PTR -1228[rbp], esi
	mov	QWORD PTR -1240[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1200[rbp], rax
	cmp	QWORD PTR -1200[rbp], 0
	jne	.L26
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L39
.L36:
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	jmp	.L26
.L28:
	mov	rdx, QWORD PTR -1224[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -1192[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdx, -1184[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L29
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L39
.L29:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L30
	mov	rax, QWORD PTR -1240[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L31
	mov	rax, QWORD PTR -1192[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -1240[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
.L31:
	mov	DWORD PTR -1208[rbp], 0
	jmp	.L32
.L33:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1208[rbp], 1
.L32:
	mov	eax, DWORD PTR -1208[rbp]
	cmp	eax, DWORD PTR -1228[rbp]
	jl	.L33
	push	QWORD PTR -1048[rbp]
	push	QWORD PTR -1056[rbp]
	push	QWORD PTR -1064[rbp]
	push	QWORD PTR -1072[rbp]
	push	QWORD PTR -1080[rbp]
	push	QWORD PTR -1088[rbp]
	push	QWORD PTR -1096[rbp]
	push	QWORD PTR -1104[rbp]
	push	QWORD PTR -1112[rbp]
	push	QWORD PTR -1120[rbp]
	push	QWORD PTR -1128[rbp]
	push	QWORD PTR -1136[rbp]
	push	QWORD PTR -1144[rbp]
	push	QWORD PTR -1152[rbp]
	push	QWORD PTR -1160[rbp]
	push	QWORD PTR -1168[rbp]
	push	QWORD PTR -1176[rbp]
	push	QWORD PTR -1184[rbp]
	call	printPermission
	add	rsp, 144
	mov	rax, QWORD PTR -1136[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L30:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L26
	mov	DWORD PTR -1204[rbp], 0
	jmp	.L34
.L35:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1204[rbp], 1
.L34:
	mov	eax, DWORD PTR -1204[rbp]
	cmp	eax, DWORD PTR -1228[rbp]
	jl	.L35
	push	QWORD PTR -1048[rbp]
	push	QWORD PTR -1056[rbp]
	push	QWORD PTR -1064[rbp]
	push	QWORD PTR -1072[rbp]
	push	QWORD PTR -1080[rbp]
	push	QWORD PTR -1088[rbp]
	push	QWORD PTR -1096[rbp]
	push	QWORD PTR -1104[rbp]
	push	QWORD PTR -1112[rbp]
	push	QWORD PTR -1120[rbp]
	push	QWORD PTR -1128[rbp]
	push	QWORD PTR -1136[rbp]
	push	QWORD PTR -1144[rbp]
	push	QWORD PTR -1152[rbp]
	push	QWORD PTR -1160[rbp]
	push	QWORD PTR -1168[rbp]
	push	QWORD PTR -1176[rbp]
	push	QWORD PTR -1184[rbp]
	call	printPermission
	add	rsp, 144
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1228[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -1240[rbp]
	lea	rax, -1040[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	printFilesWithPermisions
.L26:
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1192[rbp], rax
	cmp	QWORD PTR -1192[rbp], 0
	jne	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L37
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L39
.L37:
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	closedir@PLT
	test	eax, eax
	je	.L38
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L39
.L38:
	mov	eax, 0
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printFilesWithPermisions, .-printFilesWithPermisions
	.section	.rodata
.LC12:
	.string	"%s (subdirectory)\n"
	.text
	.globl	printFiles
	.type	printFiles, @function
printFiles:
.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, 1248
	mov	QWORD PTR -1224[rbp], rdi
	mov	DWORD PTR -1228[rbp], esi
	mov	QWORD PTR -1240[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1200[rbp], rax
	cmp	QWORD PTR -1200[rbp], 0
	jne	.L44
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L56
.L53:
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
	jmp	.L44
.L46:
	mov	rdx, QWORD PTR -1224[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -1192[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdx, -1184[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L47
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L56
.L47:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L48
	mov	DWORD PTR -1208[rbp], 0
	jmp	.L49
.L50:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1208[rbp], 1
.L49:
	mov	eax, DWORD PTR -1208[rbp]
	cmp	eax, DWORD PTR -1228[rbp]
	jl	.L50
	mov	rax, QWORD PTR -1136[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L44
.L48:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L44
	mov	DWORD PTR -1204[rbp], 0
	jmp	.L51
.L52:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1204[rbp], 1
.L51:
	mov	eax, DWORD PTR -1204[rbp]
	cmp	eax, DWORD PTR -1228[rbp]
	jl	.L52
	mov	rax, QWORD PTR -1192[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1228[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -1240[rbp]
	lea	rax, -1040[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	printFiles
.L44:
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1192[rbp], rax
	cmp	QWORD PTR -1192[rbp], 0
	jne	.L53
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L54
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L56
.L54:
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	closedir@PLT
	test	eax, eax
	je	.L55
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L56
.L55:
	mov	eax, 0
.L56:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printFiles, .-printFiles
	.globl	printFilesPrefixMatch
	.type	printFilesPrefixMatch, @function
printFilesPrefixMatch:
.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, 1264
	mov	QWORD PTR -1240[rbp], rdi
	mov	DWORD PTR -1244[rbp], esi
	mov	QWORD PTR -1256[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1240[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1216[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	jne	.L61
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L74
.L71:
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
	jmp	.L61
.L63:
	mov	rdx, QWORD PTR -1240[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -1208[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdx, -1184[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L64
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L74
.L64:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L65
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	mov	QWORD PTR -1200[rbp], rax
	mov	rdx, QWORD PTR -1256[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -1192[rbp], rax
	mov	DWORD PTR -1228[rbp], 0
	cmp	QWORD PTR -1192[rbp], 0
	je	.L66
	mov	DWORD PTR -1228[rbp], 1
.L66:
	cmp	DWORD PTR -1228[rbp], 1
	jne	.L61
	mov	DWORD PTR -1224[rbp], 0
	jmp	.L67
.L68:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1224[rbp], 1
.L67:
	mov	eax, DWORD PTR -1224[rbp]
	cmp	eax, DWORD PTR -1244[rbp]
	jl	.L68
	push	QWORD PTR -1048[rbp]
	push	QWORD PTR -1056[rbp]
	push	QWORD PTR -1064[rbp]
	push	QWORD PTR -1072[rbp]
	push	QWORD PTR -1080[rbp]
	push	QWORD PTR -1088[rbp]
	push	QWORD PTR -1096[rbp]
	push	QWORD PTR -1104[rbp]
	push	QWORD PTR -1112[rbp]
	push	QWORD PTR -1120[rbp]
	push	QWORD PTR -1128[rbp]
	push	QWORD PTR -1136[rbp]
	push	QWORD PTR -1144[rbp]
	push	QWORD PTR -1152[rbp]
	push	QWORD PTR -1160[rbp]
	push	QWORD PTR -1168[rbp]
	push	QWORD PTR -1176[rbp]
	push	QWORD PTR -1184[rbp]
	call	printPermission
	add	rsp, 144
	mov	rax, QWORD PTR -1136[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L61
.L65:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L61
	mov	DWORD PTR -1220[rbp], 0
	jmp	.L69
.L70:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1220[rbp], 1
.L69:
	mov	eax, DWORD PTR -1220[rbp]
	cmp	eax, DWORD PTR -1244[rbp]
	jl	.L70
	push	QWORD PTR -1048[rbp]
	push	QWORD PTR -1056[rbp]
	push	QWORD PTR -1064[rbp]
	push	QWORD PTR -1072[rbp]
	push	QWORD PTR -1080[rbp]
	push	QWORD PTR -1088[rbp]
	push	QWORD PTR -1096[rbp]
	push	QWORD PTR -1104[rbp]
	push	QWORD PTR -1112[rbp]
	push	QWORD PTR -1120[rbp]
	push	QWORD PTR -1128[rbp]
	push	QWORD PTR -1136[rbp]
	push	QWORD PTR -1144[rbp]
	push	QWORD PTR -1152[rbp]
	push	QWORD PTR -1160[rbp]
	push	QWORD PTR -1168[rbp]
	push	QWORD PTR -1176[rbp]
	push	QWORD PTR -1184[rbp]
	call	printPermission
	add	rsp, 144
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1244[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -1256[rbp]
	lea	rax, -1040[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	printFilesPrefixMatch
.L61:
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	jne	.L71
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L72
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L74
.L72:
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	closedir@PLT
	test	eax, eax
	je	.L73
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L74
.L73:
	mov	eax, 0
.L74:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printFilesPrefixMatch, .-printFilesPrefixMatch
	.section	.rodata
.LC13:
	.string	"-m"
.LC14:
	.string	""
	.align 8
.LC15:
	.string	"usage ./<filename> <string> to match against"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L77
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L78
	lea	rdx, .LC14[rip]
	mov	esi, 0
	lea	rdi, .LC4[rip]
	call	printFilesWithPermisions
	jmp	.L79
.L77:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L80
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	esi, 0
	lea	rdi, .LC4[rip]
	call	printFilesPrefixMatch
	jmp	.L79
.L80:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L81
	lea	rdx, .LC14[rip]
	mov	esi, 0
	lea	rdi, .LC4[rip]
	call	printFiles
	jmp	.L79
.L81:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L79
.L78:
	mov	eax, 0
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"67326632.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[d\000"
	.align	2
.LC1:
	.ascii	"[l\000"
	.align	2
.LC2:
	.ascii	"[-\000"
	.text
	.align	2
	.global	printPermission
	.syntax unified
	.arm
	.fpu softvfp
	.type	printPermission, %function
printPermission:
	@ args = 88, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #20]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L23
	bl	printf
	b	.L3
.L2:
	ldr	r3, [fp, #20]
	and	r3, r3, #40960
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L23+4
	bl	printf
	b	.L3
.L4:
	ldr	r0, .L23+8
	bl	printf
.L3:
	ldr	r3, [fp, #20]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L5
	mov	r0, #114
	bl	putchar
	b	.L6
.L5:
	mov	r0, #45
	bl	putchar
.L6:
	ldr	r3, [fp, #20]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L7
	mov	r0, #119
	bl	putchar
	b	.L8
.L7:
	mov	r0, #45
	bl	putchar
.L8:
	ldr	r3, [fp, #20]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L9
	mov	r0, #120
	bl	putchar
	b	.L10
.L9:
	mov	r0, #45
	bl	putchar
.L10:
	ldr	r3, [fp, #20]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L11
	mov	r0, #114
	bl	putchar
	b	.L12
.L11:
	mov	r0, #45
	bl	putchar
.L12:
	ldr	r3, [fp, #20]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L13
	mov	r0, #119
	bl	putchar
	b	.L14
.L13:
	mov	r0, #45
	bl	putchar
.L14:
	ldr	r3, [fp, #20]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L15
	mov	r0, #120
	bl	putchar
	b	.L16
.L15:
	mov	r0, #45
	bl	putchar
.L16:
	ldr	r3, [fp, #20]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L17
	mov	r0, #114
	bl	putchar
	b	.L18
.L17:
	mov	r0, #45
	bl	putchar
.L18:
	ldr	r3, [fp, #20]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L19
	mov	r0, #119
	bl	putchar
	b	.L20
.L19:
	mov	r0, #45
	bl	putchar
.L20:
	ldr	r3, [fp, #20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L21
	mov	r0, #120
	bl	putchar
	b	.L22
.L21:
	mov	r0, #45
	bl	putchar
.L22:
	mov	r0, #93
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	printPermission, .-printPermission
	.section	.rodata
	.align	2
.LC3:
	.ascii	"failed to open directory\000"
	.align	2
.LC4:
	.ascii	".\000"
	.align	2
.LC5:
	.ascii	"..\000"
	.align	2
.LC6:
	.ascii	"/\000"
	.align	2
.LC7:
	.ascii	"stat failed\000"
	.align	2
.LC8:
	.ascii	"    \000"
	.align	2
.LC9:
	.ascii	"%s (%d bytes)\012\000"
	.align	2
.LC10:
	.ascii	"%s (sub-directory)\012\000"
	.align	2
.LC11:
	.ascii	"readdir failed\000"
	.align	2
.LC12:
	.ascii	"closedir failed\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printFilesWithPermisions
	.syntax unified
	.arm
	.fpu softvfp
	.type	printFilesWithPermisions, %function
printFilesWithPermisions:
	@ args = 0, pretend = 0, frame = 1152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1216
	sub	sp, sp, #8
	str	r0, [fp, #-1144]
	str	r1, [fp, #-1148]
	str	r2, [fp, #-1152]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1144]
	bl	opendir
	str	r0, [fp, #-1132]
	ldr	r3, [fp, #-1132]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L43+4
	bl	perror
	mvn	r3, #0
	b	.L41
.L38:
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, .L43+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	b	.L28
.L30:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1144]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L43+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1128]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r2, fp, #1120
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r0, .L43+20
	bl	perror
	mvn	r3, #0
	b	.L41
.L31:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L32
	ldr	r3, [fp, #-1152]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, [fp, #-1152]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
.L33:
	mov	r3, #0
	str	r3, [fp, #-1140]
	b	.L34
.L35:
	ldr	r0, .L43+24
	bl	printf
	ldr	r3, [fp, #-1140]
	add	r3, r3, #1
	str	r3, [fp, #-1140]
.L34:
	ldr	r2, [fp, #-1140]
	ldr	r3, [fp, #-1148]
	cmp	r2, r3
	blt	.L35
	mov	r0, sp
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r2, #72
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #1120
	sub	r3, r3, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	printPermission
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r2, [fp, #-1080]
	mov	r1, r3
	ldr	r0, .L43+28
	bl	printf
	b	.L28
.L32:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L28
	mov	r3, #0
	str	r3, [fp, #-1136]
	b	.L36
.L37:
	ldr	r0, .L43+24
	bl	printf
	ldr	r3, [fp, #-1136]
	add	r3, r3, #1
	str	r3, [fp, #-1136]
.L36:
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1148]
	cmp	r2, r3
	blt	.L37
	mov	r0, sp
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r2, #72
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #1120
	sub	r3, r3, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	printPermission
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L43+32
	bl	printf
	ldr	r3, [fp, #-1148]
	add	r1, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1152]
	mov	r0, r3
	bl	printFilesWithPermisions
.L28:
	ldr	r0, [fp, #-1132]
	bl	readdir
	str	r0, [fp, #-1128]
	ldr	r3, [fp, #-1128]
	cmp	r3, #0
	bne	.L38
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L39
	ldr	r0, .L43+36
	bl	perror
	mvn	r3, #0
	b	.L41
.L39:
	ldr	r0, [fp, #-1132]
	bl	closedir
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r0, .L43+40
	bl	perror
	mvn	r3, #0
	b	.L41
.L40:
	mov	r3, #0
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC13
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	printFilesWithPermisions, .-printFilesWithPermisions
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%s (subdirectory)\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printFiles
	.syntax unified
	.arm
	.fpu softvfp
	.type	printFiles, %function
printFiles:
	@ args = 0, pretend = 0, frame = 1152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	str	r0, [fp, #-1144]
	str	r1, [fp, #-1148]
	str	r2, [fp, #-1152]
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1144]
	bl	opendir
	str	r0, [fp, #-1132]
	ldr	r3, [fp, #-1132]
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L62+4
	bl	perror
	mvn	r3, #0
	b	.L60
.L57:
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, .L62+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, .L62+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	b	.L48
.L50:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1144]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L62+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1128]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r2, fp, #1120
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r0, .L62+20
	bl	perror
	mvn	r3, #0
	b	.L60
.L51:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L52
	mov	r3, #0
	str	r3, [fp, #-1140]
	b	.L53
.L54:
	ldr	r0, .L62+24
	bl	printf
	ldr	r3, [fp, #-1140]
	add	r3, r3, #1
	str	r3, [fp, #-1140]
.L53:
	ldr	r2, [fp, #-1140]
	ldr	r3, [fp, #-1148]
	cmp	r2, r3
	blt	.L54
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r2, [fp, #-1080]
	mov	r1, r3
	ldr	r0, .L62+28
	bl	printf
	b	.L48
.L52:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L48
	mov	r3, #0
	str	r3, [fp, #-1136]
	b	.L55
.L56:
	ldr	r0, .L62+24
	bl	printf
	ldr	r3, [fp, #-1136]
	add	r3, r3, #1
	str	r3, [fp, #-1136]
.L55:
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1148]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L62+32
	bl	printf
	ldr	r3, [fp, #-1148]
	add	r1, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1152]
	mov	r0, r3
	bl	printFiles
.L48:
	ldr	r0, [fp, #-1132]
	bl	readdir
	str	r0, [fp, #-1128]
	ldr	r3, [fp, #-1128]
	cmp	r3, #0
	bne	.L57
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L58
	ldr	r0, .L62+36
	bl	perror
	mvn	r3, #0
	b	.L60
.L58:
	ldr	r0, [fp, #-1132]
	bl	closedir
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r0, .L62+40
	bl	perror
	mvn	r3, #0
	b	.L60
.L59:
	mov	r3, #0
.L60:
	ldr	r2, .L62
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC15
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC14
	.word	.LC11
	.word	.LC12
	.size	printFiles, .-printFiles
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printFilesPrefixMatch
	.syntax unified
	.arm
	.fpu softvfp
	.type	printFilesPrefixMatch, %function
printFilesPrefixMatch:
	@ args = 0, pretend = 0, frame = 1168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1232
	sub	sp, sp, #8
	str	r0, [fp, #-1160]
	str	r1, [fp, #-1164]
	str	r2, [fp, #-1168]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1160]
	bl	opendir
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L82+4
	bl	perror
	mvn	r3, #0
	b	.L80
.L77:
	ldr	r3, [fp, #-1136]
	add	r3, r3, #11
	ldr	r1, .L82+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-1136]
	add	r3, r3, #11
	ldr	r1, .L82+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	b	.L67
.L69:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1160]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L82+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1136]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r2, fp, #1120
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L82+20
	bl	perror
	mvn	r3, #0
	b	.L80
.L70:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L71
	ldr	r3, [fp, #-1136]
	add	r3, r3, #11
	str	r3, [fp, #-1132]
	ldr	r1, [fp, #-1168]
	ldr	r0, [fp, #-1132]
	bl	strstr
	str	r0, [fp, #-1128]
	mov	r3, #0
	str	r3, [fp, #-1152]
	ldr	r3, [fp, #-1128]
	cmp	r3, #0
	beq	.L72
	mov	r3, #1
	str	r3, [fp, #-1152]
.L72:
	ldr	r3, [fp, #-1152]
	cmp	r3, #1
	bne	.L67
	mov	r3, #0
	str	r3, [fp, #-1148]
	b	.L73
.L74:
	ldr	r0, .L82+24
	bl	printf
	ldr	r3, [fp, #-1148]
	add	r3, r3, #1
	str	r3, [fp, #-1148]
.L73:
	ldr	r2, [fp, #-1148]
	ldr	r3, [fp, #-1164]
	cmp	r2, r3
	blt	.L74
	mov	r0, sp
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r2, #72
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #1120
	sub	r3, r3, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	printPermission
	ldr	r3, [fp, #-1136]
	add	r3, r3, #11
	ldr	r2, [fp, #-1080]
	mov	r1, r3
	ldr	r0, .L82+28
	bl	printf
	b	.L67
.L71:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L67
	mov	r3, #0
	str	r3, [fp, #-1144]
	b	.L75
.L76:
	ldr	r0, .L82+24
	bl	printf
	ldr	r3, [fp, #-1144]
	add	r3, r3, #1
	str	r3, [fp, #-1144]
.L75:
	ldr	r2, [fp, #-1144]
	ldr	r3, [fp, #-1164]
	cmp	r2, r3
	blt	.L76
	mov	r0, sp
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r2, #72
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #1120
	sub	r3, r3, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	printPermission
	ldr	r3, [fp, #-1136]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L82+32
	bl	printf
	ldr	r3, [fp, #-1164]
	add	r1, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1168]
	mov	r0, r3
	bl	printFilesPrefixMatch
.L67:
	ldr	r0, [fp, #-1140]
	bl	readdir
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	bne	.L77
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L78
	ldr	r0, .L82+36
	bl	perror
	mvn	r3, #0
	b	.L80
.L78:
	ldr	r0, [fp, #-1140]
	bl	closedir
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	ldr	r0, .L82+40
	bl	perror
	mvn	r3, #0
	b	.L80
.L79:
	mov	r3, #0
.L80:
	ldr	r2, .L82
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC16
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	printFilesPrefixMatch, .-printFilesPrefixMatch
	.section	.rodata
	.align	2
.LC17:
	.ascii	"-m\000"
	.align	2
.LC18:
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"usage ./<filename> <string> to match against\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, [fp, #-8]
	cmp	r3, #2
	bne	.L85
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L90
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	ldr	r2, .L90+4
	mov	r1, #0
	ldr	r0, .L90+8
	bl	printFilesWithPermisions
	mov	r3, r0
	b	.L87
.L85:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L88
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, .L90+8
	bl	printFilesPrefixMatch
	mov	r3, r0
	b	.L87
.L88:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L89
	ldr	r2, .L90+4
	mov	r1, #0
	ldr	r0, .L90+8
	bl	printFiles
	mov	r3, r0
	b	.L87
.L89:
	ldr	r0, .L90+12
	bl	puts
	mvn	r3, #0
	b	.L87
.L86:
	mov	r3, #0
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC17
	.word	.LC18
	.word	.LC4
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
