	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function RB_RenderFlare
LCPI0_0:
	.long	0x44200000                      ## float 640
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_RenderFlare
	.p2align	4, 0x90
_RB_RenderFlare:                        ## @RB_RenderFlare
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_backEnd@GOTPCREL(%rip), %r14
	incl	4(%r14)
	movl	28(%rdi), %edi
	movq	_tr@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	imull	(%rbx), %esi
	callq	_VectorScale
	movq	_r_flareSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	divss	LCPI0_0(%rip), %xmm0
	xorl	%ecx, %ecx
	subl	4(%rbx), %ecx
	movl	$8, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cvtsi2ss	%eax, %xmm1
	addss	%xmm0, %xmm1
	mulss	(%r14), %xmm1
	movss	%xmm1, -28(%rbp)                ## 4-byte Spill
	movl	4(%r15), %edi
	movl	24(%rbx), %esi
	callq	_RB_BeginSurface
	xorps	%xmm0, %xmm0
	cvtsi2ssq	16(%rbx), %xmm0
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	_tess@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	40(%rax), %rcx
	movq	(%rcx,%rsi,8), %rsi
	movq	%rdx, (%rsi)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rbx), %xmm0
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	(%rax), %rdi
	movq	(%rcx,%rdi,8), %rsi
	movq	%rdx, 8(%rsi)
	movq	8(%rax), %r8
	movq	(%r8,%rdi,8), %rsi
	movq	(%rsi), %rsi
	movq	$0, (%rsi)
	movq	16(%rax), %r9
	movq	(%r9,%rdi,8), %rdx
	movl	$255, 12(%rdx)
	leaq	1(%rdi), %rdx
	movq	%rdx, (%rax)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	16(%rbx), %xmm0
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	8(%rcx,%rdi,8), %rdi
	movq	%rdx, (%rdi)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rbx), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	(%rax), %rdi
	movq	(%rcx,%rdi,8), %rsi
	movq	%rdx, 8(%rsi)
	movq	(%r8,%rdi,8), %rdx
	movq	(%rdx), %rdx
	movabsq	$4294967296, %rsi               ## imm = 0x100000000
	movq	%rsi, (%rdx)
	movq	(%r9,%rdi,8), %rdx
	movl	$255, 12(%rdx)
	leaq	1(%rdi), %rdx
	movq	%rdx, (%rax)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	16(%rbx), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	8(%rcx,%rdi,8), %rsi
	movq	%rdx, (%rsi)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rbx), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	(%rax), %rsi
	movq	(%rcx,%rsi,8), %rdi
	movq	%rdx, 8(%rdi)
	movq	(%r8,%rsi,8), %rdx
	movq	(%rdx), %rdx
	movabsq	$4294967297, %rdi               ## imm = 0x100000001
	movq	%rdi, (%rdx)
	movq	(%r9,%rsi,8), %rdx
	movl	$255, 12(%rdx)
	leaq	1(%rsi), %rdx
	movq	%rdx, (%rax)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	16(%rbx), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	8(%rcx,%rsi,8), %rsi
	movq	%rdx, (%rsi)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rbx), %xmm0
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdx
	movq	(%rax), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movq	%rdx, 8(%rcx)
	movq	(%r8,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	$1, (%rcx)
	movq	(%r9,%rsi,8), %rcx
	movl	$255, 12(%rcx)
	incq	%rsi
	movq	%rsi, (%rax)
	movq	24(%rax), %rcx
	movslq	32(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 32(%rax)
	movl	$0, (%rcx,%rdx,4)
	movslq	32(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 32(%rax)
	movl	$1, (%rcx,%rdx,4)
	movslq	32(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 32(%rax)
	movl	$2, (%rcx,%rdx,4)
	movslq	32(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 32(%rax)
	movl	$0, (%rcx,%rdx,4)
	movslq	32(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 32(%rax)
	movl	$2, (%rcx,%rdx,4)
	movslq	32(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 32(%rax)
	movl	$3, (%rcx,%rdx,4)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RB_EndSurface                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_backEnd,8,2                    ## @backEnd
	.comm	_tr,8,2                         ## @tr
	.comm	_r_flareSize,8,3                ## @r_flareSize
	.comm	_tess,48,3                      ## @tess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function RB_RenderFlare
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_RenderFlare
	.p2align	2
_RB_RenderFlare:                        ; @RB_RenderFlare
	.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, _backEnd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _backEnd@GOTPAGEOFF]
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldr	w0, [x0, #28]
	ldr	w8, [x19]
Lloh2:
	adrp	x21, _tr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	ldr	w9, [x21]
	mul	w1, w9, w8
	bl	_VectorScale
	ldr	s0, [x20]
Lloh4:
	adrp	x8, _r_flareSize@GOTPAGE
Lloh5:
	ldr	x8, [x8, _r_flareSize@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	s1, [x8]
	mov	w8, #1142947840
	fmov	s2, w8
	fdiv	s1, s1, s2
	ldr	w8, [x19, #4]
	neg	w8, w8
	mov	w9, #8
	sdiv	w8, w9, w8
	scvtf	s2, w8
	fadd	s1, s1, s2
	fmul	s8, s0, s1
	ldr	w0, [x21, #4]
	ldr	w1, [x19, #24]
	bl	_RB_BeginSurface
	ldr	x8, [x19, #16]
	scvtf	s0, x8
	fsub	s0, s0, s8
	fcvtzs	x11, s0
Lloh7:
	adrp	x8, _tess@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tess@GOTPAGEOFF]
	ldr	x9, [x8, #40]
	ldp	x12, x10, [x8]
	ldr	x12, [x9, x12, lsl #3]
	str	x11, [x12]
	ldr	x11, [x19, #8]
	scvtf	s0, x11
	fsub	s0, s0, s8
	fcvtzs	x12, s0
	ldr	x13, [x8]
	lsl	x11, x13, #3
	ldr	x14, [x9, x11]
	ldr	x15, [x10, x11]
	str	x12, [x14, #8]
	ldr	x12, [x15]
	str	xzr, [x12]
	add	x12, x13, #1
	str	x12, [x8]
	ldr	x13, [x19, #16]
	scvtf	s0, x13
	fsub	s0, s0, s8
	fcvtzs	x13, s0
	ldr	x12, [x9, x12, lsl #3]
	str	x13, [x12]
	ldr	x12, [x19, #8]
	scvtf	s0, x12
	fadd	s0, s8, s0
	fcvtzs	x13, s0
	ldr	x14, [x8]
	lsl	x12, x14, #3
	ldr	x15, [x9, x12]
	str	x13, [x15, #8]
	ldr	x13, [x19, #16]
	scvtf	s0, x13
	add	x13, x14, #1
	fadd	s0, s8, s0
	fcvtzs	x14, s0
	ldr	x15, [x9, x13, lsl #3]
	str	x13, [x8]
	str	x14, [x15]
	ldr	x13, [x19, #8]
	scvtf	s0, x13
	fadd	s0, s8, s0
	fcvtzs	x13, s0
	ldr	x14, [x8]
	lsl	x15, x14, #3
	ldr	x16, [x9, x15]
	str	x13, [x16, #8]
	ldp	x13, x16, [x8, #16]
	ldr	x11, [x13, x11]
	mov	w17, #255
	str	w17, [x11, #12]
Lloh9:
	adrp	x11, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
	ldr	x11, [x10, x12]
	ldr	x11, [x11]
	str	d0, [x11]
	ldr	x11, [x13, x12]
	str	w17, [x11, #12]
	ldr	x11, [x10, x15]
	ldr	x11, [x11]
	movi.2s	v0, #1
	str	d0, [x11]
	ldr	x11, [x13, x15]
	str	w17, [x11, #12]
	add	x11, x14, #1
	str	x11, [x8]
	ldr	x12, [x19, #16]
	scvtf	s0, x12
	fadd	s0, s8, s0
	fcvtzs	x12, s0
	ldr	x11, [x9, x11, lsl #3]
	str	x12, [x11]
	ldr	x11, [x19, #8]
	scvtf	s0, x11
	fsub	s0, s0, s8
	fcvtzs	x11, s0
	ldr	x12, [x8]
	lsl	x14, x12, #3
	ldr	x9, [x9, x14]
	str	x11, [x9, #8]
	ldr	x9, [x10, x14]
	ldr	x9, [x9]
Lloh11:
	adrp	x10, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x10, lCPI0_1@PAGEOFF]
	str	d0, [x9]
	ldr	x9, [x13, x14]
	str	w17, [x9, #12]
	ldrsw	x9, [x8, #32]
	add	w10, w9, #1
	str	w10, [x8, #32]
	str	wzr, [x16, x9, lsl #2]
	ldrsw	x9, [x8, #32]
	add	w10, w9, #1
	str	w10, [x8, #32]
	mov	w10, #1
	str	w10, [x16, x9, lsl #2]
	ldrsw	x9, [x8, #32]
	add	w10, w9, #1
	str	w10, [x8, #32]
	mov	w10, #2
	str	w10, [x16, x9, lsl #2]
	add	x9, x12, #1
	ldrsw	x11, [x8, #32]
	add	w12, w11, #1
	str	w12, [x8, #32]
	str	wzr, [x16, x11, lsl #2]
	str	x9, [x8]
	ldrsw	x9, [x8, #32]
	add	w11, w9, #1
	str	w11, [x8, #32]
	str	w10, [x16, x9, lsl #2]
	ldrsw	x9, [x8, #32]
	add	w10, w9, #1
	str	w10, [x8, #32]
	mov	w8, #3
	str	w8, [x16, x9, lsl #2]
	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
	b	_RB_EndSurface
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_backEnd,8,2                    ; @backEnd
	.comm	_tr,8,2                         ; @tr
	.comm	_r_flareSize,8,3                ; @r_flareSize
	.comm	_tess,48,3                      ; @tess
.subsections_via_symbols
