	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_read_header
_stl_read_header:                       ## @stl_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	$4136, %eax                     ## imm = 0x1028
	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, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -4160(%rbp)               ## 8-byte Spill
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %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	(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	_AV_CODEC_ID_STL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	callq	_avio_feof
	testl	%eax, %eax
	movq	%rbx, %r15
	je	LBB0_4
LBB0_11:
	movq	%r15, %rdi
	movq	-4160(%rbp), %rsi               ## 8-byte Reload
	callq	_ff_subtitles_queue_finalize
	xorl	%eax, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.2:
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	leaq	-4144(%rbp), %rbx
	leaq	L_.str(%rip), %r14
	movq	%r15, -4176(%rbp)               ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, (%rax)
	movq	%r12, 16(%rax)
	movl	-4148(%rbp), %ecx
	movl	%ecx, 8(%rax)
	movq	%r15, %r14
	movq	-4176(%rbp), %r15               ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -4168(%rbp)
	movl	(%r15), %edi
	callq	_avio_tell
	movq	%rax, %r13
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_ff_get_line
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcspn
	movb	$0, -4144(%rbp,%rax)
	leaq	-4168(%rbp), %rdi
	leaq	-4148(%rbp), %rsi
	callq	_get_pts
	movq	%rax, %r12
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %r15
	movq	-4168(%rbp), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	-4160(%rbp), %rdi               ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_ff_subtitles_queue_insert
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_12
LBB0_14:
	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_STL,4,2            ## @AV_CODEC_ID_STL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_stl_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_read_header
_stl_read_header:                       ; @stl_read_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	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, #-88]
	ldr	x20, [x0, #8]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	w1, #64
	mov	w2, #1
	mov	w3, #100
	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_STL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_CODEC_ID_STL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
	ldr	w0, [x19]
	bl	_avio_feof
	cbz	w0, LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_ff_subtitles_queue_finalize
	mov	w0, #0
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.4:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
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_14
; %bb.6:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_7:
	add	x25, sp, #24
Lloh20:
	adrp	x21, l_.str@PAGE
Lloh21:
	add	x21, x21, l_.str@PAGEOFF
Lloh22:
	adrp	x26, _AV_NOPTS_VALUE@GOTPAGE
Lloh23:
	ldr	x26, [x26, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x22, [x0]
	str	x23, [x0, #16]
	ldr	w8, [sp, #12]
	str	w8, [x0, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x19]
	bl	_avio_feof
	cbnz	w0, LBB0_2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x25, [sp, #16]
	ldr	w0, [x19]
	bl	_avio_tell
	mov	x22, x0
	ldr	w0, [x19]
	add	x1, sp, #24
	mov	w2, #4096
	bl	_ff_get_line
	cbz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	bl	_strcspn
	strb	wzr, [x25, x0]
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_get_pts
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, x0
	ldr	x24, [sp, #16]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	mov	w3, #0
	bl	_ff_subtitles_queue_insert
	cbnz	x0, LBB0_8
; %bb.13:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_3
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_STL,4,2            ; @AV_CODEC_ID_STL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_stl_read_header
.subsections_via_symbols
