	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_generateHashValue
	movq	_hashTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_4:
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	callq	_R_LoadImage
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_7
## %bb.5:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	movsbl	-3(%r14,%rbx), %edi
	callq	_toupper
	movb	%al, -3(%r14,%rbx)
	movsbl	-2(%r14,%rbx), %edi
	callq	_toupper
	movb	%al, -2(%r14,%rbx)
	movsbl	-1(%r14,%rbx), %edi
	callq	_toupper
	movb	%al, -1(%r14,%rbx)
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	*8(%rax)
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_R_LoadImage
	cmpq	$0, -56(%rbp)
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ecx
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	pushq	%r14
	callq	_R_CreateImage
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	_ri@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdi
	callq	*(%rax)
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.10:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	cmpl	%r12d, 16(%rbx)
	jne	LBB0_15
## %bb.13:
	cmpl	%r15d, 12(%rbx)
	jne	LBB0_16
LBB0_14:
	cmpl	%r14d, 8(%rbx)
	je	LBB0_9
	jmp	LBB0_17
LBB0_15:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	*8(%rax)
	cmpl	%r15d, 12(%rbx)
	je	LBB0_14
LBB0_16:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	*8(%rax)
	cmpl	%r14d, 8(%rbx)
	je	LBB0_9
LBB0_17:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	*8(%rax)
	jmp	LBB0_9
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hashTable,8,3                  ## @hashTable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*white"

	.comm	_ri,16,3                        ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: reused image %s with mixed mipmap parm\n"

L_.str.2:                               ## @.str.2
	.asciz	"WARNING: reused image %s with mixed allowPicmip parm\n"

	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
L_.str.3:                               ## @.str.3
	.asciz	"WARNING: reused image %s with mixed glWrapClampMode parm\n"

	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
L_.str.4:                               ## @.str.4
	.asciz	"trying %s...\n"

.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_generateHashValue
Lloh3:
	adrp	x8, _hashTable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hashTable@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x23, [x8, x0, lsl #3]
	cbz	x23, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [x23, #24]
	cbnz	x23, LBB0_2
LBB0_4:
	sub	x1, x29, #88
	sub	x2, x29, #76
	sub	x3, x29, #80
	mov	x0, x19
	bl	_R_LoadImage
	ldur	x1, [x29, #-88]
	cbnz	x1, LBB0_7
; %bb.5:
	mov	x24, sp
Lloh6:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x23
	mov	x1, x19
	bl	_strcpy
	mov	x0, x23
	bl	_strlen
	add	x25, x23, w0, sxtw
	ldursb	w0, [x25, #-3]
	bl	_toupper
	sturb	w0, [x25, #-3]
	ldursb	w0, [x25, #-2]
	bl	_toupper
	sturb	w0, [x25, #-2]
	ldursb	w0, [x25, #-1]
	bl	_toupper
	sturb	w0, [x25, #-1]
Lloh11:
	adrp	x8, _ri@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8, #8]
Lloh14:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x23
	blr	x8
	sub	x1, x29, #88
	sub	x2, x29, #76
	sub	x3, x29, #80
	mov	x0, x23
	bl	_R_LoadImage
	ldur	x8, [x29, #-88]
	mov	sp, x24
	cbz	x8, LBB0_8
; %bb.6:
	ldur	x1, [x29, #-88]
LBB0_7:
	ldp	w3, w2, [x29, #-80]
	mov	x0, x19
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_R_CreateImage
	mov	x23, x0
Lloh19:
	adrp	x8, _ri@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldur	x0, [x29, #-88]
	blr	x8
	b	LBB0_9
LBB0_8:
	mov	x23, #0
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.10:
	mov	x0, x23
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.12:
	ldr	w8, [x23, #16]
	cmp	w8, w22
	b.eq	LBB0_14
; %bb.13:
Lloh27:
	adrp	x8, _ri@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8, #8]
Lloh30:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x9]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	blr	x8
LBB0_14:
	ldr	w8, [x23, #12]
	cmp	w8, w21
	b.eq	LBB0_16
; %bb.15:
Lloh35:
	adrp	x8, _ri@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8, #8]
Lloh38:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x9]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	blr	x8
LBB0_16:
	ldr	w8, [x23, #8]
	cmp	w8, w20
	b.eq	LBB0_9
; %bb.17:
Lloh43:
	adrp	x8, _ri@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8, #8]
Lloh46:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh47:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x9]
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	blr	x8
	b	LBB0_9
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_hashTable,8,3                  ; @hashTable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*white"

	.comm	_ri,16,3                        ; @ri
	.comm	_PRINT_DEVELOPER,4,2            ; @PRINT_DEVELOPER
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: reused image %s with mixed mipmap parm\n"

l_.str.2:                               ; @.str.2
	.asciz	"WARNING: reused image %s with mixed allowPicmip parm\n"

	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
l_.str.3:                               ; @.str.3
	.asciz	"WARNING: reused image %s with mixed glWrapClampMode parm\n"

	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
l_.str.4:                               ; @.str.4
	.asciz	"trying %s...\n"

.subsections_via_symbols
