	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movl	32(%r12), %edi
	callq	_avio_feof
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	movq	$0, 24(%r12)
	movslq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	8(%r12), %rcx
	movq	-8(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movl	%eax, 16(%r12)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	40(%r12), %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	movq	%r13, %rsi
	callq	_read_tag
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %edi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %edi
	movq	%r15, %rsi
	callq	_get_bprint_line
	movl	-48(%rbp), %ebx
	movq	_ID_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r14d
	movq	_ID_CHAPTER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_read_chapter
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	_AV_CODEC_ID_FFMETADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.comm	_ID_STREAM,4,2                  ## @ID_STREAM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_DATA,4,2          ## @AVMEDIA_TYPE_DATA
	.comm	_AV_CODEC_ID_FFMETADATA,4,2     ## @AV_CODEC_ID_FFMETADATA
	.comm	_ID_CHAPTER,4,2                 ## @ID_CHAPTER
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #0
	bl	_av_bprint_init
	ldr	w0, [x19, #32]
	bl	_avio_feof
	cbz	w0, LBB0_3
LBB0_1:
	add	x0, sp, #8
	mov	x1, #0
	bl	_av_bprint_finalize
	str	xzr, [x19, #24]
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.2:
	ldr	x9, [x19, #8]
	sub	w8, w8, #1
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w1, w0, [x8]
Lloh3:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_av_rescale_q
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_14
LBB0_3:
	add	x20, x19, #40
Lloh6:
	adrp	x23, _ID_STREAM@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ID_STREAM@GOTPAGEOFF]
Lloh8:
	adrp	x24, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
Lloh10:
	adrp	x25, _AV_CODEC_ID_FFMETADATA@GOTPAGE
Lloh11:
	ldr	x25, [x25, _AV_CODEC_ID_FFMETADATA@GOTPAGEOFF]
Lloh12:
	adrp	x26, _ID_CHAPTER@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ID_CHAPTER@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #8]
	mov	x1, x20
	bl	_read_tag
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #32]
	bl	_avio_feof
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	add	x1, sp, #8
	bl	_get_bprint_line
	ldr	w21, [sp, #8]
	ldr	w22, [x23]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcmp
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w21, [sp, #8]
	ldr	w22, [x26]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcmp
	cbnz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_read_chapter
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	ldr	w8, [x24]
	ldr	x9, [x0, #8]
	ldr	w10, [x25]
	stp	w10, w8, [x9]
	b	LBB0_5
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.comm	_ID_STREAM,4,2                  ; @ID_STREAM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_DATA,4,2          ; @AVMEDIA_TYPE_DATA
	.comm	_AV_CODEC_ID_FFMETADATA,4,2     ; @AV_CODEC_ID_FFMETADATA
	.comm	_ID_CHAPTER,4,2                 ; @ID_CHAPTER
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.no_dead_strip	_read_header
.subsections_via_symbols
