	.file	"70450345.c"
	.intel_syntax noprefix
	.text
	.type	sad_hpel_motion_search, @function
sad_hpel_motion_search:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -116[rbp], edx
	mov	DWORD PTR -120[rbp], ecx
	mov	DWORD PTR -124[rbp], r8d
	mov	DWORD PTR -128[rbp], r9d
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	jle	.L2
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L2
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jle	.L2
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jge	.L2
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	eax, DWORD PTR -80[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	sal	DWORD PTR -92[rbp]
	sal	DWORD PTR -80[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -80[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	neg	rax
	add	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jg	.L2
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	imul	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -24[rbp], eax
	mov	esi, DWORD PTR -24[rbp]
	mov	edi, 0
	mov	r8d, -1
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -64[rbp]
#APP
# 71 "the_stack_data/70450345.c" 1
	cmpl  ecx, esi       
	cmovl esi, ecx       
	cmovl edi, edx       
	cmovl r8d, eax       
	
# 0 "" 2
#NO_APP
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	imul	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -24[rbp], eax
	mov	esi, DWORD PTR -24[rbp]
	mov	edi, 0
	mov	r8d, -1
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -64[rbp]
#APP
# 79 "the_stack_data/70450345.c" 1
	cmpl  ecx, esi       
	cmovl esi, ecx       
	cmovl edi, edx       
	cmovl r8d, eax       
	
# 0 "" 2
#NO_APP
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -64[rbp], eax
.L2:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sad_hpel_motion_search, .-sad_hpel_motion_search
	.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	"70450345.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sad_hpel_motion_search, %function
sad_hpel_motion_search:
	@ args = 12, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	str	r2, [fp, #-104]
	str	r3, [fp, #-108]
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	ble	.L2
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bge	.L2
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L2
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bge	.L2
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r1, r3
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	mov	ip, #0
	mvn	lr, #0
	ldr	r1, [fp, #-8]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	.syntax divided
@ 71 "the_stack_data/70450345.c" 1
	cmpl  r1, r0       
	cmovl r0, r1       
	cmovl ip, r2       
	cmovl lr, r3       
	
@ 0 "" 2
	.arm
	.syntax unified
	str	r1, [fp, #-8]
	str	r2, [fp, #-64]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r1, r3
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	mov	ip, #0
	mvn	lr, #0
	ldr	r1, [fp, #-8]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	.syntax divided
@ 79 "the_stack_data/70450345.c" 1
	cmpl  r1, r0       
	cmovl r0, r1       
	cmovl ip, r2       
	cmovl lr, r3       
	
@ 0 "" 2
	.arm
	.syntax unified
	str	r1, [fp, #-8]
	str	r2, [fp, #-64]
	str	r3, [fp, #-60]
.L2:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sad_hpel_motion_search, .-sad_hpel_motion_search
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
