	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CollapseStagesToLightall
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CollapseStagesToLightall:              ## @CollapseStagesToLightall
	.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	%r8, %r13
	movq	%rcx, %r10
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ST_GLSL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movq	_TB_LIGHTMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%r10), %rbx
	movq	16(%rbx), %rdi
	movq	%rdi, 16(%rax,%rcx,8)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
	movq	_LIGHTDEF_USE_LIGHTMAP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	_LIGHTDEF_USE_LIGHT_VECTOR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%r12d, %r12d
	testq	%r9, %r9
	je	LBB0_7
## %bb.5:
	movq	_LIGHTDEF_USE_LIGHT_VERTEX@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r12d
LBB0_7:
	movq	_tr@GOTPCREL(%rip), %r15
	testq	%r10, %r10
	je	LBB0_11
## %bb.8:
	movq	_r_deluxeMapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.9:
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.10:
	movq	8(%r14), %rax
	movq	_TB_DELUXEMAP@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	leaq	(%rdi,%rdi,2), %rcx
	movq	8(%r10), %rdi
	movq	16(%rdi), %rbx
	movq	%rbx, 16(%rax,%rcx,8)
	movups	(%rdi), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
	movq	8(%r15), %rax
	movq	_shader@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%r14), %rdi
	movq	(%r8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rdi,%rcx,8), %rcx
	movq	%rax, (%rcx)
LBB0_11:
	movq	_r_normalMapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.12:
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.13:
	movq	8(%r14), %rax
	movq	_TB_NORMALMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rsi), %rbx
	movq	16(%rbx), %rdi
	movq	%rdi, 16(%rax,%rcx,8)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
	cmpq	$0, 16(%rbp)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.15:
	movq	_r_parallaxMapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.16:
	movq	%r10, %r15
	movq	%r9, %r13
	movq	%rdx, %rbx
	movq	_LIGHTDEF_USE_PARALLAXMAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_17
LBB0_14:
	movq	%r10, %r15
	movq	%r9, %r13
	movq	%rdx, %rbx
LBB0_17:
	movl	20(%rsi), %edi
	movl	20(%r14), %esi
	callq	_VectorCopy4
	movq	%rbx, %rdx
	movq	%r13, %r9
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, %r10
	movq	_tr@GOTPCREL(%rip), %r15
	jmp	LBB0_30
LBB0_18:
	testq	%r10, %r10
	jne	LBB0_20
## %bb.19:
	movq	%r9, %rax
	orq	%r13, %rax
	je	LBB0_30
LBB0_20:
	movq	8(%r14), %rax
	movq	_TB_DIFFUSEMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.21:
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%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, %rcx
	movq	_IMGFLAG_GENNORMALMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	notl	%r15d
	andl	(%rbx), %r15d
	movq	_IMGFLAG_NOLIGHTSCALE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	4(%rbx), %edi
	movq	%rcx, %rbx
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rsi
	callq	_COM_StripExtension
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_Q_strcat
	movq	_IMGTYPE_NORMALHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_R_FindImageFile
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	jmp	LBB0_23
LBB0_27:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	movq	_IMGTYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_R_FindImageFile
	testq	%rax, %rax
	movq	16(%rbp), %rbx
	je	LBB0_28
LBB0_23:
	movq	8(%r14), %rcx
	movq	_TB_NORMALMAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movq	16(%rcx), %rdi
	movq	%rdi, 16(%rcx,%rsi,8)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rcx,%rsi,8)
	movq	8(%r14), %rcx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	8(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx)
	testq	%rbx, %rbx
	movq	_tr@GOTPCREL(%rip), %r15
	je	LBB0_26
## %bb.24:
	movq	_r_parallaxMapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.25:
	movq	_LIGHTDEF_USE_PARALLAXMAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_26:
	movl	20(%r14), %edi
	movq	_r_baseNormalX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	_r_baseNormalY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movq	_r_baseParallax@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_VectorSet4
LBB0_29:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
LBB0_30:
	movq	24(%rbp), %rbx
	movq	_r_specularMapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_39
## %bb.31:
	testq	%rdx, %rdx
	je	LBB0_33
## %bb.32:
	movq	8(%r14), %rax
	movq	_TB_SPECULARMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rdx), %rdi
	movq	16(%rdi), %rsi
	movq	%rsi, 16(%rax,%rcx,8)
	movups	(%rdi), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
	movl	16(%rdx), %edi
	movl	16(%r14), %esi
	callq	_VectorCopy4
	jmp	LBB0_39
LBB0_33:
	testq	%r10, %r10
	jne	LBB0_35
