	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function framesync_advance
_framesync_advance:                     ## @framesync_advance
	.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
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	jne	LBB0_49
## %bb.1:
	movq	%rdi, %rbx
	movq	_STATE_EOF@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, 16(%rbx)
	testl	%r9d, %r9d
	jne	LBB0_48
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
	cmpq	$0, 32(%rbx)
	jne	LBB0_48
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_consume_from_fifos
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %edx
	testq	%rdx, %rdx
	je	LBB0_50
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	24(%rbx), %r8
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	movq	%r9, %r14
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %dl
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%rsi,8), %rcx
	cmpq	$0, 56(%r8,%rcx,8)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8,%rcx,8), %rax
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %r14
	je	LBB0_50
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$48, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r13
	movl	4(%rbx), %ecx
	addq	$72, %r12
	cmpq	%rcx, %r13
	jae	LBB0_31
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rdi
	cmpq	%r14, -48(%rdi,%r12)
	jne	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=2
	addq	%r12, %rdi
	callq	_av_frame_free
	movq	24(%rbx), %rax
	movq	16(%rax,%r12), %rcx
	movq	%rcx, (%rax,%r12)
	movq	-48(%rax,%r12), %rsi
	movq	-16(%rax,%r12), %rdx
	movq	%rsi, -24(%rax,%r12)
	movq	$0, 16(%rax,%r12)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, -48(%rax,%r12)
	movq	$0, 8(%rax,%r12)
	movq	_STATE_RUN@GOTPCREL(%rip), %rsi
	testq	%rcx, %rcx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%r15, %rsi
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	(%rsi), %rsi
	movq	%rsi, -32(%rax,%r12)
	cmpq	8(%rbx), %rdx
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=2
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	$1, (%rbx)
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=2
	cmpq	(%r15), %rsi
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-8(%rax,%r12), %rax
	movq	_EXT_STOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%rbx, %rdi
	callq	_framesync_eof
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	-40(%rdi,%r12), %rax
	movq	_EXT_INFINITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-32(%rdi,%r12), %rax
	movq	_STATE_BOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	je	LBB0_47
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	je	LBB0_47
## %bb.33:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %r8
	movq	_STATE_BOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EXT_STOP@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpl	$1, %ecx
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
LBB0_43:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %cl
	je	LBB0_47
## %bb.44:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rdx,8), %rax
	cmpq	%rdi, 16(%r8,%rax,8)
	jne	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r10, 8(%r8,%rax,8)
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rbx)
	xorl	%r9d, %r9d
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %edi
	andl	$-2, %edi
	leaq	128(%r8), %rcx
	xorl	%esi, %esi
	movq	%r9, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	addq	$2, %rsi
	addq	$144, %rcx
	cmpq	%rsi, %rdi
	je	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, -72(%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-128(%rcx), %rax
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-56(%rcx), %rax
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %eax
	andl	$-2, %eax
	leaq	88(%r8), %rsi
	xorl	%edx, %edx
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_36 Depth=2
	addq	$2, %rdx
	addq	$144, %rsi
	cmpq	%rdx, %rax
	je	LBB0_43
LBB0_36:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdi, -72(%rsi)
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=2
	cmpq	%r10, -80(%rsi)
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	$0, (%rbx)
	xorl	%r9d, %r9d
LBB0_39:                                ##   in Loop: Header=BB0_36 Depth=2
	cmpq	%rdi, (%rsi)
	jne	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_36 Depth=2
	cmpq	%r10, -8(%rsi)
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	$0, (%rbx)
	xorl	%r9d, %r9d
	jmp	LBB0_42
LBB0_50:
	movq	%rbx, %rdi
	callq	_framesync_eof
LBB0_48:
	xorl	%eax, %eax
	jmp	LBB0_49
LBB0_4:
                                        ## kill: def $eax killed $eax def $rax
LBB0_49:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_EXT_INFINITY,8,3               ## @EXT_INFINITY
	.comm	_STATE_BOF,8,3                  ## @STATE_BOF
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_STATE_RUN,8,3                  ## @STATE_RUN
	.comm	_STATE_EOF,8,3                  ## @STATE_EOF
	.comm	_EXT_STOP,8,3                   ## @EXT_STOP
	.no_dead_strip	_framesync_advance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function framesync_advance
_framesync_advance:                     ; @framesync_advance
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_29
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _STATE_RUN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STATE_RUN@GOTPAGEOFF]
Lloh4:
	adrp	x23, _STATE_EOF@GOTPAGE
