	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_vfr_work
_hb_vfr_work:                           ## @hb_vfr_work
	.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	(%rdi), %r13
	movq	(%rsi), %r15
	movq	%r15, -56(%rbp)
	movq	$0, (%rsi)
	movq	$0, (%rdx)
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	leaq	-44(%rbp), %rdi
	callq	_hb_buffer_list_clear
	movl	36(%r13), %edi
	callq	_hb_fifo_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	$16, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	(%rcx,%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx), %rcx
	movq	%rcx, 16(%rax)
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_adjust_frame_rate
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_hb_buffer_list_append
	movl	36(%r13), %edi
	callq	_hb_fifo_get
	addq	$-8, %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_flush_frames
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hb_buffer_list_append
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hb_buffer_list_append
	movq	%rbx, %rdi
	callq	_hb_buffer_list_clear
	movq	%rax, (%r14)
	movq	_HB_FILTER_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_5:
	movl	36(%r13), %edi
	callq	_hb_fifo_size
	testl	%eax, %eax
	jle	LBB0_6
## %bb.9:
	movq	8(%r15), %rcx
	movq	8(%r13), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_7
## %bb.10:
	subl	%edx, %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movq	16(%r13), %rsi
	leal	(%rdx,%rdx,2), %edi
	movl	%ecx, %ebx
	subl	%edi, %ebx
	movdqu	(%rsi), %xmm0
	movd	%edx, %xmm1
	pinsrd	$1, %ebx, %xmm1
	pshufd	$64, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,0,1]
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, (%rsi)
	addl	%ecx, 24(%r13)
	jmp	LBB0_11
LBB0_6:
	movq	8(%r13), %rax
	movq	(%rax), %rdx
LBB0_7:
	cmpq	%rdx, 16(%r15)
	jle	LBB0_8
LBB0_11:
	movq	(%r13), %rcx
	movq	16(%rcx), %rdx
	movq	%rdx, 24(%rcx)
	movq	16(%rax), %rdx
	movq	%rdx, 24(%rax)
	movq	8(%rcx), %rdx
	movq	%rdx, 16(%rcx)
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rax)
	movq	(%rcx), %rdx
	movq	%rdx, 8(%rcx)
	movq	(%rax), %rcx
	movq	%rcx, 8(%rax)
	movl	36(%r13), %edi
	callq	_hb_fifo_size
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	8(%rcx), %rdx
	movq	%rdx, (%rax)
	addq	16(%r15), %rdx
	subq	8(%r15), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_14
LBB0_8:
	incl	40(%r13)
	leaq	-56(%rbp), %rdi
	callq	_hb_buffer_close
	jmp	LBB0_20
LBB0_12:
	movq	8(%r15), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	movq	16(%r15), %rax
	movq	8(%r13), %rcx
	movq	%rax, (%rcx)
LBB0_14:
	movl	36(%r13), %edi
	movq	%r15, %rsi
	callq	_hb_fifo_push
	movl	36(%r13), %edi
	callq	_hb_fifo_size
	cmpl	$4, %eax
	jge	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_16:
	movl	36(%r13), %edi
	callq	_hb_fifo_get
	movq	16(%r13), %rcx
	movl	12(%rcx), %edi
	movq	(%r13), %r8
	movq	8(%r13), %rdx
	testl	%edi, %edi
	jle	LBB0_18
