	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ff_rfps_calculate
LCPI0_0:
	.quad	0x3f847ae147ae147b              ## double 0.01
LCPI0_1:
	.quad	0x40c67bc000000000              ## double 11511.5
LCPI0_2:
	.quad	0x40c7760000000000              ## double 12012
LCPI0_4:
	.quad	0x3e112e0be826d695              ## double 1.0000000000000001E-9
LCPI0_5:
	.quad	0x3f947ae147ae147b              ## double 0.02
LCPI0_6:
	.quad	0x4028000000000000              ## double 12
LCPI0_7:
	.quad	0x408f480000000000              ## double 1001
LCPI0_8:
	.quad	0x3ff028f5c28f5c29              ## double 1.01
LCPI0_11:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_3:
	.space	8
	.quad	0x40c2c4cccccccccd              ## double 9609.6000000000004
LCPI0_9:
	.quad	0x3ff0000000000000              ## double 1
	.space	8
LCPI0_10:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_rfps_calculate
	.p2align	4, 0x90
_ff_rfps_calculate:                     ## @ff_rfps_calculate
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_49
## %bb.1:
	movq	%rdi, %rbx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %r12
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r13), %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$12012, %ecx                    ## imm = 0x2EEC
	callq	_av_reduce
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%r13)
	je	LBB0_41
LBB0_47:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	addq	$16, %rdi
	callq	_av_freep
	movl	(%r14), %eax
	movq	(%r13), %rcx
	movl	%eax, 24(%rcx)
	movl	$0, (%rcx)
	movl	$0, 12(%rcx)
	movl	(%rbx), %eax
LBB0_48:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_49
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movq	8(%rbx), %rcx
	movq	(%rcx,%r15,8), %r13
	movq	64(%r13), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_48
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r13), %rax
	movl	(%rax), %edi
	callq	_tb_unreliable
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	cmpl	$16, (%rax)
	jl	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %r14d
	movq	40(%r13), %rax
	imulq	$500, 48(%r13), %rcx            ## imm = 0x1F4
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cqto
	idivq	%rcx
	movq	%rax, %rsi
	jmp	LBB0_8
LBB0_41:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_47
## %bb.42:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	cmpl	$0, 12(%rax)
	je	LBB0_47
## %bb.43:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rax)
	jg	LBB0_47