Lloh5:
	ldr	x23, [x23, _STATE_EOF@GOTPAGEOFF]
Lloh6:
	adrp	x24, _EXT_STOP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EXT_STOP@GOTPAGEOFF]
	mov	w25, #1
Lloh8:
	adrp	x27, _EXT_INFINITY@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EXT_INFINITY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x28, [x19, #16]
	cbnz	w9, LBB0_29
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_29
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_consume_from_fifos
	cmp	w0, #1
	b.lt	LBB0_30
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_28
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x9, _INT64_MAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INT64_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x10, [x19, #24]
	mov	x28, x9
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x10, x10, #72
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10, #56]
	cbz	x11, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x11, [x10]
	cmp	x11, x28
	csel	x28, x11, x28, lt
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x28, x9
	b.eq	LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	mov	w26, #64
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x20, x20, #1
	ldr	w8, [x19, #4]
	add	x26, x26, #72
	cmp	x20, x8
	b.hs	LBB0_21
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #24]
	add	x8, x9, x26
	ldur	x10, [x8, #-64]
	cmp	x10, x28
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldur	x10, [x8, #-56]
	ldr	x11, [x27]
	cmp	x10, x11
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x9, x9, x26
	ldur	x9, [x9, #-48]
Lloh13:
	adrp	x10, _STATE_BOF@GOTPAGE
Lloh14:
	ldr	x10, [x10, _STATE_BOF@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=2
	sub	x0, x8, #16
	bl	_av_frame_free
	ldr	x8, [x19, #24]
	add	x10, x8, x26
	ldr	x11, [x10]
	ldur	x9, [x10, #-64]
	stur	x9, [x10, #-40]
	str	xzr, [x10]
	ldr	x9, [x21]
	stur	x9, [x10, #-64]
	stp	x11, xzr, [x10, #-16]
	cmp	x11, #0
	csel	x9, x23, x22, eq
	ldr	x9, [x9]
	stur	x9, [x10, #-48]
	ldur	x10, [x10, #-32]
	ldr	x12, [x19, #8]
	cmp	x10, x12
	ccmp	x11, #0, #4, eq
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	str	w25, [x19]
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x8, x26
	ldur	x8, [x8, #-24]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	bl	_framesync_eof
	b	LBB0_12
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19]
	cbz	w9, LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x19, #24]
Lloh16:
	adrp	x10, _STATE_BOF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _STATE_BOF@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldr	x11, [x24]
	add	x12, x12, #16
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x12, x12, #72
	subs	x8, x8, #1
	b.eq	LBB0_2
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x12]
	cmp	x13, x10
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldur	x13, [x12, #-8]
	cmp	x13, x11
	b.ne	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	w9, #0
	str	wzr, [x19]
	b	LBB0_24
LBB0_28:
	mov	x0, x19
	bl	_framesync_eof
LBB0_29:
	mov	w0, #0
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_EXT_INFINITY,8,3               ; @EXT_INFINITY
	.comm	_STATE_BOF,8,3                  ; @STATE_BOF
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_STATE_RUN,8,3                  ; @STATE_RUN
	.comm	_STATE_EOF,8,3                  ; @STATE_EOF
	.comm	_EXT_STOP,8,3                   ; @EXT_STOP
	.no_dead_strip	_framesync_advance
.subsections_via_symbols