## %bb.34:
	orq	%r13, %r9
	je	LBB0_39
LBB0_35:
	movq	8(%r14), %rax
	movq	_TB_DIFFUSEMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_39
## %bb.36:
	movq	%rsp, -56(%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	_IMGFLAG_GENNORMALMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	notl	%r15d
	andl	(%r13), %r15d
	movq	_IMGFLAG_NOLIGHTSCALE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	4(%r13), %edi
	movq	_MAX_QPATH@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rsi
	callq	_COM_StripExtension
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_Q_strcat
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_R_FindImageFile
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	8(%r14), %rcx
	movq	_TB_SPECULARMAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movq	16(%rcx), %rdi
	movq	%rdi, 16(%rcx,%rsi,8)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rcx,%rsi,8)
	movq	8(%r14), %rcx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	8(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx)
	movl	16(%r14), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	movaps	%xmm0, %xmm2
	movaps	%xmm0, %xmm3
	callq	_VectorSet4
LBB0_38:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	_tr@GOTPCREL(%rip), %r15
	movq	24(%rbp), %rbx
LBB0_39:
	testq	%rbx, %rbx
	jne	LBB0_41
## %bb.40:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_42
LBB0_41:
	movq	_LIGHTDEF_USE_TCGEN_AND_TCMOD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_42:
	movl	(%r15), %eax
	movl	%eax, 4(%r14)
	movl	%r12d, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_44
## %bb.43:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_tr@GOTPCREL(%rip), %r15
	jmp	LBB0_29
LBB0_44:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_GLSL,4,2                    ## @ST_GLSL
	.comm	_TB_LIGHTMAP,8,3                ## @TB_LIGHTMAP
	.comm	_LIGHTDEF_USE_LIGHTMAP,4,2      ## @LIGHTDEF_USE_LIGHTMAP
	.comm	_LIGHTDEF_USE_LIGHT_VECTOR,4,2  ## @LIGHTDEF_USE_LIGHT_VECTOR
	.comm	_LIGHTDEF_USE_LIGHT_VERTEX,4,2  ## @LIGHTDEF_USE_LIGHT_VERTEX
	.comm	_r_deluxeMapping,8,3            ## @r_deluxeMapping
	.comm	_tr,24,3                        ## @tr
	.comm	_shader,8,3                     ## @shader
	.comm	_TB_DELUXEMAP,8,3               ## @TB_DELUXEMAP
	.comm	_r_normalMapping,8,3            ## @r_normalMapping
	.comm	_TB_NORMALMAP,8,3               ## @TB_NORMALMAP
	.comm	_r_parallaxMapping,8,3          ## @r_parallaxMapping
	.comm	_LIGHTDEF_USE_PARALLAXMAP,4,2   ## @LIGHTDEF_USE_PARALLAXMAP
	.comm	_TB_DIFFUSEMAP,8,3              ## @TB_DIFFUSEMAP
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_IMGFLAG_GENNORMALMAP,4,2       ## @IMGFLAG_GENNORMALMAP
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ## @IMGFLAG_NOLIGHTSCALE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_nh"

	.comm	_IMGTYPE_NORMALHEIGHT,4,2       ## @IMGTYPE_NORMALHEIGHT
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_IMGTYPE_NORMAL,4,2             ## @IMGTYPE_NORMAL
	.comm	_r_baseNormalX,8,3              ## @r_baseNormalX
	.comm	_r_baseNormalY,8,3              ## @r_baseNormalY
	.comm	_r_baseParallax,8,3             ## @r_baseParallax
	.comm	_r_specularMapping,8,3          ## @r_specularMapping
	.comm	_TB_SPECULARMAP,8,3             ## @TB_SPECULARMAP
L_.str.1:                               ## @.str.1
	.asciz	"_s"

	.comm	_IMGTYPE_COLORALPHA,4,2         ## @IMGTYPE_COLORALPHA
	.comm	_LIGHTDEF_USE_TCGEN_AND_TCMOD,4,2 ## @LIGHTDEF_USE_TCGEN_AND_TCMOD
	.no_dead_strip	_CollapseStagesToLightall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CollapseStagesToLightall
