	.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_BloodPool
LCPI0_0:
	.quad	0x3fe3333333333333              ## double 0.59999999999999998
LCPI0_1:
	.quad	0x3fd999999999999a              ## double 0.40000000000000002
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x41000000                      ## float 8
	.long	0x41800000                      ## float 16
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_BloodPool
	.p2align	4, 0x90
_CG_BloodPool:                          ## @CG_BloodPool
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_CG_Printf
LBB0_2:
	movq	_free_particles@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	callq	_VectorCopy
	callq	_ValidBloodPool
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rbx
	movq	96(%rbx), %rax
	movq	%rax, (%r15)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 96(%rbx)
	movq	%rbx, (%rax)
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 88(%rbx)
	addq	$3000, %rax                     ## imm = 0xBB8
	movq	%rax, 72(%rbx)
	movq	%rax, 80(%rbx)
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, (%rbx)
	movq	$0, 64(%rbx)
	movl	$0, 8(%rbx)
	movq	%r14, 56(%rbx)
	xorl	%eax, %eax
	callq	_random
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movsldup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0,2,2]
	mulps	LCPI0_2(%rip), %xmm0
	cvttps2dq	%xmm0, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 12(%rbx)
	movq	_P_FLAT_SCALEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	48(%rbx), %esi
	callq	_VectorCopy
	movq	40(%rbx), %rax
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rax)
	movq	$0, 16(%rax)
	movl	36(%rbx), %edi
	callq	_VectorClear
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorl	%eax, %eax
	callq	_rand
	cltq
	imulq	$-1223705765, %rax, %rcx        ## imm = 0xB70FBB5B
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$7, %ecx
	addl	%edx, %ecx
	imull	$179, %ecx, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%rbx)
	movabsq	$4604930618986332160, %rax      ## imm = 0x3FE8000000000000
	movq	%rax, (%rbx)
	movq	_BLOODRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_BloodPool pshader == ZERO!\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_cg,8,3                         ## @cg
	.comm	_P_FLAT_SCALEUP,4,2             ## @P_FLAT_SCALEUP
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_BLOODRED,4,2                   ## @BLOODRED
.subsections_via_symbols

	.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_BloodPool
lCPI0_0:
	.long	0x41000000                      ; float 8
	.long	0x41800000                      ; float 16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_BloodPool
	.p2align	2
_CG_BloodPool:                          ; @CG_BloodPool
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	cbnz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Printf
LBB0_2:
Lloh2:
	adrp	x21, _free_particles@GOTPAGE
Lloh3:
	ldr	x21, [x21, _free_particles@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_VectorCopy
	bl	_ValidBloodPool
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x20, [x21]
	ldr	x8, [x20, #96]
	str	x8, [x21]
Lloh4:
	adrp	x8, _active_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh6:
	adrp	x10, _cg@GOTPAGE
Lloh7:
	ldr	x10, [x10, _cg@GOTPAGEOFF]
	str	x20, [x8]
Lloh8:
	ldr	x8, [x10]
	stp	x8, x9, [x20, #88]
	add	x8, x8, #3000
	stp	x8, x8, [x20, #72]
	mov	x8, #4607182418800017408
	str	x8, [x20]
	str	wzr, [x20, #8]
	stp	x19, xzr, [x20, #56]
	bl	_random
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16345, lsl #48
	fmov	d1, x8
	mov	x8, #3689348814741910323
	movk	x8, #16355, lsl #48
	fmov	d2, x8
	fmadd	d0, d0, d2, d1
	fcvt	s0, d0
	add	x8, x20, #12
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	fmul.2s	v0, v1, v0[0]
	fcvtzs.2s	v0, v0
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
Lloh11:
	adrp	x8, _P_FLAT_SCALEUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P_FLAT_SCALEUP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #52]
	ldr	w1, [x20, #48]
	bl	_VectorCopy
	ldr	x8, [x20, #40]
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8]
	ldr	w0, [x20, #36]
	bl	_VectorClear
Lloh14:
	adrp	x8, _qfalse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	bl	_rand
	mov	w8, #47963
	movk	w8, #46863, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	mov	w9, #179
	msub	w8, w8, w9, w0
	str	w8, [x20, #8]
	mov	x8, #4604930618986332160
	str	x8, [x20]
Lloh17:
	adrp	x8, _BLOODRED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BLOODRED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #28]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_BloodPool pshader == ZERO!\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_cg,8,3                         ; @cg
	.comm	_P_FLAT_SCALEUP,4,2             ; @P_FLAT_SCALEUP
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_BLOODRED,4,2                   ; @BLOODRED
.subsections_via_symbols
