	.file	"extr_cg_localents.c_CG_AddFallScaleFade.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CG_AddFallScaleFade, @function
CG_AddFallScaleFade:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm1, xmm1
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movss	xmm0, DWORD PTR [rdi]
	subss	xmm0, DWORD PTR cg[rip]
	mulss	xmm0, DWORD PTR 4[rdi]
	movss	xmm2, DWORD PTR .LC0[rip]
	mov	rax, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR 40[rdi]
	mov	rdi, QWORD PTR 56[rdi]
	mov	esi, DWORD PTR cg[rip+4]
	cvtsi2ss	xmm1, DWORD PTR 12[rax]
	mulss	xmm2, xmm0
	mulss	xmm1, xmm2
	cvttss2si	eax, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	pxor	xmm1, xmm1
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, r12d
	cvtsi2sd	xmm1, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 24[rbp]
	movsd	xmm2, QWORD PTR 16[rax]
	mulsd	xmm2, xmm0
	mulsd	xmm0, QWORD PTR 16[rbp]
	addsd	xmm0, QWORD PTR .LC2[rip]
	subsd	xmm1, xmm2
	cvttsd2si	rax, xmm1
	mov	QWORD PTR 16[rdi], rax
	movsd	QWORD PTR 48[rbp], xmm0
	call	VectorSubtract@PLT
	mov	edi, r12d
	call	VectorLength@PLT
	movsd	xmm1, QWORD PTR 16[rbp]
	cvtss2sd	xmm0, xmm0
	comisd	xmm1, xmm0
	ja	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, 40[rbp]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	trap_R_AddRefEntityToScene@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	CG_FreeLocalEntity@PLT
	.cfi_endproc
.LFE0:
	.size	CG_AddFallScaleFade, .-CG_AddFallScaleFade
	.comm	cg,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1132396544
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1076887552
	.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_AddFallScaleFade.c"
	.text
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_i2f
	.global	__aeabi_f2iz
	.global	__aeabi_f2d
	.global	__aeabi_dsub
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.global	__aeabi_dadd
	.global	__aeabi_dcmplt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_AddFallScaleFade, %function
CG_AddFallScaleFade:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r10, .L9
	ldr	r0, [r0]	@ float
	ldr	r1, [r10]	@ float
	bl	__aeabi_fsub
	ldr	r1, [r4, #4]	@ float
	bl	__aeabi_fmul
	ldr	r3, [r4, #8]
	mov	r5, r0
	ldr	r0, [r3, #12]
	bl	__aeabi_i2f
	ldr	r1, .L9+4
	mov	r6, r0
	mov	r0, r5
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fmul
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [r4, #32]
	mov	r0, r5
	str	r2, [r3, #12]
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+8
	bl	__aeabi_dsub
	ldr	r3, [r4, #28]
	mov	r6, r0
	ldr	r0, [r3, #8]
	mov	r7, r1
	bl	__aeabi_i2d
	ldr	r3, [r4, #24]
	mov	r8, r0
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	mov	r9, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	add	r3, r4, #16
	ldmia	r3, {r2-r3}
	mov	ip, r0
	ldr	r8, [r4, #48]
	mov	r0, r6
	str	ip, [r8, #8]
	mov	r1, r7
	bl	__aeabi_dmul
	ldr	r3, .L9+12
	mov	r2, #0
	bl	__aeabi_dadd
	mov	r5, #0
	str	r0, [r4, #40]
	str	r1, [r4, #44]
	mov	r2, r5
	ldr	r1, [r10, #4]
	mov	r0, r8
	bl	VectorSubtract
	mov	r0, r5
	bl	VectorLength
	bl	__aeabi_f2d
	add	r3, r4, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmplt
	cmp	r0, r5
	bne	.L8
	add	r0, r4, #32
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	trap_R_AddRefEntityToScene
.L8:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	CG_FreeLocalEntity
.L10:
	.align	2
.L9:
	.word	cg
	.word	1132396544
	.word	1072693248
	.word	1076887552
	.size	CG_AddFallScaleFade, .-CG_AddFallScaleFade
	.comm	cg,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
