	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_LoadImage                    ## -- Begin function R_LoadImage
	.p2align	4, 0x90
_R_LoadImage:                           ## @R_LoadImage
	.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
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%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, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx)
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	$0, (%r13)
	movq	_MAX_QPATH@GOTPCREL(%rip), %r13
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movq	_GL_RGBA8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%eax, (%r14)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %r15
	movl	$0, (%rax)
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_Q_strncpyz
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_COM_GetExtension
	movq	%rax, %r14
	movq	_r_ext_compressed_textures@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rsp, %r12
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r13), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_COM_StripExtension
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_Q_strcat
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	%r15, %r9
	callq	_R_LoadDDS
	cmpq	$0, (%rbx)
	movq	%r12, %rsp
	jne	LBB0_21
LBB0_2:
	movl	$-1, %ecx
	cmpb	$0, (%r14)
	je	LBB0_13
## %bb.3:
	movq	_numImageLoaders@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	movq	_imageLoaders@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	8(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
	jmp	LBB0_9
LBB0_4:
	xorl	%r12d, %r12d
	cmpl	%eax, %r12d
	jl	LBB0_11
	jmp	LBB0_13
LBB0_7:
	movq	(%r13), %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	*(%rax,%rbx)
	movl	(%r15), %eax
LBB0_9:
	movq	_MAX_QPATH@GOTPCREL(%rip), %r13
	movl	$-1, %ecx
	cmpl	%eax, %r12d
	jge	LBB0_13
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.12:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_COM_StripExtension
	movl	%r12d, %ecx
LBB0_13:
	movq	_numImageLoaders@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.14:
	movl	%ecx, %r12d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %r14
	cmpq	%rcx, %r15
	jge	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %r12
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_imageLoaders@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	8(%rax,%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_va
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	%rbx, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	*(%rax,%r14)
	cmpq	$0, (%r13)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_numImageLoaders@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_19:
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.20:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*(%rax)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_GL_RGBA8,4,2                   ## @GL_RGBA8
	.comm	_r_ext_compressed_textures,8,3  ## @r_ext_compressed_textures
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".dds"

	.comm	_numImageLoaders,4,2            ## @numImageLoaders
	.comm	_imageLoaders,8,3               ## @imageLoaders
	.comm	_qtrue,8,3                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"%s.%s"

	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
L_.str.2:                               ## @.str.2
	.asciz	"WARNING: %s not present, using %s instead\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_LoadImage                    ; -- Begin function R_LoadImage
	.p2align	2
_R_LoadImage:                           ; @R_LoadImage
	.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, #32
	mov	x25, x5
	mov	x26, x4
	mov	x21, x2
	mov	x22, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _qfalse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh6:
	adrp	x28, _MAX_QPATH@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MAX_QPATH@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	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
	str	xzr, [x22]
	str	wzr, [x2]
	stur	x3, [x29, #-96]                 ; 8-byte Folded Spill
	str	wzr, [x3]
Lloh10:
	adrp	x8, _GL_RGBA8@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_RGBA8@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x4]
	str	wzr, [x5]
	ldr	w2, [x28]
	mov	x0, x23
	stur	x1, [x29, #-104]                ; 8-byte Folded Spill
	bl	_Q_strncpyz
	mov	x0, x23
	bl	_COM_GetExtension
	mov	x24, x0
Lloh13:
	adrp	x8, _r_ext_compressed_textures@GOTPAGE
Lloh14:
	ldr	x8, [x8, _r_ext_compressed_textures@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, sp
	ldr	w8, [x28]
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	ldr	w2, [x28]
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x1, x27
	bl	_COM_StripExtension
	ldr	w1, [x28]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x27
	bl	_Q_strcat
	mov	x0, x27
	mov	x1, x22
	mov	x2, x21
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x4, x26
	mov	x5, x25
	bl	_R_LoadDDS
	ldr	x8, [x22]
	mov	sp, x19
	cbnz	x8, LBB0_21
LBB0_2:
	ldrb	w8, [x24]
Lloh20:
	adrp	x26, _numImageLoaders@GOTPAGE
Lloh21:
	ldr	x26, [x26, _numImageLoaders@GOTPAGEOFF]
	cbz	w8, LBB0_11
; %bb.3:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x19, #0
	mov	x25, #0
Lloh22:
	adrp	x20, _imageLoaders@GOTPAGE
Lloh23:
	ldr	x20, [x20, _imageLoaders@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x19
	ldr	w1, [x8, #8]
	mov	x0, x24
	bl	_Q_stricmp
	cbz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x26]
	add	x19, x19, #16
	cmp	x25, x8
	b.lt	LBB0_5
; %bb.7:
	cmp	w25, w8
	b.ge	LBB0_11
LBB0_8:
	ldr	x8, [x22]
	cbnz	x8, LBB0_21
; %bb.9:
Lloh24:
	adrp	x8, _qtrue@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	ldr	w2, [x28]
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x1, x23
	bl	_COM_StripExtension
	b	LBB0_12
LBB0_10:
	mov	w25, #0
	cmp	w25, w8
	b.lt	LBB0_8
LBB0_11:
	mov	w25, #-1
LBB0_12:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.13:
	mov	x27, #0
	mov	x28, #0
	mov	w19, w25
Lloh27:
	adrp	x20, _imageLoaders@GOTPAGE
Lloh28:
	ldr	x20, [x20, _imageLoaders@GOTPAGEOFF]
Lloh29:
	adrp	x24, l_.str.1@PAGE
Lloh30:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x28, #1
	add	x27, x27, #16
	cmp	x28, w8, sxtw
	b.ge	LBB0_21
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x19, x28
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x27
	ldr	w2, [x8, #8]
	mov	x0, x24
	mov	x1, x23
	bl	_va
	mov	x25, x0
	ldr	x8, [x20]
	ldr	x8, [x8, x27]
	mov	x1, x22
	mov	x2, x21
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	blr	x8
	ldr	x8, [x22]
	cbnz	x8, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x26]
	b	LBB0_14
LBB0_18:
	ldr	x8, [x20]
	ldr	x8, [x8, x19]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	blr	x8
	ldr	w8, [x26]
	cmp	w25, w8
	b.lt	LBB0_8
	b	LBB0_11
LBB0_19:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cbz	x8, LBB0_21
; %bb.20:
Lloh31:
	adrp	x8, _ri@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x9]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	mov	x3, x25
	blr	x8
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	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_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_GL_RGBA8,4,2                   ; @GL_RGBA8
	.comm	_r_ext_compressed_textures,8,3  ; @r_ext_compressed_textures
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".dds"

	.comm	_numImageLoaders,4,2            ; @numImageLoaders
	.comm	_imageLoaders,8,3               ; @imageLoaders
	.comm	_qtrue,8,3                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"%s.%s"

	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_DEVELOPER,4,2            ; @PRINT_DEVELOPER
l_.str.2:                               ; @.str.2
	.asciz	"WARNING: %s not present, using %s instead\n"

.subsections_via_symbols
