	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function framesync_sync_level_update
_framesync_sync_level_update:           ## @framesync_sync_level_update
	.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
	movq	%rdi, %r15
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movl	$8, %ebx
	movq	_STATE_EOF@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	-8(%rcx,%rbx), %rdx
	cmpq	(%r13), %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx,%rbx), %esi
	movl	%r14d, %edi
	callq	_FFMAX
	movl	%eax, %r14d
	movl	(%r15), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	xorl	%edi, %edi
	cmpl	4(%r15), %r14d
	setbe	%dil
	callq	_av_assert0
	cmpl	4(%r15), %r14d
	jae	LBB0_8
## %bb.7:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_av_log
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movl	%r14d, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_framesync_eof                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_EOF,8,3                  ## @STATE_EOF
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sync level %u\n"

	.no_dead_strip	_framesync_sync_level_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function framesync_sync_level_update
_framesync_sync_level_update:           ; @framesync_sync_level_update
	.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, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	w20, #0
Lloh0:
	adrp	x23, _STATE_EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STATE_EOF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, uxtw
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x21]
	ldr	x11, [x23]
	cmp	x10, x11
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x21
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_FFMAX
	mov	x20, x0
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	cset	w0, ls
	bl	_av_assert0
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.hs	LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
LBB0_8:
	cbz	w20, LBB0_10
; %bb.9:
	str	w20, [x19, #4]
	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
LBB0_10:
	mov	x0, x19
	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
	b	_framesync_eof
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_EOF,8,3                  ; @STATE_EOF
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sync level %u\n"

	.no_dead_strip	_framesync_sync_level_update
.subsections_via_symbols
