	.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_OilSlick
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3fe199999999999a              ## double 0.55000000000000004
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_Particle_OilSlick
	.p2align	4, 0x90
_CG_Particle_OilSlick:                  ## @CG_Particle_OilSlick
	.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_8
## %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
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	(%r14), %rcx
	movl	8(%rcx), %edx
	testl	%edx, %edx
	movl	$60000, %esi                    ## imm = 0xEA60
	cmovnel	%edx, %esi
	addl	%eax, %esi
	movl	%esi, 4(%rbx)
	movl	%esi, 8(%rbx)
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, 16(%rbx)
	movq	$0, 96(%rbx)
	movl	$0, 24(%rbx)
	movq	%r15, 88(%rbx)
	movl	(%rcx), %edx
	testl	%edx, %edx
	jne	LBB0_5
## %bb.4:
	cmpl	$0, 4(%rcx)
	je	LBB0_6
LBB0_5:
	movl	%edx, 28(%rbx)
	movl	(%rcx), %edx
	movl	%edx, 32(%rbx)
	movl	4(%rcx), %edx
	movl	%edx, 36(%rbx)
	movl	4(%rcx), %ecx
LBB0_7:
	movl	%ecx, 40(%rbx)
	movq	_P_FLAT_SCALEUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 80(%rbx)
	movq	%rax, 48(%rbx)
	movl	8(%r14), %edi
	movq	56(%rbx), %rsi
	callq	_VectorCopy
	xorl	%eax, %eax
	callq	_crandom
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	movq	56(%rbx), %rax
	addsd	16(%rax), %xmm0
	movsd	%xmm0, 16(%rax)
	movq	72(%rbx), %rax
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rax)
	movq	$0, 16(%rax)
	movl	68(%rbx), %edi
	callq	_VectorClear
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%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, 24(%rbx)
	movabsq	$4604930618986332160, %rax      ## imm = 0x3FE8000000000000
	movq	%rax, 16(%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movabsq	$34359738376, %rcx              ## imm = 0x800000008
	movq	%rcx, 28(%rbx)
	movl	$16, 36(%rbx)
	movl	$16, %ecx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_Particle_OilSlick == ZERO!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Particle_OilSlick           ; -- Begin function CG_Particle_OilSlick
	.p2align	2
_CG_Particle_OilSlick:                  ; @CG_Particle_OilSlick
	.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_7
; %bb.3:
	ldr	x9, [x21, #104]
	str	x9, [x8]
Lloh4:
	adrp	x8, _active_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x21, #104]
	str	x21, [x8]
Lloh6:
	adrp	x8, _cg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	str	w9, [x21]
	ldr	x8, [x19]
	ldr	w10, [x8, #8]
	mov	w11, #60000
	cmp	w10, #0
	csel	w10, w11, w10, eq
	add	w9, w9, w10
	stp	w9, w9, [x21, #4]
	mov	x9, #4607182418800017408
	str	x9, [x21, #16]
	str	wzr, [x21, #24]
	stp	x20, xzr, [x21, #88]
	ldr	w9, [x8]
	cbnz	w9, LBB0_5
; %bb.4:
	ldr	w10, [x8, #4]
	cbz	w10, LBB0_8
LBB0_5:
	str	w9, [x21, #28]
	ldr	w9, [x8]
	str	w9, [x21, #32]
	ldr	w9, [x8, #4]
	str	w9, [x21, #36]
	ldr	w8, [x8, #4]
LBB0_6:
	str	w8, [x21, #40]
Lloh9:
	adrp	x8, _P_FLAT_SCALEUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _P_FLAT_SCALEUP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #80]
	mov	x8, #4607182418800017408
	str	x8, [x21, #48]
	ldr	w0, [x19, #8]
	ldr	x1, [x21, #56]
	bl	_VectorCopy
	bl	_crandom
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16353, lsl #48
	fmov	d1, x8
	fmov	d2, #0.50000000
	fmadd	d0, d0, d2, d1
	ldr	x8, [x21, #56]
	ldr	d1, [x8, #16]
	fadd	d0, d0, d1
	str	d0, [x8, #16]
	ldr	x8, [x21, #72]
	stp	xzr, xzr, [x8]
	str	xzr, [x8, #16]
	ldr	w0, [x21, #68]
	bl	_VectorClear
Lloh12:
	adrp	x8, _qfalse@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #64]
	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, [x21, #24]
	mov	x8, #4604930618986332160
	str	x8, [x21, #16]
LBB0_7:
	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
LBB0_8:
	movi.2s	v0, #8
	stur	d0, [x21, #28]
	mov	w8, #16
	str	w8, [x21, #36]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_Particle_OilSlick == ZERO!\n"

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