	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realtext_read_header
_realtext_read_header:                  ## @realtext_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	$56, %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	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, %r14
	movb	$0, -41(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_read_ts
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edx
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ff_text_init_avio
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$100, %ecx
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	movq	_AV_CODEC_ID_REALTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	leaq	-72(%rbp), %rdi
	callq	_ff_text_eof
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_subtitles_queue_finalize
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-72(%rbp), %r13
	leaq	-64(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, 4(%r13)
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_av_bprint_clear
	movq	%r13, %rdi
	callq	_ff_text_eof
	testl	%eax, %eax
	jne	LBB0_2
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ff_text_pos
	movq	%rax, %r14
	cmpb	$1, -41(%rbp)
	adcq	$-1, %r14
	movq	%r13, %rdi
	movq	%r15, %rsi
	leaq	-41(%rbp), %rdx
	callq	_ff_smil_extract_next_text_chunk
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-64(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$7, %edx
	callq	_av_strncasecmp
	movl	-64(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %r12
	leaq	L_.str.3(%rip), %rsi
	movl	$5, %edx
	callq	_av_strncasecmp
	movl	%eax, %ebx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	-64(%rbp), %esi
	movq	-56(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_subtitles_queue_insert
	testq	%rax, %rax
	je	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r13
	movl	-64(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ff_smil_get_attr_ptr
	movq	%rax, %rbx
	movl	-64(%rbp), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_ff_smil_get_attr_ptr
	movq	%rax, %rdi
	movq	%r14, 8(%r13)
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_read_ts
	movq	%r14, %rdi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.2(%rip), %rsi
	callq	_ff_smil_get_attr_ptr
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_read_ts
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-64(%rbp), %edi
	callq	_av_strdup
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax
	incq	%rax
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, (%r13)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_read_ts
	subl	(%r13), %eax
	jmp	LBB0_22
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_24:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_25:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	testl	%ebx, %ebx
	jns	LBB0_4
## %bb.26:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_subtitles_queue_clean
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"60"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_REALTEXT,4,2       ## @AV_CODEC_ID_REALTEXT
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
L_.str.1:                               ## @.str.1
	.asciz	"<window"

L_.str.2:                               ## @.str.2
	.asciz	"duration"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.3:                               ## @.str.3
	.asciz	"<time"

L_.str.4:                               ## @.str.4
	.asciz	"begin"

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

	.no_dead_strip	_realtext_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realtext_read_header
_realtext_read_header:                  ; @realtext_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, [x0, #8]
	mov	x1, #0
	bl	_avformat_new_stream
	mov	x21, x0
	strb	wzr, [sp, #15]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_read_ts
	mov	x22, x0
	ldr	w2, [x20]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ff_text_init_avio
	cbz	x21, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	w1, #64
	mov	w2, #1
	mov	w3, #100
	bl	_avpriv_set_pts_info
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _AV_CODEC_ID_REALTEXT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_CODEC_ID_REALTEXT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
Lloh8:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	w1, #0
	bl	_av_bprint_init
	add	x0, sp, #8
	bl	_ff_text_eof
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_ff_subtitles_queue_finalize
	add	x0, sp, #16
	mov	x1, #0
	bl	_av_bprint_finalize
	mov	w20, #0
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
Lloh14:
	adrp	x23, l_.str.1@PAGE
Lloh15:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh16:
	adrp	x25, l_.str.3@PAGE
Lloh17:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	w8, [x28, #4]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #16
	bl	_av_bprint_clear
	add	x0, sp, #8
	bl	_ff_text_eof
	cbnz	w0, LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_ff_text_pos
	mov	x26, x0
	ldrb	w8, [sp, #15]
	cmp	w8, #0
	cset	w24, ne
	add	x0, sp, #8
	add	x1, sp, #16
	add	x2, sp, #15
	bl	_ff_smil_extract_next_text_chunk
	cbz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #16]
	mov	x1, x23
	mov	w2, #7
	bl	_av_strncasecmp
	mov	x8, x0
	ldr	w0, [sp, #16]
	cbz	w8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x25
	mov	w2, #5
	bl	_av_strncasecmp
	mov	x27, x0
	cmp	w0, #0
	cset	w3, ne
	ldr	w1, [sp, #16]
	ldr	x2, [sp, #24]
	mov	x0, x19
	bl	_ff_subtitles_queue_insert
	cbz	x0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w27, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x0
	sub	x24, x26, x24
	ldr	w0, [sp, #16]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ff_smil_get_attr_ptr
	mov	x27, x0
	ldr	w0, [sp, #16]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ff_smil_get_attr_ptr
	mov	x26, x0
	str	x24, [x28, #8]
	cbz	x27, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
	bl	_read_ts
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ff_smil_get_attr_ptr
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_read_ts
	mov	x22, x0
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #16]
	bl	_av_strdup
	ldr	x8, [x21]
	str	x0, [x8, #8]
	cbz	x0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [sp, #24]
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	str	w0, [x28]
	mov	x8, x22
	cbz	x26, LBB0_6
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	bl	_read_ts
	ldr	w8, [x28]
	sub	w8, w0, w8
	b	LBB0_6
LBB0_22:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_24
LBB0_23:
Lloh27:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
LBB0_24:
	add	x0, sp, #16
	mov	x1, #0
	bl	_av_bprint_finalize
	tbz	w20, #31, LBB0_4
; %bb.25:
	mov	x0, x19
	bl	_ff_subtitles_queue_clean
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"60"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_REALTEXT,4,2       ; @AV_CODEC_ID_REALTEXT
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
l_.str.1:                               ; @.str.1
	.asciz	"<window"

l_.str.2:                               ; @.str.2
	.asciz	"duration"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.3:                               ; @.str.3
	.asciz	"<time"

l_.str.4:                               ; @.str.4
	.asciz	"begin"

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

	.no_dead_strip	_realtext_read_header
.subsections_via_symbols
