	.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_SpawnEffect
LCPI0_0:
	.quad	0x407f400000000000              ## double 500
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x408f400000000000              ## double 1000
	.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_SpawnEffect
	.p2align	4, 0x90
_CG_SpawnEffect:                        ## @CG_SpawnEffect
	.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
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_CG_AllocLocalEntity
	movq	%rax, %rbx
	movq	$0, 72(%rax)
	movq	_LE_FADE_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_cg@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %ecx
	movl	%ecx, 8(%rbx)
	cvttpd2dq	%xmm1, %xmm1
	cvtdq2pd	%xmm1, %xmm1
	subsd	%xmm0, %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 16(%rbx)
	movq	24(%rbx), %rcx
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movups	%xmm0, 16(%rcx)
	movups	%xmm0, (%rcx)
	movq	_RT_MODEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rbx)
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	divsd	LCPI0_3(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 32(%rbx)
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 56(%rbx)
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	48(%rbx), %edi
	callq	_AxisClear
	movq	40(%rbx), %rsi
	movl	%r14d, %edi
	callq	_VectorCopy
	movq	40(%rbx), %rax
	addl	$-24, 8(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_FADE_RGB,4,2                ## @LE_FADE_RGB
	.comm	_cg,8,3                         ## @cg
	.comm	_RT_MODEL,4,2                   ## @RT_MODEL
	.comm	_cgs,8,2                        ## @cgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_SpawnEffect                 ; -- Begin function CG_SpawnEffect
	.p2align	2
_CG_SpawnEffect:                        ; @CG_SpawnEffect
	.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
	bl	_CG_AllocLocalEntity
	mov	x20, x0
	str	xzr, [x0, #72]
Lloh0:
	adrp	x8, _LE_FADE_RGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_FADE_RGB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _cg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cg@GOTPAGEOFF]
	ldr	d0, [x9]
	str	d0, [x0]
	mov	x10, #70368744177664
	movk	x10, #16511, lsl #48
	fmov	d1, x10
	fadd	d1, d0, d1
	fcvtzs	w10, d1
	str	w10, [x0, #8]
	scvtf	d1, w10
	fsub	d0, d1, d0
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	str	d0, [x0, #16]
	ldr	x10, [x0, #24]
	fmov.2d	v0, #1.00000000
	stp	q0, q0, [x10]
Lloh5:
	adrp	x10, _RT_MODEL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RT_MODEL@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w10, w8, [x0, #60]
	ldr	d0, [x9]
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvt	s0, d0
	str	s0, [x0, #32]
Lloh8:
	adrp	x8, _cgs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
Lloh10:
	ldr	d0, [x8]
	stur	d0, [x0, #52]
	ldr	w0, [x0, #48]
	bl	_AxisClear
	ldr	x1, [x20, #40]
	mov	x0, x19
	bl	_VectorCopy
	ldr	x8, [x20, #40]
	ldr	w9, [x8, #8]
	sub	w9, w9, #24
	str	w9, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_FADE_RGB,4,2                ; @LE_FADE_RGB
	.comm	_cg,8,3                         ; @cg
	.comm	_RT_MODEL,4,2                   ; @RT_MODEL
	.comm	_cgs,8,2                        ; @cgs
.subsections_via_symbols
