	.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_BubbleTrail
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_BubbleTrail
	.p2align	4, 0x90
_CG_BubbleTrail:                        ## @CG_BubbleTrail
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg_noProjectileTrail@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %ebx
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_VectorCopy
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_VectorSubtract
	callq	_VectorNormalize
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rand
	cvttss2si	-44(%rbp), %ecx         ## 4-byte Folded Reload
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	movl	%edx, %esi
	callq	_VectorMA
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_VectorScale
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtsi2ss	%ebx, %xmm1
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_4
## %bb.2:
	movq	_cg@GOTPCREL(%rip), %r12
	movabsq	$4607182418800017408, %r15      ## imm = 0x3FF0000000000000
	movq	_TR_LINEAR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movaps	%xmm1, -64(%rbp)                ## 16-byte Spill
	xorl	%eax, %eax
	callq	_CG_AllocLocalEntity
	movq	%rax, %rbx
	movq	_LEF_PUFF_DONT_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_LE_MOVE_SCALE_FADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movl	(%r12), %r14d
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	callq	_random
	imull	$250, %eax, %eax
	addl	%r14d, %eax
	addl	$1000, %eax                     ## imm = 0x3E8
	movl	%eax, 4(%rbx)
	subl	(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12), %xmm0
	divss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, 48(%rbx)
	movq	_RT_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	$0, 72(%rbx)
	movl	$3, 52(%rbx)
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	56(%rbx), %rax
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, (%rax)
	movq	16(%rbx), %rax
	movq	%r15, 24(%rax)
	movl	(%r13), %eax
	movl	%eax, 44(%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12), %xmm0
	movss	%xmm0, 24(%rbx)
	movl	40(%rbx), %esi
	callq	_VectorCopy
	xorl	%eax, %eax
	callq	_crandom
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_crandom
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	movq	32(%rbx), %rcx
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	callq	_crandom
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	addl	$6, %eax
	movq	32(%rbx), %rcx
	movl	%eax, 8(%rcx)
	callq	_VectorAdd
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttps2dq	%xmm0, %xmm0
	cvtdq2ps	%xmm0, %xmm1
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	ja	LBB0_3
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_noProjectileTrail,8,3       ## @cg_noProjectileTrail
	.comm	_LEF_PUFF_DONT_SCALE,4,2        ## @LEF_PUFF_DONT_SCALE
	.comm	_LE_MOVE_SCALE_FADE,4,2         ## @LE_MOVE_SCALE_FADE
	.comm	_cg,4,2                         ## @cg
	.comm	_RT_SPRITE,4,2                  ## @RT_SPRITE
	.comm	_cgs,4,2                        ## @cgs
	.comm	_TR_LINEAR,4,2                  ## @TR_LINEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_BubbleTrail                 ; -- Begin function CG_BubbleTrail
	.p2align	2
_CG_BubbleTrail:                        ; @CG_BubbleTrail
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
Lloh0:
	adrp	x8, _cg_noProjectileTrail@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_noProjectileTrail@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.1:
	fmov	s8, s0
	mov	x20, x1
	mov	x19, x0
	bl	_VectorCopy
	mov	x0, x20
	mov	x1, x19
	bl	_VectorSubtract
	bl	_VectorNormalize
	fmov	s9, s0
	bl	_rand
	fcvtzs	w8, s8
	sdiv	w9, w0, w8
	msub	w19, w9, w8, w0
	mov	x1, x19
	bl	_VectorMA
	fmov	s0, s8
	bl	_VectorScale
	scvtf	s10, w19
	fcmp	s9, s10
	b.le	LBB0_4
; %bb.2:
Lloh3:
	adrp	x22, _cg@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cg@GOTPAGEOFF]
	mov	w23, #250
	fmov	d11, #1.00000000
	mov	w24, #1148846080
Lloh5:
	adrp	x25, _RT_SPRITE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RT_SPRITE@GOTPAGEOFF]
	mov	w26, #3
Lloh7:
	adrp	x27, _cgs@GOTPAGE
Lloh8:
	ldr	x27, [x27, _cgs@GOTPAGEOFF]
	mov	x28, #4607182418800017408
Lloh9:
	adrp	x20, _TR_LINEAR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _TR_LINEAR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CG_AllocLocalEntity
	mov	x19, x0
Lloh11:
	adrp	x8, _LEF_PUFF_DONT_SCALE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LEF_PUFF_DONT_SCALE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _LE_MOVE_SCALE_FADE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LE_MOVE_SCALE_FADE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #88]
	ldr	w21, [x22]
	str	w21, [x0]
	bl	_random
	madd	w8, w0, w23, w21
	add	w8, w8, #1000
	ldr	w9, [x19]
	sub	w9, w8, w9
	scvtf	d0, w9
	str	w8, [x19, #4]
	fdiv	d0, d11, d0
	str	d0, [x19, #8]
	ldr	s0, [x22]
	scvtf	s0, s0
	fmov	s1, w24
	fdiv	s0, s0, s1
	str	s0, [x19, #48]
	ldr	w8, [x25]
	str	w8, [x19, #80]
	str	xzr, [x19, #72]
	str	w26, [x19, #52]
	ldr	w8, [x27]
	str	w8, [x19, #64]
	ldr	x8, [x19, #56]
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x8]
	ldr	x8, [x19, #16]
	str	x28, [x8, #24]
	ldr	w8, [x20]
	str	w8, [x19, #44]
	ldr	s0, [x22]
	scvtf	s0, s0
	str	s0, [x19, #24]
	ldr	w1, [x19, #40]
	bl	_VectorCopy
	bl	_crandom
	add	w8, w0, w0, lsl #2
	ldr	x9, [x19, #32]
	str	w8, [x9]
	bl	_crandom
	add	w8, w0, w0, lsl #2
	ldr	x9, [x19, #32]
	str	w8, [x9, #4]
	bl	_crandom
	add	w8, w0, w0, lsl #2
	add	w8, w8, #6
	ldr	x9, [x19, #32]
	str	w8, [x9, #8]
	bl	_VectorAdd
	fadd	s0, s10, s8
	fcvtzs	s0, s0
	scvtf	s10, s0
	fcmp	s9, s10
	b.gt	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_noProjectileTrail,8,3       ; @cg_noProjectileTrail
	.comm	_LEF_PUFF_DONT_SCALE,4,2        ; @LEF_PUFF_DONT_SCALE
	.comm	_LE_MOVE_SCALE_FADE,4,2         ; @LE_MOVE_SCALE_FADE
	.comm	_cg,4,2                         ; @cg
	.comm	_RT_SPRITE,4,2                  ; @RT_SPRITE
	.comm	_cgs,4,2                        ; @cgs
	.comm	_TR_LINEAR,4,2                  ; @TR_LINEAR
.subsections_via_symbols
