	.file	"extr_vf_deshake.c_block_contrast.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	block_contrast, @function
block_contrast:
.LFB0:
	.cfi_startproc
	endbr64
	add	r8d, r8d
	js	.L6
	imul	edx, ecx
	movsx	rsi, esi
	lea	r9d, 1[r8]
	movsx	r10, ecx
	sal	r10, 2
	xor	r8d, r8d
	xor	ecx, ecx
	movsx	rax, edx
	add	rax, rsi
	mov	esi, 255
	lea	rdi, 64[rdi+rax*4]
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rax, -64[rdi]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	ecx, edx
	cmovl	ecx, edx
	add	rax, 4
	cmp	rax, rdi
	je	.L11
.L4:
	mov	edx, DWORD PTR [rax]
	cmp	edx, esi
	jge	.L12
	add	rax, 4
	mov	esi, edx
	cmp	rax, rdi
	jne	.L4
.L11:
	add	r8d, 1
	lea	rdi, [rax+r10]
	cmp	r8d, r9d
	jne	.L5
	mov	eax, ecx
	sub	eax, esi
	ret
.L6:
	mov	eax, -255
	ret
	.cfi_endproc
.LFE0:
	.size	block_contrast, .-block_contrast
	.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_deshake.c_block_contrast.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	block_contrast, %function
block_contrast:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, [sp, #12]
	lsls	r5, r5, #1
	bmi	.L6
	mov	r4, #0
	mov	lr, #255
	mov	ip, r4
	mla	r2, r3, r2, r1
	add	r0, r0, #60
	add	r1, r0, r2, lsl #2
	add	r5, r5, #1
	lsl	r0, r3, #2
.L5:
	sub	r2, r1, #64
.L4:
	ldr	r3, [r2, #4]!
	cmp	r3, lr
	movlt	lr, r3
	blt	.L3
	cmp	ip, r3
	movlt	ip, r3
.L3:
	cmp	r2, r1
	bne	.L4
	add	r4, r4, #1
	cmp	r4, r5
	add	r1, r2, r0
	bne	.L5
	sub	r0, ip, lr
	pop	{r4, r5, pc}
.L6:
	mvn	r0, #254
	pop	{r4, r5, pc}
	.size	block_contrast, .-block_contrast
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
