	.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_add_frame
LCPI0_0:
	.quad	0x40c7760000000000              ## double 12012
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_rfps_add_frame
	.p2align	4, 0x90
_ff_rfps_add_frame:                     ## @ff_rfps_add_frame
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	je	LBB0_17
## %bb.1:
	movq	(%r13), %rcx
	movq	(%rcx), %r12
	cmpq	%rax, %r12
	je	LBB0_17
## %bb.2:
	cmpq	%r14, %r12
	jge	LBB0_17
## %bb.3:
	movq	%r14, %rbx
	subq	%r12, %rbx
	movq	_INT64_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jge	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	callq	_is_relative
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_RELATIVE_TS_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_6:
	movl	8(%r13), %edi
	callq	_av_q2d
	movq	%rax, %rsi
	movq	(%r13), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_8
## %bb.7:
	movl	$16, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_av_mallocz
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_20
LBB0_8:
	movq	%r15, %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_STD_TIMEBASES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.9:
	movq	%r14, %rax
	subq	%rdx, %rax
	imulq	%rsi, %rax
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_get_std_framerate
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	divsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	xorpd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	callq	_llrint
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	addsd	LCPI0_2(%rip), %xmm1
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rcx,%rbx,4), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edx
	movl	%edx, (%rcx,%rbx,4)
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax,%rbx,4), %xmm0
	mulsd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %ecx
	movl	%ecx, (%rax,%rbx,4)
	movapd	%xmm2, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	callq	_llrint
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movq	(%r13), %rcx
	movq	8(%rcx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdx,%rbx,4), %xmm0
	addsd	LCPI0_1(%rip), %xmm1
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	movl	%esi, (%rdx,%rbx,4)
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax,%rbx,4), %xmm0
	mulsd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edx
	movl	%edx, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	16(%rcx), %rdx
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	subq	%rdi, %rsi
	movl	24(%rcx), %eax
	cmpq	%rsi, %rdx
	jg	LBB0_13
## %bb.12:
	incl	%eax
	movl	%eax, 24(%rcx)
	addq	%rdi, %rdx
	movq	%rdx, 16(%rcx)
LBB0_13:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rbx
	cmpl	$4, %eax
	jl	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_is_relative
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_is_relative
	cmpq	%rax, %r15
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	movq	(%r13), %rax
	movl	28(%rax), %edi
	callq	_av_gcd
	movq	(%r13), %rcx
	movl	%eax, 28(%rcx)
LBB0_16:
	movq	(%rbx), %rax
LBB0_17:
	cmpq	%r14, %rax
	je	LBB0_19
## %bb.18:
	movq	(%r13), %rax
	movq	%r14, (%rax)
LBB0_19:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_RELATIVE_TS_BASE,8,3           ## @RELATIVE_TS_BASE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_STD_TIMEBASES,4,2          ## @MAX_STD_TIMEBASES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rfps_add_frame              ; -- Begin function ff_rfps_add_frame
	.p2align	2
_ff_rfps_add_frame:                     ; @ff_rfps_add_frame
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1]
	ldr	x22, [x8]
Lloh0:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, x2
	ccmp	x22, x8, #4, ne
	ccmp	x22, x2, #0, ne
	b.ge	LBB0_13
; %bb.1:
Lloh2:
	adrp	x26, _INT64_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _INT64_MAX@GOTPAGEOFF]
	ldr	x9, [x26]
	sub	x21, x19, x22
	cmp	x21, x9
	b.ge	LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_is_relative
Lloh4:
	adrp	x8, _RELATIVE_TS_BASE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RELATIVE_TS_BASE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x28, xzr, x8, eq
	ldr	w0, [x20, #8]
	bl	_av_q2d
	mov	x24, x0
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_4
; %bb.3:
	mov	w0, #16
	bl	_av_mallocz
	ldr	x8, [x20]
	str	x0, [x8, #8]
	cbz	x0, LBB0_16
LBB0_4:
Lloh7:
	adrp	x27, _MAX_STD_TIMEBASES@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MAX_STD_TIMEBASES@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
	sub	x8, x19, x28
	mul	x8, x8, x24
	scvtf	d8, x8
	mov	x24, #129742372077568
	movk	x24, #16583, lsl #48
	movi	d9, #0000000000000000
	fmov	d10, #0.50000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_get_std_framerate
	scvtf	d0, w0
	fmul	d0, d8, d0
	fmov	d1, x24
	fdiv	d11, d0, d1
	fadd	d0, d11, d9
	bl	_llrint
	scvtf	d0, x0
	fsub	d0, d11, d0
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	lsl	x28, x23, #2
	ldp	x9, x8, [x8]
	ldr	s1, [x9, x28]
	fadd	d0, d0, d9
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fadd	d1, d0, d1
	fcvtzs	w10, d1
	str	w10, [x9, x28]
	ldr	s1, [x8, x28]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmadd	d0, d0, d0, d1
	fcvtzs	w9, d0
	str	w9, [x8, x28]
	fadd	d0, d11, d10
	bl	_llrint
	scvtf	d0, x0
	fsub	d0, d11, d0
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	ldp	x10, x9, [x9]
	fadd	d0, d0, d10
	ldr	s1, [x10, x28]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fadd	d1, d0, d1
	fcvtzs	w11, d1
	str	w11, [x10, x28]
	ldr	s1, [x9, x28]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmadd	d0, d0, d0, d1
	fcvtzs	w10, d0
	str	w10, [x9, x28]
	add	x23, x23, #1
	ldrsw	x9, [x27]
	cmp	x23, x9
	b.lt	LBB0_6
LBB0_7:
	ldr	x10, [x8, #16]
	ldr	x11, [x26]
	ldr	w9, [x8, #24]
	sub	x11, x11, x21
	cmp	x10, x11
	b.gt	LBB0_9
; %bb.8:
	add	w9, w9, #1
	str	w9, [x8, #24]
	add	x10, x10, x21
	str	x10, [x8, #16]
LBB0_9:
	cmp	w9, #4
	b.lt	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_is_relative
	mov	x23, x0
	mov	x0, x22
	bl	_is_relative
	cmp	x23, x0
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	w0, [x8, #28]
	mov	x1, x21
	bl	_av_gcd
	ldr	x8, [x20]
	str	w0, [x8, #28]
LBB0_12:
	ldr	x8, [x25]
LBB0_13:
	cmp	x8, x19
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x20]
	str	x19, [x8]
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_RELATIVE_TS_BASE,8,3           ; @RELATIVE_TS_BASE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_STD_TIMEBASES,4,2          ; @MAX_STD_TIMEBASES
.subsections_via_symbols
