	.file	"extr_sys_unix.c_Sys_ListFilteredFiles.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/%s"
.LC1:
	.string	"%s"
.LC2:
	.string	"."
.LC3:
	.string	".."
	.text
	.p2align 4
	.globl	Sys_ListFilteredFiles
	.type	Sys_ListFilteredFiles, @function
Sys_ListFilteredFiles:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -96[rbp], rdx
	mov	QWORD PTR -104[rbp], rcx
	mov	rbx, rsp
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -72[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_OSPATH[rip]
	mov	QWORD PTR -112[rbp], rsp
	mov	r12, rax
	add	rax, 15
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L3
.L51:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L51
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L52
.L4:
	mov	rcx, rax
	mov	rbx, rsp
	mov	rdx, rax
	mov	r15, rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L6
.L53:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L53
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L54
.L7:
	mov	rdx, rax
	mov	rbx, rsp
	and	rax, -4096
	mov	QWORD PTR -128[rbp], rsp
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L9
.L55:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L55
.L9:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L10
	or	QWORD PTR -8[rsp+rdx], 0
.L10:
	mov	eax, DWORD PTR MAX_FOUND_FILES[rip]
	mov	rdi, QWORD PTR -72[rbp]
	mov	rbx, rsp
	sub	eax, 1
	cmp	DWORD PTR [rdi], eax
	jge	.L11
	mov	r8, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	cmp	BYTE PTR [r8], 0
	je	.L12
	lea	rdx, .LC0[rip]
	mov	esi, r12d
	mov	rdi, r15
	xor	eax, eax
	call	Com_sprintf@PLT
.L13:
	mov	rdi, r15
	call	opendir@PLT
	mov	r13, rax
	test	rax, rax
	je	.L11
	lea	rax, -60[rbp]
	mov	QWORD PTR -88[rbp], rax
.L15:
	mov	rdi, r13
	call	readdir@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
.L24:
	mov	r8, QWORD PTR [r14]
	mov	esi, r12d
	mov	rdi, rbx
	xor	eax, eax
	mov	rcx, r15
	lea	rdx, .LC0[rip]
	call	Com_sprintf@PLT
	mov	rsi, QWORD PTR -88[rbp]
	mov	rdi, rbx
	call	stat@PLT
	cmp	eax, -1
	je	.L15
	mov	eax, DWORD PTR -60[rbp]
	test	DWORD PTR S_IFDIR[rip], eax
	jne	.L56
.L17:
	mov	eax, DWORD PTR MAX_FOUND_FILES[rip]
	mov	rsi, QWORD PTR -72[rbp]
	sub	eax, 1
	cmp	DWORD PTR [rsi], eax
	jge	.L25
	mov	r8, QWORD PTR [r14]
	mov	rcx, QWORD PTR -80[rbp]
	lea	rdx, .LC0[rip]
	xor	eax, eax
	mov	esi, r12d
	mov	rdi, rbx
	call	Com_sprintf@PLT
	mov	edx, DWORD PTR qfalse[rip]
	mov	rdi, QWORD PTR -96[rbp]
	mov	rsi, rbx
	call	Com_FilterPath@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -104[rbp]
	mov	rdi, rbx
	movsx	rax, DWORD PTR [rax]
	lea	r14, [rsi+rax*8]
	call	CopyString@PLT
	mov	rdi, r13
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR -72[rbp]
	add	DWORD PTR [rax], 1
	call	readdir@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, r13
	call	closedir@PLT
	mov	rsp, QWORD PTR -112[rbp]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L57
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L54:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L56:
	mov	rdi, QWORD PTR [r14]
	lea	rsi, .LC2[rip]
	call	Q_stricmp@PLT
	test	rax, rax
	je	.L17
	mov	rdi, QWORD PTR [r14]
	lea	rsi, .LC3[rip]
	call	Q_stricmp@PLT
	test	rax, rax
	je	.L17
	mov	rcx, QWORD PTR -80[rbp]
	mov	r8, QWORD PTR [r14]
	cmp	BYTE PTR [rcx], 0
	je	.L19
	mov	rdi, QWORD PTR -128[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, r12d
	xor	eax, eax
	call	Com_sprintf@PLT
.L20:
	mov	r8, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	mov	rdi, QWORD PTR -120[rbp]
	call	Sys_ListFilteredFiles
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsp, QWORD PTR -112[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdx, .LC1[rip]
	mov	esi, r12d
	mov	rdi, r15
	xor	eax, eax
	call	Com_sprintf@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR -128[rbp]
	mov	rcx, r8
	lea	rdx, .LC1[rip]
	xor	eax, eax
	mov	esi, r12d
	call	Com_sprintf@PLT
	jmp	.L20
.L57:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Sys_ListFilteredFiles, .-Sys_ListFilteredFiles
	.comm	qfalse,4,4
	.comm	S_IFDIR,4,4
	.comm	MAX_OSPATH,4,4
	.comm	MAX_FOUND_FILES,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_sys_unix.c_Sys_ListFilteredFiles.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/%s\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	".\000"
	.align	2
.LC3:
	.ascii	"..\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Sys_ListFilteredFiles
	.syntax unified
	.arm
	.fpu softvfp
	.type	Sys_ListFilteredFiles, %function
Sys_ListFilteredFiles:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #52
	ldr	ip, .L36
	ldr	r9, .L36+4
	ldr	r6, [ip]
	ldr	r7, [fp, #4]
	add	ip, r6, #7
	bic	ip, ip, #7
	str	sp, [fp, #-64]
	ldr	lr, [r9]
	sub	sp, sp, ip
	ldr	r4, [r7]
	add	r10, sp, #8
	sub	sp, sp, ip
	add	r5, sp, #8
	str	r3, [fp, #-60]
	sub	lr, lr, #1
	ldr	r3, .L36+8
	str	r5, [fp, #-72]
	str	r0, [fp, #-68]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	cmp	r4, lr
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	sp, sp, ip
	bge	.L2
	ldrb	r3, [r1]	@ zero_extendqisi2
	add	r5, sp, #8
	cmp	r3, #0
	bne	.L33
	mov	r1, r6
	mov	r0, r10
	ldr	r3, [fp, #-68]
	ldr	r2, .L36+12
	bl	Com_sprintf
.L4:
	mov	r0, r10
	bl	opendir
	subs	r3, r0, #0
	str	r3, [fp, #-48]
	beq	.L2
	ldr	r8, .L36+16
.L6:
	ldr	r0, [fp, #-48]
	bl	readdir
	subs	r4, r0, #0
	beq	.L16
.L15:
	ldr	r2, [r4]
	mov	r3, r10
	mov	r1, r6
	str	r2, [sp]
	mov	r0, r5
	mov	r2, r8
	bl	Com_sprintf
	mov	r0, r5
	sub	r1, fp, #44
	bl	stat
	cmn	r0, #1
	beq	.L6
	ldr	r3, .L36+20
	ldr	r2, [fp, #-44]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L34
.L8:
	ldr	r3, [r9]
	ldr	r2, [r7]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L16
	ldr	r2, [r4]
	ldr	r3, [fp, #-52]
	mov	r1, r6
	str	r2, [sp]
	mov	r0, r5
	mov	r2, r8
	bl	Com_sprintf
	ldr	r3, .L36+24
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [fp, #-56]
	bl	Com_FilterPath
	cmp	r0, #0
	beq	.L6
	mov	r0, r5
	ldr	r4, [r7]
	bl	CopyString
	ldr	r3, [r7]
	ldr	r2, [fp, #-60]
	add	r3, r3, #1
	str	r0, [r2, r4, lsl #2]
	ldr	r0, [fp, #-48]
	str	r3, [r7]
	bl	readdir
	subs	r4, r0, #0
	bne	.L15
.L16:
	ldr	r0, [fp, #-48]
	bl	closedir
	ldr	sp, [fp, #-64]
.L1:
	ldr	r3, .L36+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r3, r0
	str	r1, [sp]
	mov	r0, r10
	mov	r1, r6
	ldr	r2, .L36+16
	bl	Com_sprintf
	b	.L4
.L34:
	ldr	r1, .L36+28
	ldr	r0, [r4]
	bl	Q_stricmp
	cmp	r0, #0
	beq	.L8
	ldr	r1, .L36+32
	ldr	r0, [r4]
	bl	Q_stricmp
	cmp	r0, #0
	beq	.L8
	ldr	r1, [fp, #-52]
	ldr	r3, [r4]
	ldrb	r2, [r1]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L10
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r1
	ldr	r0, [fp, #-72]
	mov	r1, r6
	bl	Com_sprintf
.L11:
	str	r7, [sp]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-68]
	bl	Sys_ListFilteredFiles
	b	.L8
.L2:
	ldr	sp, [fp, #-64]
	b	.L1
.L10:
	mov	r1, r6
	ldr	r2, .L36+12
	ldr	r0, [fp, #-72]
	bl	Com_sprintf
	b	.L11
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	MAX_OSPATH
	.word	MAX_FOUND_FILES
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	S_IFDIR
	.word	qfalse
	.word	.LC2
	.word	.LC3
	.size	Sys_ListFilteredFiles, .-Sys_ListFilteredFiles
	.comm	qfalse,4,4
	.comm	S_IFDIR,4,4
	.comm	MAX_OSPATH,4,4
	.comm	MAX_FOUND_FILES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
