	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CG_ParticleSmoke
LCPI0_0:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	32                              ## 0x20
	.long	32                              ## 0x20
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ParticleSmoke
	.p2align	4, 0x90
_CG_ParticleSmoke:                      ## @CG_ParticleSmoke
	.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	%rsi, %r14
	movq	%rdi, %r15
	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_4
## %bb.3:
	movq	120(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 120(%rbx)
	movq	%rbx, (%rax)
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 112(%rbx)
	movdqu	24(%r14), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 96(%rbx)
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, (%rbx)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 80(%rbx)
	movq	8(%r14), %rdi
	movl	8(%rdi), %eax
	movl	%eax, 76(%rbx)
	movq	16(%r14), %rax
	movl	8(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	%r15, 64(%rbx)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [8,8,32,32]
	movups	%xmm0, 8(%rbx)
	movq	_P_SMOKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	48(%rbx), %esi
	callq	_VectorCopy
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	movq	40(%rbx), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	movq	$0, 16(%rcx)
	movl	$5, 8(%rax)
	cmpl	$1, (%r14)
	movl	$-5, %ecx
	movl	$5, %edx
	cmovel	%ecx, %edx
	movl	%edx, 8(%rax)
	xorl	%eax, %eax
	callq	_crandom
                                        ## kill: def $eax killed $eax def $rax
	leal	8(,%rax,4), %eax
	movl	%eax, 32(%rbx)
LBB0_4:
	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_ParticleSmoke == ZERO!\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_cg,8,3                         ## @cg
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_P_SMOKE,4,2                    ## @P_SMOKE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function CG_ParticleSmoke
lCPI0_0:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ParticleSmoke
	.p2align	2
_CG_ParticleSmoke:                      ; @CG_ParticleSmoke
	.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
	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	x21, [x8]
	cbz	x21, LBB0_4
; %bb.3:
	ldr	x9, [x21, #120]
Lloh4:
	adrp	x10, _active_particles@GOTPAGE
Lloh5:
	ldr	x10, [x10, _active_particles@GOTPAGEOFF]
	str	x9, [x8]
	ldr	x8, [x10]
	str	x21, [x10]
Lloh6:
	adrp	x9, _cg@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cg@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x9, x8, [x21, #112]
	dup.2d	v0, x9
	mov	x8, #4607182418800017408
	str	x8, [x21]
	ldp	x0, x8, [x19, #8]
	ldr	w9, [x0, #8]
	str	w9, [x21, #76]
	ldur	q1, [x19, #24]
	add.2d	v0, v1, v0
	movi.2d	v1, #0000000000000000
	stp	q1, q0, [x21, #80]
	ldr	w8, [x8, #8]
	str	w8, [x21, #72]
	str	x20, [x21, #64]
Lloh9:
	adrp	x8, _qfalse@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x21, #8]
Lloh14:
	adrp	x9, _P_SMOKE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _P_SMOKE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #52]
	ldr	w1, [x21, #48]
	bl	_VectorCopy
	ldr	x8, [x21, #24]
	str	xzr, [x8]
	ldr	x9, [x21, #40]
	movi.2d	v0, #0000000000000000
	str	q0, [x9]
	str	xzr, [x9, #16]
	mov	w9, #5
	str	w9, [x8, #8]
	ldr	w9, [x19]
	cmp	w9, #1
	mov	w9, #-5
	cneg	w9, w9, ne
	str	w9, [x8, #8]
	bl	_crandom
	lsl	w8, w0, #2
	add	w8, w8, #8
	str	w8, [x21, #32]
LBB0_4:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ParticleSmoke == ZERO!\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_cg,8,3                         ; @cg
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_P_SMOKE,4,2                    ; @P_SMOKE
.subsections_via_symbols
