	.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	$120, %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, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	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
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	$0, -64(%rbp)
	movq	_GL_RGBA8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movl	$1, -68(%rbp)
	testq	%r15, %r15
	je	LBB0_39
## %bb.1:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_generateHashValue
	movq	_hashTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_8:
	movl	(%r12), %edi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	*24(%r12)
	testq	%rax, %rax
	cmoveq	%r15, %r13
	movl	(%r12), %edi
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r13, %rsi
	callq	*16(%r12)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_39
## %bb.5:
	movl	8(%rbx), %ecx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	cmpl	%r8d, %ecx
	je	LBB0_39
## %bb.6:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	*16(%rax)
	jmp	LBB0_39
LBB0_9:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-88(%rbp), %r8
	leaq	-68(%rbp), %r9
	movq	%r13, %rdi
	callq	_R_LoadImage
	movq	-96(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.13:
	movl	(%r12), %edi
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %r8d
	movq	%r15, %rsi
	callq	*8(%r12)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_15:
	movq	_r_normalMapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	_GL_RGBA8@GOTPCREL(%rip), %rdx
	je	LBB0_31
## %bb.16:
	movq	-88(%rbp), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_31
## %bb.17:
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_31
## %bb.18:
	movq	_IMGFLAG_PICMIP@GOTPCREL(%rip), %rax
	movq	_IMGFLAG_MIPMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IMGFLAG_GENNORMALMAP@GOTPCREL(%rip), %r14
	orl	(%r14), %ecx
	movl	%ecx, %eax
	andl	%r12d, %eax
	cmpl	%ecx, %eax
	jne	LBB0_31
## %bb.19:
	movq	_IMGFLAG_CUBEMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	jne	LBB0_31
## %bb.20:
	movq	%rsp, -152(%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, %rax
	movl	(%r14), %ebx
	movq	%rax, %r14
	notl	%ebx
	andl	%r12d, %ebx
	movq	_IMGFLAG_NOLIGHTSCALE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_COM_StripExtension
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_Q_strcat
	movq	_IMGTYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_R_FindImageFile
	testq	%rax, %rax
	jne	LBB0_30
## %bb.21:
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %eax
	movl	%edi, -112(%rbp)                ## 4-byte Spill
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	imull	%eax, %edi
	shll	$2, %edi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	%rax, %r13
	movq	-64(%rbp), %rdi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	_IMGFLAG_CLAMPTOEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	andl	%r12d, %r8d
	movq	%r13, %rsi
	callq	_RGBAtoNormal
	movq	-64(%rbp), %rdi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	%rdi, %rsi
	callq	_RGBAtoYCoCgA
	movl	-52(%rbp), %ecx
	movl	-56(%rbp), %edx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.23:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movq	_IMGTYPE_NORMAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	incl	%r14d
	addl	$4, %eax
	cmpl	%ecx, %r14d
	jge	LBB0_29
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	testl	%edx, %edx
	jle	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-64(%rbp), %r12
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	imull	%eax, %edx
	movslq	%edx, %r15
	shlq	$2, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r13,%r15), %edi
	addl	$-127, %edi
	movl	$16, %esi
	callq	_MAX
	movl	%eax, %ecx
	movl	(%r12,%r15), %eax
	shll	$7, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_CLAMP
	movl	%eax, (%r12,%r15)
	incl	%ebx
	movl	-56(%rbp), %edx
	addq	$16, %r15
	cmpl	%edx, %ebx
	jl	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	-52(%rbp), %ecx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	_IMGTYPE_NORMAL@GOTPCREL(%rip), %rbx
	movl	-116(%rbp), %eax                ## 4-byte Reload
	jmp	LBB0_28
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_39
LBB0_22:
	movq	_IMGTYPE_NORMAL@GOTPCREL(%rip), %rbx
LBB0_29:
	movq	-64(%rbp), %rdi
	movq	%rdi, %rsi
	callq	_YCoCgAtoRGBA
	movq	_GL_RGBA8@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%rbx), %eax
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movl	-112(%rbp), %edx                ## 4-byte Reload
	movl	-108(%rbp), %ecx                ## 4-byte Reload
	xorl	%r9d, %r9d
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	pushq	$0
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	callq	_R_CreateImage2Internal
	addq	$32, %rsp
	movq	%r13, %rdi
	movq	%r14, %r13
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*8(%rax)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_30:
	movq	-152(%rbp), %rsp                ## 8-byte Reload
	movq	_GL_RGBA8@GOTPCREL(%rip), %rdx
