	.file	"169925.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"list_dir ; %s : %s \n"
.LC1:
	.string	"Directory : %s \n"
.LC2:
	.string	"%c"
.LC3:
	.string	"%s \t %ld \t %s \t %s"
.LC4:
	.string	"%d \t %ld \t %s \t %s"
	.text
	.globl	list_dir
	.type	list_dir, @function
list_dir:
.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, 352
	mov	QWORD PTR -344[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L9
.L2:
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -312[rbp]
	lea	rdx, 19[rax]
	lea	rax, -240[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	stat@PLT
	mov	rax, QWORD PTR -312[rbp]
	lea	rdx, 19[rax]
	lea	rax, -240[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	stat@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -328[rbp], rax
.L5:
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -336[rbp], rax
	lea	rdx, -304[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	localtime_r@PLT
	lea	rdx, -304[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 80
	mov	rdi, rax
	call	strftime@PLT
	cmp	QWORD PTR -328[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, 19[rax]
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -96[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, 19[rax]
	mov	rdx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -212[rbp]
	lea	rcx, -96[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L4:
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	list_dir, .-list_dir
	.section	.rodata
.LC5:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jne	.L12
	lea	rdi, .LC5[rip]
	call	list_dir
	jmp	.L13
.L12:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	list_dir
	test	eax, eax
	je	.L15
	mov	DWORD PTR -8[rbp], 1
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L16
	mov	eax, DWORD PTR -8[rbp]
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"169925.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"list_dir ; %s : %s \012\000"
	.align	2
.LC1:
	.ascii	"Directory : %s \012\000"
	.align	2
.LC2:
	.ascii	"%c\000"
	.align	2
.LC3:
	.ascii	"%s \011 %ld \011 %s \011 %s\000"
	.align	2
.LC4:
	.ascii	"%d \011 %ld \011 %s \011 %s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	list_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_dir, %function
list_dir:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #256
	str	r0, [fp, #-248]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-248]
	bl	opendir
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-248]
	ldr	r0, .L11+4
	bl	printf
	mov	r3, #0
	b	.L9
.L2:
	ldr	r1, [fp, #-248]
	ldr	r0, .L11+8
	bl	printf
	mov	r0, #10
	bl	putchar
	b	.L4
.L8:
	ldr	r3, [fp, #-228]
	add	r3, r3, #11
	sub	r2, fp, #180
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-228]
	add	r3, r3, #11
	sub	r2, fp, #180
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-156]
	mov	r0, r3
	bl	getpwuid
	str	r0, [fp, #-236]
.L5:
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-240]
	sub	r2, fp, #224
	sub	r3, fp, #240
	mov	r1, r2
	mov	r0, r3
	bl	localtime_r
	sub	r3, fp, #224
	sub	r0, fp, #88
	ldr	r2, .L11+12
	mov	r1, #80
	bl	strftime
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-236]
	ldr	r1, [r3]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-228]
	add	r3, r3, #11
	sub	r0, fp, #88
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L11+16
	bl	printf
	mov	r0, #10
	bl	putchar
	b	.L4
.L6:
	ldr	r1, [fp, #-156]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-228]
	add	r3, r3, #11
	sub	r0, fp, #88
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L11+20
	bl	printf
	mov	r0, #10
	bl	putchar
.L4:
	ldr	r0, [fp, #-232]
	bl	readdir
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-232]
	bl	closedir
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	list_dir, .-list_dir
	.section	.rodata
	.align	2
.LC6:
	.ascii	".\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	cmp	r3, #1
	bne	.L14
	ldr	r0, .L19
	bl	list_dir
	mov	r3, r0
	b	.L15
.L14:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L16
.L18:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	list_dir
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mov	r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-12]
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
