	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vbv_update                  ## -- Begin function ff_vbv_update
	.p2align	4, 0x90
_ff_vbv_update:                         ## @ff_vbv_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	16(%rdi), %rdi
	callq	_get_fps
	movq	16(%r13), %rax
	movl	(%rax), %r15d
	movsd	8(%rax), %xmm2                  ## xmm2 = mem[0],zero
	divsd	%xmm0, %xmm2
	movsd	16(%rax), %xmm1                 ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movl	24(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movapd	%xmm2, %xmm0
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_ff_dlog
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.1:
	movl	24(%r13), %ebx
	subl	%r12d, %ebx
	movl	%ebx, 24(%r13)
	jns	LBB0_6
## %bb.2:
	movq	16(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_av_log
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	ucomisd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_5
## %bb.3:
	movq	(%r13), %rax
	movq	16(%r13), %rdi
	cmpq	24(%rdi), %rax
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movl	$0, 24(%r13)
LBB0_6:
	notl	%ebx
	addl	%r15d, %ebx
	movl	%ebx, %edi
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_av_clip
	addl	24(%r13), %eax
	movl	%eax, 24(%r13)
	subl	%r15d, %eax
	jle	LBB0_11
## %bb.7:
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_ceil
	movl	%eax, %r14d
	cmpl	$3, %eax
	jg	LBB0_9
## %bb.8:
	movq	8(%r13), %rax
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$4, %eax
	cmovel	%eax, %r14d
LBB0_9:
	leal	(,%r14,8), %eax
	subl	%eax, 24(%r13)
	movq	16(%r13), %rdi
	movq	_FF_DEBUG_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rdi)
	je	LBB0_11
## %bb.10:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %f %d %f %f\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"rc buffer underflow\n"

L_.str.2:                               ## @.str.2
	.asciz	"max bitrate possibly too small or try trellis with large lmax or increase qmax\n"

	.comm	_AV_CODEC_ID_MPEG4,8,3          ## @AV_CODEC_ID_MPEG4
	.comm	_FF_DEBUG_RC,4,2                ## @FF_DEBUG_RC
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"stuffing %d bytes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vbv_update                  ; -- Begin function ff_vbv_update
	.p2align	2
_ff_vbv_update:                         ; @ff_vbv_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_get_fps
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	ldp	d1, d2, [x8, #8]
	fdiv	d8, d1, d0
	ldr	w3, [x19, #24]
	fdiv	d9, d2, d0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x4, x21
	fmov	d0, d8
	fmov	d1, d9
	bl	_ff_dlog
	cbz	w20, LBB0_12
; %bb.1:
	ldr	w8, [x19, #24]
	subs	w8, w8, w21
	str	w8, [x19, #24]
	b.pl	LBB0_6
; %bb.2:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x22, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AV_LOG_ERROR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	scvtf	d0, w21
	fcmp	d9, d0
	b.pl	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x0, [x19, #16]
	ldr	x9, [x0, #24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x22]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
LBB0_5:
	mov	w8, #0
	str	wzr, [x19, #24]
LBB0_6:
	mvn	w8, w8
	add	w0, w20, w8
	fmov	d0, d8
	fmov	d1, d9
	bl	_av_clip
	ldr	w8, [x19, #24]
	add	w9, w8, w0
	subs	w8, w9, w20
	str	w9, [x19, #24]
	b.le	LBB0_11
; %bb.7:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_ceil
	mov	x20, x0
	cmp	w0, #3
	b.gt	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _AV_CODEC_ID_MPEG4@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG4@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #4
	csel	w20, w8, w20, eq
LBB0_9:
	ldr	w8, [x19, #24]
	sub	w8, w8, w20, lsl #3
	str	w8, [x19, #24]
	ldr	x0, [x19, #16]
	ldr	w8, [x0, #32]
Lloh11:
	adrp	x9, _FF_DEBUG_RC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FF_DEBUG_RC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh14:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %f %d %f %f\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"rc buffer underflow\n"

l_.str.2:                               ; @.str.2
	.asciz	"max bitrate possibly too small or try trellis with large lmax or increase qmax\n"

	.comm	_AV_CODEC_ID_MPEG4,8,3          ; @AV_CODEC_ID_MPEG4
	.comm	_FF_DEBUG_RC,4,2                ; @FF_DEBUG_RC
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"stuffing %d bytes\n"

.subsections_via_symbols
