	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_fmt_score
_get_fmt_score:                         ## @get_fmt_score
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	%edi, %r15d
	callq	_av_sample_fmt_is_planar
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_av_sample_fmt_is_planar
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	setne	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_av_get_bytes_per_sample
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_av_get_bytes_per_sample
	cmpl	%eax, %ebx
	movl	%r15d, %edi
	cmovll	%r13d, %edi
	movl	%r13d, %r12d
	cmovll	%r15d, %r12d
	movl	$100, %eax
	movl	$10, %r14d
	cmovll	%eax, %r14d
	callq	_av_get_bytes_per_sample
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_av_get_bytes_per_sample
	subl	%eax, %ebx
	imull	%r14d, %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r15d, %edi
	callq	_av_get_packed_sample_fmt
	movq	_AV_SAMPLE_FMT_S32@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	callq	_av_get_packed_sample_fmt
	movq	_AV_SAMPLE_FMT_FLT@GOTPCREL(%rip), %rcx
	leal	20(%rbx), %edx
	cmpq	(%rcx), %rax
	cmovnel	%ebx, %edx
	movl	%edx, %ebx
LBB0_2:
	movl	%r15d, %edi
	callq	_av_get_packed_sample_fmt
	movq	_AV_SAMPLE_FMT_FLT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_av_get_packed_sample_fmt
	leal	2(%rbx), %ecx
	cmpq	(%r12), %rax
	cmovnel	%ebx, %ecx
	movl	%ecx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_S32,8,3          ## @AV_SAMPLE_FMT_S32
	.comm	_AV_SAMPLE_FMT_FLT,8,3          ## @AV_SAMPLE_FMT_FLT
	.no_dead_strip	_get_fmt_score
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_fmt_score
_get_fmt_score:                         ; @get_fmt_score
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_av_sample_fmt_is_planar
	mov	x21, x0
	mov	x0, x19
	bl	_av_sample_fmt_is_planar
	cmp	x21, x0
	cset	w23, ne
	mov	x0, x20
	bl	_av_get_bytes_per_sample
	mov	x21, x0
	mov	x0, x19
	bl	_av_get_bytes_per_sample
	cmp	w21, w0
	csel	w0, w19, w20, lt
	csel	w21, w20, w19, lt
	mov	w8, #10
	mov	w9, #100
	csel	w24, w9, w8, lt
	bl	_av_get_bytes_per_sample
	mov	x22, x0
	mov	x0, x21
	bl	_av_get_bytes_per_sample
	sub	w8, w22, w0
	mul	w8, w8, w24
	orr	w21, w8, w23
	mov	x0, x20
	bl	_av_get_packed_sample_fmt
Lloh0:
	adrp	x22, _AV_SAMPLE_FMT_S32@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_SAMPLE_FMT_S32@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _AV_SAMPLE_FMT_FLT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AV_SAMPLE_FMT_FLT@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_av_get_packed_sample_fmt
	ldr	x8, [x23]
	add	w9, w21, #20
	cmp	x0, x8
	csel	w21, w9, w21, eq
LBB0_2:
	mov	x0, x20
	bl	_av_get_packed_sample_fmt
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_av_get_packed_sample_fmt
	ldr	x8, [x22]
	add	w9, w21, #2
	cmp	x0, x8
	csel	w21, w9, w21, eq
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_S32,8,3          ; @AV_SAMPLE_FMT_S32
	.comm	_AV_SAMPLE_FMT_FLT,8,3          ; @AV_SAMPLE_FMT_FLT
	.no_dead_strip	_get_fmt_score
.subsections_via_symbols
