	.file	"351969.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"xf_smoothbox2_d"
	.string	""
	.align 8
.LC1:
	.string	"%s (data length %ld must not be less than 3)"
	.align 8
.LC2:
	.string	"%s (window size %ld exceeds data length %ld)"
	.align 8
.LC3:
	.string	"%s [ERROR]: memory allocation error"
	.align 8
.LC6:
	.string	"%s:  calculated boxcar average for %ld data points, window size %ld)"
	.text
	.globl	xf_smoothbox2_d
	.type	xf_smoothbox2_d, @function
xf_smoothbox2_d:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	QWORD PTR -112[rbp], rcx
	lea	rax, .LC0[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rax
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -96[rbp], 2
	ja	.L2
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jbe	.L4
	mov	rsi, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	r8, rsi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, -1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L7
.L6:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L7:
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm1, xmm0
	movsd	QWORD PTR -8[rbp], xmm1
	mov	QWORD PTR -64[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	mov	QWORD PTR -72[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -64[rbp], 1
	add	QWORD PTR -72[rbp], 1
.L8:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jb	.L9
	mov	QWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -64[rbp], 1
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	js	.L11
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L12:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR -40[rbp]
	divsd	xmm1, xmm0
	movsd	QWORD PTR [rax], xmm1
	add	QWORD PTR -56[rbp], 1
	add	QWORD PTR -72[rbp], 1
.L10:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L13
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -40[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -56[rbp], 1
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L15
	mov	QWORD PTR -48[rbp], 0
.L15:
	add	QWORD PTR -72[rbp], 1
.L14:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jb	.L16
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L17
.L21:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	sub	QWORD PTR -64[rbp], 1
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	js	.L18
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L19
.L18:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L19:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR -40[rbp]
	divsd	xmm1, xmm0
	movsd	QWORD PTR [rax], xmm1
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L20
	mov	QWORD PTR -48[rbp], 0
.L20:
	add	QWORD PTR -72[rbp], 1
.L17:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jb	.L21
	mov	rsi, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	xf_smoothbox2_d, .-xf_smoothbox2_d
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"351969.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"xf_smoothbox2_d\000\000"
	.align	2
.LC1:
	.ascii	"%s (data length %ld must not be less than 3)\000"
	.align	2
.LC2:
	.ascii	"%s (window size %ld exceeds data length %ld)\000"
	.align	2
.LC3:
	.ascii	"%s [ERROR]: memory allocation error\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.align	2
.LC4:
	.ascii	"%s:  calculated boxcar average for %ld data points,"
	.ascii	" window size %ld)\000"
	.text
	.align	2
	.global	xf_smoothbox2_d
	.syntax unified
	.arm
	.fpu softvfp
	.type	xf_smoothbox2_d, %function
xf_smoothbox2_d:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, .L16
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-68]
	cmp	r3, #2
	bhi	.L2
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-40]
	ldr	r1, .L16+4
	ldr	r0, [fp, #-76]
	bl	sprintf
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bls	.L4
	ldr	r3, [fp, #-68]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, .L16+8
	ldr	r0, [fp, #-76]
	bl	sprintf
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L5
	ldr	r2, [fp, #-40]
	ldr	r1, .L16+12
	ldr	r0, [fp, #-76]
	bl	sprintf
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r0, [fp, #-32]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L16+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L6
.L7:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-36]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L6:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bcc	.L7
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-56]
	b	.L8
.L9:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-36]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-64]
	add	r4, r0, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L8:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L9
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-56]
	b	.L10
.L12:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-36]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L11
	mov	r3, #0
	str	r3, [fp, #-44]
.L11:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L10:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bcc	.L12
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-56]
	b	.L13
.L15:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-56]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-64]
	add	r4, r0, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L14
	mov	r3, #0
	str	r3, [fp, #-44]
.L14:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L13:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bcc	.L15
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-40]
	ldr	r1, .L16+20
	ldr	r0, [fp, #-76]
	bl	sprintf
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1072693248
	.word	.LC4
	.size	xf_smoothbox2_d, .-xf_smoothbox2_d
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
