	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_AddDynamicLightToScene      ## -- Begin function RE_AddDynamicLightToScene
	.p2align	4, 0x90
_RE_AddDynamicLightToScene:             ## @RE_AddDynamicLightToScene
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tr@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	xorps	%xmm4, %xmm4
	ucomiss	%xmm0, %xmm4
	jae	LBB0_6
## %bb.2:
	movq	_r_numdlights@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	_MAX_DLIGHTS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_6
## %bb.3:
	movl	%esi, %r14d
	movq	_glConfig@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_GLHW_RIVA128@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.4:
	movq	_GLHW_PERMEDIA2@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.5:
	movq	_backEndData@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %r15
	leaq	1(%rax), %rdx
	movq	%rdx, (%rcx)
	leaq	(%rax,%rax,2), %rbx
	movl	20(%r15,%rbx,8), %esi
	movss	%xmm3, -40(%rbp)                ## 4-byte Spill
	movss	%xmm2, -36(%rbp)                ## 4-byte Spill
	movss	%xmm1, -32(%rbp)                ## 4-byte Spill
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	callq	_VectorCopy
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r15,%rbx,8)
	movq	8(%r15,%rbx,8), %rax
	movss	-32(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%rax)
	movss	-40(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax)
	movl	%r14d, 16(%r15,%rbx,8)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,4,2                         ## @tr
	.comm	_r_numdlights,8,3               ## @r_numdlights
	.comm	_MAX_DLIGHTS,8,3                ## @MAX_DLIGHTS
	.comm	_glConfig,8,3                   ## @glConfig
	.comm	_GLHW_RIVA128,8,3               ## @GLHW_RIVA128
	.comm	_GLHW_PERMEDIA2,8,3             ## @GLHW_PERMEDIA2
	.comm	_backEndData,8,3                ## @backEndData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_AddDynamicLightToScene      ; -- Begin function RE_AddDynamicLightToScene
	.p2align	2
_RE_AddDynamicLightToScene:             ; @RE_AddDynamicLightToScene
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
Lloh0:
	adrp	x8, _tr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	fmov	s11, s0
Lloh3:
	adrp	x9, _r_numdlights@GOTPAGE
Lloh4:
	ldr	x9, [x9, _r_numdlights@GOTPAGEOFF]
	ldr	x8, [x9]
Lloh5:
	adrp	x10, _MAX_DLIGHTS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MAX_DLIGHTS@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	fcmp	s0, #0.0
	ccmp	x8, x10, #0, hi
	b.ge	LBB0_4
; %bb.2:
Lloh8:
	adrp	x10, _glConfig@GOTPAGE
Lloh9:
	ldr	x10, [x10, _glConfig@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _GLHW_RIVA128@GOTPAGE
Lloh12:
	ldr	x11, [x11, _GLHW_RIVA128@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	adrp	x12, _GLHW_PERMEDIA2@GOTPAGE
Lloh15:
	ldr	x12, [x12, _GLHW_PERMEDIA2@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.eq	LBB0_4
; %bb.3:
	mov	x19, x1
	fmov	s8, s3
	fmov	s9, s2
	fmov	s10, s1
Lloh17:
	adrp	x10, _backEndData@GOTPAGE
Lloh18:
	ldr	x10, [x10, _backEndData@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	ldr	x10, [x10]
	add	x11, x8, #1
	str	x11, [x9]
	mov	w9, #24
	madd	x20, x8, x9, x10
	ldr	w1, [x20, #20]
	bl	_VectorCopy
	str	s11, [x20]
	ldr	x8, [x20, #8]
	str	s10, [x8]
	str	s9, [x8, #4]
	str	s8, [x8, #8]
	str	w19, [x20, #16]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,4,2                         ; @tr
	.comm	_r_numdlights,8,3               ; @r_numdlights
	.comm	_MAX_DLIGHTS,8,3                ; @MAX_DLIGHTS
	.comm	_glConfig,8,3                   ; @glConfig
	.comm	_GLHW_RIVA128,8,3               ; @GLHW_RIVA128
	.comm	_GLHW_PERMEDIA2,8,3             ; @GLHW_PERMEDIA2
	.comm	_backEndData,8,3                ; @backEndData
.subsections_via_symbols
