	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_ReflectVelocity
LCPI0_0:
	.long	0xc0000000                      ## float -2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ReflectVelocity
	.p2align	4, 0x90
_CG_ReflectVelocity:                    ## @CG_ReflectVelocity
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_cg@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	4(%r15), %esi
	subl	%esi, %eax
	imull	(%rbx), %esi
	addl	%eax, %esi
	callq	_BG_EvaluateTrajectoryDelta
	movq	8(%rbx), %rsi
	callq	_DotProduct
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	movq	8(%rbx), %rdx
	movq	(%r14), %rcx
	callq	_VectorMA
	movq	(%r14), %rdi
	movl	24(%r14), %esi
	movq	%rdi, %rdx
	callq	_VectorScale
	movl	24(%rbx), %edi
	movl	16(%r14), %esi
	callq	_VectorCopy
	movl	(%r15), %eax
	movl	%eax, 8(%r14)
	cmpq	$0, 16(%rbx)
	je	LBB0_1
LBB0_4:
	movq	_TR_STATIONARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rax
	cmpq	$0, 16(%rax)
	jle	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	movl	8(%rax), %eax
	cmpl	$40, %eax
	jl	LBB0_4
## %bb.3:
	movl	4(%r15), %ecx
	imull	%eax, %ecx
	negl	%ecx
	cmpl	%ecx, %eax
	jl	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,2                         ## @cg
	.comm	_TR_STATIONARY,4,2              ## @TR_STATIONARY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ReflectVelocity             ; -- Begin function CG_ReflectVelocity
	.p2align	2
_CG_ReflectVelocity:                    ; @CG_ReflectVelocity
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _cg@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cg@GOTPAGEOFF]
	ldp	w8, w9, [x21]
	sub	w8, w8, w9
	ldr	w10, [x1]
	madd	w1, w10, w9, w8
	bl	_BG_EvaluateTrajectoryDelta
	ldr	x1, [x20, #8]
	bl	_DotProduct
	fmov	s1, #-2.00000000
	fmul	s0, s0, s1
	fcvtzs	w1, s0
	ldr	x2, [x20, #8]
	ldr	x3, [x19]
	bl	_VectorMA
	ldr	x0, [x19]
	ldr	w1, [x19, #24]
	mov	x2, x0
	bl	_VectorScale
	ldr	w0, [x20, #24]
	ldr	w1, [x19, #16]
	bl	_VectorCopy
	ldr	w8, [x21]
	str	w8, [x19, #8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _TR_STATIONARY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TR_STATIONARY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_2:
	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_3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.4:
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #40
	b.lt	LBB0_1
; %bb.5:
	ldr	w9, [x21, #4]
	mneg	w9, w8, w9
	cmp	w8, w9
	b.lt	LBB0_1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,2                         ; @cg
	.comm	_TR_STATIONARY,4,2              ; @TR_STATIONARY
.subsections_via_symbols
