	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function RE_BeginScene
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3f50624dd2f1a9fc              ## double 0.001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RE_BeginScene
	.p2align	4, 0x90
_RE_BeginScene:                         ## @RE_BeginScene
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_tr@GOTPCREL(%rip), %r12
	movl	216(%r12), %edi
	movl	60(%r14), %esi
	movl	$4, %edx
	callq	_Com_Memcpy
	movl	56(%r14), %eax
	movl	%eax, 212(%r12)
	movl	52(%r14), %eax
	movl	%eax, 208(%r12)
	movups	36(%r14), %xmm0
	movups	%xmm0, 192(%r12)
	movl	32(%r14), %edi
	movq	16(%r12), %rsi
	callq	_VectorCopy
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movq	(%rax), %rsi
	callq	_VectorCopy
	movq	24(%r14), %rax
	movl	4(%rax), %edi
	movq	24(%r12), %rax
	movq	8(%rax), %rsi
	callq	_VectorCopy
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	movq	24(%r12), %rax
	movq	16(%rax), %rsi
	callq	_VectorCopy
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 32(%r12)
	movl	8(%r14), %eax
	movl	%eax, 40(%r12)
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 176(%r12)
	movq	_RDF_NOWORLDMODEL@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_6
## %bb.1:
	movq	_MAX_MAP_AREA_BYTES@GOTPCREL(%rip), %r9
	cmpl	$4, (%r9)
	jl	LBB0_6
## %bb.2:
	movq	_tr@GOTPCREL(%rip), %r8
	movq	184(%r8), %rdx
	movq	16(%r14), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %ebx
	movl	(%rdx,%rdi,4), %ecx
	xorl	%ebx, %ecx
	orl	%ecx, %eax
	movl	%ebx, (%rdx,%rdi,4)
	incq	%rdi
	movl	(%r9), %ecx
	leal	3(%rcx), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$2, %ebx
	movslq	%ebx, %rcx
	cmpq	%rcx, %rdi
	jl	LBB0_3
## %bb.4:
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 176(%r8)
LBB0_6:
	movq	48(%r12), %rsi
	movl	$0, 12(%rsi)
	movq	56(%r12), %rax
	movl	$1065353216, 12(%rax)           ## imm = 0x3F800000
	movq	64(%r12), %rax
	movl	$1065353216, 12(%rax)           ## imm = 0x3F800000
	movl	244(%r12), %edi
	callq	_VectorCopy
	movl	(%r15), %eax
	testl	%eax, 40(%r12)
	je	LBB0_7
LBB0_8:
	movq	56(%r12), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_VectorSet
	movq	64(%r12), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_VectorSet
LBB0_19:
	movq	_r_forceAutoExposure@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	_r_forceAutoExposureMin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	168(%r12), %rax
	movl	%ecx, (%rax)
	movq	_r_forceAutoExposureMax@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_22
LBB0_7:
	movq	_r_depthPrepass@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movq	_r_mapOverBrightBits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cvtsi2ss	%eax, %xmm1
	divss	LCPI0_0(%rip), %xmm1
	movq	_r_forceSun@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	movl	240(%r12), %edi
	movaps	%xmm1, %xmm0
	je	LBB0_11
## %bb.10:
	movq	_r_forceSunLightScale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
LBB0_11:
	movss	%xmm1, -36(%rbp)                ## 4-byte Spill
	movq	56(%r12), %rsi
	callq	_VectorScale
	movq	_r_sunlightMode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	movq	(%r15), %rax
	movq	(%rax), %rax
	jne	LBB0_15
## %bb.12:
	movq	%r12, %rcx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_r_forceSunAmbientScale@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_14:
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	64(%r12), %rax
	movss	%xmm0, 8(%rax)
	movss	%xmm0, 4(%rax)
	movss	%xmm0, (%rax)
	jmp	LBB0_19
LBB0_21:
	movq	168(%r12), %rax
	movq	232(%r12), %rcx
	movl	(%rcx), %edx
	movl	%edx, (%rax)
	addq	$4, %rcx
