	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siff_parse_vbv1
_siff_parse_vbv1:                       ## @siff_parse_vbv1
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_avio_rl32
	movq	_TAG_VBHD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_avio_rb32
	cmpl	$32, %eax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_avio_rl16
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, 8(%r14)
	movl	4(%r14), %ecx
	sarl	$3, %ecx
	imull	%eax, %ecx
	movl	%ecx, 12(%r14)
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_avio_skip
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %r15
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movl	%eax, 20(%rcx)
	movq	_AV_CODEC_ID_VB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	$86, %edi
	movl	$66, %esi
	movl	$86, %edx
	movl	$49, %ecx
	callq	_MKTAG
	movq	8(%r15), %rcx
	movl	%eax, 12(%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx)
	movl	%r13d, 4(%rcx)
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$1, %edx
	movl	$12, %ecx
	callq	_avpriv_set_pts_info
	movq	$0, 32(%r14)
	movl	$1, 16(%r14)
	xorl	%eax, %eax
	cmpl	$0, 8(%r14)
	setne	%al
	movl	%eax, 20(%r14)
	movl	$-1, 24(%r14)
	je	LBB0_11
## %bb.13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_create_audio_stream            ## TAILCALL
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_VBHD,8,3                   ## @TAG_VBHD
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Header chunk is missing\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Header chunk size is incorrect\n"

L_.str.2:                               ## @.str.2
	.asciz	"Incorrect header version\n"

L_.str.3:                               ## @.str.3
	.asciz	"File contains no frames ???\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_VB,4,2             ## @AV_CODEC_ID_VB
	.comm	_AV_PIX_FMT_PAL8,4,2            ## @AV_PIX_FMT_PAL8
	.no_dead_strip	_siff_parse_vbv1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siff_parse_vbv1
_siff_parse_vbv1:                       ; @siff_parse_vbv1
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_avio_rl32
Lloh0:
	adrp	x8, _TAG_VBHD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAG_VBHD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x22
	bl	_avio_rb32
	cmp	w0, #32
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x22
	bl	_avio_rl16
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x22
	bl	_avio_rl16
	mov	x21, x0
	mov	x0, x22
	bl	_avio_rl16
	mov	x23, x0
	mov	x0, x22
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x22
	bl	_avio_rl16
	str	w0, [x20]
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x22
	bl	_avio_rl16
	str	w0, [x20, #4]
	mov	x0, x22
	bl	_avio_rl16
	ldr	w8, [x20, #4]
	asr	w8, w8, #3
	mul	w8, w8, w0
	stp	w0, w8, [x20, #8]
	mov	x0, x22
	mov	w1, #16
	bl	_avio_skip
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.5:
	mov	x22, x0
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
Lloh6:
	adrp	x10, _AV_CODEC_ID_VB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_VB@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
	mov	w0, #86
	mov	w1, #66
	mov	w2, #86
	mov	w3, #49
	bl	_MKTAG
	ldr	x8, [x22, #8]
	stp	w21, w23, [x8]
Lloh9:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w0, [x8, #8]
	ldr	w8, [x20]
	stp	w8, w8, [x22]
	mov	w21, #1
	mov	x0, x22
	mov	w1, #16
	mov	w2, #1
	mov	w3, #12
	bl	_avpriv_set_pts_info
	str	xzr, [x20, #32]
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cset	w9, ne
	stp	w21, w9, [x20, #16]
	mov	w9, #-1
	str	w9, [x20, #24]
	cbz	w8, LBB0_14
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	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	_create_audio_stream
LBB0_7:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_av_log
Lloh32:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
LBB0_12:
	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_13:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_14:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_VBHD,8,3                   ; @TAG_VBHD
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Header chunk is missing\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Header chunk size is incorrect\n"

l_.str.2:                               ; @.str.2
	.asciz	"Incorrect header version\n"

l_.str.3:                               ; @.str.3
	.asciz	"File contains no frames ???\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_VB,4,2             ; @AV_CODEC_ID_VB
	.comm	_AV_PIX_FMT_PAL8,4,2            ; @AV_PIX_FMT_PAL8
	.no_dead_strip	_siff_parse_vbv1
.subsections_via_symbols
