	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminateSubtitleStreams
_terminateSubtitleStreams:              ## @terminateSubtitleStreams
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %rcx
	movq	_SYNC_TYPE_SUBTITLE@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	leaq	(,%rax,8), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rdi)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rcx,%rdi)
	jne	LBB0_4
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r15
	cmpl	$0, -8(%r15,%rbx)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-16(%r15,%rbx), %rcx
	cmpq	(%r8), %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15,%rbx), %r14d
	xorl	%eax, %eax
	callq	_hb_buffer_eof_init
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_fifo_push
	movl	-4(%r15,%rbx), %r14d
	xorl	%eax, %eax
	callq	_hb_buffer_eof_init
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_fifo_push
	movq	_SYNC_TYPE_SUBTITLE@GOTPCREL(%rip), %r8
	movl	$1, -8(%r15,%rbx)
	movl	(%r12), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_TYPE_SUBTITLE,8,3         ## @SYNC_TYPE_SUBTITLE
	.no_dead_strip	_terminateSubtitleStreams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminateSubtitleStreams
_terminateSubtitleStreams:              ; @terminateSubtitleStreams
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x10, [x0, #8]
Lloh0:
	adrp	x21, _SYNC_TYPE_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SYNC_TYPE_SUBTITLE@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x10, x10, #8
	mov	x11, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #24
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	cmp	x12, x9
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x10]
	cbnz	w12, LBB0_2
LBB0_5:
	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_6:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x22, x22, #24
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x25, x9, x22
	ldr	w10, [x25, #8]
	cbnz	w10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x9, x22]
	ldr	x11, [x21]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x9, x22
	ldr	w20, [x26, #16]
	bl	_hb_buffer_eof_init
	mov	x1, x0
	mov	x0, x20
	bl	_fifo_push
	ldr	w20, [x26, #12]
	bl	_hb_buffer_eof_init
	mov	x1, x0
	mov	x0, x20
	bl	_fifo_push
	str	w24, [x25, #8]
	ldr	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_TYPE_SUBTITLE,8,3         ; @SYNC_TYPE_SUBTITLE
	.no_dead_strip	_terminateSubtitleStreams
.subsections_via_symbols
