	.file	"extr_vf_ssim.c_ssim_4x4xn_16bit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ssim_4x4xn_16bit, @function
ssim_4x4xn_16bit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	sar	esi
	sar	ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	QWORD PTR -16[rsp], rdi
	test	r9d, r9d
	jle	.L1
	lea	eax, -1[r9]
	movsx	rcx, ecx
	movsx	rsi, esi
	mov	r12, rdx
	add	rax, 1
	mov	r14, r8
	lea	r15, 0[0+rsi*4]
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR -8[rsp], rax
	lea	rax, 0[0+rcx*4]
	mov	QWORD PTR -24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbp, QWORD PTR -16[rsp]
	mov	rbx, r12
	mov	r13d, 4
	xor	edi, edi
	xor	r10d, r10d
	xor	r9d, r9d
	xor	r8d, r8d
.L6:
	xor	edx, edx
.L4:
	mov	eax, DWORD PTR 0[rbp+rdx]
	mov	ecx, DWORD PTR [rbx+rdx]
	add	rdx, 4
	mov	esi, eax
	mov	r11d, ecx
	add	edi, eax
	add	r8d, ecx
	imul	esi, eax
	imul	r11d, ecx
	imul	eax, ecx
	add	esi, r11d
	add	r9d, esi
	add	r10d, eax
	cmp	rdx, 16
	jne	.L4
	add	rbp, r15
	add	rbx, QWORD PTR -24[rsp]
	sub	r13d, 1
	jne	.L6
	mov	DWORD PTR [r14], edi
	add	r12, 16
	add	r14, 16
	mov	DWORD PTR -12[r14], r8d
	mov	DWORD PTR -8[r14], r9d
	mov	DWORD PTR -4[r14], r10d
	add	QWORD PTR -16[rsp], 16
	cmp	QWORD PTR -8[rsp], r12
	jne	.L3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssim_4x4xn_16bit, .-ssim_4x4xn_16bit
	.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_ssim.c_ssim_4x4xn_16bit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssim_4x4xn_16bit, %function
ssim_4x4xn_16bit:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	ip, [sp, #60]
	asr	r3, r3, #1
	cmp	ip, #0
	str	r3, [sp]
	ble	.L1
	add	r3, r2, ip, lsl #4
	asr	r1, r1, #1
	mov	lr, r0
	str	r3, [sp, #12]
	ldr	r0, [sp, #56]
	lsl	r3, r1, #2
	str	r3, [sp, #4]
.L3:
	mov	r10, #0
	add	r3, lr, #16
	mov	r9, r3
	mov	r8, r10
	mov	r7, r10
	mov	r6, r10
	mov	r5, r10
	mov	fp, #4
	str	r3, [sp, #8]
.L6:
	sub	lr, r9, #16
	add	r4, r2, r10, lsl #2
.L4:
	ldr	r1, [r4], #4
	ldr	r3, [lr], #4
	mul	ip, r1, r1
	mla	ip, r3, r3, ip
	cmp	r9, lr
	mla	r8, r1, r3, r8
	add	r6, r6, r1
	add	r7, r7, ip
	add	r5, r5, r3
	bne	.L4
	ldr	r3, [sp]
	subs	fp, fp, #1
	add	r10, r10, r3
	ldr	r3, [sp, #4]
	add	r9, r9, r3
	bne	.L6
	ldr	r3, [sp, #12]
	add	r2, r2, #16
	cmp	r3, r2
	stm	r0, {r5, r6, r7, r8}
	ldr	lr, [sp, #8]
	add	r0, r0, #16
	bne	.L3
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	ssim_4x4xn_16bit, .-ssim_4x4xn_16bit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
