	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_FileIsInPAK                 ## -- Begin function FS_FileIsInPAK
	.p2align	4, 0x90
_FS_FileIsInPAK:                        ## @FS_FileIsInPAK
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_fs_searchpaths@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	testq	%r13, %r13
	je	LBB0_3
LBB0_4:
	movb	(%r13), %al
	cmpb	$92, %al
	je	LBB0_6
## %bb.5:
	cmpb	$47, %al
	jne	LBB0_7
LBB0_6:
	incq	%r13
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_8
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
	testq	%r13, %r13
	jne	LBB0_4
LBB0_3:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_21
## %bb.9:
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_21
## %bb.10:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_21
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%rax), %esi
	movq	%r13, %rdi
	callq	_FS_HashFileName
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r12
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_FS_PakIsPure
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	(%rax,%r12,8), %rbx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx), %edi
	movq	%r13, %rsi
	callq	_FS_FilenameCompare
	testl	%eax, %eax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_16
	jmp	LBB0_20
LBB0_17:
	movl	$1, %r15d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_fs_searchpaths,8,3             ## @fs_searchpaths
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Filesystem call made without initialization\n"

L_.str.1:                               ## @.str.1
	.asciz	"FS_FOpenFileRead: NULL 'filename' parameter passed\n"

L_.str.2:                               ## @.str.2
	.asciz	".."

L_.str.3:                               ## @.str.3
	.asciz	"::"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_FileIsInPAK                 ; -- Begin function FS_FileIsInPAK
	.p2align	2
_FS_FileIsInPAK:                        ; @FS_FileIsInPAK
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _fs_searchpaths@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fs_searchpaths@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.1:
	cbz	x20, LBB0_9
LBB0_2:
	ldrb	w8, [x20]
	cmp	w8, #92
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #47
	b.ne	LBB0_5
LBB0_4:
	add	x20, x20, #1
LBB0_5:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_10
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh4:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	cbnz	x20, LBB0_2
LBB0_9:
Lloh9:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
	b	LBB0_2
LBB0_10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strstr
	mov	x8, x0
	mov	w0, #-1
	cbnz	x8, LBB0_7
; %bb.11:
	ldr	x22, [x21]
	cbnz	x22, LBB0_13
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_6
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x8, #16]
	mov	x0, x20
	bl	_FS_HashFileName
	mov	x21, x0
	ldr	x0, [x22]
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_FS_PakIsPure
	cbz	w0, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x23, [x22]
	ldr	x8, [x23, #8]
	ldr	x21, [x8, x21, lsl #3]
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_FS_FilenameCompare
	cbz	w0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x21, [x21]
	cbnz	x21, LBB0_18
	b	LBB0_12
LBB0_20:
	cbz	x19, LBB0_22
; %bb.21:
	ldr	w8, [x23]
	str	w8, [x19]
LBB0_22:
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_fs_searchpaths,8,3             ; @fs_searchpaths
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Filesystem call made without initialization\n"

l_.str.1:                               ; @.str.1
	.asciz	"FS_FOpenFileRead: NULL 'filename' parameter passed\n"

l_.str.2:                               ; @.str.2
	.asciz	".."

l_.str.3:                               ; @.str.3
	.asciz	"::"

.subsections_via_symbols