## %bb.44:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, (%rax)
	jl	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	callq	_av_q2d
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	40(%r13), %rdi
	movq	48(%r13), %rsi
	callq	_av_q2d
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	(%r13), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sdl	12(%rax), %xmm1
	movapd	LCPI0_9(%rip), %xmm2            ## xmm2 = <1.0E+0,u>
	xorps	%xmm3, %xmm3
	cvtsi2sdl	(%rax), %xmm3
	unpcklpd	%xmm1, %xmm2                    ## xmm2 = xmm2[0],xmm1[0]
	unpcklpd	%xmm3, %xmm0                    ## xmm0 = xmm0[0],xmm3[0]
	divpd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
	unpckhpd	%xmm2, %xmm0                    ## xmm0 = xmm0[1],xmm2[1]
	subsd	%xmm0, %xmm2
	andpd	LCPI0_10(%rip), %xmm2
	movsd	LCPI0_11(%rip), %xmm0           ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jb	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	24(%r13), %r14
	leaq	8(%r13), %rbx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movupd	(%rbx), %xmm0
	movupd	%xmm0, (%r14)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_47
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_FFMAX
	cmpl	%eax, %r14d
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r14
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r13)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%r13), %rdi
	leaq	8(%r13), %rsi
	movl	40(%r13), %edx
	movq	(%r13), %rax
	movl	4(%rax), %ecx
	imull	48(%r13), %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_av_reduce
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	cmpl	$2, (%rax)
	jl	LBB0_40
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r13)
	jne	LBB0_40
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r13), %rax
	movl	(%rax), %edi
	callq	_tb_unreliable
	testq	%rax, %rax
	je	LBB0_40
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%r13), %rax
	movq	(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r13), %rdi
	movq	48(%r13), %rsi
	callq	_av_inv_q
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_STD_TIMEBASES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_40
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	_MAX_STD_TIMEBASES@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_19 Depth=2
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_35:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_36
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movq	(%r13), %rax
	movl	8(%rax), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movq	40(%r13), %rdi
	movq	48(%r13), %rsi
	callq	_av_q2d
	mulsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_get_std_framerate
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	ucomisd	-80(%rbp), %xmm1                ## 8-byte Folded Reload
	ja	LBB0_34
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	(%r13), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	%r14d, %edi
	callq	_get_std_framerate
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_34
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	40(%r13), %rdi
	movq	48(%r13), %rsi
	callq	_av_q2d
	movq	(%r13), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sdl	12(%rax), %xmm1
	mulsd	%xmm0, %xmm1
	blendpd	$2, LCPI0_3(%rip), %xmm1        ## xmm1 = xmm1[0],mem[1]
	movapd	%xmm1, -80(%rbp)                ## 16-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	movapd	%xmm0, -128(%rbp)               ## 16-byte Spill
	movl	%r14d, %edi
	callq	_get_std_framerate
	movapd	-128(%rbp), %xmm2               ## 16-byte Reload
	unpcklpd	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0]
	movapd	-80(%rbp), %xmm1                ## 16-byte Reload
	divpd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    ## xmm0 = xmm0[1],xmm1[1]
	ucomisd	%xmm1, %xmm0
	ja	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movl	(%rdx,%r14,4), %eax
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movl	(%rsi,%r14,4), %eax
	cltd
	idivl	%ecx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%eax, %xmm2
	mulsd	%xmm0, %xmm0
	subsd	%xmm0, %xmm2
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	LCPI0_4(%rip), %xmm1
	movsd	%xmm2, -80(%rbp)                ## 8-byte Spill
	jbe	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=2
	ucomisd	%xmm2, %xmm1
	jbe	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%r14d, %edi
	callq	_get_std_framerate
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	cvttsd2si	%xmm0, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movapd	%xmm2, %xmm1
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=2
	movsd	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%r12, %rbx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_get_std_framerate
	divsd	LCPI0_6(%rip), %xmm0
	divsd	LCPI0_7(%rip), %xmm0
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%rbx, %r12
	movq	_MAX_STD_TIMEBASES@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$2, %al
	callq	_av_log
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	16(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movl	(%rdx,%r14,4), %eax
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movl	(%rsi,%r14,4), %eax
	cltd
	idivl	%ecx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%eax, %xmm2
	mulsd	%xmm0, %xmm0
	subsd	%xmm0, %xmm2
	ucomisd	LCPI0_4(%rip), %xmm1
	movsd	%xmm2, -80(%rbp)                ## 8-byte Spill
	jbe	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=2
	ucomisd	%xmm2, %xmm1
	jbe	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%r14d, %edi
	callq	_get_std_framerate
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	cvttsd2si	%xmm0, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movapd	%xmm2, %xmm1
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=2
	movsd	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_get_std_framerate
	divsd	LCPI0_6(%rip), %xmm0
	divsd	LCPI0_7(%rip), %xmm0
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	_MAX_STD_TIMEBASES@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$2, %al
	callq	_av_log
	jmp	LBB0_34
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r14
	je	LBB0_40
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	-52(%rbp), %xmm0        ## 4-byte Folded Reload
	divsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_q2d
	mulsd	LCPI0_8(%rip), %xmm0
	ucomisd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	ja	LBB0_39
	jmp	LBB0_40
LBB0_49:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_MAX_STD_TIMEBASES,4,2          ## @MAX_STD_TIMEBASES
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rfps: %f %f\n"

L_.str.1:                               ## @.str.1
	.asciz	"Setting avg frame rate based on r frame rate\n"

	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rfps_calculate              ; -- Begin function ff_rfps_calculate
	.p2align	2
_ff_rfps_calculate:                     ; @ff_rfps_calculate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.1:
	mov	x19, x0
	mov	x28, #0
Lloh0:
	adrp	x21, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MAX_STD_TIMEBASES@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_STD_TIMEBASES@GOTPAGEOFF]
