	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_subtitles_read_text_chunk   ## -- Begin function ff_subtitles_read_text_chunk
	.p2align	4, 0x90
_ff_subtitles_read_text_chunk:          ## @ff_subtitles_read_text_chunk
	.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	$40, %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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_av_bprint_clear
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ff_text_r8
	testb	%al, %al
	je	LBB0_13
## %bb.1:
	movl	%eax, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_is_eol
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_text_r8
	movl	%eax, %ebx
	testb	%al, %al
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%bl, %r15d
	testl	%r12d, %r12d
	je	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_is_eol
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, %bl
	sete	%al
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	addl	%eax, %r14d
	cmpl	$2, %r14d
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	incl	%r13d
	movb	%bl, -49(%rbp,%rax)
	cmpl	$4, %r13d
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$13, %bl
	sete	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movb	$0, -49(%rbp,%rax)
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-49(%rbp), %rdx
	callq	_av_bprintf
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_av_bprint_chars
	incl	%r12d
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_subtitles_read_text_chunk   ; -- Begin function ff_subtitles_read_text_chunk
	.p2align	2
_ff_subtitles_read_text_chunk:          ; @ff_subtitles_read_text_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_av_bprint_clear
	mov	x0, x20
	bl	_ff_text_r8
	cbz	w0, LBB0_13
; %bb.1:
	mov	x22, x0
	mov	w27, #0
	mov	w26, #0
	mov	w28, #0
	mov	w24, #0
	add	x25, sp, #11
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_is_eol
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_ff_text_r8
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w23, w22
	cbz	w24, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_is_eol
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w22, #0xff
	tst	w27, #0xff
	ccmp	w8, #10, #4, eq
	cinc	w26, w26, eq
	cmp	w26, #2
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w28, #1
	strb	w22, [x25, w28, sxtw]
	cmp	w8, #4
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w22, #0xff
	cmp	w9, #13
	cset	w27, eq
	mov	x28, x8
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w28, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x25, w28, sxtw]
	add	x2, sp, #11
	mov	x0, x19
	mov	x1, x21
	bl	_av_bprintf
	mov	w26, #0
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_av_bprint_chars
	mov	w28, #0
	add	w24, w24, #1
	b	LBB0_4
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
