	.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_TestFlare
LCPI0_0:
	.long	0xbf800000                      ## float -1
LCPI0_1:
	.long	0x41c00000                      ## float 24
LCPI0_2:
	.long	0xc47a0000                      ## float -1000
LCPI0_3:
	.long	0x3f800000                      ## float 1
LCPI0_4:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_TestFlare
	.p2align	4, 0x90
_RB_TestFlare:                          ## @RB_TestFlare
	.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	_backEnd@GOTPCREL(%rip), %r14
	incl	16(%r14)
	movq	%rdi, %rbx
	movq	_qfalse@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_glState@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	24(%rdi), %esi
	movl	28(%rdi), %edi
	movq	_GL_DEPTH_COMPONENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-28(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$1, %edx
	movl	$1, %ecx
	callq	_qglReadPixels
	movq	8(%r14), %rax
	cvtsi2ssl	56(%rax), %xmm0
	movss	-28(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm1
	addss	LCPI0_0(%rip), %xmm1
	cvtsi2ssl	44(%rax), %xmm2
	mulss	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2ssl	40(%rax), %xmm1
	subss	%xmm1, %xmm2
	divss	%xmm2, %xmm0
	subss	(%rbx), %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movq	16(%rbx), %rax
	jbe	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, 4(%rbx)
	jmp	LBB0_8
LBB0_3:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, 4(%rbx)
LBB0_4:
	subss	%xmm1, %xmm0
	divss	LCPI0_4(%rip), %xmm0
	movq	_r_flareFade@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	mulss	(%rax), %xmm0
	jmp	LBB0_9
LBB0_6:
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
LBB0_8:
	subss	%xmm1, %xmm0
	movq	_r_flareFade@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	divss	LCPI0_2(%rip), %xmm0
	mulss	(%rax), %xmm0
	addss	LCPI0_3(%rip), %xmm0
LBB0_9:
	xorps	%xmm1, %xmm1
	maxss	%xmm0, %xmm1
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	minss	%xmm1, %xmm0
	movss	%xmm0, 8(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backEnd,24,3                   ## @backEnd
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_glState,8,3                    ## @glState
	.comm	_GL_DEPTH_COMPONENT,4,2         ## @GL_DEPTH_COMPONENT
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_r_flareFade,8,3                ## @r_flareFade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_TestFlare                   ; -- Begin function RB_TestFlare
	.p2align	2
_RB_TestFlare:                          ; @RB_TestFlare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _backEnd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _backEnd@GOTPAGEOFF]
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
Lloh2:
	adrp	x21, _qfalse@GOTPAGE
Lloh3:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _glState@GOTPAGE
Lloh5:
	ldr	x9, [x9, _glState@GOTPAGEOFF]
Lloh6:
	str	x8, [x9]
	ldr	w0, [x0, #28]
	ldr	w1, [x19, #24]
Lloh7:
	adrp	x8, _GL_DEPTH_COMPONENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_DEPTH_COMPONENT@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x8, _GL_FLOAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_FLOAT@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	add	x6, sp, #12
	mov	w2, #1
	mov	w3, #1
	bl	_qglReadPixels
	ldr	x8, [x20, #8]
	ldr	s0, [x8, #56]
	scvtf	s0, s0
	ldr	s1, [sp, #12]
	fmov	s2, #-1.00000000
	fmov	s3, #2.00000000
	fmadd	s1, s1, s3, s2
	ldp	s3, s2, [x8, #40]
	scvtf	s2, s2
	scvtf	s3, s3
	fnmsub	s1, s1, s2, s3
	ldr	s2, [x19]
	fdiv	s0, s0, s1
	fsub	s0, s0, s2
	ldr	x8, [x19, #16]
	fmov	s1, #24.00000000
	fcmp	s0, s1
	b.pl	LBB0_3
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
	ldr	s0, [x20]
	ldr	s1, [x19, #4]
	b	LBB0_6
LBB0_3:
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	str	x8, [x19, #16]
	ldr	s0, [x20]
	fmov	s1, #-1.00000000
	fadd	s1, s0, s1
	str	s1, [x19, #4]
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x8, _qtrue@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	s0, [x20]
	fmov	s1, #-1.00000000
	fadd	s1, s0, s1
	str	s1, [x19, #4]
LBB0_6:
	fsub	s0, s0, s1
	mov	w8, #1148846080
	fmov	s1, w8
	fdiv	s0, s0, s1
Lloh16:
	adrp	x8, _r_flareFade@GOTPAGE
Lloh17:
	ldr	x8, [x8, _r_flareFade@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	s1, [x8]
	fmul	s0, s0, s1
	b	LBB0_9
LBB0_7:
	ldr	s0, [x20]
	ldr	s1, [x19, #4]
LBB0_8:
	fsub	s0, s0, s1
Lloh19:
	adrp	x8, _r_flareFade@GOTPAGE
Lloh20:
	ldr	x8, [x8, _r_flareFade@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	s1, [x8]
	mov	w8, #-998637568
	fmov	s2, w8
	fdiv	s0, s0, s2
	fmov	s2, #1.00000000
	fmadd	s0, s0, s1, s2
LBB0_9:
	movi	d1, #0000000000000000
	fmax	s0, s0, s1
	fmov	s1, #1.00000000
	fmin	s0, s0, s1
	str	s0, [x19, #8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_backEnd,24,3                   ; @backEnd
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_glState,8,3                    ; @glState
	.comm	_GL_DEPTH_COMPONENT,4,2         ; @GL_DEPTH_COMPONENT
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_r_flareFade,8,3                ; @r_flareFade
.subsections_via_symbols
