	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function webm_dash_manifest_read_header
_webm_dash_manifest_read_header:        ## @webm_dash_manifest_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_matroska_read_header
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movl	$-1, %r15d
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, 20(%rbx)
	je	LBB0_3
## %bb.4:
	movq	24(%rbx), %r12
	cmpl	$0, 8(%r12)
                                        ## implicit-def: $r14
	jne	LBB0_7
## %bb.5:
	movl	24(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_av_asprintf
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	%r14, %rdi
	callq	_av_free
	movl	16(%rbx), %edi
	callq	_avio_tell
	movq	%rax, %r14
	addq	$-5, %r14
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	_INITIALIZATION_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
LBB0_7:
	movq	(%rbx), %r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdi
	movq	_FILENAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	1(%rax), %rdx
	testq	%rax, %rax
	cmoveq	%r15, %rdx
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	16(%r12), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdi
	movq	_TRACK_NUMBER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	cmpl	$0, 8(%r12)
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_webm_dash_manifest_cues
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	jle	LBB0_12
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	callq	_matroska_read_close
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movl	%r14d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read file headers\n"

L_.str.1:                               ## @.str.1
	.asciz	"No streams found\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"%g"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DURATION,4,2                   ## @DURATION
	.comm	_INITIALIZATION_RANGE,4,2       ## @INITIALIZATION_RANGE
	.comm	_FILENAME,4,2                   ## @FILENAME
	.comm	_TRACK_NUMBER,4,2               ## @TRACK_NUMBER
L_.str.3:                               ## @.str.3
	.asciz	"Error parsing Cues\n"

	.comm	_BANDWIDTH,4,2                  ## @BANDWIDTH
	.no_dead_strip	_webm_dash_manifest_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function webm_dash_manifest_read_header
_webm_dash_manifest_read_header:        ; @webm_dash_manifest_read_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_matroska_read_header
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w20, #-1
	b	LBB0_12
LBB0_2:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_11
; %bb.3:
	ldr	x22, [x19, #24]
	ldr	w8, [x22, #8]
                                        ; implicit-def: $x20
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	w1, [x22, #24]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_av_asprintf
	cbz	x0, LBB0_13
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _DURATION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DURATION@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #0
	bl	_av_dict_set
	mov	x0, x20
	bl	_av_free
	ldr	w0, [x19, #16]
	bl	_avio_tell
	sub	x20, x0, #5
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh10:
	adrp	x8, _INITIALIZATION_RANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INITIALIZATION_RANGE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #0
	bl	_av_dict_set_int
LBB0_6:
	ldr	x21, [x19]
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _FILENAME@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FILENAME@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	cmp	x0, #0
	csinc	x2, x21, x0, eq
	mov	x0, x8
	mov	w3, #0
	bl	_av_dict_set
	ldr	x8, [x22, #16]
	ldr	x9, [x19, #8]
	ldr	x0, [x9]
Lloh16:
	adrp	x9, _TRACK_NUMBER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TRACK_NUMBER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	ldr	x2, [x8]
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_webm_dash_manifest_cues
	tbnz	w0, #31, LBB0_14
LBB0_8:
	ldr	x2, [x22]
	cmp	x2, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh19:
	adrp	x8, _BANDWIDTH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BANDWIDTH@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w3, #0
	bl	_av_dict_set_int
LBB0_10:
	mov	w20, #0
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_matroska_read_close
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh27:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_14:
	mov	x20, x0
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str.3@PAGE
Lloh37:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_12
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read file headers\n"

l_.str.1:                               ; @.str.1
	.asciz	"No streams found\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"%g"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DURATION,4,2                   ; @DURATION
	.comm	_INITIALIZATION_RANGE,4,2       ; @INITIALIZATION_RANGE
	.comm	_FILENAME,4,2                   ; @FILENAME
	.comm	_TRACK_NUMBER,4,2               ; @TRACK_NUMBER
l_.str.3:                               ; @.str.3
	.asciz	"Error parsing Cues\n"

	.comm	_BANDWIDTH,4,2                  ; @BANDWIDTH
	.no_dead_strip	_webm_dash_manifest_read_header
.subsections_via_symbols
