	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_framesync_configure         ## -- Begin function ff_framesync_configure
	.p2align	4, 0x90
_ff_framesync_configure:                ## @ff_framesync_configure
	.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
	movq	%rdi, %r14
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.3:
	movq	(%r14), %rcx
	movq	_EOF_ACTION_PASS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_2
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_1:
	movq	_EOF_ACTION_PASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_2:
	movq	$0, 40(%r14)
	movq	%rcx, (%r14)
	movb	$1, %dl
LBB0_5:
	cmpl	$0, 8(%r14)
	movq	_EOF_ACTION_ENDALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	je	LBB0_7
## %bb.6:
	movq	%rsi, %rcx
	jmp	LBB0_8
LBB0_7:
	movb	$1, %r9b
	cmpq	%rsi, %rcx
	jne	LBB0_9
LBB0_8:
	movl	$1, 8(%r14)
	movq	%rcx, (%r14)
	xorl	%r9d, %r9d
LBB0_9:
	testb	%dl, %dl
	je	LBB0_16
## %bb.10:
	movl	12(%r14), %ebx
	cmpq	$2, %rbx
	jb	LBB0_16
## %bb.11:
	movl	%ebx, %ecx
	movq	24(%r14), %r8
	decq	%rbx
	movl	$1, %esi
	cmpl	$2, %ecx
	je	LBB0_14
## %bb.12:
	leaq	88(%r8), %rdi
	movq	%rbx, %rdx
	andq	$-2, %rdx
	negq	%rdx
	movl	$1, %esi
	movq	_EXT_NULL@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %eax
	movl	%eax, -32(%rdi)
	movq	$0, -40(%rdi)
	movl	(%rcx), %eax
	movl	%eax, (%rdi)
	movq	$0, -8(%rdi)
	addq	$64, %rdi
	leaq	(%rdx,%rsi), %rax
	addq	$2, %rax
	addq	$2, %rsi
	cmpq	$1, %rax
	jne	LBB0_13
LBB0_14:
	testb	$1, %bl
	je	LBB0_16
## %bb.15:
	movq	_EXT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$5, %rsi
	movl	%eax, 24(%r8,%rsi)
	movq	$0, 16(%r8,%rsi)
LBB0_16:
	testb	%r9b, %r9b
	jne	LBB0_25
## %bb.17:
	movl	12(%r14), %edx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.18:
	movq	24(%r14), %r8
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_20
## %bb.19:
	xorl	%esi, %esi
	jmp	LBB0_22
LBB0_20:
	andl	$-4, %edx
	leaq	120(%r8), %rdi
	xorl	%esi, %esi
	movq	_EXT_STOP@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	movl	%ecx, -96(%rdi)
	movl	(%rbx), %ecx
	movl	%ecx, -64(%rdi)
	movl	(%rbx), %ecx
	movl	%ecx, -32(%rdi)
	movl	(%rbx), %ecx
	movl	%ecx, (%rdi)
	addq	$4, %rsi
	subq	$-128, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_21
LBB0_22:
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	shlq	$5, %rsi
	leaq	(%r8,%rsi), %rcx
	addq	$24, %rcx
	shlq	$5, %rax
	xorl	%edx, %edx
	movq	_EXT_STOP@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_24
LBB0_25:
	cmpl	$0, 32(%r14)
	jne	LBB0_40
