	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_RenderFlares                ## -- Begin function RB_RenderFlares
	.p2align	4, 0x90
_RB_RenderFlares:                       ## @RB_RenderFlares
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_r_flares@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_r_activeFlares@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	_backEnd@GOTPCREL(%rip), %r15
	movq	_r_inactiveFlares@GOTPCREL(%rip), %r12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%rbx), %rax
	movq	%rax, (%r13)
	movq	(%r12), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, (%r12)
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %eax
	decl	%eax
	cmpl	%eax, (%rbx)
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	$0, 24(%rbx)
	movq	8(%rbx), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%rbx), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_RB_TestFlare
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rax
	addq	$32, %rbx
	movq	%rbx, %r13
	testq	%rax, %rax
	jne	LBB0_3
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.12:
	movq	_backEnd@GOTPCREL(%rip), %r14
	cmpq	$0, 16(%r14)
	je	LBB0_14
## %bb.13:
	movq	_GL_CLIP_PLANE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglDisable
LBB0_14:
	xorl	%eax, %eax
	callq	_qglPushMatrix
	xorl	%eax, %eax
	callq	_qglLoadIdentity
	movq	_GL_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglMatrixMode
	xorl	%eax, %eax
	callq	_qglPushMatrix
	xorl	%eax, %eax
	callq	_qglLoadIdentity
	movq	32(%r14), %rdx
	movq	48(%r14), %rdi
	movq	40(%r14), %rsi
	addq	%rdi, %rsi
	movq	24(%r14), %rcx
	addq	%rdx, %rcx
	movl	$-99999, %r8d                   ## imm = 0xFFFE7961
	movl	$99999, %r9d                    ## imm = 0x1869F
	callq	_qglOrtho
	movq	_r_activeFlares@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rbx), %rbx
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rbx), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rbx), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_RB_RenderFlare
	jmp	LBB0_20
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	callq	_qglPopMatrix
	movq	_GL_MODELVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglMatrixMode
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qglPopMatrix                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r_flares,8,3                   ## @r_flares
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_r_activeFlares,8,3             ## @r_activeFlares
	.comm	_backEnd,56,3                   ## @backEnd
	.comm	_r_inactiveFlares,8,3           ## @r_inactiveFlares
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_GL_CLIP_PLANE0,4,2             ## @GL_CLIP_PLANE0
	.comm	_GL_PROJECTION,4,2              ## @GL_PROJECTION
	.comm	_GL_MODELVIEW,4,2               ## @GL_MODELVIEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_RenderFlares                ; -- Begin function RB_RenderFlares
	.p2align	2
_RB_RenderFlares:                       ; @RB_RenderFlares
	.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
Lloh0:
	adrp	x8, _r_flares@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_flares@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.1:
Lloh3:
	adrp	x8, _qfalse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x21, _r_activeFlares@GOTPAGE
Lloh7:
	ldr	x21, [x21, _r_activeFlares@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh8:
	adrp	x20, _backEnd@GOTPAGE
Lloh9:
	ldr	x20, [x20, _backEnd@GOTPAGEOFF]
	cbz	x8, LBB0_11
; %bb.2:
Lloh10:
	adrp	x25, _r_activeFlares@GOTPAGE
Lloh11:
	ldr	x25, [x25, _r_activeFlares@GOTPAGEOFF]
Lloh12:
	adrp	x23, _r_inactiveFlares@GOTPAGE
Lloh13:
	ldr	x23, [x23, _r_inactiveFlares@GOTPAGEOFF]
Lloh14:
	adrp	x24, _qtrue@GOTPAGE
Lloh15:
	ldr	x24, [x24, _qtrue@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x19, x8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x19, #32]
	str	x8, [x25]
	ldr	x8, [x23]
	str	x8, [x19, #32]
	str	x19, [x23]
	ldr	x19, [x25]
	cbz	x19, LBB0_11
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	str	xzr, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x19
	bl	_RB_TestFlare
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x24]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]!
	mov	x25, x19
	cbnz	x8, LBB0_3
LBB0_11:
	cbz	w22, LBB0_21
; %bb.12:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_14
; %bb.13:
Lloh16:
	adrp	x8, _GL_CLIP_PLANE0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_CLIP_PLANE0@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_qglDisable
LBB0_14:
	bl	_qglPushMatrix
	bl	_qglLoadIdentity
Lloh19:
	adrp	x8, _GL_PROJECTION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_PROJECTION@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_qglMatrixMode
	bl	_qglPushMatrix
	bl	_qglLoadIdentity
	ldp	x8, x0, [x20, #40]
	add	x1, x8, x0
	ldp	x8, x2, [x20, #24]
	add	x3, x8, x2
	mov	w4, #31073
	movk	w4, #65534, lsl #16
	mov	w5, #34463
	movk	w5, #1, lsl #16
	bl	_qglOrtho
	ldr	x19, [x21]
	cbnz	x19, LBB0_17
LBB0_15:
	bl	_qglPopMatrix
Lloh22:
	adrp	x8, _GL_MODELVIEW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_MODELVIEW@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_qglMatrixMode
	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
	b	_qglPopMatrix
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x19, [x19, #32]
	cbz	x19, LBB0_15
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x19
	bl	_RB_RenderFlare
	b	LBB0_16
LBB0_21:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_r_flares,8,3                   ; @r_flares
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_r_activeFlares,8,3             ; @r_activeFlares
	.comm	_backEnd,56,3                   ; @backEnd
	.comm	_r_inactiveFlares,8,3           ; @r_inactiveFlares
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_GL_CLIP_PLANE0,4,2             ; @GL_CLIP_PLANE0
	.comm	_GL_PROJECTION,4,2              ; @GL_PROJECTION
	.comm	_GL_MODELVIEW,4,2               ; @GL_MODELVIEW
.subsections_via_symbols
