	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivo_read_header
_vivo_read_header:                      ## @vivo_read_header
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_50
## %bb.1:
	testq	%r13, %r13
	je	LBB0_50
## %bb.2:
	movq	%rax, %r12
	movq	(%rax), %rax
	movl	$8000, (%rax)                   ## imm = 0x1F40
	movq	%rbx, %rdi
	callq	_vivo_get_packet_header
	testl	%eax, %eax
	js	LBB0_49
## %bb.3:
	leaq	4(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	16(%r15), %rcx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	cmpq	$0, 32(%r15)
	jne	LBB0_43
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r15)
	jne	LBB0_43
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edx
	cmpl	$1024, %edx                     ## imm = 0x400
	jle	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	8(%rbx), %edi
	movslq	(%r15), %rsi
	callq	_avio_skip
LBB0_42:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_vivo_get_packet_header
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_49
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %edi
	movq	8(%r15), %rsi
	callq	_avio_read
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	movb	$0, (%rax,%rcx)
	movq	8(%r15), %rax
	cmpb	$0, (%rax)
	je	LBB0_42
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	%rax, %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=3
	cmpb	$0, (%rcx)
	movq	%rcx, %r13
	je	LBB0_11
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	movb	$0, (%rax)
	leaq	2(%rax), %rcx
	cmpq	%r13, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	movl	(%r14), %esi
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_av_log
	movq	%r12, %rdi
	leaq	-128(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	-128(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_18
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_40:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_41
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_av_log
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	leaq	L_.str.14(%rip), %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_sscanf
	cmpl	$1, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_41
	jmp	LBB0_34
LBB0_36:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-176(%rbp), %rdi
	movq	%r12, %rsi
	movl	$10000, %edx                    ## imm = 0x2710
	movq	%rbx, %r8
	callq	_av_parse_ratio
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_41
## %bb.37:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-160(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-176(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-152(%rbp), %rdi
	callq	_av_inv_q
	movq	-144(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-136(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_41:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpb	$0, (%rax)
	jne	LBB0_9
	jmp	LBB0_42
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	jmp	LBB0_32
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	jmp	LBB0_32
LBB0_25:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_32
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_50:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_43:
	movq	(%r12), %rax
	movslq	(%rax), %rcx
	movq	%r12, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movq	%r13, %rdi
	movl	$64, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_avpriv_set_pts_info
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_45
## %bb.44:
	movl	$1000, %esi                     ## imm = 0x3E8
	movl	$1, %edx
	callq	_av_rescale
	movl	%eax, (%rbx)
LBB0_45:
	movq	$0, 8(%r13)
	movq	(%r13), %rax
	movq	$0, 48(%rax)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpl	$1, (%rcx)
	jne	LBB0_46
## %bb.47:
	movq	_AV_CODEC_ID_H263@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r12), %rax
	movl	%ecx, 56(%rax)
	movabsq	$103079215112, %rcx             ## imm = 0x1800000008
	movq	%rcx, 24(%rax)
	movl	$6400, 32(%rax)                 ## imm = 0x1900
	jmp	LBB0_48
LBB0_46:
	movq	(%r12), %rax
LBB0_48:
	movq	$0, 8(%r12)
	movq	$0, 48(%rax)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movl	$1, 36(%rax)
	xorl	%eax, %eax
LBB0_49:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_49
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too big header, skipping\n"

L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"missing colon in key:value pair '%s'\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"header: '%s' = '%s'\n"

L_.str.4:                               ## @.str.4
	.asciz	"got a valid integer (%ld)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Duration"

L_.str.6:                               ## @.str.6
	.asciz	"Width"

L_.str.7:                               ## @.str.7
	.asciz	"Height"

L_.str.8:                               ## @.str.8
	.asciz	"TimeUnitNumerator"

L_.str.9:                               ## @.str.9
	.asciz	"TimeUnitDenominator"

L_.str.10:                              ## @.str.10
	.asciz	"SamplingFrequency"

L_.str.11:                              ## @.str.11
	.asciz	"NominalBitrate"

L_.str.12:                              ## @.str.12
	.asciz	"Length"

L_.str.13:                              ## @.str.13
	.asciz	"Version"

L_.str.14:                              ## @.str.14
	.asciz	"Vivo/%d."

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.15:                              ## @.str.15
	.asciz	"FPS"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_H263,4,2           ## @AV_CODEC_ID_H263
	.comm	_AV_CODEC_ID_G723_1,4,2         ## @AV_CODEC_ID_G723_1
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_vivo_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vivo_read_header
lCPI0_0:
	.long	8                               ; 0x8
	.long	24                              ; 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vivo_read_header:                      ; @vivo_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	mov	x20, x0
	ldr	x24, [x0, #16]
	mov	x1, #0
	bl	_avformat_new_stream
	mov	x21, x0
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_46
; %bb.1:
	cbz	x21, LBB0_46
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
	mov	w9, #8000
	str	w9, [x8]
	mov	x0, x20
	bl	_vivo_get_packet_header
	tbnz	w0, #31, LBB0_53
; %bb.3:
	mov	x28, #0
	mov	x23, #0
	add	x8, x20, #4
	stp	x8, xzr, [sp, #64]              ; 16-byte Folded Spill
Lloh0:
	adrp	x25, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	adrp	x27, _AV_LOG_DEBUG@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AV_LOG_DEBUG@GOTPAGEOFF]
	add	x22, x24, #16
Lloh4:
	adrp	x26, l_.str@PAGE
Lloh5:
	add	x26, x26, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_47
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #24]
	cbnz	x8, LBB0_47
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	cmp	w2, #1024
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x26
	bl	_av_log
	ldr	w0, [x20, #8]
	ldrsw	x1, [x24]
	bl	_avio_skip
	mov	x0, x20
	bl	_vivo_get_packet_header
	tbz	w0, #31, LBB0_4
	b	LBB0_53
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [sp, #56]                  ; 8-byte Folded Spill
	ldr	w0, [x20, #8]
	ldr	x1, [x24, #8]
	bl	_avio_read
	ldr	x8, [x24, #8]
	ldrsw	x9, [x24]
	strb	wzr, [x8, x9]
	ldr	x23, [x24, #8]
	ldrb	w8, [x23]
	cbz	w8, LBB0_45
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	str	x28, [sp, #48]                  ; 8-byte Folded Spill
	mov	x28, x23
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w1, [x25]
	str	x28, [sp]
	mov	x0, x20
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	ldrb	w8, [x23]
	mov	x28, x23
	cbz	w8, LBB0_44
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x28
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_44
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x23, x0
	strb	wzr, [x23], #2
	cmp	x0, x28
	b.eq	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x0, x28
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x22, x0
	strb	wzr, [x22], #1
	ldr	w1, [x27]
	stp	x28, x22, [sp]
	mov	x0, x20
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	sub	x1, x29, #96
	mov	x0, x22
	mov	w2, #10
	bl	_strtol
	ldur	x8, [x29, #-96]
	ldrb	w8, [x8]
	cbz	w8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	w9, #0
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
	b	LBB0_34
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=2
Lloh12:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	str	x0, [sp]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x20
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
	mov	x0, x28
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh29:
	adrp	x1, l_.str.11@PAGE
Lloh30:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_32
; %bb.25:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh31:
	adrp	x1, l_.str.12@PAGE
Lloh32:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_33
LBB0_26:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	b	LBB0_34
LBB0_27:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	x9, [x8, #8]
	b	LBB0_32
LBB0_28:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	x9, [x8, #16]
	b	LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	smulh	x8, x9, x8
	asr	x9, x8, #7
	add	x8, x9, x8, lsr #63
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	b	LBB0_34
LBB0_31:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x19]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w9, [x8]
LBB0_32:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	w8, #1
LBB0_33:                                ;   in Loop: Header=BB0_10 Depth=2
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
LBB0_34:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh33:
	adrp	x1, l_.str.13@PAGE
Lloh34:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_39
; %bb.35:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
Lloh35:
	adrp	x1, l_.str.15@PAGE
Lloh36:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_40
; %bb.36:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	x1, x28
	mov	x2, x22
	mov	w3, #0
	bl	_av_dict_set
LBB0_38:                                ;   in Loop: Header=BB0_10 Depth=2
	ldp	x22, x28, [sp, #40]             ; 16-byte Folded Reload
	b	LBB0_43
LBB0_39:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x22
Lloh37:
	adrp	x1, l_.str.14@PAGE
Lloh38:
	add	x1, x1, l_.str.14@PAGEOFF
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	mov	x2, x22
	bl	_sscanf
	cmp	w0, #1
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
	b.eq	LBB0_43
	b	LBB0_54
LBB0_40:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w3, [x25]
	sub	x0, x29, #120
	mov	x1, x22
	mov	w2, #10000
	mov	x4, x20
	bl	_av_parse_ratio
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
	cbnz	w0, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_10 Depth=2
	ldur	q0, [x29, #-120]
	str	q0, [sp, #80]
	ldur	x8, [x29, #-104]
	str	x8, [sp, #96]
	add	x8, sp, #112
	add	x0, sp, #80
	bl	_av_inv_q
	ldr	x8, [sp, #120]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #128]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
LBB0_42:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
LBB0_43:                                ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w8, [x23]
	cbnz	w8, LBB0_10
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x22, x28, [sp, #40]             ; 16-byte Folded Reload
LBB0_45:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_vivo_get_packet_header
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	tbz	w0, #31, LBB0_4
	b	LBB0_53
LBB0_46:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	b	_AVERROR
LBB0_47:
	ldr	x8, [x19]
	ldrsw	x3, [x8]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	x0, x21
	mov	w1, #64
	mov	x2, x23
	ldr	x3, [sp, #72]                   ; 8-byte Folded Reload
	bl	_avpriv_set_pts_info
	cbz	x28, LBB0_49
; %bb.48:
	mov	x0, x28
	mov	w1, #1000
	mov	w2, #1
	bl	_av_rescale
	str	w0, [x20]
LBB0_49:
	str	xzr, [x21, #8]
	ldr	x8, [x21]
	str	xzr, [x8, #48]
Lloh42:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh43:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	str	w9, [x8, #40]
	ldr	w9, [x22]
	cmp	w9, #1
	b.ne	LBB0_51
; %bb.50:
Lloh45:
	adrp	x9, _AV_CODEC_ID_H263@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AV_CODEC_ID_H263@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	str	w9, [x8, #56]
Lloh48:
	adrp	x8, _AV_CODEC_ID_G723_1@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AV_CODEC_ID_G723_1@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x8]
	ldr	x8, [x19]
	str	w9, [x8, #56]
Lloh51:
	adrp	x9, lCPI0_0@PAGE
Lloh52:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #24]
	mov	w9, #6400
	str	w9, [x8, #32]
	b	LBB0_52
LBB0_51:
	ldr	x8, [x19]
LBB0_52:
	mov	w0, #0
	str	xzr, [x19, #8]
	str	xzr, [x8, #48]
Lloh53:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	mov	w10, #1
	stp	w10, w9, [x8, #36]
LBB0_53:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_54:
Lloh56:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	b	LBB0_53
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdr	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too big header, skipping\n"

l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"missing colon in key:value pair '%s'\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"header: '%s' = '%s'\n"

l_.str.4:                               ; @.str.4
	.asciz	"got a valid integer (%ld)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Duration"

l_.str.6:                               ; @.str.6
	.asciz	"Width"

l_.str.7:                               ; @.str.7
	.asciz	"Height"

l_.str.8:                               ; @.str.8
	.asciz	"TimeUnitNumerator"

l_.str.9:                               ; @.str.9
	.asciz	"TimeUnitDenominator"

l_.str.10:                              ; @.str.10
	.asciz	"SamplingFrequency"

l_.str.11:                              ; @.str.11
	.asciz	"NominalBitrate"

l_.str.12:                              ; @.str.12
	.asciz	"Length"

l_.str.13:                              ; @.str.13
	.asciz	"Version"

l_.str.14:                              ; @.str.14
	.asciz	"Vivo/%d."

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.15:                              ; @.str.15
	.asciz	"FPS"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_H263,4,2           ; @AV_CODEC_ID_H263
	.comm	_AV_CODEC_ID_G723_1,4,2         ; @AV_CODEC_ID_G723_1
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_vivo_read_header
.subsections_via_symbols
