	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssa_read
_ssa_read:                              ## @ssa_read
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	movq	(%rax), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rdi, %r12
	cmpq	%rdx, (%rdi)
	jne	LBB0_5
## %bb.3:
	movq	%rcx, (%r12)
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.4:
	addq	16(%rax), %rcx
	movq	%rcx, 8(%r12)
LBB0_5:
	movl	16(%r12), %edi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_6
LBB0_12:
	xorl	%eax, %eax
	callq	_hb_buffer_eof_init
	movq	%rax, %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-40(%rbp), %r14
	leaq	-48(%rbp), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rsi, %rdi
	callq	_free
	testq	%rbx, %rbx
	js	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r12), %edi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	movl	16(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hb_getline
	movq	%rax, %rbx
	movq	-40(%rbp), %rsi
	testq	%rax, %rax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_decode_line_to_mkv_ssa
	movq	%rax, %rbx
	movq	-40(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_10
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_ssa_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssa_read
_ssa_read:                              ; @ssa_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x0
	ldr	x11, [x0]
	cmp	x11, x10
	b.ne	LBB0_6
; %bb.3:
	str	x9, [x19]
	ldr	x9, [x8, #8]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	x8, [x8, #16]
	add	x8, x8, x9
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x1
	bl	_free
	tbnz	x20, #63, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	bl	_feof
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stp	xzr, xzr, [sp]
	ldr	w2, [x19, #16]
	add	x0, sp, #8
	mov	x1, sp
	bl	_hb_getline
	mov	x20, x0
	ldr	x1, [sp, #8]
	cmp	x0, #1
	ccmp	x1, #0, #4, ge
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x2, x20
	bl	_decode_line_to_mkv_ssa
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
	cbz	x20, LBB0_6
	b	LBB0_10
LBB0_9:
	bl	_hb_buffer_eof_init
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_ssa_read
.subsections_via_symbols
