	.file	"extr_cg_particles.c_CG_ParticleImpactSmokePuff.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CG_ParticleImpactSmokePuff pshader == ZERO!\n"
	.text
	.p2align 4
	.globl	CG_ParticleImpactSmokePuff
	.type	CG_ParticleImpactSmokePuff, @function
CG_ParticleImpactSmokePuff:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rdi, rdi
	je	.L9
.L2:
	mov	rbx, QWORD PTR free_particles[rip]
	test	rbx, rbx
	je	.L1
	mov	rax, QWORD PTR 88[rbx]
	mov	QWORD PTR 72[rbx], 0
	mov	QWORD PTR free_particles[rip], rax
	mov	rax, QWORD PTR active_particles[rip]
	mov	QWORD PTR active_particles[rip], rbx
	mov	QWORD PTR 88[rbx], rax
	mov	rax, QWORD PTR cg[rip]
	mov	QWORD PTR 80[rbx], rax
	mov	rax, QWORD PTR .LC1[rip]
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	call	crandom@PLT
	mov	QWORD PTR 64[rbx], r12
	imul	eax, eax, 179
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR cg[rip]
	lea	rdx, 1000[rax]
	add	rax, 100
	mov	QWORD PTR 48[rbx], rdx
	mov	QWORD PTR 56[rbx], rax
	xor	eax, eax
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 8
	mov	DWORD PTR 12[rbx], eax
	xor	eax, eax
	call	rand@PLT
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, ebp
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 8
	mov	DWORD PTR 16[rbx], eax
	add	eax, eax
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR 12[rbx]
	add	eax, eax
	mov	DWORD PTR 24[rbx], eax
	mov	rax, QWORD PTR cg[rip]
	add	rax, 500
	mov	QWORD PTR 48[rbx], rax
	mov	eax, DWORD PTR P_SMOKE_IMPACT[rip]
	mov	DWORD PTR 44[rbx], eax
	call	VectorCopy@PLT
	mov	edi, DWORD PTR 36[rbx]
	mov	ecx, 20
	xor	edx, edx
	xor	esi, esi
	call	VectorSet@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	ecx, 20
	xor	edx, edx
	xor	esi, esi
	call	VectorSet@PLT
	mov	eax, DWORD PTR qtrue[rip]
	mov	DWORD PTR 28[rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	CG_Printf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	CG_ParticleImpactSmokePuff, .-CG_ParticleImpactSmokePuff
	.comm	qtrue,4,4
	.comm	free_particles,8,8
	.comm	cg,8,8
	.comm	active_particles,8,8
	.comm	P_SMOKE_IMPACT,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1070596096
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cg_particles.c_CG_ParticleImpactSmokePuff.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CG_ParticleImpactSmokePuff pshader == ZERO!\012\000"
	.text
	.align	2
	.global	CG_ParticleImpactSmokePuff
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_ParticleImpactSmokePuff, %function
CG_ParticleImpactSmokePuff:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r8, r0, #0
	mov	r6, r1
	beq	.L9
.L2:
	ldr	r1, .L10
	ldr	r4, [r1]
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r5, #0
	mov	r2, #0
	ldr	r0, .L10+4
	ldr	r7, .L10+8
	ldr	ip, [r0]
	str	r4, [r0]
	ldr	r0, [r4, #68]
	ldr	r3, .L10+12
	str	r0, [r1]
	ldr	r1, [r7]
	str	ip, [r4, #68]
	str	r1, [r4, #64]
	stm	r4, {r2-r3}
	str	r5, [r4, #60]
	bl	crandom
	ldr	r3, [r7]
	add	r2, r0, r0, lsl #1
	rsb	r2, r2, r2, lsl #4
	rsb	r0, r0, r2, lsl #2
	add	r2, r3, #1000
	add	r3, r3, #100
	str	r2, [r4, #48]
	str	r3, [r4, #52]
	str	r8, [r4, #56]
	str	r0, [r4, #8]
	bl	rand
	subs	r3, r5, r0
	and	r3, r3, #3
	and	r0, r0, #3
	rsbpl	r0, r3, #0
	add	r0, r0, #8
	str	r0, [r4, #12]
	bl	rand
	subs	r3, r5, r0
	ldr	r1, [r7]
	and	r3, r3, #3
	ldr	ip, .L10+16
	and	r0, r0, #3
	ldr	r2, [r4, #12]
	rsbpl	r0, r3, #0
	add	r3, r0, #8
	ldr	ip, [ip]
	add	r1, r1, #500
	lsl	r2, r2, #1
	str	r1, [r4, #48]
	lsl	r1, r3, #1
	str	ip, [r4, #44]
	str	r3, [r4, #16]
	str	r1, [r4, #20]
	str	r2, [r4, #24]
	ldr	r1, [r4, #40]
	mov	r0, r6
	bl	VectorCopy
	mov	r2, r5
	mov	r1, r5
	mov	r3, #20
	ldr	r0, [r4, #36]
	bl	VectorSet
	mov	r3, #20
	mov	r2, r5
	mov	r1, r5
	ldr	r0, [r4, #32]
	bl	VectorSet
	ldr	r3, .L10+20
	ldr	r3, [r3]
	str	r3, [r4, #28]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L10+24
	bl	CG_Printf
	b	.L2
.L11:
	.align	2
.L10:
	.word	free_particles
	.word	active_particles
	.word	cg
	.word	1070596096
	.word	P_SMOKE_IMPACT
	.word	qtrue
	.word	.LC0
	.size	CG_ParticleImpactSmokePuff, .-CG_ParticleImpactSmokePuff
	.comm	qtrue,4,4
	.comm	free_particles,4,4
	.comm	cg,4,4
	.comm	active_particles,4,4
	.comm	P_SMOKE_IMPACT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
