	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_best
_find_best:                             ## @find_best
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_pixfmt_list@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r12d, %edi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_find_best_pix_fmt_of_2
	movl	%eax, %r12d
	incq	%rbx
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_pixfmt_list,8,3                ## @pixfmt_list
	.no_dead_strip	_find_best
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_best
_find_best:                             ; @find_best
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x21, _pixfmt_list@GOTPAGE
Lloh4:
	ldr	x21, [x21, _pixfmt_list@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #0
	mov	x4, #0
	bl	_av_find_best_pix_fmt_of_2
	mov	x20, x0
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_pixfmt_list,8,3                ; @pixfmt_list
	.no_dead_strip	_find_best
.subsections_via_symbols
