	.file	"extr_af_astats.c_update_stat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_stat, @function
update_stat:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movapd	xmm2, xmm0
	movapd	xmm3, xmm1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	movsd	xmm0, QWORD PTR [rsi]
	comisd	xmm0, xmm2
	jbe	.L36
	movabs	rax, 4294967297
	movsd	QWORD PTR [rsi], xmm2
	movsd	QWORD PTR 8[rbx], xmm1
	mov	QWORD PTR 176[rsi], 0
	mov	QWORD PTR 16[rsi], rax
.L4:
	pxor	xmm5, xmm5
	ucomisd	xmm2, xmm5
	jp	.L10
	jne	.L10
.L11:
	movsd	xmm0, QWORD PTR 40[rbx]
	comisd	xmm2, xmm0
	jbe	.L37
	movabs	rax, 4294967297
	movsd	QWORD PTR 40[rbx], xmm2
	mov	QWORD PTR 168[rbx], 0
	mov	QWORD PTR 56[rbx], rax
	movsd	QWORD PTR 48[rbx], xmm3
.L15:
	pxor	xmm6, xmm6
	ucomisd	xmm2, xmm6
	jp	.L35
	jne	.L35
.L21:
	movsd	xmm0, QWORD PTR 80[rbx]
	movsd	xmm1, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm3
	movsd	QWORD PTR 80[rbx], xmm0
	movapd	xmm0, xmm3
	mulsd	xmm0, xmm3
	addsd	xmm0, QWORD PTR 88[rbx]
	movsd	QWORD PTR 88[rbx], xmm0
	movsd	xmm0, QWORD PTR 0[rbp]
	subsd	xmm1, xmm0
	mulsd	xmm0, QWORD PTR 96[rbx]
	mulsd	xmm1, xmm3
	mulsd	xmm1, xmm3
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR 24[rbx]
	ucomisd	xmm0, xmm0
	movsd	QWORD PTR 96[rbx], xmm1
	jp	.L23
	movapd	xmm4, xmm2
	mov	rdi, QWORD PTR 160[rbx]
	movsd	QWORD PTR [rsp], xmm2
	subsd	xmm4, xmm0
	movapd	xmm0, xmm4
	andpd	xmm0, XMMWORD PTR .LC2[rip]
	call	FFMIN@PLT
	movsd	xmm2, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 152[rbx]
	mov	QWORD PTR 160[rbx], rax
	movapd	xmm0, xmm2
	subsd	xmm0, QWORD PTR 24[rbx]
	andpd	xmm0, XMMWORD PTR .LC2[rip]
	call	FFMAX@PLT
	movsd	xmm2, QWORD PTR [rsp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR 144[rbx]
	mov	QWORD PTR 152[rbx], rax
	movapd	xmm0, xmm2
	subsd	xmm0, QWORD PTR 24[rbx]
	movapd	xmm3, xmm0
	andpd	xmm3, XMMWORD PTR .LC2[rip]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm3
	addsd	xmm0, QWORD PTR 104[rbx]
	cvttsd2si	eax, xmm1
	movsd	QWORD PTR 104[rbx], xmm0
	mov	DWORD PTR 144[rbx], eax
.L23:
	or	DWORD PTR 140[rbx], r12d
	mov	rax, QWORD PTR 112[rbx]
	and	DWORD PTR 136[rbx], r12d
	movsd	QWORD PTR 24[rbx], xmm2
	cmp	rax, QWORD PTR 8[rbp]
	jge	.L40
.L24:
	add	rax, 1
	mov	QWORD PTR 112[rbx], rax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	ucomisd	xmm0, xmm2
	movsd	xmm1, QWORD PTR 24[rbx]
	jp	.L16
	jne	.L16
	add	DWORD PTR 60[rbx], 1
	ucomisd	xmm2, xmm1
	jp	.L26
	jne	.L26
	mov	eax, DWORD PTR 56[rbx]
	add	eax, 1
.L18:
	mov	DWORD PTR 56[rbx], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L36:
	ucomisd	xmm0, xmm2
	movsd	xmm1, QWORD PTR 24[rsi]
	jp	.L5
	jne	.L5
	add	DWORD PTR 20[rsi], 1
	ucomisd	xmm2, xmm1
	jp	.L25
	jne	.L25
	mov	eax, DWORD PTR 16[rsi]
	add	eax, 1
.L7:
	mov	DWORD PTR 16[rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	ucomisd	xmm0, xmm1
	jp	.L4
	jne	.L4
	mov	eax, DWORD PTR 16[rbx]
	imul	eax, eax
	cdqe
	add	QWORD PTR 176[rbx], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	ucomisd	xmm0, xmm1
	jp	.L15
	jne	.L15
	mov	eax, DWORD PTR 56[rbx]
	imul	eax, eax
	cdqe
	add	QWORD PTR 168[rbx], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L40:
	movsd	xmm0, QWORD PTR 96[rbx]
	mov	rdi, QWORD PTR 128[rbx]
	call	FFMAX@PLT
	movsd	xmm0, QWORD PTR 96[rbx]
	mov	rdi, QWORD PTR 120[rbx]
	mov	QWORD PTR 128[rbx], rax
	call	FFMIN@PLT
	mov	QWORD PTR 120[rbx], rax
	mov	rax, QWORD PTR 112[rbx]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L35:
	movapd	xmm0, xmm2
	movsd	QWORD PTR 8[rsp], xmm3
	movsd	QWORD PTR [rsp], xmm2
	call	FFSIGN@PLT
	movsd	xmm0, QWORD PTR 72[rbx]
	mov	r13, rax
	call	FFSIGN@PLT
	movsd	xmm2, QWORD PTR [rsp]
	movsd	xmm3, QWORD PTR 8[rsp]
	cmp	r13, rax
	setne	al
	movsd	QWORD PTR 72[rbx], xmm2
	movzx	eax, al
	add	DWORD PTR 64[rbx], eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L10:
	movapd	xmm0, xmm2
	movsd	QWORD PTR 8[rsp], xmm3
	movsd	QWORD PTR [rsp], xmm2
	call	FFABS@PLT
	cmp	rax, QWORD PTR 32[rbx]
	movsd	xmm2, QWORD PTR [rsp]
	movsd	xmm3, QWORD PTR 8[rsp]
	jge	.L11
	movapd	xmm0, xmm2
	call	FFABS@PLT
	movsd	xmm3, QWORD PTR 8[rsp]
	movsd	xmm2, QWORD PTR [rsp]
	mov	QWORD PTR 32[rbx], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, 1
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, 1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	update_stat, .-update_stat
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	4294967295
	.long	2147483647
	.long	0
	.long	0
	.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_af_astats.c_update_stat.c"
	.text
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmpeq
	.global	__aeabi_dcmplt
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_dcmpun
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_stat, %function
update_stat:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldmia	r1, {r6-r7}
	sub	sp, sp, #12
	mov	r10, r1
	mov	fp, r0
	mov	r1, r7
	mov	r0, r6
	mov	r4, r2
	mov	r5, r3
	bl	__aeabi_dcmpgt
	add	r9, sp, #48
	ldmia	r9, {r8-r9}
	cmp	r0, #0
	beq	.L36
	mov	r3, #1
	mov	r2, #0
	stm	r10, {r4-r5}
	str	r8, [r10, #8]
	str	r9, [r10, #12]
	str	r3, [r10, #16]
	str	r3, [r10, #20]
	str	r2, [r10, #148]
.L4:
	mov	r2, #0
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	beq	.L44
.L11:
	add	r7, r10, #40
	ldmia	r7, {r6-r7}
	mov	r2, r4
	mov	r3, r5
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L39
	mov	r3, #1
	mov	r2, #0
	str	r4, [r10, #40]
	str	r5, [r10, #44]
	str	r8, [r10, #48]
	str	r9, [r10, #52]
	str	r3, [r10, #56]
	str	r3, [r10, #60]
	str	r2, [r10, #144]
.L15:
	mov	r2, #0
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	beq	.L45
.L21:
	add	r1, r10, #80
	ldmia	r1, {r0-r1}
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dadd
	mov	r2, r8
	str	r0, [r10, #80]
	str	r1, [r10, #84]
	mov	r3, r9
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	add	r1, r10, #88
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	ldmia	fp, {r6-r7}
	add	r3, r10, #96
	ldmia	r3, {r2-r3}
	str	r0, [r10, #88]
	str	r1, [r10, #92]
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r6
	stm	sp, {r0-r1}
	mov	r3, r7
	ldmia	sp, {r6-r7}
	mov	r0, #0
	ldr	r1, .L47
	bl	__aeabi_dsub
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dmul
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	add	r7, r10, #24
	ldmia	r7, {r6-r7}
	str	r0, [r10, #96]
	str	r1, [r10, #100]
	mov	r2, r6
	mov	r3, r7
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpun
	cmp	r0, #0
	bne	.L23
	mov	r2, r6
	mov	r3, r7
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	bic	r3, r1, #-2147483648
	ldr	r0, [r10, #140]
	bl	FFMIN
	add	r3, r10, #24
	ldmia	r3, {r2-r3}
	str	r0, [r10, #140]
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_dsub
	mov	r2, r0
	bic	r3, r1, #-2147483648
	ldr	r0, [r10, #136]
	bl	FFMAX
	add	r3, r10, #24
	ldmia	r3, {r2-r3}
	str	r0, [r10, #136]
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_dsub
	mov	r7, r0
	mov	r6, r1
	ldr	r0, [r10, #132]
	bl	__aeabi_i2d
	mov	r2, r7
	bic	r3, r6, #-2147483648
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	mov	ip, r0
	mov	r2, r7
	mov	r3, r6
	str	ip, [r10, #132]
	mov	r0, r7
	mov	r1, r6
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	add	r1, r10, #104
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	str	r0, [r10, #104]
	str	r1, [r10, #108]
.L23:
	ldr	r2, [fp, #8]
	ldr	r3, [r10, #112]
	ldr	r1, [r10, #128]
	ldr	r0, [sp, #56]
	cmp	r3, r2
	ldr	r2, [r10, #124]
	orr	r1, r1, r0
	and	r2, r2, r0
	str	r4, [r10, #24]
	str	r5, [r10, #28]
	str	r1, [r10, #128]
	str	r2, [r10, #124]
	bge	.L46
	add	r3, r3, #1
	str	r3, [r10, #112]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	mov	r2, r4
	mov	r3, r5
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpeq
	add	r3, r10, #24
	ldmia	r3, {r2-r3}
	cmp	r0, #0
	beq	.L40
	ldr	r1, [r10, #60]
	mov	r0, r4
	add	r1, r1, #1
	str	r1, [r10, #60]
	mov	r1, r5
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	moveq	r3, #1
	ldrne	r3, [r10, #56]
	addne	r3, r3, #1
	str	r3, [r10, #56]
	b	.L15
.L36:
	mov	r2, r4
	mov	r3, r5
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpeq
	add	r3, r10, #24
	ldmia	r3, {r2-r3}
	cmp	r0, #0
	beq	.L37
	ldr	r1, [r10, #20]
	mov	r0, r4
	add	r1, r1, #1
	str	r1, [r10, #20]
	mov	r1, r5
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	moveq	r3, #1
	ldrne	r3, [r10, #16]
	addne	r3, r3, #1
	str	r3, [r10, #16]
	b	.L4
.L37:
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r10, #16]
	ldr	r2, [r10, #148]
	mov	r1, r3
	mla	r1, r3, r1, r2
	str	r1, [r10, #148]
	b	.L4
.L40:
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r10, #56]
	ldr	r2, [r10, #144]
	mov	r1, r3
	mla	r1, r3, r1, r2
	str	r1, [r10, #144]
	b	.L15
.L46:
	add	r3, r10, #96
	ldmia	r3, {r2-r3}
	ldr	r0, [r10, #120]
	bl	FFMAX
	add	r3, r10, #96
	ldmia	r3, {r2-r3}
	str	r0, [r10, #120]
	ldr	r0, [r10, #116]
	bl	FFMIN
	ldr	r3, [r10, #112]
	str	r0, [r10, #116]
	add	r3, r3, #1
	str	r3, [r10, #112]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	mov	r1, r5
	mov	r0, r4
	bl	FFSIGN
	mov	r6, r0
	add	r1, r10, #72
	ldmia	r1, {r0-r1}
	bl	FFSIGN
	ldr	r3, [r10, #64]
	str	r4, [r10, #72]
	str	r5, [r10, #76]
	cmp	r6, r0
	addne	r3, r3, #1
	str	r3, [r10, #64]
	b	.L21
.L44:
	mov	r0, r4
	mov	r1, r5
	bl	FFABS
	ldr	r3, [r10, #32]
	cmp	r0, r3
	bge	.L11
	mov	r0, r4
	mov	r1, r5
	bl	FFABS
	str	r0, [r10, #32]
	b	.L11
.L48:
	.align	2
.L47:
	.word	1072693248
	.size	update_stat, .-update_stat
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
