	.file	"extr_brsfolder.c_get_number_of_folders.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"*"
.LC1:
	.string	"."
.LC2:
	.string	".."
	.text
	.p2align 4
	.type	get_number_of_folders, @function
get_number_of_folders:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rbx, rsp
	mov	rdx, rax
	add	rax, 15
	mov	rcx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rcx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L25
.L4:
	sub	edx, 1
	mov	esi, edi
	lea	rbx, -48[rbp]
	mov	rdi, rsp
	call	lstrcpynA@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rsp
	call	strcat@PLT
	mov	rsi, rbx
	mov	rdi, rsp
	call	FindFirstFileA@PLT
	cmp	QWORD PTR INVALID_HANDLE_VALUE[rip], rax
	mov	r12, rax
	je	.L9
	xor	r14d, r14d
	lea	r13, .LC1[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbx
	mov	rdi, r12
	call	FindNextFileA@PLT
	test	rax, rax
	je	.L26
.L7:
	mov	eax, DWORD PTR -48[rbp]
	test	DWORD PTR FILE_ATTRIBUTE_DIRECTORY[rip], eax
	je	.L6
	mov	edi, DWORD PTR -44[rbp]
	mov	rsi, r13
	call	strcmp@PLT
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR -44[rbp]
	lea	rsi, .LC2[rip]
	call	strcmp@PLT
	mov	rsi, rbx
	mov	rdi, r12
	cmp	rax, 1
	sbb	r14d, -1
	call	FindNextFileA@PLT
	test	rax, rax
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, r12
	call	FindClose@PLT
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -32[rbp]
	mov	eax, r14d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L9:
	mov	r14d, -1
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_number_of_folders, .-get_number_of_folders
	.comm	MAX_PATH,4,4
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_brsfolder.c_get_number_of_folders.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"*\000"
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_number_of_folders, %function
get_number_of_folders:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	ldr	r3, .L21
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	sub	r2, r2, #1
	mov	r0, sp
	bl	lstrcpynA
	mov	r0, sp
	bl	strlen
	mov	r2, #2
	ldr	r1, .L21+8
	add	r0, sp, r0
	bl	memcpy
	mov	r0, sp
	sub	r1, fp, #40
	bl	FindFirstFileA
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L6
	mov	r4, r0
	mov	r7, #0
	ldr	r5, .L21+16
	ldr	r6, .L21+20
	ldr	r8, .L21+24
	b	.L4
.L3:
	mov	r0, r4
	sub	r1, fp, #40
	bl	FindNextFileA
	cmp	r0, #0
	beq	.L19
.L4:
	ldr	r2, [fp, #-40]
	ldr	r3, [r5]
	tst	r2, r3
	beq	.L3
	mov	r1, r6
	ldr	r0, [fp, #-36]
	bl	strcmp
	cmp	r0, #0
	beq	.L3
	mov	r1, r8
	ldr	r0, [fp, #-36]
	bl	strcmp
	cmp	r0, #0
	addne	r7, r7, #1
	b	.L3
.L19:
	mov	r0, r4
	bl	FindClose
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r7
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L6:
	mvn	r7, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	MAX_PATH
	.word	.LC3
	.word	.LC0
	.word	INVALID_HANDLE_VALUE
	.word	FILE_ATTRIBUTE_DIRECTORY
	.word	.LC1
	.word	.LC2
	.size	get_number_of_folders, .-get_number_of_folders
	.comm	MAX_PATH,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
