	.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_AddFallScaleFade
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x4030000000000000              ## double 16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_AddFallScaleFade:                   ## @CG_AddFallScaleFade
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	_cg@GOTPCREL(%rip), %rax
	subss	(%rax), %xmm0
	mulss	4(%rdi), %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movq	8(%rdi), %rcx
	cvtsi2ssl	12(%rcx), %xmm2
	mulss	%xmm1, %xmm2
	cvttss2si	%xmm2, %ecx
	movq	40(%rdi), %rdx
	movl	%ecx, 12(%rdx)
	movq	24(%rdi), %rcx
	movq	32(%rdi), %rdx
	xorps	%xmm1, %xmm1
	cvtsi2sdq	16(%rdx), %xmm1
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	movsd	16(%rcx), %xmm0                 ## xmm0 = mem[0],zero
	mulsd	%xmm2, %xmm0
	subsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rcx
	movq	56(%rdi), %rdi
	movq	%rcx, 16(%rdi)
	mulsd	16(%rbx), %xmm2
	addsd	LCPI0_2(%rip), %xmm2
	movsd	%xmm2, 48(%rbx)
	movl	4(%rax), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	cvtss2sd	%xmm0, %xmm0
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_FreeLocalEntity             ## TAILCALL
LBB0_2:
	addq	$40, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trap_R_AddRefEntityToScene     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,2                         ## @cg
	.no_dead_strip	_CG_AddFallScaleFade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_AddFallScaleFade
_CG_AddFallScaleFade:                   ; @CG_AddFallScaleFade
	.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
	mov	x20, x0
	ldr	x8, [x20, #40]!
Lloh0:
	adrp	x9, _cg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cg@GOTPAGEOFF]
	ldr	s0, [x9]
	ldp	s1, s2, [x0]
	fsub	s0, s1, s0
	fmul	s0, s0, s2
	mov	w10, #1132396544
	fmov	s1, w10
	fmul	s1, s0, s1
	ldr	x10, [x0, #8]
	ldr	s2, [x10, #12]
	scvtf	s2, s2
	fmul	s1, s1, s2
	fcvtzs	w10, s1
	str	w10, [x8, #12]
	ldp	x10, x8, [x0, #24]
	ldr	d1, [x8, #16]
	scvtf	d1, d1
	fcvt	d0, s0
	fmov	d2, #1.00000000
	fsub	d0, d2, d0
	ldr	d2, [x10, #16]
	fmsub	d1, d0, d2, d1
	fcvtzs	x8, d1
	ldr	x0, [x0, #56]
	str	x8, [x0, #16]
	ldr	d1, [x19, #16]
	fmov	d2, #16.00000000
	fmadd	d0, d1, d0, d2
	str	d0, [x19, #48]
	ldr	w1, [x9, #4]
	bl	_VectorSubtract
	bl	_VectorLength
	fcvt	d0, s0
	ldr	d1, [x19, #16]
	fcmp	d1, d0
	b.le	LBB0_2
; %bb.1:
	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_2:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,2                         ; @cg
	.no_dead_strip	_CG_AddFallScaleFade
.subsections_via_symbols
