	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_me_search_esa               ## -- Begin function ff_me_search_esa
	.p2align	4, 0x90
_ff_me_search_esa:                      ## @ff_me_search_esa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	movslq	%esi, %r15
	movq	%r15, %rsi
	subq	16(%r14), %rsi
	callq	_FFMAX
	movl	%eax, %r13d
	movl	28(%r14), %edi
	movslq	%ebx, %rax
	movq	%rax, %rsi
	movq	%rax, %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	subq	16(%r14), %rsi
	callq	_FFMAX
	movl	%eax, %ebx
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	movl	24(%r14), %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rdi
	addq	%r12, %rdi
	movl	8(%r14), %esi
	callq	_FFMIN
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	movl	%edx, %r8d
	callq	*(%r14)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	%r12d, %ebx
	jg	LBB0_7
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	cmpl	%r12d, %ebx
	movl	%eax, %ebx
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_COST_MV
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_me_search_esa               ; -- Begin function ff_me_search_esa
	.p2align	2
_ff_me_search_esa:                      ; @ff_me_search_esa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	w0, [x0, #32]
	sxtw	x21, w24
	ldr	x8, [x25, #16]
	sub	x1, x21, x8
	bl	_FFMAX
	mov	x19, x0
	ldr	w0, [x25, #28]
	sxtw	x22, w23
	ldr	x8, [x25, #16]
	sub	x1, x22, x8
	bl	_FFMAX
	mov	x20, x0
	ldr	x8, [x25, #16]
	add	x0, x8, x21
	ldr	w1, [x25, #24]
	bl	_FFMIN
	mov	x21, x0
	ldr	x8, [x25, #16]
	add	x0, x8, x22
	ldr	w1, [x25, #8]
	bl	_FFMIN
	mov	x22, x0
	ldr	x8, [x25]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x24
	mov	x4, x23
	blr	x8
	mov	x23, x0
	cmp	w0, #0
	ccmp	w20, w22, #0, ne
	b.le	LBB0_2
LBB0_1:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	w25, w21, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w20, #1
	cmp	w20, w22
	mov	x20, x8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w19, w21
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x19
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x20
	bl	_COST_MV
	add	w24, w24, #1
	cmp	w25, w24
	b.ne	LBB0_6
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
