	.file	"extr_vf_bm3d.c_do_block_ssd16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_block_ssd16, @function
do_block_ssd16:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r10, rdi
	mov	edi, DWORD PTR [rsi]
	mov	rax, rsi
	movsx	r9, r9d
	imul	r8d, ecx
	movsx	rax, DWORD PTR 4[rax]
	mov	r10d, DWORD PTR [r10]
	imul	edi, ecx
	mov	esi, edi
	shr	esi, 31
	add	esi, edi
	sar	esi
	movsx	rsi, esi
	add	rsi, rax
	mov	eax, r8d
	shr	eax, 31
	lea	rsi, [rdx+rsi*8]
	add	eax, r8d
	sar	eax
	cdqe
	add	rax, r9
	lea	rdi, [rdx+rax*8]
	test	r10d, r10d
	jle	.L5
	mov	r9d, ecx
	xor	r8d, r8d
	pxor	xmm1, xmm1
	shr	r9d, 31
	add	r9d, ecx
	lea	ecx, -1[r10]
	sar	r9d
	movsx	r9, r9d
	sal	r9, 3
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	movsd	xmm0, QWORD PTR [rdi+rax*8]
	subsd	xmm0, QWORD PTR [rsi+rax*8]
	mov	rdx, rax
	add	rax, 1
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	cmp	rcx, rdx
	jne	.L4
	add	r8d, 1
	add	rsi, r9
	add	rdi, r9
	cmp	r10d, r8d
	jne	.L3
	movapd	xmm0, xmm1
	ret
.L5:
	pxor	xmm1, xmm1
	movapd	xmm0, xmm1
	ret
	.cfi_endproc
.LFE0:
	.size	do_block_ssd16, .-do_block_ssd16
	.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_vf_bm3d.c_do_block_ssd16.c"
	.text
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_block_ssd16, %function
do_block_ssd16:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	lr, [r1]
	ldr	ip, [sp, #48]
	mul	lr, r3, lr
	mul	ip, r3, ip
	ldr	r0, [r0]
	ldr	fp, [r1, #4]
	ldr	r10, [sp, #52]
	add	lr, lr, lr, lsr #31
	add	ip, ip, ip, lsr #31
	add	lr, fp, lr, asr #1
	add	ip, r10, ip, asr #1
	cmp	r0, #0
	str	r0, [sp, #4]
	add	fp, r2, lr, lsl #3
	add	r10, r2, ip, lsl #3
	ble	.L5
	add	r3, r3, r3, lsr #31
	asr	r9, r3, #1
	mov	r3, #0
	mov	r4, #0
	mov	r5, #0
	lsl	r9, r9, #3
	add	r8, r10, r0, lsl #3
	str	r3, [sp]
.L3:
	mov	r6, r10
	mov	r7, fp
.L4:
	ldmia	r7!, {r2-r3}
	ldmia	r6!, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	cmp	r8, r6
	mov	r4, r0
	mov	r5, r1
	bne	.L4
	ldr	r3, [sp]
	ldr	r2, [sp, #4]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp]
	add	fp, fp, r9
	add	r10, r10, r9
	add	r8, r8, r9
	bne	.L3
	mov	r0, r4
	mov	r1, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r4, #0
	mov	r5, #0
	mov	r0, r4
	mov	r1, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	do_block_ssd16, .-do_block_ssd16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
