	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_Particle_OilParticle
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x44bb8000                      ## float 1500
LCPI0_3:
	.long	0x41800000                      ## float 16
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_Particle_OilParticle
	.p2align	4, 0x90
_CG_Particle_OilParticle:               ## @CG_Particle_OilParticle
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_cg@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	movl	(%rsi), %r12d
	addl	%r13d, %r12d
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rbx
	callq	_CG_Printf
	movq	%rbx, %rdx
LBB0_2:
	movq	_free_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	cvtsi2ss	%r13d, %xmm0
	cvtsi2ss	%r12d, %xmm1
	divss	%xmm1, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	104(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_active_particles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 104(%rbx)
	movq	%rbx, (%rax)
	movl	(%rdx), %eax
	movl	%eax, (%rbx)
	movabsq	$4607182418800017408, %rcx      ## imm = 0x3FF0000000000000
	movq	%rcx, 8(%rbx)
	movq	$0, 96(%rbx)
	movl	$0, 16(%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	%r15, 88(%rbx)
	addss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, 20(%rbx)
	movss	%xmm0, 24(%rbx)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [1,3,3,1]
	movups	%xmm0, 28(%rbx)
	movq	_P_SMOKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movl	16(%r14), %edi
	movl	76(%rbx), %esi
	callq	_VectorCopy
	movq	8(%r14), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%rax), %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	LCPI0_3(%rip), %xmm1
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %ecx
	movq	48(%rbx), %rdx
	movl	%ecx, (%rdx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%rax), %xmm0
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rdx)
	movl	$1065353216, 56(%rbx)           ## imm = 0x3F800000
	movq	64(%rbx), %rdi
	callq	_VectorClear
	movq	64(%rbx), %rax
	movl	$-20, 8(%rax)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%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, 16(%rbx)
	movabsq	$4604930618986332160, %rax      ## imm = 0x3FE8000000000000
	movq	%rax, 8(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,4,2                         ## @cg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_Particle_OilParticle == ZERO!\n"

	.comm	_free_particles,8,3             ## @free_particles
	.comm	_active_particles,8,3           ## @active_particles
	.comm	_P_SMOKE,4,2                    ## @P_SMOKE
	.comm	_qfalse,4,2                     ## @qfalse
.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_Particle_OilParticle
lCPI0_0:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_Particle_OilParticle
	.p2align	2
_CG_Particle_OilParticle:               ; @CG_Particle_OilParticle
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _cg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cg@GOTPAGEOFF]
	ldr	w23, [x22]
	ldr	w24, [x1]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Printf
LBB0_2:
Lloh4:
	adrp	x8, _free_particles@GOTPAGE
Lloh5:
	ldr	x8, [x8, _free_particles@GOTPAGEOFF]
	ldr	x21, [x8]
	cbz	x21, LBB0_4
; %bb.3:
	scvtf	s0, w23
	add	w9, w24, w23
	scvtf	s1, w9
	fdiv	s0, s0, s1
	fmov	s1, #1.00000000
	fsub	s8, s1, s0
	ldr	x9, [x21, #104]
	str	x9, [x8]
Lloh6:
	adrp	x8, _active_particles@GOTPAGE
Lloh7:
	ldr	x8, [x8, _active_particles@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	xzr, x9, [x21, #96]
	str	x21, [x8]
	ldr	w8, [x22]
	str	w8, [x21]
	mov	x9, #4607182418800017408
	str	x9, [x21, #8]
	str	wzr, [x21, #16]
	str	x20, [x21, #88]
	scvtf	s0, w8
	mov	w8, #32768
	movk	w8, #17595, lsl #16
	fmov	s1, w8
	fadd	s0, s0, s1
	str	s0, [x21, #20]
	str	s0, [x21, #24]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x21, #28]
Lloh10:
	adrp	x8, _P_SMOKE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P_SMOKE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #80]
	ldr	w0, [x19, #16]
	ldr	w1, [x21, #76]
	bl	_VectorCopy
	ldr	x8, [x19, #8]
	ldr	s0, [x8]
	scvtf	s0, s0
	fmov	s1, #16.00000000
	fmul	s1, s8, s1
	fmul	s0, s1, s0
	fcvtzs	w9, s0
	ldr	x10, [x21, #48]
	str	w9, [x10]
	ldr	s0, [x8, #4]
	scvtf	s0, s0
	fmul	s0, s1, s0
	fcvtzs	w9, s0
	str	w9, [x10, #4]
	ldr	w8, [x8, #8]
	str	w8, [x10, #8]
	mov	w8, #1065353216
	str	w8, [x21, #56]
	ldr	x0, [x21, #64]
	bl	_VectorClear
	ldr	x8, [x21, #64]
	mov	w9, #-20
	str	w9, [x8, #8]
Lloh13:
	adrp	x8, _qfalse@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #72]
	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, #16]
	mov	x8, #4604930618986332160
	str	x8, [x21, #8]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,4,2                         ; @cg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_Particle_OilParticle == ZERO!\n"

	.comm	_free_particles,8,3             ; @free_particles
	.comm	_active_particles,8,3           ; @active_particles
	.comm	_P_SMOKE,4,2                    ; @P_SMOKE
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
