	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ParticleSnowFlurry          ## -- Begin function CG_ParticleSnowFlurry
	.p2align	4, 0x90
_CG_ParticleSnowFlurry:                 ## @CG_ParticleSnowFlurry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	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), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movq	104(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 104(%rbx)
	movq	%rbx, (%rax)
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	movl	$1063675494, (%rbx)             ## imm = 0x3F666666
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movq	32(%r14), %rcx
	movl	(%rcx), %edx
	movl	%edx, 76(%rbx)
	movl	4(%rcx), %ecx
	movl	%ecx, 72(%rbx)
	movdqu	16(%r14), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 56(%rbx)
	movq	%r15, 48(%rbx)
	xorl	%eax, %eax
	callq	_rand
	movslq	%eax, %rcx
	imulq	$1374389535, %rcx, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	imull	$100, %eax, %eax
	subl	%eax, %ecx
	movl	$1, %eax
	cmpl	$91, %ecx
	jl	LBB0_5
## %bb.4:
	movl	$1036831949, (%rbx)             ## imm = 0x3DCCCCCD
	movl	$32, %eax
LBB0_5:
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	movq	16(%rbx), %rax
	movl	$-20, 8(%rax)
	movq	_P_WEATHER_FLURRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movl	$-10, 8(%rax)
LBB0_7:
	movl	8(%r14), %edi
	movq	32(%rbx), %rsi
	callq	_VectorCopy
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	24(%rbx), %rax
	movl	$0, 8(%rax)
	movq	$0, (%rax)
	movq	(%r14), %rax
	movl	(%rax), %r15d
	shll	$5, %r15d
	xorl	%eax, %eax
	callq	_crandom
	shll	$4, %eax
	addl	%r15d, %eax
	movq	16(%rbx), %rcx
	addl	%eax, (%rcx)
	movq	(%r14), %rax
	movl	4(%rax), %r15d
	shll	$5, %r15d
	xorl	%eax, %eax
	callq	_crandom
	shll	$4, %eax
	addl	%r15d, %eax
	movq	16(%rbx), %rcx
	addl	%eax, 4(%rcx)
	movq	(%r14), %rax
	movl	8(%rax), %eax
	addl	%eax, 8(%rcx)
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_crandom
	shll	$4, %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_crandom
	shll	$4, %eax
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,8,3                      ## @qtrue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_ParticleSnowFlurry pshader == ZERO!\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_cg,8,3                         ## @cg
	.comm	_P_WEATHER_FLURRY,4,2           ## @P_WEATHER_FLURRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ParticleSnowFlurry          ; -- Begin function CG_ParticleSnowFlurry
	.p2align	2
_CG_ParticleSnowFlurry:                 ; @CG_ParticleSnowFlurry
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _qtrue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Printf
LBB0_2:
Lloh5:
	adrp	x8, _free_particles@GOTPAGE
Lloh6:
	ldr	x8, [x8, _free_particles@GOTPAGEOFF]
	ldr	x21, [x8]
	cbz	x21, LBB0_10
; %bb.3:
	ldr	x9, [x21, #104]
	str	x9, [x8]
Lloh7:
	adrp	x8, _active_particles@GOTPAGE
Lloh8:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x21, [x8]
Lloh9:
	adrp	x8, _cg@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x9, [x21, #96]
	mov	w9, #26214
	movk	w9, #16230, lsl #16
	str	w9, [x21]
	stp	xzr, xzr, [x21, #80]
	ldr	x9, [x19, #32]
	ldr	w10, [x9]
	str	w10, [x21, #76]
	ldr	w9, [x9, #4]
	str	w9, [x21, #72]
	ldr	q0, [x19, #16]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	stur	q0, [x21, #56]
	str	x20, [x21, #48]
	bl	_rand
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #5
	mov	w9, #100
	msub	w8, w8, w9, w0
	cmp	w8, #91
	b.lt	LBB0_5
; %bb.4:
	mov	w8, #52429
	movk	w8, #15820, lsl #16
	str	w8, [x21]
	mov	w8, #32
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
	stp	w8, w8, [x21, #4]
	ldr	x8, [x21, #16]
	mov	w9, #-20
	str	w9, [x8, #8]
Lloh12:
	adrp	x9, _P_WEATHER_FLURRY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _P_WEATHER_FLURRY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x21, #40]
	cbz	x22, LBB0_8
; %bb.7:
	mov	w9, #-10
	str	w9, [x8, #8]
LBB0_8:
	ldr	w0, [x19, #8]
	ldr	x1, [x21, #32]
	bl	_VectorCopy
	movi.2d	v0, #0000000000000000
	ldp	x8, x9, [x21, #16]
	str	d0, [x8]
	str	wzr, [x9, #8]
	str	d0, [x9]
	ldr	x8, [x19]
	ldr	w20, [x8]
	bl	_crandom
	lsl	w8, w0, #4
	add	w8, w8, w20, lsl #5
	ldr	x9, [x21, #16]
	ldr	w10, [x9]
	add	w8, w8, w10
	str	w8, [x9]
	ldr	x8, [x19]
	ldr	w20, [x8, #4]
	bl	_crandom
	lsl	w8, w0, #4
	add	w8, w8, w20, lsl #5
	ldr	x9, [x21, #16]
	ldp	w10, w11, [x9, #4]
	add	w8, w8, w10
	str	w8, [x9, #4]
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	add	w8, w11, w8
	str	w8, [x9, #8]
	cbz	x22, LBB0_10
; %bb.9:
	bl	_crandom
	lsl	w8, w0, #4
	ldr	x9, [x21, #24]
	str	w8, [x9]
	bl	_crandom
	lsl	w8, w0, #4
	ldr	x9, [x21, #24]
	str	w8, [x9, #4]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,8,3                      ; @qtrue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ParticleSnowFlurry pshader == ZERO!\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_cg,8,3                         ; @cg
	.comm	_P_WEATHER_FLURRY,4,2           ; @P_WEATHER_FLURRY
.subsections_via_symbols
