	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Particle_Bleed              ## -- Begin function CG_Particle_Bleed
	.p2align	4, 0x90
_CG_Particle_Bleed:                     ## @CG_Particle_Bleed
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	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	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)
	movabsq	$4607182418800017408, %rcx      ## imm = 0x3FF0000000000000
	movq	%rcx, (%rbx)
	movq	$0, 88(%rbx)
	movl	$0, 8(%rbx)
	movq	%r13, 80(%rbx)
	movslq	%r12d, %rcx
	addq	%rax, %rcx
	leaq	100(%rax), %rdx
	testl	%r15d, %r15d
	cmovneq	%rax, %rdx
	movq	%rcx, 72(%rbx)
	movq	%rdx, 64(%rbx)
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 12(%rbx)
	xorl	%eax, %eax
	callq	_rand
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	negl	%ecx
	addl	%ecx, %eax
	addl	$4, %eax
	movl	%eax, 20(%rbx)
	movl	%eax, 24(%rbx)
	movq	_P_SMOKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	52(%rbx), %esi
	movl	%r14d, %edi
	callq	_VectorCopy
	movq	32(%rbx), %rax
	movq	$0, (%rax)
	movl	$-20, 8(%rax)
	movl	48(%rbx), %edi
	callq	_VectorClear
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	xorl	%eax, %eax
	callq	_rand
	cltq
	imulq	$-1223705765, %rax, %rcx        ## imm = 0xB70FBB5B
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$7, %ecx
	addl	%edx, %ecx
	imull	$179, %ecx, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%rbx)
	movq	_BLOODRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movabsq	$4604930618986332160, %rax      ## imm = 0x3FE8000000000000
	movq	%rax, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_Particle_Bleed 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,4,2                    ## @P_SMOKE
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_BLOODRED,4,2                   ## @BLOODRED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function CG_Particle_Bleed
lCPI0_0:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_Particle_Bleed
	.p2align	2
_CG_Particle_Bleed:                     ; @CG_Particle_Bleed
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x1
	mov	x22, 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	x23, [x8]
	cbz	x23, LBB0_4
; %bb.3:
	ldr	x9, [x23, #104]
	str	x9, [x8]
Lloh4:
	adrp	x8, _active_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x23, [x8]
Lloh6:
	adrp	x8, _cg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x9, [x23, #96]
	mov	x9, #4607182418800017408
	str	x9, [x23]
	stp	x22, xzr, [x23, #80]
	add	x9, x8, w21, sxtw
	add	x10, x8, #100
	cmp	w20, #0
	csel	x8, x10, x8, eq
	stp	x8, x9, [x23, #64]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x23, #8]
	mov	w8, #4
	str	w8, [x23, #16]
	bl	_rand
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w8, w8, w8, lsl #1
	sub	w8, w0, w8
	add	w8, w8, #4
	stp	w8, w8, [x23, #20]
Lloh11:
	adrp	x8, _P_SMOKE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P_SMOKE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x23, #56]
	ldr	w1, [x23, #52]
	mov	x0, x19
	bl	_VectorCopy
	ldr	x8, [x23, #32]
	str	xzr, [x8]
	mov	w9, #-20
	str	w9, [x8, #8]
	ldr	w0, [x23, #48]
	bl	_VectorClear
Lloh14:
	adrp	x8, _qfalse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23, #44]
	bl	_rand
	mov	w8, #47963
	movk	w8, #46863, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	mov	w9, #179
	msub	w8, w8, w9, w0
	str	w8, [x23, #8]
Lloh17:
	adrp	x8, _BLOODRED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BLOODRED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x23, #40]
	mov	x8, #4604930618986332160
	str	x8, [x23]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_Particle_Bleed 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,4,2                    ; @P_SMOKE
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_BLOODRED,4,2                   ; @BLOODRED
.subsections_via_symbols