LBB0_31:
	movq	_IMGFLAG_MIPMAP@GOTPCREL(%rip), %r14
	testl	%r12d, (%r14)
	je	LBB0_38
## %bb.32:
	movq	-88(%rbp), %rax
	cmpq	(%rdx), %rax
	je	LBB0_38
## %bb.33:
	movq	_GL_SRGB8_ALPHA8_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.34:
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %esi
	callq	_MAX
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_37
## %bb.35:
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	sarl	%edx
	cmpl	$1, %eax
	movl	%edx, %eax
	ja	LBB0_36
LBB0_37:
	cmpl	-68(%rbp), %ecx
	movl	(%r14), %eax
	notl	%eax
	movl	$-1, %ecx
	cmovgl	%eax, %ecx
	andl	%r12d, %ecx
	movl	%ecx, %r12d
LBB0_38:
	movq	-64(%rbp), %rsi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	-88(%rbp), %r8
	movl	-68(%rbp), %r9d
	movq	%r15, %rdi
	pushq	%r13
	pushq	$0
	pushq	%r12
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_R_CreateImage2Internal
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*8(%rax)
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.40:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_GL_RGBA8,8,3                   ## @GL_RGBA8
	.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"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_IMGFLAG_PICMIP,4,2             ## @IMGFLAG_PICMIP
	.comm	_IMGFLAG_MIPMAP,4,2             ## @IMGFLAG_MIPMAP
	.comm	_IMGFLAG_GENNORMALMAP,4,2       ## @IMGFLAG_GENNORMALMAP
	.comm	_IMGFLAG_CUBEMAP,4,2            ## @IMGFLAG_CUBEMAP
	.comm	_r_normalMapping,8,3            ## @r_normalMapping
	.comm	_IMGTYPE_COLORALPHA,4,2         ## @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ## @IMGFLAG_NOLIGHTSCALE
L_.str.2:                               ## @.str.2
	.asciz	"_n"

	.comm	_IMGTYPE_NORMAL,4,2             ## @IMGTYPE_NORMAL
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ## @IMGFLAG_CLAMPTOEDGE
	.comm	_GL_SRGB8_ALPHA8_EXT,8,3        ## @GL_SRGB8_ALPHA8_EXT