## %bb.17:
	addq	%rdi, 24(%rdx)
	addl	%edi, 32(%r13)
	movslq	12(%rcx), %rdi
	movl	$0, 12(%rcx)
	incl	28(%r13)
	addq	%rdi, 16(%r8)
	movslq	8(%rcx), %rsi
	movq	%rsi, %rbx
	addq	%rdi, %rbx
	addq	%rbx, 16(%rdx)
	addl	%esi, 32(%r13)
	movslq	8(%rcx), %rsi
	movl	$0, 8(%rcx)
	incl	28(%r13)
	addq	%rdi, %rsi
	addq	%rsi, 8(%r8)
	movl	4(%rcx), %edi
	leal	(%rdi,%rsi), %ebx
	movslq	%ebx, %rbx
	addq	%rbx, 8(%rdx)
	addl	%edi, 32(%r13)
	movslq	4(%rcx), %rdi
	movslq	%esi, %rsi
	movl	$0, 4(%rcx)
	incl	28(%r13)
	addq	%rdi, %rsi
	addq	%rsi, (%r8)
	movl	(%rcx), %edi
	addl	%edi, %esi
	movslq	%esi, %rsi
	addq	%rsi, (%rdx)
	addl	%edi, 32(%r13)
	movl	$0, (%rcx)
	incl	28(%r13)
LBB0_18:
	movq	24(%r8), %rcx
	movq	%rcx, 8(%rax)
	movq	24(%rdx), %rcx
	movq	%rcx, 16(%rax)
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_adjust_frame_rate
LBB0_19:
	movq	%rax, (%r14)
LBB0_20:
	movq	_HB_FILTER_OK@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ## @HB_FILTER_DONE
	.comm	_HB_FILTER_OK,4,2               ## @HB_FILTER_OK
	.no_dead_strip	_hb_vfr_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_vfr_work
