	.file	"37637591.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cannot open directory: %s\n"
.LC1:
	.string	"."
.LC2:
	.string	".."
.LC3:
	.string	""
.LC4:
	.string	"%*s%s/\n"
.LC5:
	.string	"%*s%s\n"
	.text
	.globl	printdir
	.type	printdir, @function
printdir:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -184[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L1
.L2:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, 19[rax]
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	lstat@PLT
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L5
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -188[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -188[rbp]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 19
	mov	esi, edx
	mov	rdi, rax
	call	printdir
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -188[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L8
	lea	rdi, .LC2[rip]
	call	chdir@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printdir, .-printdir
	.section	.rodata
.LC6:
	.string	"Directory scan of /home:"
.LC7:
	.string	"/home"
.LC8:
	.string	"done."
	.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
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	esi, 0
	lea	rdi, .LC7[rip]
	call	printdir
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"37637591.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cannot open directory: %s\012\000"
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"%*s%s/\012\000"
	.align	2
.LC5:
	.ascii	"%*s%s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	printdir, %function
printdir:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-112]
	bl	opendir
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	ldr	r1, .L10+8
	mov	r0, r3
	bl	fprintf
	b	.L1
.L2:
	ldr	r0, [fp, #-112]
	bl	chdir
	b	.L4
.L8:
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L5
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L10+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L10+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	b	.L4
.L7:
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	ldr	r2, .L10+20
	ldr	r1, [fp, #-116]
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-104]
	add	r2, r3, #11
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	printdir
	b	.L4
.L5:
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	ldr	r2, .L10+20
	ldr	r1, [fp, #-116]
	ldr	r0, .L10+28
	bl	printf
.L4:
	ldr	r0, [fp, #-108]
	bl	readdir
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L10+16
	bl	chdir
	ldr	r0, [fp, #-108]
	bl	closedir
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	printdir, .-printdir
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Directory scan of /home:\000"
	.align	2
.LC8:
	.ascii	"/home\000"
	.align	2
.LC9:
	.ascii	"done.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L13
	bl	puts
	mov	r1, #0
	ldr	r0, .L13+4
	bl	printdir
	ldr	r0, .L13+8
	bl	puts
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
