	.file	"97013705.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"."
.LC1:
	.string	"opendir"
.LC2:
	.string	"the_stack_data/97013705.c"
.LC3:
	.string	"%s:%d\n"
.LC4:
	.string	"lstat"
.LC5:
	.string	"readdir"
.LC6:
	.string	"closedir"
	.align 8
.LC7:
	.string	"Files: %d, Dirs: %d, Links: %d, Other: %d\n"
	.text
	.globl	scan_dir
	.type	scan_dir, @function
scan_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, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -192[rbp], 0
	mov	DWORD PTR -188[rbp], 0
	mov	DWORD PTR -184[rbp], 0
	mov	DWORD PTR -180[rbp], 0
	lea	rdi, .LC0[rip]
	call	opendir@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 16
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, 19[rax]
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	lstat@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 20
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L5
	add	DWORD PTR -192[rbp], 1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L6
	add	DWORD PTR -188[rbp], 1
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L7
	add	DWORD PTR -184[rbp], 1
	jmp	.L3
.L7:
	add	DWORD PTR -180[rbp], 1
.L3:
	cmp	QWORD PTR -168[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L8
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 27
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	closedir@PLT
	test	eax, eax
	je	.L9
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 28
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	esi, DWORD PTR -180[rbp]
	mov	ecx, DWORD PTR -184[rbp]
	mov	edx, DWORD PTR -192[rbp]
	mov	eax, DWORD PTR -188[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	scan_dir, .-scan_dir
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	scan_dir
	mov	eax, 0
	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	"97013705.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"opendir\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/97013705.c\000"
	.align	2
.LC3:
	.ascii	"%s:%d\012\000"
	.align	2
.LC4:
	.ascii	"lstat\000"
	.align	2
.LC5:
	.ascii	"readdir\000"
	.align	2
.LC6:
	.ascii	"closedir\000"
	.align	2
.LC7:
	.ascii	"Files: %d, Dirs: %d, Links: %d, Other: %d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scan_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_dir, %function
scan_dir:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r0, .L11+4
	bl	opendir
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L11+8
	bl	perror
	ldr	r3, .L11+12
	ldr	r0, [r3]
	mov	r3, #16
	ldr	r2, .L11+16
	ldr	r1, .L11+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-108]
	bl	readdir
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L11+24
	bl	perror
	ldr	r3, .L11+12
	ldr	r0, [r3]
	mov	r3, #20
	ldr	r2, .L11+16
	ldr	r1, .L11+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L5
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	b	.L3
.L5:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L6
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	b	.L3
.L6:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L7
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
	b	.L3
.L7:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L3:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L11+28
	bl	perror
	ldr	r3, .L11+12
	ldr	r0, [r3]
	mov	r3, #27
	ldr	r2, .L11+16
	ldr	r1, .L11+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r0, [fp, #-108]
	bl	closedir
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L11+32
	bl	perror
	ldr	r3, .L11+12
	ldr	r0, [r3]
	mov	r3, #28
	ldr	r2, .L11+16
	ldr	r1, .L11+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-112]
	str	r3, [sp]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-120]
	ldr	r0, .L11+36
	bl	printf
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	scan_dir, .-scan_dir
	.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]
	bl	scan_dir
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
