	.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_AddExplosion
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_AddExplosion:                       ## @CG_AddExplosion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_trap_R_AddRefEntityToScene
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_1
	jnp	LBB0_5
LBB0_1:
	movq	_cg@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	8(%rbx), %xmm3                  ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	subss	%xmm2, %xmm3
	divss	%xmm3, %xmm1
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_3
## %bb.2:
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	cvtss2sd	%xmm1, %xmm1
	addsd	LCPI0_2(%rip), %xmm1
	addsd	%xmm1, %xmm1
	movsd	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtsd2ss	%xmm2, %xmm1
LBB0_4:
	mulss	%xmm1, %xmm0
	movl	24(%rbx), %edi
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trap_R_AddLightToScene         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,4,2                         ## @cg
	.no_dead_strip	_CG_AddExplosion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_AddExplosion
_CG_AddExplosion:                       ; @CG_AddExplosion
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #24
	bl	_trap_R_AddRefEntityToScene
	ldr	s0, [x19]
	fcmp	s0, #0.0
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x8]
	ldp	s2, s3, [x19, #4]
	fsub	s1, s1, s2
	fsub	s2, s3, s2
	fdiv	s2, s1, s2
	fmov	s1, #1.00000000
	fmov	s3, #0.50000000
	fcmp	s2, s3
	b.mi	LBB0_3
; %bb.2:
	fcvt	d1, s2
	fmov	d2, #-0.50000000
	fadd	d1, d1, d2
	fmov	d2, #1.00000000
	fmov	d3, #-2.00000000
	fmadd	d1, d1, d3, d2
	fcvt	s1, d1
LBB0_3:
	fmul	s0, s0, s1
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	ldp	w1, w2, [x8]
	ldr	w3, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_R_AddLightToScene
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,4,2                         ; @cg
	.no_dead_strip	_CG_AddExplosion
.subsections_via_symbols
