	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -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	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%r13)
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	$0, (%r12)
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_Q_strncpyz
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_COM_GetExtension
	movl	$-1, %ecx
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	_numImageLoaders@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	movq	_imageLoaders@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	8(%rax,%rbx), %esi
	movq	%r12, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	%eax, %r14d
	jl	LBB0_9
	jmp	LBB0_11
LBB0_5:
	movq	(%r13), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	*(%rax,%rbx)
	movl	(%r15), %eax
LBB0_7:
	movl	$-1, %ecx
	cmpl	%eax, %r14d
	jge	LBB0_11
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_19
## %bb.10:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_COM_StripExtension
	movl	%r14d, %ecx
LBB0_11:
	movq	_numImageLoaders@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.12:
	movl	%ecx, %r12d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_numImageLoaders@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %r14
	cmpq	%rcx, %r15
	jge	LBB0_19
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %r12
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_imageLoaders@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	8(%rax,%r14), %edx
	leaq	L_.str(%rip), %rdi
	movq	-56(%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	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	*(%rax,%r14)
	cmpq	$0, (%r13)
	je	LBB0_15
## %bb.17:
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*(%rax)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_numImageLoaders,4,2            ## @numImageLoaders
	.comm	_imageLoaders,8,3               ## @imageLoaders
	.comm	_qtrue,8,3                      ## @qtrue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%s"

	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
L_.str.1:                               ## @.str.1
	.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	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	x26, [x8]
Lloh6:
	adrp	x25, _MAX_QPATH@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MAX_QPATH@GOTPAGEOFF]
	ldr	w8, [x25]
	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]
	stp	x1, x3, [x29, #-104]            ; 16-byte Folded Spill
	str	wzr, [x3]
	ldr	w2, [x25]
	mov	x0, x23
	bl	_Q_strncpyz
	mov	x0, x23
	bl	_COM_GetExtension
	ldrb	w8, [x0]
Lloh10:
	adrp	x27, _numImageLoaders@GOTPAGE
Lloh11:
	ldr	x27, [x27, _numImageLoaders@GOTPAGEOFF]
	cbz	w8, LBB0_10
; %bb.1:
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x24, x0
	mov	x19, #0
	mov	x28, #0
Lloh12:
	adrp	x20, _imageLoaders@GOTPAGE
Lloh13:
	ldr	x20, [x20, _imageLoaders@GOTPAGEOFF]
LBB0_3:                                 ; =>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_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x27]
	add	x19, x19, #16
	cmp	x28, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w28, #0
LBB0_6:
	cmp	w28, w8
	b.ge	LBB0_10
LBB0_7:
	ldr	x8, [x22]
	cbnz	x8, LBB0_19
; %bb.8:
Lloh14:
	adrp	x8, _qtrue@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	ldr	w2, [x25]
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x1, x23
	bl	_COM_StripExtension
	b	LBB0_11
LBB0_9:
	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, [x27]
	cmp	w28, w8
	b.lt	LBB0_7
LBB0_10:
	stur	x26, [x29, #-112]               ; 8-byte Folded Spill
	mov	w28, #-1
LBB0_11:
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x26, #0
	mov	x19, #0
	mov	w28, w28
Lloh17:
	adrp	x20, _imageLoaders@GOTPAGE
Lloh18:
	ldr	x20, [x20, _imageLoaders@GOTPAGEOFF]
Lloh19:
	adrp	x24, l_.str@PAGE
Lloh20:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x27]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x19, x19, #1
	add	x26, x26, #16
	cmp	x19, w8, sxtw
	b.ge	LBB0_19
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x28, x19
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x26
	ldr	w2, [x8, #8]
	mov	x0, x24
	mov	x1, x23
	bl	_va
	mov	x25, x0
	ldr	x8, [x20]
	ldr	x8, [x8, x26]
	mov	x1, x22
	mov	x2, x21
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	blr	x8
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.17:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cbz	x8, LBB0_19
; %bb.18:
Lloh21:
	adrp	x8, _ri@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
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
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	mov	x3, x25
	blr	x8
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	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_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_numImageLoaders,4,2            ; @numImageLoaders
	.comm	_imageLoaders,8,3               ; @imageLoaders
	.comm	_qtrue,8,3                      ; @qtrue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%s"

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

.subsections_via_symbols
