	.file	"extr_stat.c_ary_sum_avg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"a|v"
	.text
	.p2align 4
	.type	ary_sum_avg, @function
ary_sum_avg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	lea	rcx, .LC1[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	sub	rsp, 72
	.cfi_def_cfa_offset 120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 64[rsp], rax
	xor	eax, eax
	lea	rax, 52[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	lea	r9, 56[rsp]
	lea	r8, 64[rsp]
	call	strm_get_args@PLT
	pop	rcx
	.cfi_def_cfa_offset 120
	pop	rsi
	.cfi_def_cfa_offset 112
	cmp	ebx, 1
	je	.L2
	mov	edx, DWORD PTR 40[rsp]
	test	edx, edx
	jle	.L17
	pxor	xmm5, xmm5
	xor	ebx, ebx
	movsd	QWORD PTR 8[rsp], xmm5
	movsd	QWORD PTR [rsp], xmm5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	movsd	xmm0, QWORD PTR [rsp]
	add	rbx, 1
	subsd	xmm0, xmm2
	addsd	xmm1, xmm0
	addsd	xmm1, QWORD PTR 8[rsp]
	movsd	QWORD PTR 8[rsp], xmm1
	cmp	DWORD PTR 40[rsp], ebx
	jle	.L21
.L19:
	movsd	QWORD PTR [rsp], xmm2
.L3:
	mov	rax, QWORD PTR 48[rsp]
	mov	edx, DWORD PTR 44[rsp]
	mov	rdi, r12
	mov	esi, DWORD PTR [rax+rbx*4]
	call	convert_number@PLT
	mov	edi, eax
	mov	ebp, eax
	call	strm_number_p@PLT
	test	eax, eax
	je	.L22
	mov	edi, ebp
	call	strm_value_float@PLT
	movsd	xmm3, QWORD PTR [rsp]
	movsd	QWORD PTR 16[rsp], xmm0
	movapd	xmm2, xmm3
	addsd	xmm2, xmm0
	movapd	xmm0, xmm3
	movsd	QWORD PTR 24[rsp], xmm2
	call	fabs@PLT
	movsd	xmm1, QWORD PTR 16[rsp]
	mov	rbp, rax
	movapd	xmm0, xmm1
	call	fabs@PLT
	movsd	xmm1, QWORD PTR 16[rsp]
	movsd	xmm2, QWORD PTR 24[rsp]
	cmp	rbp, rax
	jge	.L24
	subsd	xmm1, xmm2
	addsd	xmm1, QWORD PTR [rsp]
	add	rbx, 1
	addsd	xmm1, QWORD PTR 8[rsp]
	movsd	QWORD PTR 8[rsp], xmm1
	cmp	DWORD PTR 40[rsp], ebx
	jg	.L19
.L21:
	movsd	xmm0, QWORD PTR 8[rsp]
	addsd	xmm0, xmm2
.L4:
	test	r13d, r13d
	je	.L13
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR 40[rsp]
	divsd	xmm0, xmm1
	call	strm_float_value@PLT
	mov	DWORD PTR [r14], eax
.L14:
	mov	eax, DWORD PTR STRM_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR STRM_NG[rip]
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 40[rsp]
	test	eax, eax
	jle	.L17
	pxor	xmm6, xmm6
	xor	ebx, ebx
	movsd	QWORD PTR 8[rsp], xmm6
	movsd	QWORD PTR [rsp], xmm6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	movsd	xmm0, QWORD PTR [rsp]
	subsd	xmm0, xmm2
	addsd	xmm1, xmm0
	addsd	xmm1, QWORD PTR 8[rsp]
	movsd	QWORD PTR 8[rsp], xmm1
.L8:
	add	rbx, 1
	cmp	DWORD PTR 40[rsp], ebx
	jle	.L21
	movsd	QWORD PTR [rsp], xmm2
.L9:
	mov	rax, QWORD PTR 48[rsp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	strm_number_p@PLT
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR 48[rsp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	strm_value_float@PLT
	movsd	xmm4, QWORD PTR [rsp]
	movsd	QWORD PTR 16[rsp], xmm0
	movapd	xmm2, xmm4
	addsd	xmm2, xmm0
	movapd	xmm0, xmm4
	movsd	QWORD PTR 24[rsp], xmm2
	call	fabs@PLT
	movsd	xmm1, QWORD PTR 16[rsp]
	mov	rbp, rax
	movapd	xmm0, xmm1
	call	fabs@PLT
	movsd	xmm1, QWORD PTR 16[rsp]
	movsd	xmm2, QWORD PTR 24[rsp]
	cmp	rbp, rax
	jge	.L26
	subsd	xmm1, xmm2
	addsd	xmm1, QWORD PTR [rsp]
	addsd	xmm1, QWORD PTR 8[rsp]
	movsd	QWORD PTR 8[rsp], xmm1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	call	strm_float_value@PLT
	mov	DWORD PTR [r14], eax
	jmp	.L14
.L17:
	pxor	xmm0, xmm0
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ary_sum_avg, .-ary_sum_avg
	.comm	STRM_OK,4,4
	.comm	STRM_NG,4,4
	.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_stat.c_ary_sum_avg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"a|v\000"
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ary_sum_avg, %function
ary_sum_avg:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r3
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	sub	sp, sp, #52
	add	r3, sp, #40
	str	r3, [sp, #8]
	add	lr, sp, #32
	add	r3, sp, #36
	stm	sp, {r3, lr}
	str	ip, [sp, #28]
	ldr	ip, .L29
	ldr	r3, .L29+4
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	mov	fp, r0
	bl	strm_get_args
	cmp	r4, #1
	ldr	r3, [sp, #32]
	beq	.L2
	cmp	r3, #0
	ble	.L17
	mov	r3, #0
	mov	r4, #0
	mov	r10, #0
	mov	r6, r3
	mov	r7, r4
	str	r3, [sp, #16]
	str	r4, [sp, #20]
	b	.L3
.L26:
	mov	r2, r4
	mov	r3, r5
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r8
	mov	r3, r9
.L22:
	bl	__aeabi_dadd
	mov	r3, r1
	mov	r2, r0
	add	r1, sp, #16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	ldr	r3, [sp, #32]
	add	r10, r10, #1
	cmp	r3, r10
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	ble	.L23
	mov	r6, r4
	mov	r7, r5
.L3:
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #40]
	ldr	r1, [r3, r10, lsl #2]
	mov	r0, fp
	bl	convert_number
	mov	r4, r0
	bl	strm_number_p
	cmp	r0, #0
	beq	.L24
	mov	r0, r4
	bl	strm_value_float
	mov	r2, r6
	mov	r3, r7
	mov	r8, r0
	mov	r9, r1
	bl	__aeabi_dadd
	mov	r4, r0
	mov	r5, r1
	mov	r0, r6
	mov	r1, r7
	bl	fabs
	mov	r3, r0
	mov	r1, r9
	mov	r0, r8
	str	r3, [sp, #24]
	bl	fabs
	ldr	r3, [sp, #24]
	cmp	r3, r0
	bge	.L26
	mov	r2, r4
	mov	r3, r5
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dsub
	mov	r2, r6
	mov	r3, r7
	b	.L22
.L24:
	ldr	r3, .L29+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r2, r4
	add	r1, sp, #16
	ldmia	r1, {r0-r1}
	mov	r3, r5
	bl	__aeabi_dadd
	mov	r4, r0
	mov	r5, r1
.L4:
	ldr	r3, [sp, #88]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [sp, #32]
	bl	__aeabi_i2d
	mov	r3, r1
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_ddiv
	bl	strm_float_value
	ldr	r3, [sp, #28]
	str	r0, [r3]
.L14:
	ldr	r3, .L29+12
	ldr	r0, [r3]
	b	.L1
.L2:
	cmp	r3, #0
	ble	.L17
	mov	r3, #0
	mov	r4, #0
	mov	r10, #0
	mov	r6, r3
	mov	r7, r4
	str	r3, [sp, #16]
	str	r4, [sp, #20]
	b	.L9
.L28:
	mov	r2, r4
	mov	r3, r5
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r8
	mov	r3, r9
.L21:
	bl	__aeabi_dadd
	mov	r3, r1
	mov	r2, r0
	add	r1, sp, #16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	ldr	r3, [sp, #32]
	add	r10, r10, #1
	cmp	r3, r10
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	ble	.L23
	mov	r6, r4
	mov	r7, r5
.L9:
	ldr	r3, [sp, #36]
	ldr	r0, [r3, r10, lsl #2]
	bl	strm_number_p
	cmp	r0, #0
	beq	.L24
	ldr	r3, [sp, #36]
	ldr	r0, [r3, r10, lsl #2]
	bl	strm_value_float
	mov	r2, r6
	mov	r3, r7
	mov	r8, r0
	mov	r9, r1
	bl	__aeabi_dadd
	mov	r4, r0
	mov	r5, r1
	mov	r0, r6
	mov	r1, r7
	bl	fabs
	mov	r1, r9
	mov	fp, r0
	mov	r0, r8
	bl	fabs
	cmp	fp, r0
	bge	.L28
	mov	r2, r4
	mov	r3, r5
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dsub
	mov	r2, r6
	mov	r3, r7
	b	.L21
.L13:
	mov	r0, r4
	mov	r1, r5
	bl	strm_float_value
	ldr	r3, [sp, #28]
	str	r0, [r3]
	b	.L14
.L17:
	mov	r4, #0
	mov	r5, #0
	b	.L4
.L27:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	.LC0
	.word	STRM_NG
	.word	STRM_OK
	.size	ary_sum_avg, .-ary_sum_avg
	.comm	STRM_OK,4,4
	.comm	STRM_NG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
