	.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_ParticleImpactSmokePuff
LCPI0_0:
	.quad	1000                            ## 0x3e8
	.quad	100                             ## 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ParticleImpactSmokePuff
	.p2align	4, 0x90
_CG_ParticleImpactSmokePuff:            ## @CG_ParticleImpactSmokePuff
	.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
	movl	%esi, %r14d
	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	88(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 88(%rbx)
	movq	%rbx, (%rax)
	movq	_cg@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 80(%rbx)
	movabsq	$4598175219545276416, %rax      ## imm = 0x3FD0000000000000
	movq	%rax, (%rbx)
	movq	$0, 72(%rbx)
	xorl	%eax, %eax
	callq	_crandom
	imull	$179, %eax, %eax
	movl	%eax, 8(%rbx)
	movq	%r15, 64(%rbx)
	movq	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 48(%rbx)
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-4, %ecx
	negl	%ecx
	addl	%ecx, %eax
	addl	$8, %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-4, %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	negl	%ecx
	addl	%ecx, %eax
	addl	$8, %eax
	movl	%eax, 16(%rbx)
	leal	16(%rdx,%rdx), %eax
	movl	%eax, 20(%rbx)
	movl	12(%rbx), %eax
	movl	40(%rbx), %esi
	addl	%eax, %eax
	movl	%eax, 24(%rbx)
	movl	$500, %eax                      ## imm = 0x1F4
	addq	(%r12), %rax
	movq	%rax, 48(%rbx)
	movq	_P_SMOKE_IMPACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	%r14d, %edi
	callq	_VectorCopy
	movl	36(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$20, %ecx
	callq	_VectorSet
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$20, %ecx
	callq	_VectorSet
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_ParticleImpactSmokePuff pshader == ZERO!\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_cg,8,3                         ## @cg
	.comm	_P_SMOKE_IMPACT,4,2             ## @P_SMOKE_IMPACT
	.comm	_qtrue,4,2                      ## @qtrue
.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_ParticleImpactSmokePuff
lCPI0_0:
	.quad	1000                            ; 0x3e8
	.quad	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_ParticleImpactSmokePuff
	.p2align	2
_CG_ParticleImpactSmokePuff:            ; @CG_ParticleImpactSmokePuff
	.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, #88]
	str	x9, [x8]
Lloh4:
	adrp	x8, _active_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x21, #88]
Lloh6:
	adrp	x22, _cg@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cg@GOTPAGEOFF]
	str	x21, [x8]
	ldr	x8, [x22]
	mov	x9, #4598175219545276416
	str	x9, [x21]
	stp	xzr, x8, [x21, #72]
	bl	_crandom
	mov	w8, #179
	mul	w8, w0, w8
	str	w8, [x21, #8]
	str	x20, [x21, #64]
	ld1r.2d	{ v0 }, [x22]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	str	q0, [x21, #48]
	bl	_rand
	negs	w8, w0
	and	w8, w8, #0x3
	and	w9, w0, #0x3
	csneg	w8, w9, w8, mi
	add	w8, w8, #8
	str	w8, [x21, #12]
	bl	_rand
	negs	w8, w0
	and	w8, w8, #0x3
	and	w9, w0, #0x3
	csneg	w8, w9, w8, mi
	add	w8, w8, #8
	lsl	w9, w8, #1
	stp	w8, w9, [x21, #16]
	ldr	w8, [x21, #12]
	lsl	w8, w8, #1
	str	w8, [x21, #24]
	ldr	x8, [x22]
	add	x8, x8, #500
	str	x8, [x21, #48]
Lloh10:
	adrp	x8, _P_SMOKE_IMPACT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P_SMOKE_IMPACT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #44]
	ldr	w1, [x21, #40]
	mov	x0, x19
	bl	_VectorCopy
	ldr	w0, [x21, #36]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #20
	bl	_VectorSet
	ldr	w0, [x21, #32]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #20
	bl	_VectorSet
Lloh13:
	adrp	x8, _qtrue@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #28]
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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ParticleImpactSmokePuff pshader == ZERO!\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_cg,8,3                         ; @cg
	.comm	_P_SMOKE_IMPACT,4,2             ; @P_SMOKE_IMPACT
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
