	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_find_best_pix_fmt_of_2      ## -- Begin function av_find_best_pix_fmt_of_2
	.p2align	4, 0x90
_av_find_best_pix_fmt_of_2:             ## @av_find_best_pix_fmt_of_2
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_av_pix_fmt_desc_get
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	testq	%rbx, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	notl	%eax
	jmp	LBB0_6
LBB0_2:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_4:
	movl	$-1, %eax
LBB0_6:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	_FF_LOSS_ALPHA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%r12d, %r12d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	negl	%r14d
	sbbl	%r12d, %r12d
	orl	%ecx, %r12d
	andl	%eax, %r12d
	leaq	-88(%rbp), %rdx
	movl	%r15d, %edi
	movl	%esi, %ebx
	movl	%r12d, %ecx
	callq	_get_pix_fmt_score
	movl	%eax, %r14d
	leaq	-84(%rbp), %rdx
	movl	%r13d, %edi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	%r12d, %ecx
	callq	_get_pix_fmt_score
	cmpl	%eax, %r14d
	jne	LBB0_11
## %bb.7:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_av_get_padded_bits_per_pixel
	movq	%rax, %r15
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_av_get_padded_bits_per_pixel
	cmpq	%rax, %r15
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_8
## %bb.9:
	movq	(%rdi), %rax
	cmpq	(%r14), %rax
	jmp	LBB0_10
LBB0_11:
	cmovgel	%r15d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_13:
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_av_get_pix_fmt_loss
	movl	%eax, (%rbx)
LBB0_14:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_av_get_padded_bits_per_pixel
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_av_get_padded_bits_per_pixel
	cmpq	%rax, %r15
LBB0_10:
	cmovgel	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_LOSS_ALPHA,4,2              ## @FF_LOSS_ALPHA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_find_best_pix_fmt_of_2      ; -- Begin function av_find_best_pix_fmt_of_2
	.p2align	2
_av_find_best_pix_fmt_of_2:             ; @av_find_best_pix_fmt_of_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	bl	_av_pix_fmt_desc_get
	mov	x24, x0
	mov	x0, x20
	bl	_av_pix_fmt_desc_get
	cbz	x24, LBB0_11
; %bb.1:
	mov	x25, x0
	cbz	x0, LBB0_4
; %bb.2:
	mov	w8, #-1
	cbz	x19, LBB0_5
; %bb.3:
	ldr	w9, [x19]
	mvn	w9, w9
	b	LBB0_6
LBB0_4:
	mov	x20, x23
	b	LBB0_11
LBB0_5:
	mov	w9, #-1
LBB0_6:
Lloh0:
	adrp	x10, _FF_LOSS_ALPHA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FF_LOSS_ALPHA@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w21, #0
	csinv	w8, w8, w10, ne
	and	w26, w8, w9
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x22
	mov	x3, x26
	bl	_get_pix_fmt_score
	mov	x27, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x3, x26
	bl	_get_pix_fmt_score
	cmp	w27, w0
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x25
	bl	_av_get_padded_bits_per_pixel
	mov	x26, x0
	mov	x0, x24
	bl	_av_get_padded_bits_per_pixel
	cmp	x26, x0
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x25]
	ldr	x9, [x24]
	cmp	x8, x9
	b	LBB0_10
LBB0_9:
	mov	x0, x25
	bl	_av_get_padded_bits_per_pixel
	mov	x25, x0
	mov	x0, x24
	bl	_av_get_padded_bits_per_pixel
	cmp	x25, x0
LBB0_10:
	csel	w20, w20, w23, lt
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_av_get_pix_fmt_loss
	str	w0, [x19]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_LOSS_ALPHA,4,2              ; @FF_LOSS_ALPHA
.subsections_via_symbols
