	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ass_read_header
_ass_read_header:                       ## @ass_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	$88, %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), %r15
	movl	(%rdi), %edx
	leaq	-48(%rbp), %rsi
	callq	_ff_text_init_avio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	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	%r14, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	_AV_CODEC_ID_ASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movl	(%rbx), %edx
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movl	(%rbx), %edx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movl	$1, (%r15)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_line
	movq	%rax, %r13
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$-1, -44(%rbp)
	movq	-64(%rbp), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_10
## %bb.3:
	leaq	-44(%rbp), %rbx
	leaq	-72(%rbp), %r14
	leaq	-48(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdx
	leaq	-120(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_av_bprintf
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_get_line
	movq	%rax, %r13
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$-1, -44(%rbp)
	movq	-64(%rbp), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %r8
	callq	_read_dialogue
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rsi
	movl	-88(%rbp), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ff_subtitles_queue_insert
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, 16(%rax)
	movq	-56(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movl	-44(%rbp), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_9
LBB0_10:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	-120(%rbp), %rsi
	callq	_ff_bprint_to_codecpar_extradata
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ff_subtitles_queue_finalize
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
LBB0_12:
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
LBB0_13:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_ASS,4,2            ## @AV_CODEC_ID_ASS
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_ass_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ass_read_header
_ass_read_header:                       ; @ass_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w2, [x0]
	add	x1, sp, #28
	bl	_ff_text_init_avio
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	mov	w22, #1
	mov	w1, #64
	mov	w2, #1
	mov	w3, #100
	bl	_avpriv_set_pts_info
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x21]
Lloh3:
	adrp	x10, _AV_CODEC_ID_ASS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_ASS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh6:
	adrp	x23, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x0, sp, #64
	mov	w1, #0
	bl	_av_bprint_init
	ldr	w2, [x23]
	add	x0, sp, #48
	mov	w1, #0
	bl	_av_bprint_init
	ldr	w2, [x23]
	add	x0, sp, #32
	mov	w1, #0
	bl	_av_bprint_init
	str	w22, [x19]
	add	x0, sp, #48
	add	x1, sp, #28
	bl	_get_line
Lloh8:
	adrp	x24, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [sp, #16]
	mov	w25, #-1
	str	w25, [sp, #12]
	ldr	x2, [sp, #56]
	ldr	w8, [x2]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x23, x0
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [sp, #56]
	add	x0, sp, #64
	mov	x1, x22
	bl	_av_bprintf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #48
	add	x1, sp, #28
	bl	_get_line
	mov	x23, x0
	ldr	x8, [x24]
	str	x8, [sp, #16]
	str	w25, [sp, #12]
	ldr	x2, [sp, #56]
	ldr	w8, [x2]
	cbz	w8, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #32
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x19
	bl	_read_dialogue
	tbnz	x0, #63, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #40]
	ldr	w2, [sp, #32]
	mov	x0, x19
	mov	w3, #0
	bl	_ff_subtitles_queue_insert
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
	stp	x8, x23, [x0, #8]
	ldr	w8, [sp, #12]
	str	w8, [x0]
	b	LBB0_4
LBB0_8:
	ldr	x0, [x21]
	add	x1, sp, #64
	bl	_ff_bprint_to_codecpar_extradata
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_ff_subtitles_queue_finalize
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_13
LBB0_11:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_12:
	add	x0, sp, #64
	mov	x1, #0
	bl	_av_bprint_finalize
	add	x0, sp, #48
	mov	x1, #0
	bl	_av_bprint_finalize
	add	x0, sp, #32
	mov	x1, #0
	bl	_av_bprint_finalize
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_ASS,4,2            ; @AV_CODEC_ID_ASS
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_ass_read_header
.subsections_via_symbols
