	.file	"extr_files.c_FS_FileIsInPAK.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Filesystem call made without initialization\n"
	.align 8
.LC1:
	.string	"FS_FOpenFileRead: NULL 'filename' parameter passed\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	".."
.LC3:
	.string	"::"
	.text
	.p2align 4
	.globl	FS_FileIsInPAK
	.type	FS_FileIsInPAK, @function
FS_FileIsInPAK:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR fs_searchpaths[rip], 0
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	je	.L34
	test	r12, r12
	je	.L35
.L3:
	movzx	eax, BYTE PTR [r12]
	cmp	al, 47
	je	.L13
	cmp	al, 92
	je	.L13
.L4:
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	strstr@PLT
	test	rax, rax
	jne	.L6
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	strstr@PLT
	test	rax, rax
	jne	.L6
	mov	rbp, QWORD PTR fs_searchpaths[rip]
	test	rbp, rbp
	jne	.L11
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	je	.L6
.L11:
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR 16[rax]
	mov	rdi, r12
	call	FS_HashFileName@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rbx, rax
	test	rdi, rdi
	je	.L7
	mov	rax, QWORD PTR 8[rdi]
	cmp	QWORD PTR [rax+rbx*8], 0
	je	.L7
	call	FS_PakIsPure@PLT
	test	eax, eax
	je	.L7
	mov	r14, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[r14]
	mov	rbx, QWORD PTR [rax+rbx*8]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	je	.L7
.L10:
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, r12
	call	FS_FilenameCompare@PLT
	test	eax, eax
	jne	.L8
	mov	eax, 1
	test	r13, r13
	je	.L1
	mov	edx, DWORD PTR [r14]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[r13], edx
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, -1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	r12, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR ERR_FATAL[rip]
	lea	rsi, .LC0[rip]
	call	Com_Error@PLT
	test	r12, r12
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR ERR_FATAL[rip]
	lea	rsi, .LC1[rip]
	call	Com_Error@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	FS_FileIsInPAK, .-FS_FileIsInPAK
	.comm	fs_searchpaths,8,8
	.comm	ERR_FATAL,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_files.c_FS_FileIsInPAK.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Filesystem call made without initialization\012\000"
	.align	2
.LC1:
	.ascii	"FS_FOpenFileRead: NULL 'filename' parameter passed\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.align	2
.LC3:
	.ascii	"::\000"
	.text
	.align	2
	.global	FS_FileIsInPAK
	.syntax unified
	.arm
	.fpu softvfp
	.type	FS_FileIsInPAK, %function
FS_FileIsInPAK:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L36
	mov	r6, r0
	ldr	r3, [r4]
	mov	r7, r1
	cmp	r3, #0
	beq	.L34
	cmp	r6, #0
	beq	.L35
.L3:
	ldrb	r3, [r6]	@ zero_extendqisi2
	ldr	r1, .L36+4
	cmp	r3, #92
	cmpne	r3, #47
	addeq	r6, r6, #1
	mov	r0, r6
	bl	strstr
	cmp	r0, #0
	bne	.L5
	mov	r0, r6
	ldr	r1, .L36+8
	bl	strstr
	cmp	r0, #0
	bne	.L5
	ldr	r5, [r4]
	cmp	r5, #0
	bne	.L10
	b	.L5
.L6:
	ldr	r5, [r5, #4]
	cmp	r5, #0
	beq	.L5
.L10:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [r3, #8]
	mov	r0, r6
	bl	FS_HashFileName
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, #0
	beq	.L6
	ldr	r2, [r3, #4]
	ldr	r2, [r2, r0, lsl #2]
	cmp	r2, #0
	beq	.L6
	mov	r0, r3
	bl	FS_PakIsPure
	cmp	r0, #0
	beq	.L6
	ldr	r8, [r5]
	ldr	r3, [r8, #4]
	ldr	r4, [r3, r4, lsl #2]
	b	.L9
.L7:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L6
.L9:
	mov	r1, r6
	ldr	r0, [r4, #4]
	bl	FS_FilenameCompare
	cmp	r0, #0
	bne	.L7
	cmp	r7, #0
	beq	.L11
	ldr	r3, [r8]
	mov	r0, #1
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L34:
	ldr	r3, .L36+12
	ldr	r1, .L36+16
	ldr	r0, [r3]
	bl	Com_Error
	cmp	r6, #0
	bne	.L3
.L35:
	ldr	r3, .L36+12
	ldr	r1, .L36+20
	ldr	r0, [r3]
	bl	Com_Error
	b	.L3
.L37:
	.align	2
.L36:
	.word	fs_searchpaths
	.word	.LC2
	.word	.LC3
	.word	ERR_FATAL
	.word	.LC0
	.word	.LC1
	.size	FS_FileIsInPAK, .-FS_FileIsInPAK
	.comm	fs_searchpaths,4,4
	.comm	ERR_FATAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
