	.file	"578525.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Current directory: %s\n"
.LC1:
	.string	"."
.LC2:
	.string	"Cannot open %s\n"
	.align 8
.LC3:
	.string	"Size\t I-node\t Permissions\t Type\t Date\t Name"
.LC4:
	.string	"date"
.LC5:
	.string	"type"
.LC6:
	.string	"permissions"
.LC7:
	.string	"%ld\t %ld\t %s\t %s\t %s\t %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -308[rbp], 1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	opendir@PLT
	mov	QWORD PTR -296[rbp], rax
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -296[rbp], rax
.L3:
	cmp	QWORD PTR -296[rbp], 0
	jne	.L4
	cmp	DWORD PTR -308[rbp], 1
	jne	.L5
	lea	rax, -272[rbp]
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR 8[rax]
.L6:
	mov	rcx, QWORD PTR stderr[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -288[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	stat@PLT
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -288[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR 48[rax]
	sub	rsp, 8
	push	rcx
	lea	r9, .LC4[rip]
	lea	r8, .LC5[rip]
	lea	rcx, .LC6[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 19
	mov	rdi, rax
	call	puts@PLT
.L8:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"578525.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Current directory: %s\012\000"
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"Cannot open %s\012\000"
	.align	2
.LC3:
	.ascii	"Size\011 I-node\011 Permissions\011 Type\011 Date\011"
	.ascii	" Name\000"
	.align	2
.LC4:
	.ascii	"permissions\000"
	.align	2
.LC5:
	.ascii	"%ld\011 %ld\011 %s\011 %s\011 %s\011 %s\012\000"
	.align	2
.LC6:
	.ascii	"date\000"
	.align	2
.LC7:
	.ascii	"type\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L12+4
	bl	printf
	ldr	r3, [fp, #-280]
	cmp	r3, #1
	bne	.L2
	ldr	r0, .L12+8
	bl	opendir
	str	r0, [fp, #-276]
	b	.L3
.L2:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-276]
.L3:
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L12+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-280]
	cmp	r3, #1
	bne	.L5
	sub	r3, fp, #264
	b	.L6
.L5:
	ldr	r3, [fp, #-284]
	ldr	r3, [r3, #4]
.L6:
	mov	r2, r3
	ldr	r1, .L12+16
	bl	fprintf
	b	.L7
.L4:
	ldr	r0, .L12+20
	bl	puts
	b	.L8
.L9:
	ldr	r3, [fp, #-272]
	add	r3, r3, #11
	ldr	r1, [fp, #-268]
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-268]
	ldr	r1, [r3, #44]
	ldr	r3, [fp, #-268]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-272]
	add	r3, r3, #11
	str	r3, [sp, #8]
	ldr	r3, .L12+24
	str	r3, [sp, #4]
	ldr	r3, .L12+28
	str	r3, [sp]
	ldr	r3, .L12+32
	ldr	r0, .L12+36
	bl	printf
	ldr	r3, [fp, #-272]
	add	r3, r3, #11
	mov	r0, r3
	bl	puts
.L8:
	ldr	r0, [fp, #-276]
	bl	readdir
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-276]
	bl	closedir
.L7:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC6
	.word	.LC7
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