Lloh4:
	adrp	x26, _INT_MAX@GOTPAGE
Lloh5:
	ldr	x26, [x26, _INT_MAX@GOTPAGEOFF]
	mov	x27, #129742372077568
	movk	x27, #16583, lsl #48
	mov	x23, #52429
	movk	x23, #52428, lsl #16
	movk	x23, #50380, lsl #32
	movk	x23, #16578, lsl #48
	fmov	d9, #12.00000000
	fmov	d10, #1.00000000
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x22, #8
	ldr	w4, [x26]
	mov	x0, x20
	mov	x2, x25
	mov	w3, #12012
	bl	_av_reduce
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	add	x0, x8, #16
	bl	_av_freep
Lloh6:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x22]
	str	w8, [x9, #24]
	str	wzr, [x9]
	str	wzr, [x9, #12]
	ldr	w8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_46
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	ldr	x9, [x19, #8]
	ldr	x22, [x9, x28, lsl #3]
	ldr	x9, [x22, #64]
	ldr	x9, [x9]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #56]
	ldr	w0, [x8]
	bl	_tb_unreliable
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #16
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w20, [x8, #4]
	ldp	x8, x9, [x22, #40]
	mov	w10, #500
	mul	x9, x9, x10
	sdiv	x1, x8, x9
	mov	w0, #1
	bl	_FFMAX
	cmp	w20, w0
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	ldr	x8, [x0, #16]!
	cbnz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x22, #8
	ldr	w2, [x22, #40]
	ldr	w8, [x22, #48]
	ldr	x9, [x22]
	ldr	w9, [x9, #4]
	mul	w3, w9, w8
	ldr	w4, [x26]
	bl	_av_reduce
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x22
	ldr	x8, [x20, #16]!
	cbnz	x8, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #56]
	ldr	w0, [x8]
	bl	_tb_unreliable
	cbz	x0, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x22, #16]
	cbz	x1, LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #8]
	cmp	w9, #0
	b.gt	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22, #8]
	bl	_av_q2d
	fmov	d8, d0
	ldp	x0, x1, [x22, #40]
	bl	_av_q2d
	fmul	d0, d8, d0
	fdiv	d0, d10, d0
	ldr	x8, [x22]
	ldr	s1, [x8, #12]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	ldr	s2, [x8]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fdiv	d1, d1, d2
	fabd	d0, d0, d1
	fcmp	d0, d10
	b.hi	LBB0_4
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x22, #24
	add	x23, x22, #8
Lloh9:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	q0, [x23]
	mov	x23, #52429
	movk	x23, #52428, lsl #16
	movk	x23, #50380, lsl #32
	movk	x23, #16578, lsl #48
	str	q0, [x20]
	b	LBB0_4
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x0, x1, [x22, #40]
	bl	_av_inv_q
	stp	x0, x1, [sp, #16]               ; 16-byte Folded Spill
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, #0
	mov	w25, #0
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d8, x8
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.ge	LBB0_43
LBB0_27:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	scvtf	d11, w8
	ldp	x0, x1, [x22, #40]
	bl	_av_q2d
	fmul	d11, d0, d11
	mov	x0, x26
	bl	_get_std_framerate
	mov	x8, #136064563937280
	movk	x8, #16582, lsl #48
	fmov	d1, x8
	fdiv	d0, d1, d0
	fcmp	d11, d0
	b.mi	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x22]
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x0, x26
	bl	_get_std_framerate
	fmov	d1, x27
	fcmp	d0, d1
	b.mi	LBB0_26
LBB0_31:                                ;   in Loop: Header=BB0_27 Depth=2
	ldp	x0, x1, [x22, #40]
	bl	_av_q2d
	ldr	x8, [x22]
	ldr	s1, [x8, #12]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmul	d0, d0, d1
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d11, d0, d1
	mov	x0, x26
	bl	_get_std_framerate
	fmov	d1, x23
	fdiv	d0, d1, d0
	fcmp	d11, d0
	b.mi	LBB0_26
; %bb.32:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	lsl	x23, x26, #2
	ldp	x10, x9, [x9]
	ldr	w10, [x10, x23]
	ldr	w8, [x8]
	sdiv	w10, w10, w8
	scvtf	d0, w10
	ldr	w9, [x9, x23]
	sdiv	w8, w9, w8
	scvtf	d1, w8
	fmsub	d11, d0, d0, d1
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d0, x8
	fcmp	d8, d0
	b.le	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_27 Depth=2
	fcmp	d11, d8
	b.pl	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x0, x26
	bl	_get_std_framerate
	fcvtzs	w25, d0
	fmov	d8, d11
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16276, lsl #48
	fmov	d0, x8
	fcmp	d11, d0
	b.pl	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_27 Depth=2
Lloh14:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w27, [x8]
	mov	x0, x26
	bl	_get_std_framerate
	fdiv	d0, d0, d9
	mov	x8, #79164837199872
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	stp	d0, d11, [sp]
	mov	x0, x19
	mov	x1, x27
	mov	x27, #129742372077568
	movk	x27, #16583, lsl #48
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	ldr	x9, [x9, #8]
	ldp	x10, x9, [x9]
	ldr	w10, [x10, x23]
	ldr	w8, [x8]
	sdiv	w10, w10, w8
	scvtf	d0, w10
	ldr	w9, [x9, x23]
	sdiv	w8, w9, w8
	scvtf	d1, w8
	fmsub	d11, d0, d0, d1
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d0, x8
	fcmp	d8, d0
	b.le	LBB0_40
; %bb.38:                               ;   in Loop: Header=BB0_27 Depth=2
	fcmp	d11, d8
	mov	x23, #52429
	movk	x23, #52428, lsl #16
	movk	x23, #50380, lsl #32
	movk	x23, #16578, lsl #48
	b.pl	LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x0, x26
	bl	_get_std_framerate
	fcvtzs	w25, d0
	fmov	d8, d11
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x23, #52429
	movk	x23, #52428, lsl #16
	movk	x23, #50380, lsl #32
	movk	x23, #16578, lsl #48
LBB0_41:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16276, lsl #48
	fmov	d0, x8
	fcmp	d11, d0
	b.pl	LBB0_26
; %bb.42:                               ;   in Loop: Header=BB0_27 Depth=2
Lloh19:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w27, [x8]
	mov	x0, x26
	bl	_get_std_framerate
	fdiv	d0, d0, d9
	mov	x8, #79164837199872
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	stp	d0, d11, [sp]
	mov	x0, x19
	mov	x1, x27
	mov	x27, #129742372077568
	movk	x27, #16583, lsl #48
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_26
LBB0_43:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh24:
	adrp	x26, _INT_MAX@GOTPAGE
Lloh25:
	ldr	x26, [x26, _INT_MAX@GOTPAGEOFF]
	cbz	w25, LBB0_3
; %bb.44:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_2
; %bb.45:                               ;   in Loop: Header=BB0_6 Depth=1
	scvtf	d0, w25
	fmov	d1, x27
	fdiv	d8, d0, d1
	ldp	x0, x1, [sp, #16]               ; 16-byte Folded Reload
	bl	_av_q2d
	mov	x8, #23593
	movk	x8, #49807, lsl #16
	movk	x8, #10485, lsl #32
	movk	x8, #16368, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcmp	d8, d0
	b.mi	LBB0_2
	b	LBB0_3
LBB0_46:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_MAX_STD_TIMEBASES,4,2          ; @MAX_STD_TIMEBASES
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rfps: %f %f\n"

l_.str.1:                               ; @.str.1
	.asciz	"Setting avg frame rate based on r frame rate\n"

	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
.subsections_via_symbols
