	.file	"extr_files.c_FS_GetFileList.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"$modlist"
	.text
	.p2align 4
	.globl	FS_GetFileList
	.type	FS_GetFileList, @function
FS_GetFileList:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	BYTE PTR [rdx], 0
	mov	DWORD PTR 4[rsp], 0
	call	Q_stricmp@PLT
	test	rax, rax
	je	.L14
	mov	rsi, r14
	mov	rdi, r12
	lea	rdx, 4[rsp]
	xor	r14d, r14d
	call	FS_ListFiles@PLT
	xor	r12d, r12d
	mov	r15, rax
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, QWORD PTR [r15+r14*8]
	mov	rdi, rbp
	movsx	rbx, ebx
	add	r14, 1
	add	rbp, rbx
	call	strcpy@PLT
	cmp	DWORD PTR 4[rsp], r14d
	jle	.L5
.L4:
	mov	rdi, QWORD PTR [r15+r14*8]
	call	strlen@PLT
	lea	ebx, 1[rax]
	add	r12d, ebx
	lea	eax, 1[r12]
	cmp	eax, r13d
	jl	.L15
	mov	DWORD PTR 4[rsp], r14d
.L5:
	mov	rdi, r15
	call	FS_FreeFileList@PLT
	mov	eax, DWORD PTR 4[rsp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, rbp
	call	FS_GetModList@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	FS_GetFileList, .-FS_GetFileList
	.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_files.c_FS_GetFileList.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"$modlist\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FS_GetFileList
	.syntax unified
	.arm
	.fpu softvfp
	.type	FS_GetFileList, %function
FS_GetFileList:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	mov	r6, r2
	ldr	r2, .L16
	sub	sp, sp, #20
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r7, r1
	strb	r5, [r6]
	ldr	r1, .L16+4
	mov	r9, r3
	mov	r4, r0
	str	r5, [sp, #8]
	bl	Q_stricmp
	cmp	r0, r5
	beq	.L13
	mov	r1, r7
	mov	r0, r4
	add	r2, sp, #8
	bl	FS_ListFiles
	ldr	r10, [sp, #8]
	str	r0, [sp, #4]
	cmp	r10, #0
	ble	.L5
	mov	r7, r5
	sub	r8, r0, #4
	b	.L7
.L14:
	mov	r0, r6
	mov	r1, fp
	add	r7, r7, #1
	bl	strcpy
	cmp	r7, r10
	add	r6, r6, r4
	beq	.L5
.L7:
	ldr	fp, [r8, #4]!
	mov	r0, fp
	bl	strlen
	add	r4, r0, #1
	add	r5, r5, r4
	add	r3, r5, #1
	cmp	r3, r9
	blt	.L14
	str	r7, [sp, #8]
.L5:
	ldr	r0, [sp, #4]
	bl	FS_FreeFileList
	ldr	r0, [sp, #8]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r1, r9
	mov	r0, r6
	bl	FS_GetModList
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.size	FS_GetFileList, .-FS_GetFileList
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