## %bb.26:
	movl	12(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_37
## %bb.27:
	xorl	%ebx, %ebx
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	8(%rsi,%rbx), %rax
	movq	%rax, 32(%r14)
LBB0_33:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	%eax, %edx
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%r12
	movl	%ecx, %esi
	addq	$32, %rbx
	cmpq	%rsi, %r12
	jae	LBB0_35
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	cmpq	$0, 16(%rsi,%rbx)
	je	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	testl	%edx, %edx
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	36(%r14), %edi
	movl	12(%rsi,%rbx), %esi
	callq	_av_gcd
	movq	%rax, %rcx
	movl	36(%r14), %eax
	cltd
	idivl	%ecx
	movq	24(%r14), %rcx
	imull	12(%rcx,%rbx), %eax
	movl	(%r15), %r8d
	movl	%r8d, %edx
	shrl	$31, %edx
	addl	%r8d, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jge	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%eax, 36(%r14)
	movl	32(%r14), %edi
	movl	8(%rcx,%rbx), %esi
	callq	_av_gcd
	movl	%eax, 32(%r14)
	movl	12(%r14), %ecx
	jmp	LBB0_33
LBB0_35:
	testl	%eax, %eax
	je	LBB0_37
## %bb.36:
	movl	36(%r14), %r8d
	jmp	LBB0_39
LBB0_37:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_38:
	movl	$1, 32(%r14)
	movl	%r8d, 36(%r14)
	movl	$1, %eax
LBB0_39:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_40:
	movl	12(%r14), %ecx
	testq	%rcx, %rcx
	je	LBB0_47
## %bb.41:
	movq	24(%r14), %r8
	cmpl	$1, %ecx
	jne	LBB0_43
## %bb.42:
	xorl	%edx, %edx
	jmp	LBB0_45
LBB0_43:
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	36(%r8), %rdi
	xorl	%edx, %edx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, -36(%rdi)
	movl	%eax, -32(%rdi)
	movl	(%rbx), %eax
	movl	%eax, -4(%rdi)
	movl	%eax, (%rdi)
	addq	$2, %rdx
	addq	$64, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_44
LBB0_45:
	testb	$1, %cl
	je	LBB0_47
## %bb.46:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$5, %rdx
	movl	%eax, (%r8,%rdx)
	movl	%eax, 4(%r8,%rdx)
LBB0_47:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_framesync_sync_level_update
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF_ACTION_PASS,8,3            ## @EOF_ACTION_PASS
	.comm	_EOF_ACTION_ENDALL,8,3          ## @EOF_ACTION_ENDALL
	.comm	_EXT_NULL,4,2                   ## @EXT_NULL
	.comm	_EXT_STOP,4,2                   ## @EXT_STOP
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Impossible to set time base\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Selected %d/%d time base\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_framesync_configure         ; -- Begin function ff_framesync_configure
	.p2align	2
_ff_framesync_configure:                ; @ff_framesync_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EOF_ACTION_PASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EOF_ACTION_PASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	mov	w9, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EOF_ACTION_PASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOF_ACTION_PASS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
LBB0_4:
	str	xzr, [x19, #40]
	str	x8, [x19]
	mov	w9, #1
LBB0_5:
	ldr	w11, [x19, #8]
Lloh6:
	adrp	x10, _EOF_ACTION_ENDALL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EOF_ACTION_ENDALL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cbnz	w11, LBB0_7
; %bb.6:
	cmp	x8, x10
	mov	x10, x8
	b.ne	LBB0_11
LBB0_7:
	mov	w8, #0
	mov	w11, #1
	str	w11, [x19, #8]
	str	x10, [x19]
	cbz	w9, LBB0_12
LBB0_8:
	ldr	w10, [x19, #12]
	cmp	w10, #2
	b.lo	LBB0_12
; %bb.9:
	ldr	x9, [x19, #24]
	add	x9, x9, #56
	sub	x10, x10, #1
Lloh9:
	adrp	x11, _EXT_NULL@GOTPAGE
Lloh10:
	ldr	x11, [x11, _EXT_NULL@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x9]
	stur	xzr, [x9, #-8]
	add	x9, x9, #32
	subs	x10, x10, #1
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	cbnz	w9, LBB0_8
LBB0_12:
	tbnz	w8, #0, LBB0_16
; %bb.13:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_16
; %bb.14:
	ldr	x9, [x19, #24]
	add	x9, x9, #24
Lloh11:
	adrp	x10, _EXT_STOP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EXT_STOP@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x9], #32
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_21
; %bb.17:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_20
LBB0_18:
	ldr	x9, [x19, #24]
	add	x9, x9, #4
Lloh13:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	stp	w11, w11, [x9, #-4]
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_19
LBB0_20:
Lloh15:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_framesync_sync_level_update
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
LBB0_21:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_31
; %bb.22:
	mov	x20, #0
	mov	w0, #0
	mov	w9, #0
	mov	x21, #0
Lloh18:
	adrp	x22, _AV_TIME_BASE@GOTPAGE
Lloh19:
	ldr	x22, [x22, _AV_TIME_BASE@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x9, x10, x20
	ldr	x9, [x9, #8]
	str	x9, [x19, #32]
	mov	x0, x9
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x21, x21, #1
	add	x20, x20, #32
	cmp	x21, w8, uxtw
	b.hs	LBB0_29
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #24]
	add	x11, x10, x20
	ldr	x11, [x11, #16]
	cbz	x11, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	cbz	w9, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x19, #36]
	add	x8, x10, x20
	ldr	w1, [x8, #12]
	bl	_av_gcd
	ldr	w8, [x19, #36]
	sdiv	w8, w8, w0
	ldr	x9, [x19, #24]
	add	x9, x9, x20
	ldr	w10, [x9, #12]
	mul	w10, w10, w8
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w11, w8, lt
	cmp	w10, w11, asr #1
	b.ge	LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	str	w10, [x19, #36]
	ldr	w0, [x19, #32]
	ldr	w1, [x9, #8]
	bl	_av_gcd
	str	w0, [x19, #32]
	ldr	w8, [x19, #12]
	mov	x9, x0
	b	LBB0_24
LBB0_29:
	cbz	w0, LBB0_31
; %bb.30:
	ldr	w8, [x19, #36]
	b	LBB0_33
LBB0_31:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_AVERROR
LBB0_32:
	mov	w0, #1
	stp	w0, w8, [x19, #32]
LBB0_33:
Lloh28:
	adrp	x9, _AV_LOG_VERBOSE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x8, [sp]
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_18
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF_ACTION_PASS,8,3            ; @EOF_ACTION_PASS
	.comm	_EOF_ACTION_ENDALL,8,3          ; @EOF_ACTION_ENDALL
	.comm	_EXT_NULL,4,2                   ; @EXT_NULL
	.comm	_EXT_STOP,4,2                   ; @EXT_STOP
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Impossible to set time base\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Selected %d/%d time base\n"

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