	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_FindImageFile                ## -- Begin function R_FindImageFile
	.p2align	4, 0x90
_R_FindImageFile:                       ## @R_FindImageFile
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dmlab_context
	movq	%rax, %r12
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -60(%rbp)
	movq	$0, -72(%rbp)
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.1:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_generateHashValue
	movq	_hashTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_3
LBB0_8:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	*24(%r12)
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	movl	(%r12), %edi
	movq	_ri@GOTPCREL(%rip), %r14
	movl	8(%r14), %r9d
	leaq	-72(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r13, %rsi
	callq	*16(%r12)
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movl	8(%r15), %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	cmpl	%r8d, %ecx
	je	LBB0_20
## %bb.6:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	*16(%rax)
	jmp	LBB0_20
LBB0_9:
	movq	_MAX_QPATH@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_COM_StripExtension
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_Q_strcat
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-112(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%r14, %rdi
	movq	_ri@GOTPCREL(%rip), %r14
	callq	_R_LoadDDS
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	movq	-112(%rbp), %rax
	movq	_GL_RGBA8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.11:
	movq	%rdx, %rdi
	callq	*(%r14)
	movq	$0, -72(%rbp)
	movl	$0, -60(%rbp)
LBB0_12:
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	callq	_R_LoadImage
LBB0_14:
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
LBB0_16:
	movl	(%r12), %edi
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %r8d
	movq	%rbx, %rsi
	callq	*8(%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movl	$1, -60(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1, %r8d
	jmp	LBB0_19
LBB0_15:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_17:
	movl	-60(%rbp), %r8d
LBB0_19:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rsi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	%r15
	pushq	$0
	pushq	%rax
	callq	_R_CreateImageInternal
	addq	$32, %rsp
	movq	%rax, %r15
	movq	-72(%rbp), %rdi
	callq	*(%r14)
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_hashTable,8,3                  ## @hashTable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*white"

	.comm	_ri,24,3                        ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: reused image %s with mixed flags (%i vs %i)\n"

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

	.comm	_GL_RGBA8,8,3                   ## @GL_RGBA8
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_FindImageFile                ; -- Begin function R_FindImageFile
	.p2align	2
_R_FindImageFile:                       ; @R_FindImageFile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_dmlab_context
	mov	x22, x0
Lloh3:
	adrp	x28, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAX_QPATH@GOTPAGEOFF]
	ldr	w25, [x28]
	mov	x9, x25
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x12, x9, #0x1fffffff0
	sub	x26, x8, x12
	mov	sp, x26
	mov	x9, x25
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	stur	xzr, [x29, #-96]
	stur	wzr, [x29, #-100]
	stur	xzr, [x29, #-112]
	cbz	x20, LBB0_15
; %bb.1:
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	mov	x0, x20
	bl	_generateHashValue
Lloh12:
	adrp	x8, _hashTable@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hashTable@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x24, [x8, x0, lsl #3]
	cbz	x24, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [x24, #16]
	cbnz	x24, LBB0_2
LBB0_4:
	ldr	x8, [x22, #24]
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	blr	x8
	cmp	x0, #0
	csel	x24, x20, x26, eq
	ldr	x8, [x22, #16]
	ldr	w0, [x22]
Lloh15:
	adrp	x25, _ri@GOTPAGE
Lloh16:
	ldr	x25, [x25, _ri@GOTPAGEOFF]
	ldr	w5, [x25, #8]
	sub	x2, x29, #112
	sub	x3, x29, #92
	sub	x4, x29, #96
	mov	x1, x24
	blr	x8
Lloh17:
	adrp	x26, _qfalse@GOTPAGE
Lloh18:
	ldr	x26, [x26, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w27, [x26]
	ldur	x2, [x29, #-112]
	cbnz	x2, LBB0_13
	b	LBB0_15
LBB0_6:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w3, [x24, #8]
	cmp	w3, w19
	b.eq	LBB0_18
; %bb.8:
Lloh21:
	adrp	x8, _ri@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8, #16]
Lloh24:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x9]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	blr	x8
	b	LBB0_18
LBB0_9:
	ldr	w2, [x28]
	mov	x0, x24
	mov	x1, x23
	bl	_COM_StripExtension
	ldr	w1, [x28]
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_Q_strcat
	sub	x1, x29, #112
	sub	x2, x29, #92
	sub	x3, x29, #96
	sub	x4, x29, #120
	sub	x5, x29, #100
	mov	x0, x23
	bl	_R_LoadDDS
	ldur	x2, [x29, #-112]
	cbz	x2, LBB0_12
; %bb.10:
	ldur	x8, [x29, #-120]
Lloh31:
	adrp	x9, _GL_RGBA8@GOTPAGE
Lloh32:
	ldr	x9, [x9, _GL_RGBA8@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x25]
	mov	x0, x2
	blr	x8
	stur	xzr, [x29, #-112]
	stur	wzr, [x29, #-100]
LBB0_12:
	sub	x1, x29, #112
	sub	x2, x29, #92
	sub	x3, x29, #96
	mov	x0, x24
	bl	_R_LoadImage
	ldur	x2, [x29, #-112]
	cbz	x2, LBB0_15
LBB0_13:
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	ldp	w4, w3, [x29, #-96]
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_16
; %bb.14:
	mov	w4, #1
	stur	w4, [x29, #-100]
	ldr	w27, [x26]
	b	LBB0_17
LBB0_15:
	mov	x24, #0
	b	LBB0_18
LBB0_16:
	ldur	w4, [x29, #-100]
LBB0_17:
	ldur	x1, [x29, #-112]
	ldp	w3, w2, [x29, #-96]
	str	w27, [sp, #-16]!
	mov	x0, x20
	mov	x5, x21
	mov	x6, x19
	mov	w7, #0
	bl	_R_CreateImageInternal
	add	sp, sp, #16
	mov	x24, x0
	ldr	x8, [x25]
	ldur	x0, [x29, #-112]
	blr	x8
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_hashTable,8,3                  ; @hashTable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*white"

	.comm	_ri,24,3                        ; @ri
	.comm	_PRINT_DEVELOPER,4,2            ; @PRINT_DEVELOPER
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: reused image %s with mixed flags (%i vs %i)\n"

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

	.comm	_GL_RGBA8,8,3                   ; @GL_RGBA8
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