_hb_vfr_work:                           ; @hb_vfr_work
	.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, x2
	ldr	x20, [x0]
	ldr	x21, [x1]
	str	x21, [sp, #8]
	str	xzr, [x1]
	str	xzr, [x2]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	add	x0, sp, #4
	bl	_hb_buffer_list_clear
	ldr	w0, [x20, #36]
	bl	_hb_fifo_get
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	mov	w22, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20]
	ldr	x8, [x8, x22]
	str	x8, [x1, #8]
	ldr	x8, [x9, x22]
	str	x8, [x1, #16]
	mov	x0, x20
	bl	_adjust_frame_rate
	mov	x1, x0
	add	x0, sp, #4
	bl	_hb_buffer_list_append
	ldr	w0, [x20, #36]
	bl	_hb_fifo_get
	mov	x1, x0
	sub	x22, x22, #8
	cbnz	x0, LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_flush_frames
	mov	x1, x0
	add	x0, sp, #4
	bl	_hb_buffer_list_append
	add	x0, sp, #4
	mov	x1, x21
	bl	_hb_buffer_list_append
	add	x0, sp, #4
	bl	_hb_buffer_list_clear
	str	x0, [x19]
Lloh3:
	adrp	x8, _HB_FILTER_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_FILTER_DONE@GOTPAGEOFF]
	b	LBB0_21
LBB0_5:
	ldr	w0, [x20, #36]
	bl	_hb_fifo_size
	cmp	w0, #0
	b.le	LBB0_8
; %bb.6:
	ldr	x10, [x21, #8]
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	cmp	x10, x9
	b.le	LBB0_9
; %bb.7:
	sub	w9, w10, w9
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w11, w10, #2
	ldr	x12, [x20, #16]
	and	w10, w10, #0xfffffffc
	sub	w10, w11, w10
	add	w10, w10, w9
	fmov	s0, w11
	mov.s	v0[1], w10
	zip1.4s	v0, v0, v0
	mov.s	v0[2], w11
	ldr	q1, [x12]
	add.4s	v0, v0, v1
	str	q0, [x12]
	ldr	w10, [x20, #24]
	add	w9, w10, w9
	str	w9, [x20, #24]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
LBB0_9:
	ldr	x10, [x21, #16]
	cmp	x10, x9
	b.le	LBB0_12
LBB0_10:
	ldr	x9, [x20]
	ldr	x10, [x9, #16]
	str	x10, [x9, #24]
	ldr	x10, [x8, #16]
	str	x10, [x8, #24]
	ldr	x10, [x9, #8]
	str	x10, [x9, #16]
	ldr	x10, [x8, #8]
	str	x10, [x8, #16]
	ldr	x10, [x9]
	str	x10, [x9, #8]
	ldr	x9, [x8]
	str	x9, [x8, #8]
	ldr	w0, [x20, #36]
	bl	_hb_fifo_size
	cbz	w0, LBB0_13
; %bb.11:
	ldp	x9, x8, [x20]
	ldr	x10, [x8, #8]
	str	x10, [x9]
	ldp	x11, x9, [x21, #8]
	add	x9, x9, x10
	sub	x9, x9, x11
	str	x9, [x8]
	b	LBB0_14
LBB0_12:
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
	add	x0, sp, #8
	bl	_hb_buffer_close
	b	LBB0_20
LBB0_13:
	ldr	x8, [x21, #8]
	ldp	x9, x10, [x20]
	str	x8, [x9]
	ldr	x8, [x21, #16]
	str	x8, [x10]
LBB0_14:
	ldr	w0, [x20, #36]
	mov	x1, x21
	bl	_hb_fifo_push
	ldr	w0, [x20, #36]
	bl	_hb_fifo_size
	cmp	w0, #4
	b.ge	LBB0_16
; %bb.15:
	mov	x0, #0
	b	LBB0_19
LBB0_16:
	ldr	w0, [x20, #36]
	bl	_hb_fifo_get
	mov	x1, x0
	ldp	x10, x8, [x20, #8]
	ldr	w11, [x8, #12]
	ldr	x9, [x20]
	cmp	w11, #1
	b.lt	LBB0_18
; %bb.17:
	ldr	x12, [x10, #24]
	add	x12, x12, x11
	str	x12, [x10, #24]
	ldr	w12, [x20, #32]
	add	w11, w12, w11
	str	w11, [x20, #32]
	ldrsw	x11, [x8, #12]
	str	wzr, [x8, #12]
	ldp	w12, w13, [x20, #28]
	add	w12, w12, #1
	str	w12, [x20, #28]
	ldr	x12, [x9, #16]
	add	x12, x12, x11
	str	x12, [x9, #16]
	ldrsw	x12, [x8, #8]
	ldr	x14, [x10, #16]
	add	x15, x12, x11
	add	x14, x14, x15
	str	x14, [x10, #16]
	add	w12, w13, w12
	str	w12, [x20, #32]
	ldrsw	x12, [x8, #8]
	str	wzr, [x8, #8]
	ldp	w13, w14, [x20, #28]
	add	w13, w13, #1
	str	w13, [x20, #28]
	ldr	x13, [x9, #8]
	add	x11, x12, x11
	add	x12, x13, x11
	str	x12, [x9, #8]
	ldr	w12, [x8, #4]
	add	w13, w12, w11
	ldr	x15, [x10, #8]
	add	x13, x15, w13, sxtw
	str	x13, [x10, #8]
	add	w12, w14, w12
	str	w12, [x20, #32]
	ldrsw	x12, [x8, #4]
	add	x11, x12, w11, sxtw
	str	wzr, [x8, #4]
	ldp	w12, w13, [x20, #28]
	add	w12, w12, #1
	str	w12, [x20, #28]
	ldr	x12, [x9]
	add	x12, x12, x11
	str	x12, [x9]
	ldr	w12, [x8]
	add	w11, w12, w11
	ldr	x14, [x10]
	add	x11, x14, w11, sxtw
	str	x11, [x10]
	add	w11, w13, w12
	str	w11, [x20, #32]
	str	wzr, [x8]
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
LBB0_18:
	ldr	x8, [x9, #24]
	str	x8, [x1, #8]
	ldr	x8, [x10, #24]
	str	x8, [x1, #16]
	mov	x0, x20
	bl	_adjust_frame_rate
LBB0_19:
	str	x0, [x19]
LBB0_20:
Lloh5:
	adrp	x8, _HB_FILTER_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HB_FILTER_OK@GOTPAGEOFF]
LBB0_21:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ; @HB_FILTER_DONE
	.comm	_HB_FILTER_OK,4,2               ; @HB_FILTER_OK
	.no_dead_strip	_hb_vfr_work
.subsections_via_symbols
