	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CG_ScorePlum
LCPI0_0:
	.quad	0x40af400000000000              ## double 4000
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ScorePlum
	.p2align	4, 0x90
_CG_ScorePlum:                          ## @CG_ScorePlum
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg@GOTPCREL(%rip), %r12
	cmpl	%edi, 8(%r12)
	jne	LBB0_6
## %bb.1:
	movq	_cg_scorePlum@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	xorl	%eax, %eax
	callq	_CG_AllocLocalEntity
	movq	%rax, %rbx
	movq	$0, 64(%rax)
	movq	_LE_SCOREPLUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rbx)
	subsd	%xmm0, %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 16(%rbx)
	movq	24(%rbx), %rax
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movups	%xmm0, 16(%rax)
	movups	%xmm0, (%rax)
	movl	%r15d, 32(%rbx)
	movq	48(%rbx), %rsi
	movq	%r14, %rdi
	callq	_VectorCopy
	movl	8(%r14), %eax
	movl	8, %ecx
	leal	-20(%rcx), %edx
	cmpl	%edx, %eax
	jl	LBB0_5
## %bb.3:
	addl	$20, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_5
## %bb.4:
	movq	48(%rbx), %rax
	addl	$-20, 8(%rax)
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_VectorCopy
	movq	_RT_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	$16, 36(%rbx)
	callq	_VectorClear
	movl	40(%rbx), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AnglesToAxis                   ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,16,3                        ## @cg
	.comm	_cg_scorePlum,8,3               ## @cg_scorePlum
	.comm	_LE_SCOREPLUM,4,2               ## @LE_SCOREPLUM
	.comm	_RT_SPRITE,4,2                  ## @RT_SPRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ScorePlum                   ; -- Begin function CG_ScorePlum
	.p2align	2
_CG_ScorePlum:                          ; @CG_ScorePlum
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _cg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cg@GOTPAGEOFF]
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _cg_scorePlum@GOTPAGE
Lloh3:
	ldr	x9, [x9, _cg_scorePlum@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	w8, w0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	bl	_CG_AllocLocalEntity
	mov	x20, x0
	str	xzr, [x0, #64]
Lloh5:
	adrp	x8, _LE_SCOREPLUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LE_SCOREPLUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	ldr	d0, [x22]
	mov	x8, #70368744177664
	movk	x8, #16559, lsl #48
	fmov	d1, x8
	fadd	d1, d0, d1
	stp	d0, d1, [x0]
	fsub	d0, d1, d0
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	str	d0, [x0, #16]
	ldr	x8, [x0, #24]
	fmov.2d	v0, #1.00000000
	stp	q0, q0, [x8]
	str	w21, [x0, #32]
	ldr	x1, [x0, #48]
	mov	x0, x19
	bl	_VectorCopy
	ldr	w8, [x19, #8]
	mov	w9, #8
	ldr	w9, [x9]
	sub	w10, w9, #20
	cmp	w8, w10
	b.lt	LBB0_5
; %bb.3:
	add	w9, w9, #20
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.4:
	ldr	x8, [x20, #48]
	ldr	w9, [x8, #8]
	sub	w9, w9, #20
	str	w9, [x8, #8]
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	bl	_VectorCopy
Lloh8:
	adrp	x8, _RT_SPRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RT_SPRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #44]
	mov	w8, #16
	str	w8, [x20, #36]
	bl	_VectorClear
	ldr	w1, [x20, #40]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AnglesToAxis
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,16,3                        ; @cg
	.comm	_cg_scorePlum,8,3               ; @cg_scorePlum
	.comm	_LE_SCOREPLUM,4,2               ; @LE_SCOREPLUM
	.comm	_RT_SPRITE,4,2                  ; @RT_SPRITE
.subsections_via_symbols
