	.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_AddMoveScaleFade
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x4020000000000000              ## double 8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_AddMoveScaleFade:                   ## @CG_AddMoveScaleFade
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	%rdx, %rcx
	movq	_cg@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	subq	8(%rdi), %rcx
	jle	LBB0_3
## %bb.1:
	subq	%rax, %rdx
	jle	LBB0_3
## %bb.2:
	cvtsi2ss	%rdx, %xmm1
	cvtsi2ss	%rcx, %xmm0
	divss	%xmm0, %xmm1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	jmp	LBB0_4
LBB0_3:
	cvtsi2ss	%rax, %xmm1
	movss	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	mulss	20(%rbx), %xmm0
LBB0_4:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movq	24(%rbx), %rcx
	movq	56(%rbx), %rdx
	cvtsi2ssl	12(%rcx), %xmm2
	mulss	%xmm1, %xmm2
	cvttss2si	%xmm2, %ecx
	movl	%ecx, 12(%rdx)
	movq	_LEF_PUFF_DONT_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 32(%rbx)
	jne	LBB0_6
## %bb.5:
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	40(%rbx), %xmm1
	addsd	LCPI0_3(%rip), %xmm1
	movsd	%xmm1, 64(%rbx)
LBB0_6:
	leaq	48(%rbx), %rdi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movl	72(%rbx), %esi
	callq	_BG_EvaluateTrajectory
	movl	72(%rbx), %edi
	movl	8(%r14), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	cvtss2sd	%xmm0, %xmm0
	movsd	40(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CG_FreeLocalEntity             ## TAILCALL
LBB0_8:
	addq	$56, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_R_AddRefEntityToScene     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,16,3                        ## @cg
	.comm	_LEF_PUFF_DONT_SCALE,4,2        ## @LEF_PUFF_DONT_SCALE
	.no_dead_strip	_CG_AddMoveScaleFade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_AddMoveScaleFade
_CG_AddMoveScaleFade:                   ; @CG_AddMoveScaleFade
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	ldp	x9, x8, [x0]
	ldr	x10, [x20]
	subs	x8, x9, x8
	ccmp	x9, x10, #4, gt
	scvtf	s0, x10
	b.gt	LBB0_2
; %bb.1:
	ldp	s1, s2, [x19, #16]
	fsub	s1, s1, s0
	fmul	s1, s2, s1
	b	LBB0_3
LBB0_2:
	sub	x9, x9, x10
	scvtf	s1, x9
	scvtf	s2, x8
	fdiv	s1, s1, s2
	fmov	s2, #1.00000000
	fsub	s1, s2, s1
LBB0_3:
	mov	w8, #1132396544
	fmov	s2, w8
	fmul	s2, s1, s2
	ldr	x8, [x19, #24]
	ldr	s3, [x8, #12]
	scvtf	s3, s3
	fmul	s2, s2, s3
	fcvtzs	w8, s2
	ldr	x9, [x19, #56]
	str	w8, [x9, #12]
	ldr	w8, [x19, #32]
Lloh2:
	adrp	x9, _LEF_PUFF_DONT_SCALE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LEF_PUFF_DONT_SCALE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	d2, [x19, #40]
	fcvt	d1, s1
	fmov	d3, #1.00000000
	fsub	d1, d3, d1
	fmov	d3, #8.00000000
	fmadd	d1, d2, d1, d3
	str	d1, [x19, #64]
LBB0_5:
	add	x0, x19, #48
	ldr	w1, [x19, #72]
	bl	_BG_EvaluateTrajectory
	ldr	w0, [x19, #72]
	ldr	w1, [x20, #8]
	bl	_VectorSubtract
	bl	_VectorLength
	fcvt	d0, s0
	ldr	d1, [x19, #40]
	fcmp	d1, d0
	b.le	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_FreeLocalEntity
LBB0_7:
	add	x0, x19, #56
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_R_AddRefEntityToScene
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,16,3                        ; @cg
	.comm	_LEF_PUFF_DONT_SCALE,4,2        ; @LEF_PUFF_DONT_SCALE
	.no_dead_strip	_CG_AddMoveScaleFade
.subsections_via_symbols
