	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srt_read_header
_srt_read_header:                       ## @srt_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
	movl	$8248, %eax                     ## imm = 0x2038
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, %rbx
	movl	(%r15), %edx
	leaq	-8260(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_text_init_avio
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_AV_CODEC_ID_SUBRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-8248(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movb	$0, -8240(%rbp)
	leaq	-8260(%rbp), %rdi
	callq	_ff_text_eof
	testl	%eax, %eax
	je	LBB0_3
LBB0_26:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ff_subtitles_queue_finalize
LBB0_27:
	leaq	-8248(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	jmp	LBB0_28
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%r12d, %eax
	addq	$8248, %rsp                     ## imm = 0x2038
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, -8280(%rbp)               ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	-8260(%rbp), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-8280(%rbp), %rdi               ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -8248(%rbp)
	sete	%al
	xorb	$1, %cl
	andb	%al, %cl
	movzbl	%cl, %r8d
	leaq	-8248(%rbp), %rsi
	leaq	-8240(%rbp), %rdx
	leaq	-8256(%rbp), %rcx
	callq	_add_event
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, -8256(%rbp)
	movl	$1, %r13d
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_ff_text_eof
	testl	%eax, %eax
	jne	LBB0_24
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ff_text_pos
	movl	%eax, %r14d
	movq	%rbx, %rdi
	leaq	-4144(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_ff_subtitles_read_line
	testl	%eax, %eax
	js	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, -4144(%rbp)
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-4144(%rbp), %rdi
	leaq	-8288(%rbp), %rsi
	callq	_get_event_info
	testq	%rax, %rax
	js	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, -8272(%rbp)
	leaq	-8240(%rbp), %rdi
	leaq	-8272(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	xorl	%ecx, %ecx
	testq	%rax, %rax
	js	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-8272(%rbp), %rax
	testq	%rax, %rax
	movq	-8280(%rbp), %rdi               ## 8-byte Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%rax)
	sete	%cl
	jmp	LBB0_21
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, -8240(%rbp)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-8248(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-8240(%rbp), %rdx
	callq	_av_bprintf
	movb	$0, -8240(%rbp)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-4144(%rbp), %r14
	movq	%r14, %rdi
	leaq	-8272(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-8272(%rbp), %r14
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-8240(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcpy
	jmp	LBB0_23
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-8248(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_av_bprintf
	jmp	LBB0_23
LBB0_24:
	testl	%r13d, %r13d
	movq	-8280(%rbp), %r14               ## 8-byte Reload
	je	LBB0_26
## %bb.25:
	leaq	-8248(%rbp), %rsi
	leaq	-8240(%rbp), %rdx
	leaq	-8256(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_add_event
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_26
	jmp	LBB0_27
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_SUBRIP,4,2         ## @AV_CODEC_ID_SUBRIP
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.no_dead_strip	_srt_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srt_read_header
_srt_read_header:                       ; @srt_read_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w9, #8240
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #48
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x20, [x0, #8]
	mov	x1, #0
	bl	_avformat_new_stream
	mov	x21, x0
	ldr	w2, [x19]
	add	x1, sp, #20
	mov	x0, x19
	bl	_ff_text_init_avio
	cbz	x21, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	w1, #64
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
Lloh5:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x21]
Lloh8:
	adrp	x10, _AV_CODEC_ID_SUBRIP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_CODEC_ID_SUBRIP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh11:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w1, #0
	bl	_av_bprint_init
	strb	wzr, [sp, #40]
	add	x0, sp, #20
	bl	_ff_text_eof
	mov	w21, #0
	cbz	w0, LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_ff_subtitles_queue_finalize
LBB0_3:
	add	x0, sp, #32
	mov	x1, #0
	bl	_av_bprint_finalize
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.6:
	mov	x0, x21
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #48
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w21, #0
	mov	w25, #0
	add	x24, sp, #1, lsl #12            ; =4096
	add	x24, x24, #40
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [sp, #32]
	cmp	w9, #0
	cset	w9, eq
	eor	w8, w8, #0x1
	and	w4, w9, w8
	add	x1, sp, #32
	add	x2, sp, #40
	add	x3, sp, #24
	mov	x0, x20
	bl	_add_event
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	str	w23, [sp, #24]
	mov	w25, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #20
	bl	_ff_text_eof
	cbnz	w0, LBB0_26
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #20
	bl	_ff_text_pos
	mov	x23, x0
	add	x0, sp, #20
	add	x1, sp, #1, lsl #12             ; =4096
	add	x1, x1, #40
	mov	w2, #4096
	bl	_ff_subtitles_read_line
	tbnz	w0, #31, LBB0_26
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, sp, #41
	ldrb	w8, [x8, #4095]
	cbz	w8, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #40
	add	x1, sp, #16
	bl	_get_event_info
	tbnz	x0, #63, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w25, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	str	xzr, [sp, #8]
	add	x0, sp, #40
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	w8, #0
	tbnz	x0, #63, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [sp, #8]
	cbz	x9, LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x9]
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w25, LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [sp, #40]
	cbz	w8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #32
	add	x2, sp, #40
	mov	x1, x22
	bl	_av_bprintf
	strb	wzr, [sp, #40]
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #40
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	tbnz	x0, #63, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #8]
	cmp	x24, x8
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #40
	add	x1, sp, #1, lsl #12             ; =4096
	add	x1, x1, #40
	bl	_strcpy
	b	LBB0_10
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #32
	add	x2, sp, #1, lsl #12             ; =4096
	add	x2, x2, #40
	mov	x1, x22
	bl	_av_bprintf
	b	LBB0_10
LBB0_26:
	cbz	w25, LBB0_2
; %bb.27:
	add	x1, sp, #32
	add	x2, sp, #40
	add	x3, sp, #24
	mov	x0, x20
	mov	w4, #1
	bl	_add_event
	mov	x21, x0
	tbz	w0, #31, LBB0_2
	b	LBB0_3
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_SUBRIP,4,2         ; @AV_CODEC_ID_SUBRIP
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.no_dead_strip	_srt_read_header
.subsections_via_symbols