_CollapseStagesToLightall:              ; @CollapseStagesToLightall
	.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	x20, x7
	mov	x25, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x19, 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, _ST_GLSL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_GLSL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	cbz	x3, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TB_LIGHTMAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TB_LIGHTMAP@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh8:
	ldr	x8, [x8]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x9, [x24, #8]
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
Lloh9:
	adrp	x8, _LIGHTDEF_USE_LIGHTMAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIGHTDEF_USE_LIGHTMAP@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x8]
	b	LBB0_5
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _LIGHTDEF_USE_LIGHT_VECTOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LIGHTDEF_USE_LIGHT_VECTOR@GOTPAGEOFF]
Lloh14:
	ldr	w28, [x8]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _LIGHTDEF_USE_LIGHT_VERTEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIGHTDEF_USE_LIGHT_VERTEX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x22, #0
	csel	w28, wzr, w8, eq
LBB0_5:
Lloh18:
	adrp	x26, _tr@GOTPAGE
Lloh19:
	ldr	x26, [x26, _tr@GOTPAGEOFF]
	cbz	x24, LBB0_8
; %bb.6:
Lloh20:
	adrp	x8, _r_deluxeMapping@GOTPAGE
Lloh21:
	ldr	x8, [x8, _r_deluxeMapping@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x26, #16]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _TB_DELUXEMAP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TB_DELUXEMAP@GOTPAGEOFF]
	ldr	x10, [x9]
	mov	w11, #24
	madd	x8, x10, x11, x8
	ldr	x10, [x24, #8]
	ldr	q0, [x10]
	ldr	x10, [x10, #16]
	str	x10, [x8, #16]
	str	q0, [x8]
	ldr	x8, [x26, #8]
Lloh25:
	adrp	x10, _shader@GOTPAGE
Lloh26:
	ldr	x10, [x10, _shader@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	ldr	x10, [x19, #8]
	ldr	x9, [x9]
	madd	x9, x9, x11, x10
	ldr	x9, [x9, #8]
	str	x8, [x9]
LBB0_8:
Lloh28:
	adrp	x8, _r_normalMapping@GOTPAGE
Lloh29:
	ldr	x8, [x8, _r_normalMapping@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.9:
	cbz	x1, LBB0_14
; %bb.10:
	ldr	x8, [x19, #8]
Lloh31:
	adrp	x9, _TB_NORMALMAP@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TB_NORMALMAP@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x9, [x1, #8]
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
	cbz	x25, LBB0_13
; %bb.11:
Lloh34:
	adrp	x8, _r_parallaxMapping@GOTPAGE
Lloh35:
	ldr	x8, [x8, _r_parallaxMapping@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh37:
	adrp	x8, _LIGHTDEF_USE_PARALLAXMAP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LIGHTDEF_USE_PARALLAXMAP@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w28, w8, w28
LBB0_13:
	ldr	w0, [x1, #20]
	ldr	w1, [x19, #20]
	bl	_VectorCopy4
	b	LBB0_25
LBB0_14:
	cbnz	x24, LBB0_16
; %bb.15:
	orr	x8, x22, x23
	cbz	x8, LBB0_25
LBB0_16:
Lloh40:
	adrp	x8, _TB_DIFFUSEMAP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TB_DIFFUSEMAP@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh42:
	ldr	x8, [x8]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x8, [x8, #8]
	ldr	x12, [x8]
	cbz	x12, LBB0_25
; %bb.17:
	mov	x8, sp
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
Lloh43:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	mov	x9, x8
Lloh46:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh47:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
Lloh48:
	adrp	x8, _IMGFLAG_GENNORMALMAP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IMGFLAG_GENNORMALMAP@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldp	w9, w0, [x12]
	bic	w8, w9, w8
Lloh51:
	adrp	x9, _IMGFLAG_NOLIGHTSCALE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IMGFLAG_NOLIGHTSCALE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w27, w8, w9
Lloh54:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x1, x26
	bl	_COM_StripExtension
Lloh57:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str@PAGE
Lloh61:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x26
	bl	_Q_strcat
Lloh62:
	adrp	x8, _IMGTYPE_NORMALHEIGHT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IMGTYPE_NORMALHEIGHT@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x26
	stur	w27, [x29, #-100]               ; 4-byte Folded Spill
	mov	x2, x27
	bl	_R_FindImageFile
	cbz	x0, LBB0_19
; %bb.18:
Lloh65:
	adrp	x8, _qtrue@GOTPAGE
Lloh66:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh67:
	ldr	x25, [x8]
	b	LBB0_20
LBB0_19:
	mov	x0, x26
	bl	_strlen
	add	x8, x26, w0, sxtw
	sturb	wzr, [x8, #-1]
Lloh68:
	adrp	x8, _IMGTYPE_NORMAL@GOTPAGE
Lloh69:
	ldr	x8, [x8, _IMGTYPE_NORMAL@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	mov	x0, x26
	ldur	w2, [x29, #-100]                ; 4-byte Folded Reload
	bl	_R_FindImageFile
	cbz	x0, LBB0_39
LBB0_20:
	ldr	x8, [x19, #8]
Lloh71:
	adrp	x9, _TB_NORMALMAP@GOTPAGE
Lloh72:
	ldr	x9, [x9, _TB_NORMALMAP@GOTPAGEOFF]
	ldr	x10, [x9]
	mov	w11, #24
	madd	x10, x10, x11, x8
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [x10, #16]
	str	q0, [x10]
	ldr	x8, [x19, #8]
	ldr	x10, [x9]
	madd	x10, x10, x11, x8
	str	xzr, [x10, #16]
	ldr	x9, [x9]
	madd	x8, x9, x11, x8
	ldr	x8, [x8, #8]
	str	x0, [x8]
Lloh73:
	adrp	x26, _tr@GOTPAGE
Lloh74:
	ldr	x26, [x26, _tr@GOTPAGEOFF]
	cbz	x25, LBB0_23
; %bb.21:
Lloh75:
	adrp	x8, _r_parallaxMapping@GOTPAGE
Lloh76:
	ldr	x8, [x8, _r_parallaxMapping@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.22:
Lloh78:
	adrp	x8, _LIGHTDEF_USE_PARALLAXMAP@GOTPAGE
Lloh79:
	ldr	x8, [x8, _LIGHTDEF_USE_PARALLAXMAP@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	orr	w28, w8, w28
LBB0_23:
	ldr	w0, [x19, #20]
Lloh81:
	adrp	x8, _r_baseNormalX@GOTPAGE
Lloh82:
	ldr	x8, [x8, _r_baseNormalX@GOTPAGEOFF]
Lloh83:
	ldr	x8, [x8]
	ldr	s0, [x8]
Lloh84:
	adrp	x8, _r_baseNormalY@GOTPAGE
Lloh85:
	ldr	x8, [x8, _r_baseNormalY@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
	ldr	s1, [x8]
Lloh87:
	adrp	x8, _r_baseParallax@GOTPAGE
Lloh88:
	ldr	x8, [x8, _r_baseParallax@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	ldr	s3, [x8]
	fmov	s2, #1.00000000
	bl	_VectorSet4
LBB0_24:
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	mov	sp, x8
LBB0_25:
Lloh90:
	adrp	x8, _r_specularMapping@GOTPAGE
Lloh91:
	ldr	x8, [x8, _r_specularMapping@GOTPAGEOFF]
Lloh92:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_34
; %bb.26:
	cbz	x21, LBB0_28
; %bb.27:
	ldr	x8, [x19, #8]
Lloh93:
	adrp	x9, _TB_SPECULARMAP@GOTPAGE
Lloh94:
	ldr	x9, [x9, _TB_SPECULARMAP@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x9, [x21, #8]
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
	ldr	w0, [x21, #16]
	ldr	w1, [x19, #16]
	bl	_VectorCopy4
	b	LBB0_34
LBB0_28:
	cbnz	x24, LBB0_30
; %bb.29:
	orr	x8, x22, x23
	cbz	x8, LBB0_34
LBB0_30:
Lloh96:
	adrp	x8, _TB_DIFFUSEMAP@GOTPAGE
Lloh97:
	ldr	x8, [x8, _TB_DIFFUSEMAP@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh98:
	ldr	x8, [x8]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x8, [x8, #8]
	ldr	x12, [x8]
	cbz	x12, LBB0_34
; %bb.31:
	mov	x23, sp
Lloh99:
	adrp	x24, _MAX_QPATH@GOTPAGE
Lloh100:
	ldr	x24, [x24, _MAX_QPATH@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh101:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh102:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh103:
	adrp	x8, _IMGFLAG_GENNORMALMAP@GOTPAGE
Lloh104:
	ldr	x8, [x8, _IMGFLAG_GENNORMALMAP@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	ldp	w9, w0, [x12]
	bic	w8, w9, w8
Lloh106:
	adrp	x9, _IMGFLAG_NOLIGHTSCALE@GOTPAGE
Lloh107:
	ldr	x9, [x9, _IMGFLAG_NOLIGHTSCALE@GOTPAGEOFF]
Lloh108:
	ldr	w9, [x9]
	orr	w22, w8, w9
	ldr	w2, [x24]
	mov	x1, x21
	bl	_COM_StripExtension
	ldr	w1, [x24]
Lloh109:
	adrp	x2, l_.str.1@PAGE
Lloh110:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_Q_strcat
Lloh111:
	adrp	x8, _IMGTYPE_COLORALPHA@GOTPAGE
Lloh112:
	ldr	x8, [x8, _IMGTYPE_COLORALPHA@GOTPAGEOFF]
Lloh113:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_R_FindImageFile
	cbz	x0, LBB0_33
; %bb.32:
	ldr	x8, [x19, #8]
Lloh114:
	adrp	x9, _TB_SPECULARMAP@GOTPAGE
Lloh115:
	ldr	x9, [x9, _TB_SPECULARMAP@GOTPAGEOFF]
	ldr	x10, [x9]
	mov	w11, #24
	madd	x10, x10, x11, x8
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [x10, #16]
	str	q0, [x10]
	ldr	x8, [x19, #8]
	ldr	x10, [x9]
	madd	x10, x10, x11, x8
	str	xzr, [x10, #16]
	ldr	x9, [x9]
	madd	x8, x9, x11, x8
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	w0, [x19, #16]
	fmov	s0, #1.00000000
	fmov	s1, #1.00000000
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	bl	_VectorSet4
LBB0_33:
	mov	sp, x23
LBB0_34:
	cbnz	x20, LBB0_36
; %bb.35:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_37
LBB0_36:
Lloh116:
	adrp	x8, _LIGHTDEF_USE_TCGEN_AND_TCMOD@GOTPAGE
Lloh117:
	ldr	x8, [x8, _LIGHTDEF_USE_TCGEN_AND_TCMOD@GOTPAGEOFF]
Lloh118:
	ldr	w8, [x8]
	orr	w28, w8, w28
LBB0_37:
	ldr	w8, [x26]
	stp	w28, w8, [x19]
	ldur	x8, [x29, #-88]
Lloh119:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh120:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh121:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.38:
	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_39:
Lloh122:
	adrp	x26, _tr@GOTPAGE
Lloh123:
	ldr	x26, [x26, _tr@GOTPAGEOFF]
	b	LBB0_24
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGot	Lloh122, Lloh123
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_GLSL,4,2                    ; @ST_GLSL
	.comm	_TB_LIGHTMAP,8,3                ; @TB_LIGHTMAP
	.comm	_LIGHTDEF_USE_LIGHTMAP,4,2      ; @LIGHTDEF_USE_LIGHTMAP
	.comm	_LIGHTDEF_USE_LIGHT_VECTOR,4,2  ; @LIGHTDEF_USE_LIGHT_VECTOR
	.comm	_LIGHTDEF_USE_LIGHT_VERTEX,4,2  ; @LIGHTDEF_USE_LIGHT_VERTEX
	.comm	_r_deluxeMapping,8,3            ; @r_deluxeMapping
	.comm	_tr,24,3                        ; @tr
	.comm	_shader,8,3                     ; @shader
	.comm	_TB_DELUXEMAP,8,3               ; @TB_DELUXEMAP
	.comm	_r_normalMapping,8,3            ; @r_normalMapping
	.comm	_TB_NORMALMAP,8,3               ; @TB_NORMALMAP
	.comm	_r_parallaxMapping,8,3          ; @r_parallaxMapping
	.comm	_LIGHTDEF_USE_PARALLAXMAP,4,2   ; @LIGHTDEF_USE_PARALLAXMAP
	.comm	_TB_DIFFUSEMAP,8,3              ; @TB_DIFFUSEMAP
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_IMGFLAG_GENNORMALMAP,4,2       ; @IMGFLAG_GENNORMALMAP
	.comm	_IMGFLAG_NOLIGHTSCALE,4,2       ; @IMGFLAG_NOLIGHTSCALE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_nh"

	.comm	_IMGTYPE_NORMALHEIGHT,4,2       ; @IMGTYPE_NORMALHEIGHT
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_IMGTYPE_NORMAL,4,2             ; @IMGTYPE_NORMAL
	.comm	_r_baseNormalX,8,3              ; @r_baseNormalX
	.comm	_r_baseNormalY,8,3              ; @r_baseNormalY
	.comm	_r_baseParallax,8,3             ; @r_baseParallax
	.comm	_r_specularMapping,8,3          ; @r_specularMapping
	.comm	_TB_SPECULARMAP,8,3             ; @TB_SPECULARMAP
l_.str.1:                               ; @.str.1
	.asciz	"_s"

	.comm	_IMGTYPE_COLORALPHA,4,2         ; @IMGTYPE_COLORALPHA
	.comm	_LIGHTDEF_USE_TCGEN_AND_TCMOD,4,2 ; @LIGHTDEF_USE_TCGEN_AND_TCMOD
	.no_dead_strip	_CollapseStagesToLightall
.subsections_via_symbols
