	.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_ParticleBubble
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ParticleBubble
	.p2align	4, 0x90
_CG_ParticleBubble:                     ## @CG_ParticleBubble
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_CG_Printf
LBB0_2:
	movq	_free_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	movq	96(%r14), %rcx
	movq	%rcx, (%rax)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 96(%r14)
	movq	%r14, (%rax)
	movq	_cg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movl	$1053609165, (%r14)             ## imm = 0x3ECCCCCD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r14)
	movl	16(%r12), %eax
	movl	%eax, 4(%r14)
	movl	16(%r13), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, 64(%r14)
	xorl	%eax, %eax
	callq	_crandom
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 12(%r14)
	movss	%xmm0, 16(%r14)
	xorl	%eax, %eax
	callq	_crandom
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	addl	$50, %ecx
	movq	24(%r14), %rax
	movl	%ecx, 8(%rax)
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	_P_BUBBLE_TURBULENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r14)
	movl	$65, 8(%rax)
	jmp	LBB0_6
LBB0_5:
	movq	_P_BUBBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
LBB0_6:
	movq	48(%r14), %rsi
	movq	%r12, %rdi
	callq	_VectorCopy
	movq	48(%r14), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rax), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_crandom
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %rax
	movq	48(%r14), %rcx
	movq	%rax, (%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rcx), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_crandom
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %rax
	movq	48(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%rcx), %rbx
	xorl	%eax, %eax
	callq	_crandom
	movl	4(%r14), %ecx
	subl	8(%r14), %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	addq	%rbx, %rax
	movq	48(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%r14), %rax
	movq	$0, (%rax)
	movq	40(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_crandom
	shll	$2, %eax
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_crandom
	shll	$2, %eax
	movq	24(%r14), %rcx
	movl	%eax, 4(%rcx)
LBB0_8:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%r14)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_ParticleSnow pshader == ZERO!\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_cg,4,2                         ## @cg
	.comm	_P_BUBBLE_TURBULENT,4,2         ## @P_BUBBLE_TURBULENT
	.comm	_P_BUBBLE,4,2                   ## @P_BUBBLE
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ParticleBubble              ; -- Begin function CG_ParticleBubble
	.p2align	2
_CG_ParticleBubble:                     ; @CG_ParticleBubble
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x4
	fmov	s8, s0
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Printf
LBB0_2:
Lloh2:
	adrp	x8, _free_particles@GOTPAGE
Lloh3:
	ldr	x8, [x8, _free_particles@GOTPAGEOFF]
	ldr	x24, [x8]
	cbz	x24, LBB0_9
; %bb.3:
	ldr	x9, [x24, #96]
	str	x9, [x8]
Lloh4:
	adrp	x8, _active_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x24, #96]
Lloh6:
	adrp	x9, _cg@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cg@GOTPAGEOFF]
	str	x24, [x8]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x24, #88]
	mov	w8, #52429
	movk	w8, #16076, lsl #16
	stp	xzr, xzr, [x24, #72]
	ldr	x9, [x21, #16]
	stp	w8, w9, [x24]
	ldr	x8, [x23, #16]
	str	w8, [x24, #8]
	str	x22, [x24, #64]
	bl	_crandom
	scvtf	d0, w0
	fmov	d1, #1.00000000
	fmov	d2, #0.50000000
	fmadd	d0, d0, d2, d1
	fcvt	s0, d0
	str	s0, [x24, #12]
	str	s0, [x24, #16]
	bl	_crandom
	mov	w8, #10
	mul	w8, w0, w8
	add	w9, w8, #50
	ldr	x8, [x24, #24]
	str	w9, [x8, #8]
	cbz	w20, LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _P_BUBBLE_TURBULENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _P_BUBBLE_TURBULENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x24, #56]
	mov	w9, #65
	str	w9, [x8, #8]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _P_BUBBLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _P_BUBBLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x24, #56]
LBB0_6:
	ldr	x1, [x24, #48]
	mov	x0, x21
	bl	_VectorCopy
	ldr	x8, [x24, #48]
	ldr	x8, [x8]
	scvtf	s9, x8
	bl	_crandom
	scvtf	s0, w0
	fmadd	s0, s0, s8, s9
	fcvtzs	x8, s0
	ldr	x9, [x24, #48]
	str	x8, [x9]
	ldr	x8, [x9, #8]
	scvtf	s9, x8
	bl	_crandom
	scvtf	s0, w0
	fmadd	s0, s0, s8, s9
	fcvtzs	x8, s0
	ldr	x9, [x24, #48]
	str	x8, [x9, #8]
	ldr	x21, [x9, #16]
	bl	_crandom
	ldp	w8, w9, [x24, #4]
	sub	w8, w8, w9
	mul	w8, w8, w0
	add	x8, x21, w8, sxtw
	ldr	x9, [x24, #48]
	str	x8, [x9, #16]
	ldr	x8, [x24, #24]
	str	xzr, [x8]
	ldr	x8, [x24, #40]
	stp	xzr, xzr, [x8]
	str	xzr, [x8, #16]
	cbz	w20, LBB0_8
; %bb.7:
	bl	_crandom
	lsl	w8, w0, #2
	ldr	x9, [x24, #24]
	str	w8, [x9]
	bl	_crandom
	lsl	w8, w0, #2
	ldr	x9, [x24, #24]
	str	w8, [x9, #4]
LBB0_8:
Lloh15:
	adrp	x8, _qtrue@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w19, w8, [x24, #32]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ParticleSnow pshader == ZERO!\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_cg,4,2                         ; @cg
	.comm	_P_BUBBLE_TURBULENT,4,2         ; @P_BUBBLE_TURBULENT
	.comm	_P_BUBBLE,4,2                   ; @P_BUBBLE
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
