	.file	"extr_cg_localents.c_CG_AddExplosion.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CG_AddExplosion, @function
CG_AddExplosion:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	add	rdi, 24
	call	trap_R_AddRefEntityToScene@PLT
	movss	xmm1, DWORD PTR [rbx]
	ucomiss	xmm1, DWORD PTR .LC0[rip]
	jp	.L5
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movss	xmm3, DWORD PTR 4[rbx]
	movss	xmm0, DWORD PTR cg[rip]
	movss	xmm2, DWORD PTR 8[rbx]
	subss	xmm0, xmm3
	subss	xmm2, xmm3
	divss	xmm0, xmm2
	movss	xmm2, DWORD PTR .LC1[rip]
	comiss	xmm2, xmm0
	jbe	.L9
.L4:
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 24[rbx]
	movaps	xmm0, xmm1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	ecx, DWORD PTR 8[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	jmp	trap_R_AddLightToScene@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	cvtss2sd	xmm0, xmm0
	subsd	xmm0, QWORD PTR .LC2[rip]
	movsd	xmm2, QWORD PTR .LC3[rip]
	addsd	xmm0, xmm0
	subsd	xmm2, xmm0
	pxor	xmm0, xmm0
	cvtsd2ss	xmm0, xmm2
	mulss	xmm1, xmm0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	CG_AddExplosion, .-CG_AddExplosion
	.comm	cg,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	0
	.align 4
.LC1:
	.long	1056964608
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cg_localents.c_CG_AddExplosion.c"
	.text
	.global	__aeabi_fcmpeq
	.global	__aeabi_fsub
	.global	__aeabi_fdiv
	.global	__aeabi_fcmplt
	.global	__aeabi_f2d
	.global	__aeabi_dsub
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.global	__aeabi_fmul
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_AddExplosion, %function
CG_AddExplosion:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #8
	add	r0, r0, #16
	bl	trap_R_AddRefEntityToScene
	ldr	r6, [r4]	@ float
	mov	r1, #0
	mov	r0, r6
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L9
	ldr	r5, [r4, #4]	@ float
	ldr	r0, [r3]	@ float
	mov	r1, r5
	bl	__aeabi_fsub
	mov	r1, r5
	mov	r5, r0
	ldr	r0, [r4, #8]	@ float
	bl	__aeabi_fsub
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r1, #1056964608
	mov	r5, r0
	bl	__aeabi_fcmplt
	cmp	r0, #0
	beq	.L8
.L4:
	ldr	ip, [r4, #12]
	ldr	r0, [r4, #16]
	ldm	ip, {r2, r3, ip}
	mov	r1, r6
	str	ip, [sp]
	bl	trap_R_AddLightToScene
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r5
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L9+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+8
	bl	__aeabi_dsub
	bl	__aeabi_d2f
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fmul
	mov	r6, r0
	b	.L4
.L10:
	.align	2
.L9:
	.word	cg
	.word	1071644672
	.word	1072693248
	.size	CG_AddExplosion, .-CG_AddExplosion
	.comm	cg,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
