	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ParticleExplosion           ## -- Begin function CG_ParticleExplosion
	.p2align	4, 0x90
_CG_ParticleExplosion:                  ## @CG_ParticleExplosion
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	cmpq	$9, %rdi
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_CG_Error
LBB0_2:
	movq	_shaderAnimNames@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.3:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_stricmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	8(%rax,%r15,8), %rsi
	incq	%r15
	testq	%rsi, %rsi
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	(%rbx), %rax
LBB0_7:
	movl	%r15d, %r13d
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_14
## %bb.8:
	movq	_free_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.9:
	movq	72(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 72(%rbx)
	movq	%rbx, (%rax)
	movq	_cg@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 64(%rbx)
	movabsq	$4607182418800017408, %rcx      ## imm = 0x3FF0000000000000
	movq	%rcx, (%rbx)
	movq	$0, 56(%rbx)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	js	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	callq	_crandom
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	imull	$179, %eax, %ecx
	movq	(%r14), %rax
	jmp	LBB0_12
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_Error                       ## TAILCALL
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	negl	%esi
	xorl	%ecx, %ecx
LBB0_12:
	movl	%ecx, 8(%rbx)
	movl	%r15d, 12(%rbx)
	movl	%r12d, 16(%rbx)
	movq	_shaderAnimSTRatio@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imull	(%rcx,%r13,4), %r12d
	movl	%r12d, 20(%rbx)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 24(%rbx)
	imull	(%rcx,%r13,4), %edx
	movl	%edx, 28(%rbx)
	movl	%esi, %ecx
	addq	%rax, %rcx
	movq	%rcx, 48(%rbx)
	movq	_P_ANIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	40(%rbx), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_VectorCopy
	movl	36(%rbx), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_VectorCopy
	movl	32(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VectorClear                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_ParticleExplosion: animStr is probably an index rather than a string"

	.comm	_shaderAnimNames,8,3            ## @shaderAnimNames
L_.str.1:                               ## @.str.1
	.asciz	"CG_ParticleExplosion: unknown animation string: %s\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_cg,8,3                         ## @cg
	.comm	_shaderAnimSTRatio,8,3          ## @shaderAnimSTRatio
	.comm	_P_ANIM,4,2                     ## @P_ANIM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ParticleExplosion           ; -- Begin function CG_ParticleExplosion
	.p2align	2
_CG_ParticleExplosion:                  ; @CG_ParticleExplosion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
	cmp	x0, #9
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Error
LBB0_2:
Lloh2:
	adrp	x26, _shaderAnimNames@GOTPAGE
Lloh3:
	ldr	x26, [x26, _shaderAnimNames@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x1, [x8]
	cbz	x1, LBB0_11
; %bb.3:
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_stricmp
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x25, #1
	ldr	x8, [x26]
	add	x10, x8, x25, lsl #3
	ldr	x1, [x10, #8]
	mov	x25, x9
	cbnz	x1, LBB0_4
; %bb.6:
	mov	x25, x9
	ldr	x8, [x8, w25, uxtw #3]
	cbz	x8, LBB0_11
LBB0_7:
Lloh4:
	adrp	x8, _free_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _free_particles@GOTPAGEOFF]
	ldr	x24, [x8]
	cbz	x24, LBB0_12
; %bb.8:
	and	x26, x25, #0xffffffff
	ldr	x9, [x24, #72]
	str	x9, [x8]
Lloh6:
	adrp	x8, _active_particles@GOTPAGE
Lloh7:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x24, #72]
Lloh8:
	adrp	x27, _cg@GOTPAGE
Lloh9:
	ldr	x27, [x27, _cg@GOTPAGEOFF]
	str	x24, [x8]
	ldr	x8, [x27]
	mov	x9, #4607182418800017408
	str	x9, [x24]
	stp	xzr, x8, [x24, #56]
	tbnz	w22, #31, LBB0_13
; %bb.9:
	bl	_crandom
	mov	w8, #179
	mul	w9, w0, w8
	ldr	x8, [x27]
	b	LBB0_14
LBB0_10:
	ldr	x8, [x26]
	ldr	x8, [x8, w25, uxtw #3]
	cbnz	x8, LBB0_7
LBB0_11:
	str	x24, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_CG_Error
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	w9, #0
	neg	w22, w22
LBB0_14:
	stp	w9, w25, [x24, #8]
	str	w23, [x24, #16]
Lloh12:
	adrp	x9, _shaderAnimSTRatio@GOTPAGE
Lloh13:
	ldr	x9, [x9, _shaderAnimSTRatio@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x10, x26, #2
	ldr	w11, [x9, x10]
	mul	w11, w11, w23
	stp	w11, w21, [x24, #20]
	ldr	w9, [x9, x10]
	mul	w9, w9, w21
	str	w9, [x24, #28]
	add	x8, x8, w22, uxtw
	str	x8, [x24, #48]
Lloh15:
	adrp	x8, _P_ANIM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _P_ANIM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x24, #44]
	ldr	w1, [x24, #40]
	mov	x0, x20
	bl	_VectorCopy
	ldr	w1, [x24, #36]
	mov	x0, x19
	bl	_VectorCopy
	ldr	w0, [x24, #32]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_VectorClear
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ParticleExplosion: animStr is probably an index rather than a string"

	.comm	_shaderAnimNames,8,3            ; @shaderAnimNames
l_.str.1:                               ; @.str.1
	.asciz	"CG_ParticleExplosion: unknown animation string: %s\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_cg,8,3                         ; @cg
	.comm	_shaderAnimSTRatio,8,3          ; @shaderAnimSTRatio
	.comm	_P_ANIM,4,2                     ; @P_ANIM
.subsections_via_symbols