.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, #80
	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	x26, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_QPATH@GOTPAGEOFF]
	ldr	w24, [x26]
	mov	x9, x24
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	stp	xzr, xzr, [x29, #-104]
Lloh7:
	adrp	x28, _GL_RGBA8@GOTPAGE
Lloh8:
	ldr	x28, [x28, _GL_RGBA8@GOTPAGEOFF]
	ldr	x8, [x28]
	stur	x8, [x29, #-112]
	mov	w8, #1
	stur	w8, [x29, #-116]
	cbz	x20, LBB0_23
; %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	x23, [x8, x0, lsl #3]
	cbz	x23, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [x23, #16]
	cbnz	x23, LBB0_2
LBB0_4:
	ldr	x8, [x22, #24]
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	blr	x8
	cmp	x0, #0
	csel	x23, x20, x25, eq
	ldr	x8, [x22, #16]
	ldr	w0, [x22]
Lloh15:
	adrp	x9, _ri@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ri@GOTPAGEOFF]
Lloh17:
	ldr	x5, [x9]
	sub	x2, x29, #104
	sub	x3, x29, #92
	sub	x4, x29, #96
	mov	x1, x23
	blr	x8
Lloh18:
	adrp	x24, _qfalse@GOTPAGE
Lloh19:
	ldr	x24, [x24, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_22
; %bb.5:
	ldr	w27, [x24]
	ldur	x2, [x29, #-104]
	cbz	x2, LBB0_23
LBB0_6:
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	ldp	w4, w3, [x29, #-96]
	mov	x1, x20
	blr	x8
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w22, w27, w8, eq
Lloh20:
	adrp	x8, _r_normalMapping@GOTPAGE
Lloh21:
	ldr	x8, [x8, _r_normalMapping@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh23:
	adrp	x23, _IMGFLAG_MIPMAP@GOTPAGE
Lloh24:
	ldr	x23, [x23, _IMGFLAG_MIPMAP@GOTPAGEOFF]
	cbz	x8, LBB0_26
; %bb.7:
	ldur	x8, [x29, #-112]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.8:
Lloh25:
	adrp	x8, _IMGTYPE_COLORALPHA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IMGTYPE_COLORALPHA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_26
; %bb.9:
Lloh28:
	adrp	x8, _IMGFLAG_PICMIP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IMGFLAG_PICMIP@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh31:
	adrp	x12, _IMGFLAG_GENNORMALMAP@GOTPAGE
Lloh32:
	ldr	x12, [x12, _IMGFLAG_GENNORMALMAP@GOTPAGEOFF]
	ldr	w9, [x12]
	orr	w8, w8, w9
	and	w9, w8, w19
	cmp	w9, w8
	b.ne	LBB0_26
; %bb.10:
Lloh33:
	adrp	x8, _IMGFLAG_CUBEMAP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IMGFLAG_CUBEMAP@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w8, w8, w19
	cbnz	w8, LBB0_26
; %bb.11:
	mov	x24, sp
	ldr	w8, [x26]
	mov	x9, x8
Lloh36:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh37:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w8, [x12]
	bic	w8, w19, w8
Lloh38:
	adrp	x9, _IMGFLAG_NOLIGHTSCALE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IMGFLAG_NOLIGHTSCALE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w27, w8, w9
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x25
	bl	_COM_StripExtension
	ldr	w1, [x26]
Lloh41:
	adrp	x2, l_.str.2@PAGE
Lloh42:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x25
	bl	_Q_strcat
Lloh43:
	adrp	x8, _IMGTYPE_NORMAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IMGTYPE_NORMAL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x27
	bl	_R_FindImageFile
	cbnz	x0, LBB0_25
; %bb.12:
	stur	w27, [x29, #-140]               ; 4-byte Folded Spill
	stp	x25, x24, [x29, #-136]          ; 16-byte Folded Spill
	stur	w22, [x29, #-120]               ; 4-byte Folded Spill
	ldp	w9, w22, [x29, #-96]
Lloh46:
	adrp	x8, _ri@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	stur	w9, [x29, #-148]                ; 4-byte Folded Spill
	mul	w9, w22, w9
	lsl	w0, w9, #2
	blr	x8
	mov	x24, x0
	ldur	x0, [x29, #-104]
	ldp	w3, w2, [x29, #-96]
Lloh49:
	adrp	x8, _IMGFLAG_CLAMPTOEDGE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IMGFLAG_CLAMPTOEDGE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	and	w4, w8, w19
	mov	x1, x24
	bl	_RGBAtoNormal
	ldur	x0, [x29, #-104]
	ldp	w3, w2, [x29, #-96]
	mov	x1, x0
	bl	_RGBAtoYCoCgA
	ldp	w3, w2, [x29, #-96]
	cmp	w3, #1
	stur	w22, [x29, #-144]               ; 4-byte Folded Spill
	stur	x24, [x29, #-160]               ; 8-byte Folded Spill
	b.lt	LBB0_24
; %bb.13:
	mov	w26, #0
	mov	w23, #0
	add	x27, x24, #8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w23, w23, #1
	add	w26, w26, #4
	cmp	w23, w3
	b.ge	LBB0_24
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	cmp	w2, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w25, #0
	mul	w8, w23, w2
	lsl	w8, w8, #2
	ldur	x9, [x29, #-104]
	add	x24, x9, w8, sxtw #2
	mul	w8, w2, w26
	add	x22, x27, w8, sxtw #2
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22], #16
	sub	w0, w8, #127
	mov	w1, #16
	bl	_MAX
	ldr	w8, [x24]
	lsl	w8, w8, #7
	sdiv	w0, w8, w0
	mov	w1, #0
	mov	w2, #255
	bl	_CLAMP
	str	w0, [x24], #16
	add	w25, w25, #1
	ldur	w2, [x29, #-92]
	cmp	w25, w2
	b.lt	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldur	w3, [x29, #-96]
	b	LBB0_14
LBB0_19:
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.20:
	ldr	w3, [x23, #8]
	cmp	w3, w19
	b.eq	LBB0_32
; %bb.21:
Lloh54:
	adrp	x8, _ri@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8, #16]
Lloh57:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh58:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x9]
Lloh60:
	adrp	x1, l_.str.1@PAGE
Lloh61:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	blr	x8
	b	LBB0_32
LBB0_22:
	sub	x1, x29, #104
	sub	x2, x29, #92
	sub	x3, x29, #96
	sub	x4, x29, #112
	sub	x5, x29, #116
	mov	x0, x23
	bl	_R_LoadImage
	ldur	x2, [x29, #-104]
	cbnz	x2, LBB0_6
LBB0_23:
	mov	x23, #0
	b	LBB0_32
LBB0_24:
	ldur	x0, [x29, #-104]
	mov	x1, x0
	bl	_YCoCgAtoRGBA
	ldr	x4, [x28]
Lloh62:
	adrp	x8, _IMGTYPE_NORMAL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IMGTYPE_NORMAL@GOTPAGEOFF]
Lloh64:
	ldr	w6, [x8]
	ldur	w22, [x29, #-120]               ; 4-byte Folded Reload
	stp	wzr, w22, [sp, #-16]!
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	ldur	x23, [x29, #-160]               ; 8-byte Folded Reload
	mov	x1, x23
	ldp	w3, w2, [x29, #-148]            ; 8-byte Folded Reload
	mov	w5, #0
	ldur	w7, [x29, #-140]                ; 4-byte Folded Reload
	bl	_R_CreateImage2Internal
	add	sp, sp, #16
Lloh65:
	adrp	x8, _ri@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8, #8]
	mov	x0, x23
	blr	x8
Lloh68:
	adrp	x23, _IMGFLAG_MIPMAP@GOTPAGE
Lloh69:
	ldr	x23, [x23, _IMGFLAG_MIPMAP@GOTPAGEOFF]
	ldur	x24, [x29, #-128]               ; 8-byte Folded Reload
LBB0_25:
	mov	sp, x24
LBB0_26:
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_31
; %bb.27:
	ldur	x8, [x29, #-112]
	ldr	x9, [x28]
Lloh70:
	adrp	x10, _GL_SRGB8_ALPHA8_EXT@GOTPAGE
Lloh71:
	ldr	x10, [x10, _GL_SRGB8_ALPHA8_EXT@GOTPAGEOFF]
Lloh72:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_31
; %bb.28:
	ldp	w1, w0, [x29, #-96]
	bl	_MAX
	mov	w8, #0
	cbz	w0, LBB0_30
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	asr	w9, w0, #1
	cmp	w0, #1
	mov	x0, x9
	b.hi	LBB0_29
LBB0_30:
	ldur	w9, [x29, #-116]
	ldr	w10, [x23]
	cmp	w8, w9
	mov	w8, #-1
	csinv	w8, w8, w10, le
	and	w19, w8, w19
LBB0_31:
	ldp	x4, x1, [x29, #-112]
	ldp	w3, w2, [x29, #-96]
	ldur	w5, [x29, #-116]
	stp	wzr, w22, [sp, #-16]!
	mov	x0, x20
	mov	x6, x21
	mov	x7, x19
	bl	_R_CreateImage2Internal
	add	sp, sp, #16
	mov	x23, x0
Lloh73:
	adrp	x8, _ri@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8, #8]
	ldur	x0, [x29, #-104]
	blr	x8
LBB0_32:
	ldur	x8, [x29, #-88]
Lloh76:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh77:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x23
	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_34:
	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	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_GL_RGBA8,8,3                   ; @GL_RGBA8
	.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"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_IMGFLAG_PICMIP,4,2             ; @IMGFLAG_PICMIP
	.comm	_IMGFLAG_MIPMAP,4,2             ; @IMGFLAG_MIPMAP
	.comm	_IMGFLAG_GENNORMALMAP,4,2       ; @IMGFLAG_GENNORMALMAP
	.comm	_IMGFLAG_CUBEMAP,4,2            ; @IMGFLAG_CUBEMAP
	.comm	_r_normalMapping,8,3            ; @r_normalMapping
	.comm	_IMGTYPE_COLORALPHA,4,2         ; @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ; @IMGFLAG_NOLIGHTSCALE
l_.str.2:                               ; @.str.2
	.asciz	"_n"

	.comm	_IMGTYPE_NORMAL,4,2             ; @IMGTYPE_NORMAL
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ; @IMGFLAG_CLAMPTOEDGE
	.comm	_GL_SRGB8_ALPHA8_EXT,8,3        ; @GL_SRGB8_ALPHA8_EXT
.subsections_via_symbols