LBB0_22:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_r_forceToneMap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.23:
	movq	_r_forceToneMapMin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_pow
	movq	160(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_r_forceToneMapAvg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_pow
	movq	160(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	_r_forceToneMapMax@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_25
LBB0_24:
	movq	224(%r12), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_pow
	movq	160(%r12), %rcx
	movq	%rax, (%rcx)
	movq	224(%r12), %rax
	movl	4(%rax), %esi
	movl	$2, %edi
	callq	_pow
	movq	160(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	224(%r12), %rax
	addq	$8, %rax
LBB0_25:
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_pow
	movq	160(%r12), %rcx
	movq	%rax, 16(%rcx)
	movl	8(%r14), %eax
	movq	_RDF_EXTRA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.26:
	movss	64(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 72(%r12)
	movq	_RDF_SUNLIGHT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.27:
	movl	76(%r14), %edi
	movq	48(%r12), %rsi
	callq	_VectorCopy
	movl	72(%r14), %edi
	movq	56(%r12), %rsi
	callq	_VectorCopy
	movl	68(%r14), %edi
	movq	64(%r12), %rsi
	callq	_VectorCopy
	jmp	LBB0_29
LBB0_28:
	movl	$0, 72(%r12)
LBB0_29:
	movsd	32(%r12), %xmm0                 ## xmm0 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm0, 80(%r12)
	movq	_r_firstSceneDrawSurf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 156(%r12)
	movq	_backEndData@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	32(%rax), %ecx
	movl	%ecx, 152(%r12)
	movq	_r_numentities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_r_firstSceneEntity@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%rdx, %rcx
	movq	%rcx, 144(%r12)
	shlq	$2, %rdx
	addq	24(%rax), %rdx
	movq	%rdx, 136(%r12)
	movq	_r_numdlights@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_r_firstSceneDlight@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%rdx, %rcx
	movq	%rcx, 88(%r12)
	shlq	$2, %rdx
	addq	16(%rax), %rdx
	movq	%rdx, 128(%r12)
	movq	_r_numpolys@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_r_firstScenePoly@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%rdx, %rcx
	movq	%rcx, 120(%r12)
	shlq	$2, %rdx
	addq	8(%rax), %rdx
	movq	%rdx, 112(%r12)
	movq	$0, 104(%r12)
	movq	(%rax), %rax
	movq	%rax, 96(%r12)
	movq	_r_dynamiclight@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.30:
	movq	_r_vertexLight@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	je	LBB0_32
## %bb.31:
	movq	_glConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLHW_PERMEDIA2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
LBB0_32:
	movq	$0, 88(%r12)
LBB0_33:
	incl	8(%r12)
	incl	4(%r12)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	240(%r12), %edi
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_r_forceSunAmbientScale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rax), %xmm0
	jmp	LBB0_18
LBB0_17:
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r12), %xmm0
LBB0_18:
	movq	64(%r12), %rsi
	callq	_VectorScale
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,248,3                       ## @tr
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_RDF_NOWORLDMODEL,4,2           ## @RDF_NOWORLDMODEL
	.comm	_MAX_MAP_AREA_BYTES,4,2         ## @MAX_MAP_AREA_BYTES
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_r_depthPrepass,8,3             ## @r_depthPrepass
	.comm	_r_mapOverBrightBits,8,3        ## @r_mapOverBrightBits
	.comm	_r_forceSun,8,3                 ## @r_forceSun
	.comm	_r_forceSunLightScale,8,3       ## @r_forceSunLightScale
	.comm	_r_sunlightMode,8,3             ## @r_sunlightMode
	.comm	_r_forceSunAmbientScale,8,3     ## @r_forceSunAmbientScale
	.comm	_r_forceAutoExposure,8,3        ## @r_forceAutoExposure
	.comm	_r_forceAutoExposureMin,8,3     ## @r_forceAutoExposureMin
	.comm	_r_forceAutoExposureMax,8,3     ## @r_forceAutoExposureMax
	.comm	_r_forceToneMap,8,3             ## @r_forceToneMap
	.comm	_r_forceToneMapMin,8,3          ## @r_forceToneMapMin
	.comm	_r_forceToneMapAvg,8,3          ## @r_forceToneMapAvg
	.comm	_r_forceToneMapMax,8,3          ## @r_forceToneMapMax
	.comm	_RDF_EXTRA,4,2                  ## @RDF_EXTRA
	.comm	_RDF_SUNLIGHT,4,2               ## @RDF_SUNLIGHT
	.comm	_r_firstSceneDrawSurf,4,2       ## @r_firstSceneDrawSurf
	.comm	_backEndData,8,3                ## @backEndData
	.comm	_r_numentities,8,3              ## @r_numentities
	.comm	_r_firstSceneEntity,8,3         ## @r_firstSceneEntity
	.comm	_r_numdlights,8,3               ## @r_numdlights
	.comm	_r_firstSceneDlight,8,3         ## @r_firstSceneDlight
	.comm	_r_numpolys,8,3                 ## @r_numpolys
	.comm	_r_firstScenePoly,8,3           ## @r_firstScenePoly
	.comm	_r_dynamiclight,8,3             ## @r_dynamiclight
	.comm	_r_vertexLight,8,3              ## @r_vertexLight
	.comm	_glConfig,8,3                   ## @glConfig
	.comm	_GLHW_PERMEDIA2,8,3             ## @GLHW_PERMEDIA2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_BeginScene                  ; -- Begin function RE_BeginScene
	.p2align	2
_RE_BeginScene:                         ; @RE_BeginScene
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _tr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	ldr	w0, [x20, #216]
	ldr	w1, [x19, #60]
	mov	w2, #4
	bl	_Com_Memcpy
	ldur	d0, [x19, #52]
	str	d0, [x20, #208]
	ldur	q0, [x19, #36]
	str	q0, [x20, #192]
	ldr	w0, [x19, #32]
	ldr	x1, [x20, #16]
	bl	_VectorCopy
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
	ldr	x1, [x8]
	bl	_VectorCopy
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	ldr	x8, [x20, #24]
	ldr	x1, [x8, #8]
	bl	_VectorCopy
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	x1, [x8, #16]
	bl	_VectorCopy
	ldr	d0, [x19]
	str	d0, [x20, #32]
	ldr	w8, [x19, #8]
	str	w8, [x20, #40]
Lloh2:
	adrp	x9, _qfalse@GOTPAGE
Lloh3:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x20, #176]
Lloh5:
	adrp	x21, _RDF_NOWORLDMODEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RDF_NOWORLDMODEL@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.1:
Lloh7:
	adrp	x8, _MAX_MAP_AREA_BYTES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_MAP_AREA_BYTES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #4
	b.lt	LBB0_6
; %bb.2:
	mov	x10, #0
	mov	w9, #0
	ldr	x11, [x20, #184]
	ldr	x12, [x19, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x10, #2
	ldr	w14, [x11, x13]
	ldr	w15, [x12, x13]
	eor	w14, w15, w14
	orr	w9, w14, w9
	str	w15, [x11, x13]
	add	x10, x10, #1
	ldr	w13, [x8]
	add	w14, w13, #3
	cmp	w13, #0
	csel	w13, w14, w13, lt
	asr	w13, w13, #2
	cmp	x10, w13, sxtw
	b.lt	LBB0_3
; %bb.4:
	cbz	w9, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #176]
LBB0_6:
	ldp	x1, x8, [x20, #48]
	str	wzr, [x1, #12]
	mov	w9, #1065353216
	str	w9, [x8, #12]
	ldr	x8, [x20, #64]
	str	w9, [x8, #12]
	ldr	w0, [x20, #244]
	bl	_VectorCopy
	ldr	w8, [x20, #40]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_7:
	ldr	x0, [x20, #56]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_VectorSet
	ldr	x0, [x20, #64]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_VectorSet
LBB0_8:
Lloh12:
	adrp	x8, _r_forceAutoExposure@GOTPAGE
Lloh13:
	ldr	x8, [x8, _r_forceAutoExposure@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.9:
Lloh15:
	adrp	x8, _r_forceAutoExposureMin@GOTPAGE
Lloh16:
	ldr	x8, [x8, _r_forceAutoExposureMin@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w9, [x8]
	ldr	x8, [x20, #168]
	str	w9, [x8]
Lloh18:
	adrp	x9, _r_forceAutoExposureMax@GOTPAGE
Lloh19:
	ldr	x9, [x9, _r_forceAutoExposureMax@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	b	LBB0_16
LBB0_10:
Lloh21:
	adrp	x8, _r_depthPrepass@GOTPAGE
Lloh22:
	ldr	x8, [x8, _r_depthPrepass@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.11:
Lloh24:
	adrp	x8, _r_mapOverBrightBits@GOTPAGE
Lloh25:
	ldr	x8, [x8, _r_mapOverBrightBits@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	scvtf	s0, w8
	mov	w8, #1132396544
	fmov	s1, w8
	fdiv	s8, s0, s1
Lloh27:
	adrp	x21, _r_forceSun@GOTPAGE
Lloh28:
	ldr	x21, [x21, _r_forceSun@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x20, #240]
	fmov	s0, s8
	cbz	x8, LBB0_13
; %bb.12:
Lloh29:
	adrp	x8, _r_forceSunLightScale@GOTPAGE
Lloh30:
	ldr	x8, [x8, _r_forceSunLightScale@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	s0, [x8]
	fmul	s0, s8, s0
LBB0_13:
	ldr	x1, [x20, #56]
	bl	_VectorScale
Lloh32:
	adrp	x8, _r_sunlightMode@GOTPAGE
Lloh33:
	ldr	x8, [x8, _r_sunlightMode@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	w9, [x8]
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	w9, #1
	b.ne	LBB0_28
; %bb.14:
Lloh35:
	adrp	x9, _r_forceSunAmbientScale@GOTPAGE
Lloh36:
	ldr	x9, [x9, _r_forceSunAmbientScale@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x20, x9, eq
	ldr	s0, [x8]
	ldr	x8, [x20, #64]
	stp	s0, s0, [x8, #4]
	str	s0, [x8]
	b	LBB0_8
LBB0_15:
	ldr	x9, [x20, #232]
	ldr	w10, [x9], #4
	ldr	x8, [x20, #168]
	str	w10, [x8]
LBB0_16:
	ldr	w9, [x9]
	str	w9, [x8, #4]
Lloh38:
	adrp	x8, _r_forceToneMap@GOTPAGE
Lloh39:
	ldr	x8, [x8, _r_forceToneMap@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh41:
	adrp	x8, _r_forceToneMapMin@GOTPAGE
Lloh42:
	ldr	x8, [x8, _r_forceToneMapMin@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	w0, #2
	bl	_pow
	ldr	x8, [x20, #160]
	str	x0, [x8]
Lloh44:
	adrp	x8, _r_forceToneMapAvg@GOTPAGE
Lloh45:
	ldr	x8, [x8, _r_forceToneMapAvg@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	w0, #2
	bl	_pow
	ldr	x8, [x20, #160]
	str	x0, [x8, #8]
Lloh47:
	adrp	x8, _r_forceToneMapMax@GOTPAGE
Lloh48:
	ldr	x8, [x8, _r_forceToneMapMax@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	b	LBB0_19
LBB0_18:
	ldr	x8, [x20, #224]
	ldr	w1, [x8]
	mov	w0, #2
	bl	_pow
	ldr	x8, [x20, #160]
	str	x0, [x8]
	ldr	x8, [x20, #224]
	ldr	w1, [x8, #4]
	mov	w0, #2
	bl	_pow
	ldr	x8, [x20, #160]
	str	x0, [x8, #8]
	ldr	x8, [x20, #224]
	add	x8, x8, #8
LBB0_19:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_pow
	ldr	x8, [x20, #160]
	str	x0, [x8, #16]
	ldr	w8, [x19, #8]
Lloh50:
	adrp	x9, _RDF_EXTRA@GOTPAGE
Lloh51:
	ldr	x9, [x9, _RDF_EXTRA@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
	ldr	s0, [x19, #64]
	str	s0, [x20, #72]
Lloh53:
	adrp	x9, _RDF_SUNLIGHT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _RDF_SUNLIGHT@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.21:
	ldr	w0, [x19, #76]
	ldr	x1, [x20, #48]
	bl	_VectorCopy
	ldr	w0, [x19, #72]
	ldr	x1, [x20, #56]
	bl	_VectorCopy
	ldr	w0, [x19, #68]
	ldr	x1, [x20, #64]
	bl	_VectorCopy
	b	LBB0_23
LBB0_22:
	str	wzr, [x20, #72]
LBB0_23:
Lloh56:
	adrp	x8, _r_firstSceneDrawSurf@GOTPAGE
Lloh57:
	ldr	x8, [x8, _r_firstSceneDrawSurf@GOTPAGEOFF]
	mov	x9, #43516
	movk	x9, #54001, lsl #16
	movk	x9, #25165, lsl #32
	movk	x9, #16208, lsl #48
Lloh58:
	adrp	x10, _backEndData@GOTPAGE
Lloh59:
	ldr	x10, [x10, _backEndData@GOTPAGEOFF]
	fmov	d0, x9
Lloh60:
	ldr	w8, [x8]
Lloh61:
	ldr	x9, [x10]
	ldr	w10, [x9, #32]
Lloh62:
	adrp	x11, _r_numentities@GOTPAGE
Lloh63:
	ldr	x11, [x11, _r_numentities@GOTPAGEOFF]
	stp	w10, w8, [x20, #152]
Lloh64:
	ldr	x8, [x11]
Lloh65:
	adrp	x10, _r_firstSceneEntity@GOTPAGE
Lloh66:
	ldr	x10, [x10, _r_firstSceneEntity@GOTPAGEOFF]
Lloh67:
	ldr	x10, [x10]
	sub	x8, x8, x10
	ldp	x12, x11, [x9, #16]
	add	x10, x11, x10, lsl #2
Lloh68:
	adrp	x11, _r_numdlights@GOTPAGE
Lloh69:
	ldr	x11, [x11, _r_numdlights@GOTPAGEOFF]
	stp	x10, x8, [x20, #136]
Lloh70:
	ldr	x8, [x11]
Lloh71:
	adrp	x10, _r_firstSceneDlight@GOTPAGE
Lloh72:
	ldr	x10, [x10, _r_firstSceneDlight@GOTPAGEOFF]
Lloh73:
	ldr	x10, [x10]
	sub	x8, x8, x10
	add	x10, x12, x10, lsl #2
Lloh74:
	adrp	x11, _r_numpolys@GOTPAGE
Lloh75:
	ldr	x11, [x11, _r_numpolys@GOTPAGEOFF]
Lloh76:
	ldr	x11, [x11]
Lloh77:
	adrp	x12, _r_firstScenePoly@GOTPAGE
Lloh78:
	ldr	x12, [x12, _r_firstScenePoly@GOTPAGEOFF]
Lloh79:
	ldr	x12, [x12]
	sub	x11, x11, x12
	stp	x11, x10, [x20, #120]
	ldp	x9, x10, [x9]
	add	x10, x10, x12, lsl #2
	ldr	d1, [x20, #32]
	fmul	d0, d1, d0
	str	d0, [x20, #80]
	stp	xzr, x10, [x20, #104]
	stp	x8, x9, [x20, #88]
Lloh80:
	adrp	x8, _r_dynamiclight@GOTPAGE
Lloh81:
	ldr	x8, [x8, _r_dynamiclight@GOTPAGEOFF]
Lloh82:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.24:
Lloh83:
	adrp	x8, _r_vertexLight@GOTPAGE
Lloh84:
	ldr	x8, [x8, _r_vertexLight@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_26
; %bb.25:
Lloh86:
	adrp	x8, _glConfig@GOTPAGE
Lloh87:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
Lloh88:
	ldr	x8, [x8]
Lloh89:
	adrp	x9, _GLHW_PERMEDIA2@GOTPAGE
Lloh90:
	ldr	x9, [x9, _GLHW_PERMEDIA2@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
LBB0_26:
	str	xzr, [x20, #88]
LBB0_27:
	ldur	d0, [x20, #4]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_28:
	ldr	w0, [x20, #240]
	cbz	x8, LBB0_30
; %bb.29:
Lloh92:
	adrp	x8, _r_forceSunAmbientScale@GOTPAGE
Lloh93:
	ldr	x8, [x8, _r_forceSunAmbientScale@GOTPAGEOFF]
Lloh94:
	ldr	x8, [x8]
	ldr	s0, [x8]
	b	LBB0_31
LBB0_30:
	ldr	s0, [x20]
LBB0_31:
	fmul	s0, s8, s0
	ldr	x1, [x20, #64]
	bl	_VectorScale
	b	LBB0_8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh60
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,248,3                       ; @tr
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_RDF_NOWORLDMODEL,4,2           ; @RDF_NOWORLDMODEL
	.comm	_MAX_MAP_AREA_BYTES,4,2         ; @MAX_MAP_AREA_BYTES
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_r_depthPrepass,8,3             ; @r_depthPrepass
	.comm	_r_mapOverBrightBits,8,3        ; @r_mapOverBrightBits
	.comm	_r_forceSun,8,3                 ; @r_forceSun
	.comm	_r_forceSunLightScale,8,3       ; @r_forceSunLightScale
	.comm	_r_sunlightMode,8,3             ; @r_sunlightMode
	.comm	_r_forceSunAmbientScale,8,3     ; @r_forceSunAmbientScale
	.comm	_r_forceAutoExposure,8,3        ; @r_forceAutoExposure
	.comm	_r_forceAutoExposureMin,8,3     ; @r_forceAutoExposureMin
	.comm	_r_forceAutoExposureMax,8,3     ; @r_forceAutoExposureMax
	.comm	_r_forceToneMap,8,3             ; @r_forceToneMap
	.comm	_r_forceToneMapMin,8,3          ; @r_forceToneMapMin
	.comm	_r_forceToneMapAvg,8,3          ; @r_forceToneMapAvg
	.comm	_r_forceToneMapMax,8,3          ; @r_forceToneMapMax
	.comm	_RDF_EXTRA,4,2                  ; @RDF_EXTRA
	.comm	_RDF_SUNLIGHT,4,2               ; @RDF_SUNLIGHT
	.comm	_r_firstSceneDrawSurf,4,2       ; @r_firstSceneDrawSurf
	.comm	_backEndData,8,3                ; @backEndData
	.comm	_r_numentities,8,3              ; @r_numentities
	.comm	_r_firstSceneEntity,8,3         ; @r_firstSceneEntity
	.comm	_r_numdlights,8,3               ; @r_numdlights
	.comm	_r_firstSceneDlight,8,3         ; @r_firstSceneDlight
	.comm	_r_numpolys,8,3                 ; @r_numpolys
	.comm	_r_firstScenePoly,8,3           ; @r_firstScenePoly
	.comm	_r_dynamiclight,8,3             ; @r_dynamiclight
	.comm	_r_vertexLight,8,3              ; @r_vertexLight
	.comm	_glConfig,8,3                   ; @glConfig
	.comm	_GLHW_PERMEDIA2,8,3             ; @GLHW_PERMEDIA2
.subsections_via_symbols
