	.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_SmokePuff
LCPI0_0:
	.long	0x447a0000                      ## float 1000
LCPI0_2:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_SmokePuff
	.p2align	4, 0x90
_CG_SmokePuff:                          ## @CG_SmokePuff
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movss	%xmm5, -48(%rbp)                ## 4-byte Spill
	movss	%xmm4, -64(%rbp)                ## 4-byte Spill
	movss	%xmm3, -60(%rbp)                ## 4-byte Spill
	movss	%xmm2, -56(%rbp)                ## 4-byte Spill
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_CG_AllocLocalEntity
	movq	%rax, %rbx
	movl	%r13d, (%rax)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%rax)
	leaq	_CG_SmokePuff.seed(%rip), %rdi
	callq	_Q_random
	imull	$360, %eax, %eax                ## imm = 0x168
	movl	%eax, 64(%rbx)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 68(%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	divss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, 72(%rbx)
	movq	_LE_MOVE_SCALE_FADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	%r12d, 8(%rbx)
	movl	%r14d, 12(%rbx)
	cvttss2si	%xmm1, %eax
	movl	%eax, 16(%rbx)
	cmpl	%r12d, %r14d
	cmovlel	%r12d, %r14d
	subl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 24(%rbx)
	movq	32(%rbx), %rax
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%rax)
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax)
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 12(%rax)
	movq	_TR_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	%r12d, 40(%rbx)
	movl	48(%rbx), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_VectorCopy
	movl	44(%rbx), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movl	96(%rbx), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 92(%rbx)
	movq	_cgs@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	movq	_GLHW_RAGEPRO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	80(%rbx), %rax
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, (%rax)
	movl	$255, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	32(%rbx), %rcx
	movq	80(%rbx), %rax
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edx
	movl	%edx, (%rax)
	movss	4(%rcx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edx
	movl	%edx, 4(%rax)
	mulss	8(%rcx), %xmm0
	cvttss2si	%xmm0, %ecx
LBB0_3:
	movl	%ecx, 8(%rax)
	movl	$255, 12(%rax)
	movq	_RT_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 68(%rbx)
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @CG_SmokePuff.seed
_CG_SmokePuff.seed:
	.long	146                             ## 0x92

	.comm	_LE_MOVE_SCALE_FADE,4,2         ## @LE_MOVE_SCALE_FADE
	.comm	_TR_LINEAR,4,2                  ## @TR_LINEAR
	.comm	_cgs,16,3                       ## @cgs
	.comm	_GLHW_RAGEPRO,8,3               ## @GLHW_RAGEPRO
	.comm	_RT_SPRITE,4,2                  ## @RT_SPRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_SmokePuff                   ; -- Begin function CG_SmokePuff
	.p2align	2
_CG_SmokePuff:                          ; @CG_SmokePuff
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	.cfi_offset b12, -120
	.cfi_offset b13, -128
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	fmov	s8, s5
	fmov	s9, s4
	fmov	s10, s3
	fmov	s11, s2
	fmov	s12, s1
	fmov	s13, s0
	mov	x25, x1
	mov	x21, x0
	bl	_CG_AllocLocalEntity
	mov	x19, x0
	str	w22, [x0]
	str	s13, [x0, #4]
Lloh0:
	adrp	x0, _CG_SmokePuff.seed@PAGE
Lloh1:
	add	x0, x0, _CG_SmokePuff.seed@PAGEOFF
	bl	_Q_random
	mov	w8, #360
	mul	w8, w0, w8
	str	w8, [x19, #64]
	scvtf	s0, w24
	str	s13, [x19, #68]
	mov	w8, #1148846080
	fmov	s1, w8
	fdiv	s1, s0, s1
	fcvtzs	w8, s1
	str	w8, [x19, #72]
Lloh2:
	adrp	x8, _LE_MOVE_SCALE_FADE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LE_MOVE_SCALE_FADE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w24, w23, [x19, #8]
	fadd	s0, s0, s8
	fcvtzs	w9, s0
	str	w9, [x19, #16]
	cmp	w23, w24
	csel	w10, w23, w24, gt
	sub	w9, w9, w10
	scvtf	d0, w9
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	str	d0, [x19, #24]
	ldr	x9, [x19, #32]
	stp	s12, s11, [x9]
Lloh5:
	adrp	x10, _TR_LINEAR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TR_LINEAR@GOTPAGEOFF]
	stp	s10, s9, [x9, #8]
Lloh7:
	ldr	w9, [x10]
	stp	w9, w8, [x19, #52]
	str	w24, [x19, #40]
	ldr	w1, [x19, #48]
	mov	x0, x25
	bl	_VectorCopy
	ldr	w1, [x19, #44]
	mov	x0, x21
	bl	_VectorCopy
	ldr	w1, [x19, #96]
	mov	x0, x21
	bl	_VectorCopy
Lloh8:
	adrp	x8, _cgs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
	str	w20, [x19, #92]
	ldr	x9, [x8, #8]
Lloh10:
	adrp	x10, _GLHW_RAGEPRO@GOTPAGE
Lloh11:
	ldr	x10, [x10, _GLHW_RAGEPRO@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x8]
	str	w8, [x19, #92]
	ldr	x8, [x19, #80]
	movi	d0, #0x0000ff000000ff
	str	d0, [x8]
	mov	w9, #255
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #32]
	ldr	x8, [x19, #80]
	ldr	d0, [x9]
	mov	w10, #1132396544
	dup.2s	v1, w10
	fmul.2s	v0, v0, v1
	fcvtzs.2s	v0, v0
	str	d0, [x8]
	ldr	s0, [x9, #8]
	fmov	s1, w10
	fmul	s0, s0, s1
	fcvtzs	w9, s0
LBB0_3:
	mov	w10, #255
Lloh13:
	adrp	x11, _RT_SPRITE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _RT_SPRITE@GOTPAGEOFF]
	stp	w9, w10, [x8, #8]
Lloh15:
	ldr	w8, [x11]
	str	w8, [x19, #88]
	ldr	s0, [x19, #4]
	str	s0, [x19, #68]
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @CG_SmokePuff.seed
_CG_SmokePuff.seed:
	.long	146                             ; 0x92

	.comm	_LE_MOVE_SCALE_FADE,4,2         ; @LE_MOVE_SCALE_FADE
	.comm	_TR_LINEAR,4,2                  ; @TR_LINEAR
	.comm	_cgs,16,3                       ; @cgs
	.comm	_GLHW_RAGEPRO,8,3               ; @GLHW_RAGEPRO
	.comm	_RT_SPRITE,4,2                  ; @RT_SPRITE
.subsections_via_symbols
