	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RemapShader                  ## -- Begin function R_RemapShader
	.p2align	4, 0x90
_R_RemapShader:                         ## @R_RemapShader
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r15, %rdi
	callq	_R_FindShaderByName
	movq	_tr@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_RE_RegisterShaderLightMap
	movl	%eax, %edi
	callq	_R_GetShaderByHandle
	movq	(%r13), %rcx
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	je	LBB0_5
## %bb.8:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_R_FindShaderByName
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %r14
	movq	(%r13), %rax
	cmpq	%rax, %r14
	jne	LBB0_11
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_RE_RegisterShaderLightMap
	movl	%eax, %edi
	callq	_R_GetShaderByHandle
	movq	%rax, %r14
	movq	(%r13), %rax
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	cmpq	%rax, %r14
	je	LBB0_13
## %bb.15:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_COM_StripExtension
	movq	_FILE_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_generateHashValue
	movq	_hashTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_17
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	$0, 8(%r14)
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	movq	%r12, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%r14, %rbx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, 8(%rbx)
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_17
LBB0_22:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_atof
	movl	%eax, (%r14)
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	jmp	LBB0_7
LBB0_13:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_tr,8,3                         ## @tr
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: R_RemapShader: shader %s not found\n"

L_.str.1:                               ## @.str.1
	.asciz	"WARNING: R_RemapShader: new shader %s not found\n"

	.comm	_FILE_HASH_SIZE,4,2             ## @FILE_HASH_SIZE
	.comm	_hashTable,8,3                  ## @hashTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RemapShader                  ; -- Begin function R_RemapShader
	.p2align	2
_R_RemapShader:                         ; @R_RemapShader
	.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, #16
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_R_FindShaderByName
Lloh8:
	adrp	x25, _tr@GOTPAGE
Lloh9:
	ldr	x25, [x25, _tr@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	bl	_RE_RegisterShaderLightMap
	bl	_R_GetShaderByHandle
	ldr	x8, [x25]
LBB0_3:
	cbz	x0, LBB0_20
; %bb.4:
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.5:
	mov	x0, x22
	bl	_R_FindShaderByName
	cbz	x0, LBB0_7
; %bb.6:
	mov	x24, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
	mov	x0, x22
	mov	w1, #0
	bl	_RE_RegisterShaderLightMap
	bl	_R_GetShaderByHandle
	mov	x24, x0
	ldr	x8, [x25]
LBB0_8:
	cbz	x24, LBB0_22
; %bb.9:
	cmp	x24, x8
	b.eq	LBB0_22
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_COM_StripExtension
Lloh10:
	adrp	x8, _FILE_HASH_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FILE_HASH_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_generateHashValue
Lloh13:
	adrp	x8, _hashTable@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hashTable@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x21, [x8, w0, sxtw #3]
	cbnz	x21, LBB0_17
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_atof
	str	w0, [x24]
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.14:
	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_15:                                ;   in Loop: Header=BB0_17 Depth=1
	str	xzr, [x24, #8]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_11
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #16]
	mov	x1, x20
	bl	_Q_stricmp
	cbnz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x21, x24
	b.eq	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x24, [x21, #8]
	b	LBB0_16
LBB0_20:
Lloh19:
	adrp	x8, _ri@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh21:
	ldr	x3, [x8]
Lloh22:
	adrp	x8, _PRINT_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PRINT_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.21:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	b	LBB0_24
LBB0_22:
Lloh30:
	adrp	x8, _ri@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh32:
	ldr	x3, [x8]
Lloh33:
	adrp	x8, _PRINT_WARNING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PRINT_WARNING@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.23:
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
LBB0_24:
	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
	br	x3
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_tr,8,3                         ; @tr
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: R_RemapShader: shader %s not found\n"

l_.str.1:                               ; @.str.1
	.asciz	"WARNING: R_RemapShader: new shader %s not found\n"

	.comm	_FILE_HASH_SIZE,4,2             ; @FILE_HASH_SIZE
	.comm	_hashTable,8,3                  ; @hashTable
.subsections_via_symbols
