	.file	"212643049.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"a"
.LC1:
	.string	"path too long (%ld) %s%c%s"
.LC2:
	.string	".."
.LC3:
	.string	"."
.LC4:
	.string	"%s%c%s"
.LC5:
	.string	"%s%c%s\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, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -4168[rbp], rdi
	mov	QWORD PTR -4176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4176[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4152[rbp], rax
	mov	rax, QWORD PTR -4168[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -4144[rbp], rax
	cmp	QWORD PTR -4144[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -4168[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L1
.L7:
	mov	rax, QWORD PTR -4168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -4136[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 -4136[rbp]
	lea	rbx, 19[rax]
	mov	rax, QWORD PTR -4168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	r12, rax
	mov	rax, QWORD PTR -4136[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 -4168[rbp]
	mov	r9, rbx
	mov	r8d, 47
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L1
.L5:
	mov	rax, QWORD PTR -4136[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	jne	.L6
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -4136[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -4168[rbp]
	lea	rax, -4128[rbp]
	mov	r8, rcx
	mov	ecx, 47
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -4136[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	r8, rcx
	mov	ecx, 47
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -4176[rbp]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	count
	mov	rax, QWORD PTR -4176[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4152[rbp], rax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -4136[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	r8, rcx
	mov	ecx, 47
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L4:
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -4136[rbp], rax
	cmp	QWORD PTR -4136[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	add	rsp, 4160
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count, .-count
	.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	"212643049.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a\000"
	.align	2
.LC1:
	.ascii	"path too long (%ld) %s%c%s\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.align	2
.LC3:
	.ascii	".\000"
	.align	2
.LC4:
	.ascii	"%s%c%s\000"
	.align	2
.LC5:
	.ascii	"%s%c%s\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 = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4096
	sub	sp, sp, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L10
	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	r1, .L10+4
	ldr	r0, [r3, #-24]
	bl	fopen
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-20]
	bl	opendir
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-20]
	bl	perror
	b	.L1
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-20]
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	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, .L10+8
	ldr	r4, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-20]
	bl	strlen
	mov	r5, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	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, #-8]
	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, #-20]
	ldr	r1, .L10+12
	mov	r0, r4
	bl	fprintf
	b	.L1
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L10+16
	bl	strcmp
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r3, [r1, #-16]
	cmp	r2, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L10+20
	bl	strcmp
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r3, [r1, #-16]
	cmp	r2, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	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, #-20]
	ldr	r1, .L10+24
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #11
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	str	r3, [sp]
	mov	r3, #47
	ldr	r2, [r2, #-20]
	ldr	r1, .L10+28
	ldr	r0, [r0, #-16]
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fclose
	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, #-24]
	mov	r0, r3
	bl	count
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L10+4
	ldr	r0, [r3, #-24]
	bl	fopen
	str	r0, [r4, #-16]
	b	.L4
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #11
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	str	r3, [sp]
	mov	r3, #47
	ldr	r2, [r2, #-20]
	ldr	r1, .L10+28
	ldr	r0, [r0, #-16]
	bl	fprintf
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	readdir
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	closedir
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fclose
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	count, .-count
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
