	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_get_best_fcode              ## -- Begin function ff_get_best_fcode
	.p2align	4, 0x90
_ff_get_best_fcode:                     ## @ff_get_best_fcode
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -144(%rbp)                ## 4-byte Spill
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rcx
	movq	_FF_ME_ZERO@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_61
## %bb.1:
	movq	%rdi, %r12
	movq	64(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
LBB0_3:
	movq	80(%r12), %rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movl	$16, %esi
	cmpq	$0, 72(%r12)
	je	LBB0_5
LBB0_4:
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	jmp	LBB0_7
LBB0_5:
	movq	8(%r12), %rcx
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	8(%rax), %rax
	movq	_FF_COMPLIANCE_NORMAL@GOTPCREL(%rip), %rcx
	movl	$256, %esi                      ## imm = 0x100
	cmpq	(%rcx), %rax
	jge	LBB0_4
LBB0_7:
	movl	16(%r12), %eax
	leal	(,%rax,8), %edi
	movl	%edi, -80(%rbp)
	subl	%eax, %edi
	movl	%edi, -76(%rbp)
	leal	(%rax,%rax), %edx
	leal	(%rdx,%rdx,2), %r14d
	movl	%r14d, -72(%rbp)
	leal	(%rax,%rax,4), %r11d
	movl	%r11d, -68(%rbp)
	leal	(,%rax,4), %r10d
	movl	%r10d, -64(%rbp)
	leal	(%rax,%rax,2), %r9d
	movl	%r9d, -60(%rbp)
	movl	%edx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movl	20(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_60
## %bb.8:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	negl	%eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	28(%r12), %eax
	movl	-80(%rbp), %edx
	movl	%edx, -104(%rbp)                ## 4-byte Spill
	movl	-76(%rbp), %edi
	movl	-72(%rbp), %r14d
	movl	-68(%rbp), %r11d
	movl	-64(%rbp), %r10d
	movl	-60(%rbp), %r9d
	movl	-56(%rbp), %edx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movl	-52(%rbp), %edx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%r12), %ecx
	movl	-92(%rbp), %r9d                 ## 4-byte Reload
	movl	-96(%rbp), %r10d                ## 4-byte Reload
	movl	-112(%rbp), %edi                ## 4-byte Reload
	movl	-100(%rbp), %r11d               ## 4-byte Reload
	movl	-108(%rbp), %r14d               ## 4-byte Reload
	movl	-140(%rbp), %esi                ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%esi
	cmpl	%ecx, %esi
	jge	LBB0_59
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r14d, -108(%rbp)               ## 4-byte Spill
	movl	%r11d, -100(%rbp)               ## 4-byte Spill
	movl	%edi, -112(%rbp)                ## 4-byte Spill
	movl	%r10d, -96(%rbp)                ## 4-byte Spill
	movl	%r9d, -92(%rbp)                 ## 4-byte Spill
	movl	24(%r12), %edi
	movl	%esi, -140(%rbp)                ## 4-byte Spill
	imull	%esi, %edi
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=2
	incl	%edi
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=2
	incl	%r14d
	movl	28(%r12), %eax
	cmpl	%eax, %r14d
	jge	LBB0_9
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r12), %rax
	movslq	%edi, %r15
	movl	-144(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, (%rax,%r15,4)
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r15,8), %ebx
	movl	4(%rax,%r15,8), %r13d
	movq	_MAX_MV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rbx), %ecx
	movslq	%ecx, %rcx
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	movl	(%rdx,%rcx,4), %edi
	addl	%r13d, %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	callq	_FFMAX
	cmpl	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_55
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	-116(%rbp), %ebx                ## 4-byte Folded Reload
	jl	LBB0_55
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	-84(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_55
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	-116(%rbp), %r13d               ## 4-byte Folded Reload
	jl	LBB0_55
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=2
	testl	%eax, %eax
	jle	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=2
	decl	%eax
	cmpl	$7, %eax
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	jb	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	$7, %eax
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	40(%r12), %r8
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %r8
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=2
	addl	$-170, -104(%rbp)               ## 4-byte Folded Spill
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=2
	testl	%eax, %eax
	je	LBB0_14
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=2
	incl	%eax
	cmpq	%rdx, %r8
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_16 Depth=2
	addl	$-170, -112(%rbp)               ## 4-byte Folded Spill
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$2, %eax
	je	LBB0_14
## %bb.32:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_16 Depth=2
	addl	$-170, -108(%rbp)               ## 4-byte Folded Spill
LBB0_35:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$3, %eax
	je	LBB0_14
## %bb.36:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_16 Depth=2
	addl	$-170, -100(%rbp)               ## 4-byte Folded Spill
LBB0_39:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$4, %eax
	je	LBB0_14
## %bb.40:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_43
LBB0_42:                                ##   in Loop: Header=BB0_16 Depth=2
	addl	$-170, -96(%rbp)                ## 4-byte Folded Spill
LBB0_43:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$5, %eax
	je	LBB0_14
## %bb.44:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_47
LBB0_46:                                ##   in Loop: Header=BB0_16 Depth=2
	addl	$-170, -92(%rbp)                ## 4-byte Folded Spill
LBB0_47:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$6, %eax
	je	LBB0_14
## %bb.48:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rsi
	movq	56(%r12), %rcx
	movq	(%rsi,%r15,8), %rsi
	cmpq	(%rcx,%r15,8), %rsi
	jge	LBB0_51
LBB0_50:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	addl	$-170, %esi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
LBB0_51:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$7, %eax
	je	LBB0_14
## %bb.52:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	48(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rax,%r15,8), %rax
	cmpq	(%rcx,%r15,8), %rax
	jge	LBB0_14
LBB0_54:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addl	$-170, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_59:
	movl	-104(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movl	%edi, -76(%rbp)
	movl	%r14d, -72(%rbp)
	movl	%r11d, -68(%rbp)
	movl	%r10d, -64(%rbp)
	movl	%r9d, -60(%rbp)
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movl	%edx, -56(%rbp)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%eax, -52(%rbp)
LBB0_60:
	movq	%rax, %r8
	xorl	%eax, %eax
	cmpl	$-9999999, %edi                 ## imm = 0xFF676981
	setge	%al
	leal	-1(%rax,%rax), %ecx
	movl	$-10000000, %eax                ## imm = 0xFF676980
	cmovgel	%edi, %eax
	cmpl	%eax, %r14d
	movq	%rdx, %rbx
	movl	$2, %edx
	cmovlel	%ecx, %edx
	cmovgl	%r14d, %eax
	cmpl	%eax, %r11d
	movl	$3, %ecx
	cmovlel	%edx, %ecx
	cmovgl	%r11d, %eax
	cmpl	%eax, %r10d
	movl	$4, %edx
	cmovlel	%ecx, %edx
	cmovgl	%r10d, %eax
	cmpl	%eax, %r9d
	movl	$5, %ecx
	cmovlel	%edx, %ecx
	cmovgl	%r9d, %eax
	cmpl	%eax, %ebx
	movl	$6, %edx
	cmovlel	%ecx, %edx
	cmovgl	%ebx, %eax
	cmpl	%eax, %r8d
	movl	$7, %eax
	cmovlel	%edx, %eax
LBB0_61:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_63
## %bb.62:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_63:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_ME_ZERO,8,3                 ## @FF_ME_ZERO
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_FF_COMPLIANCE_NORMAL,8,3       ## @FF_COMPLIANCE_NORMAL
	.comm	_MAX_MV,4,2                     ## @MAX_MV
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_get_best_fcode              ; -- Begin function ff_get_best_fcode
	.p2align	2
_ff_get_best_fcode:                     ; @ff_get_best_fcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp, #48]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _FF_ME_ZERO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_ME_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_53
LBB0_2:
	mov	x19, x2
	mov	x21, x0
	ldr	x8, [x0, #64]
	ldr	w22, [x8]
	cbz	w22, LBB0_6
; %bb.3:
	ldp	x9, x24, [x21, #72]
	cbz	x9, LBB0_7
LBB0_4:
	mov	w1, #16
LBB0_5:
	mov	x0, x22
	bl	_FFMIN
	mov	x22, x0
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w22, w9, #1
	ldp	x9, x24, [x21, #72]
	cbnz	x9, LBB0_4
LBB0_7:
	ldr	x9, [x21, #8]
Lloh9:
	adrp	x10, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x9, _FF_COMPLIANCE_NORMAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FF_COMPLIANCE_NORMAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_55
LBB0_9:
	ldp	w11, w9, [x21, #16]
	lsl	w8, w11, #3
	sub	w10, w8, w11
	stp	w8, w10, [sp, #56]
	lsl	w12, w11, #1
	add	w13, w12, w11
	lsl	w16, w13, #1
	lsl	w14, w11, #2
	add	w15, w14, w11
	stp	w16, w15, [sp, #64]
	stp	w14, w13, [sp, #72]
	stp	w12, w11, [sp, #80]
	cmp	w9, #1
	b.lt	LBB0_52
; %bb.10:
	mov	w11, #0
	ldr	w8, [x21, #28]
	neg	w27, w22
	ldr	w10, [sp, #56]
	str	w10, [sp, #44]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #60]
	str	w10, [sp, #40]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #64]
	str	w10, [sp, #32]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #68]
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #72]
	str	w10, [sp, #24]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #76]
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #80]
	str	w10, [sp, #16]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #84]
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x21, #20]
	ldr	w11, [sp, #36]                  ; 4-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w11, w11, #1
	cmp	w11, w9
	b.ge	LBB0_51
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w25, #0
	ldr	w8, [x21, #24]
	str	w11, [sp, #36]                  ; 4-byte Folded Spill
	mul	w28, w8, w11
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w8, w8, #170
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w28, w28, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w25, w25, #1
	ldr	w8, [x21, #28]
	cmp	w25, w8
	b.ge	LBB0_11
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #32]
	ldr	w8, [x8, w28, sxtw #2]
	tst	w8, w19
	b.eq	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	sxtw	x26, w28
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x8, x8, x26, lsl #3
	ldp	w23, w20, [x8]
Lloh15:
	adrp	x8, _MAX_MV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX_MV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w9, w8, w23
	ldr	w0, [x24, w9, sxtw #2]
	add	w8, w8, w20
	ldr	w1, [x24, w8, sxtw #2]
	bl	_FFMAX
	cmp	w23, w22
	ccmp	w23, w27, #8, lt
	ccmp	w20, w22, #0, ge
	ccmp	w20, w27, #8, lt
	b.lt	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	subs	w10, w0, #1
	b.lt	LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x21, #40]
Lloh18:
	adrp	x9, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	w10, #7
	mov	w11, #7
	csel	w10, w10, w11, lo
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #44]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #44]                  ; 4-byte Folded Spill
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=2
	cbz	w10, LBB0_16
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #40]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #40]                  ; 4-byte Folded Spill
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w10, w10, #1
	cmp	w10, #2
	b.eq	LBB0_16
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #32]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #32]                  ; 4-byte Folded Spill
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w10, #3
	b.eq	LBB0_16
; %bb.33:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
LBB0_36:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w10, #4
	b.eq	LBB0_16
; %bb.37:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #24]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #24]                  ; 4-byte Folded Spill
LBB0_40:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w10, #5
	b.eq	LBB0_16
; %bb.41:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #20]                  ; 4-byte Folded Spill
LBB0_44:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w10, #6
	b.eq	LBB0_16
; %bb.45:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x11, x26, #3
	ldp	x12, x13, [x21, #48]
	ldr	x12, [x12, x11]
	ldr	x11, [x13, x11]
	cmp	x12, x11
	b.ge	LBB0_48
LBB0_47:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w11, [sp, #16]                  ; 4-byte Folded Reload
	sub	w11, w11, #170
	str	w11, [sp, #16]                  ; 4-byte Folded Spill
LBB0_48:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w10, #7
	b.eq	LBB0_16
; %bb.49:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.50:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	x8, x26, #3
	ldp	x9, x10, [x21, #48]
	ldr	x9, [x9, x8]
	ldr	x8, [x10, x8]
	cmp	x9, x8
	b.lt	LBB0_15
	b	LBB0_16
LBB0_51:
	ldp	w10, w8, [sp, #40]              ; 8-byte Folded Reload
	stp	w8, w10, [sp, #56]
	ldp	w15, w16, [sp, #28]             ; 8-byte Folded Reload
	stp	w16, w15, [sp, #64]
	ldp	w13, w14, [sp, #20]             ; 8-byte Folded Reload
	stp	w14, w13, [sp, #72]
	ldp	w11, w12, [sp, #12]             ; 8-byte Folded Reload
	stp	w12, w11, [sp, #80]
LBB0_52:
	mov	w8, #27008
	movk	w8, #65383, lsl #16
	mov	w9, #1
	cmp	w10, w8
	csel	w8, w10, w8, gt
	cneg	w9, w9, le
	mov	w10, #2
	cmp	w16, w8
	csel	w9, w10, w9, gt
	csel	w8, w16, w8, gt
	mov	w10, #3
	cmp	w15, w8
	csel	w9, w10, w9, gt
	csel	w8, w15, w8, gt
	mov	w10, #4
	cmp	w14, w8
	csel	w9, w10, w9, gt
	csel	w8, w14, w8, gt
	mov	w10, #5
	cmp	w13, w8
	csel	w9, w10, w9, gt
	csel	w8, w13, w8, gt
	mov	w10, #6
	cmp	w12, w8
	csel	w9, w10, w9, gt
	csel	w8, w12, w8, gt
	mov	w10, #7
	cmp	w11, w8
	csel	w0, w10, w9, gt
LBB0_53:
	ldr	x8, [sp, #88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.54:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_55:
	mov	w1, #256
	b	LBB0_5
LBB0_56:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_ME_ZERO,8,3                 ; @FF_ME_ZERO
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_FF_COMPLIANCE_NORMAL,8,3       ; @FF_COMPLIANCE_NORMAL
	.comm	_MAX_MV,4,2                     ; @MAX_MV
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
.subsections_via_symbols
