	.file	"135062.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"path too long (%ld) %s%c%s"
.LC1:
	.string	"%s%c%s"
.LC2:
	.string	".."
.LC3:
	.string	"."
	.align 8
.LC4:
	.string	"Reached maximum number of directories to count (%lu) after %lu files\n"
	.align 8
.LC5:
	.string	"Reached maximum number of files to count (%lu) after %lu directories\n"
	.text
	.globl	count
	.type	count, @function
count:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 208
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -4312[rbp], rdi
	mov	QWORD PTR -4320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4312[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -4288[rbp], rax
	cmp	QWORD PTR -4288[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -4312[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L1
.L12:
	mov	rax, QWORD PTR -4312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -4280[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	cmp	rax, 4096
	jbe	.L5
	mov	rax, QWORD PTR -4280[rbp]
	lea	rbx, 19[rax]
	mov	rax, QWORD PTR -4312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	r12, rax
	mov	rax, QWORD PTR -4280[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	add	rax, r12
	lea	rsi, 1[rax]
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -4312[rbp]
	mov	r9, rbx
	mov	r8d, 47
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L1
.L5:
	mov	DWORD PTR -4292[rbp], 0
	mov	rax, QWORD PTR -4280[rbp]
	movzx	eax, BYTE PTR 18[rax]
	test	al, al
	jne	.L6
	mov	rax, QWORD PTR -4280[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -4312[rbp]
	lea	rax, -4128[rbp]
	mov	r8, rcx
	mov	ecx, 47
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -4272[rbp]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	test	eax, eax
	je	.L7
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L1
.L7:
	mov	eax, DWORD PTR -4248[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L8
	mov	DWORD PTR -4292[rbp], 1
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -4280[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	jne	.L8
	mov	DWORD PTR -4292[rbp], 1
.L8:
	cmp	DWORD PTR -4292[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -4280[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -4280[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	jne	.L10
	mov	rax, QWORD PTR -4320[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -4280[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -4312[rbp]
	lea	rax, -4128[rbp]
	mov	r8, rcx
	mov	ecx, 47
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -4320[rbp]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	count
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, -1
	jne	.L11
	mov	rax, QWORD PTR -4320[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	QWORD PTR 8[rax], rdx
.L4:
	mov	rax, QWORD PTR -4288[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -4280[rbp], rax
	cmp	QWORD PTR -4280[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -4288[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	add	rsp, 4304
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count, .-count
	.section	.rodata
	.align 8
.LC6:
	.string	"%s contains %lu files and %lu directories\n"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	cmp	DWORD PTR -52[rbp], 1
	jle	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L17
.L16:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -40[rbp], rax
.L17:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	count
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L19
.L18:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"135062.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"path too long (%ld) %s%c%s\000"
	.align	2
.LC1:
	.ascii	"%s%c%s\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.align	2
.LC3:
	.ascii	".\000"
	.align	2
.LC4:
	.ascii	"Reached maximum number of directories to count (%lu"
	.ascii	") after %lu files\012\000"
	.align	2
.LC5:
	.ascii	"Reached maximum number of files to count (%lu) afte"
	.ascii	"r %lu directories\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	count
	.syntax unified
	.arm
	.fpu softvfp
	.type	count, %function
count:
	@ args = 0, pretend = 0, frame = 4216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4224
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-120]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	opendir
	str	r0, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	perror
	b	.L1
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	cmp	r3, #4096
	bls	.L5
	ldr	r3, .L15+4
	ldr	r4, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	strlen
	mov	r5, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r5, r3
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r3, [sp, #4]
	mov	r3, #47
	str	r3, [sp]
	ldr	r3, [r1, #-116]
	ldr	r1, .L15+8
	mov	r0, r4
	bl	fprintf
	b	.L1
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r3, [sp]
	mov	r3, #47
	ldr	r2, [r2, #-116]
	ldr	r1, .L15+12
	bl	sprintf
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	perror
	b	.L1
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-108]
	b	.L8
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-108]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L15+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L15+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L15+24
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r3, [r3, #4]
	ldr	r1, .L15+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #11
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r3, [sp]
	mov	r3, #47
	ldr	r2, [r2, #-116]
	ldr	r1, .L15+12
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r3, [r3]
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-120]
	mov	r0, r3
	bl	count
	b	.L4
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	bne	.L11
	ldr	r3, .L15+24
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r2, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r3, [r3]
	ldr	r1, .L15+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	str	r2, [r3, #4]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	readdir
	str	r0, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	closedir
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.size	count, .-count
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s contains %lu files and %lu directories\012\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	b	.L19
.L18:
	ldr	r3, .L24+4
	str	r3, [fp, #-20]
.L19:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	count
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L21
.L20:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L24+8
	bl	printf
.L21:
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC3
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
