	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function textsub_work
_textsub_work:                          ## @textsub_work
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	(%rsi), %rbx
	cmpl	$0, (%r13)
	jne	LBB0_2
## %bb.1:
	movl	16(%r13), %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	movl	4(%rax), %edx
	callq	_ass_process_codec_private
	movl	$1, (%r13)
LBB0_2:
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_HB_FILTER_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_hb_fifo_get
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	%rax, %rcx
	leaq	8(%r13), %r14
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%rcx, %rsi
	callq	_process_sub
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_hb_fifo_get
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edi
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	4(%rcx), %rax
	imulq	$-1240768329, %rax, %rbx        ## imm = 0xB60B60B7
	shrq	$32, %rbx
	addl	%eax, %ebx
	movl	%ebx, %eax
	shrl	$31, %eax
	sarl	$6, %ebx
	addl	%eax, %ebx
	movl	%ebx, 4(%rcx)
	movq	8(%rcx), %rax
	movslq	(%r12), %rdx
	cmpq	%rdx, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$3279421168659475843, %rdx      ## imm = 0x2D82D82D82D82D83
	imulq	%rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$4, %rdx
	addq	%rax, %rdx
	movq	%rdx, 8(%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movq	%rax, 8(%rsi)
	movq	%r13, %rdi
	callq	_process_sub
	movq	%r14, %rdi
	callq	_hb_buffer_close
	movq	-48(%rbp), %rcx
	movl	(%rcx), %edi
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_HB_BUF_FLAG_EOS@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, 8(%rcx)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rcx, (%r14)
	movslq	4(%rcx), %rax
	movq	%rax, 8(%rcx)
	jmp	LBB0_18
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.8:
	movslq	4(%rsi), %rax
	addq	$900000, %rax                   ## imm = 0xDBBA0
	movq	%rax, 8(%rsi)
	movq	%r13, %rdi
	callq	_process_sub
	movq	%r14, %rdi
	callq	_hb_buffer_close
LBB0_19:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.20:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imulq	$-1240768329, %rcx, %rax        ## imm = 0xB60B60B7
	shrq	$32, %rax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$6, %eax
	addl	%ecx, %eax
	cmpl	%eax, 4(%rsi)
	jg	LBB0_22
## %bb.21:
	movl	8(%rsi), %ecx
	movl	%ecx, 4(%rsi)
	incl	%eax
	cltq
	movq	%rax, 8(%rsi)
	movq	%r13, %rdi
	callq	_process_sub
LBB0_22:
	movq	%r13, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ApplySSASubs
	movq	_HB_FILTER_OK@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_23:
	movq	$0, (%r12)
	movq	%rbx, (%r14)
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ## @HB_FILTER_DONE
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_HB_BUF_FLAG_EOS,4,2            ## @HB_BUF_FLAG_EOS
	.comm	_HB_FILTER_OK,4,2               ## @HB_FILTER_OK
	.no_dead_strip	_textsub_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function textsub_work
_textsub_work:                          ; @textsub_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x22, [x0, #8]
	ldr	x21, [x1]
	ldr	w8, [x22]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x22, #16]
	ldr	x8, [x23]
	ldr	x1, [x8, #8]
	ldr	w2, [x8, #4]
	bl	_ass_process_codec_private
	mov	w8, #1
	str	w8, [x22]
LBB0_2:
	ldr	w8, [x21]
Lloh0:
	adrp	x27, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _HB_FILTER_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HB_FILTER_DONE@GOTPAGEOFF]
	b	LBB0_23
LBB0_4:
	ldrsw	x8, [x21, #4]
	stp	x8, x19, [sp, #8]               ; 16-byte Folded Spill
	mov	x26, #-40777
	movk	x26, #46603, lsl #16
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_hb_fifo_get
	str	x0, [sp, #24]
	cbz	x0, LBB0_19
; %bb.5:
	mov	x8, x0
	add	x24, x22, #8
Lloh4:
	adrp	x28, _AV_NOPTS_VALUE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HB_BUF_FLAG_EOS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HB_BUF_FLAG_EOS@GOTPAGEOFF]
	mov	x19, #11651
	movk	x19, #33496, lsl #16
	movk	x19, #55341, lsl #32
	movk	x19, #11650, lsl #48
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x8
	bl	_process_sub
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #24
	bl	_hb_buffer_close
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_hb_fifo_get
	mov	x8, x0
	str	x0, [sp, #24]
	cbz	x0, LBB0_19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	ldr	w10, [x27]
	tst	w10, w9
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x10, [x8, #4]
	mul	x11, x10, x26
	lsr	x11, x11, #32
	add	w10, w11, w10
	asr	w11, w10, #6
	add	w10, w11, w10, lsr #31
	str	w10, [x8, #4]
	ldr	x11, [x8, #8]
	ldrsw	x12, [x28]
	cmp	x11, x12
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	smulh	x11, x11, x19
	asr	x12, x11, #4
	add	x11, x12, x11, lsr #63
	str	x11, [x8, #8]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x24]
	cbz	x1, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x8, w10
	str	x8, [x1, #8]
	mov	x0, x22
	bl	_process_sub
	mov	x0, x24
	bl	_hb_buffer_close
	ldr	x8, [sp, #24]
	ldr	w9, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x25]
	tst	w10, w9
	b.ne	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x8, #8]
	ldrsw	x10, [x28]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x8, [x24]
	ldrsw	x9, [x8, #4]
	str	x9, [x8, #8]
	b	LBB0_8
LBB0_17:
	add	x0, sp, #24
	bl	_hb_buffer_close
	ldr	x1, [x24]
	cbz	x1, LBB0_19
; %bb.18:
	ldrsw	x8, [x1, #4]
	add	x8, x8, #219, lsl #12           ; =897024
	add	x8, x8, #2976
	str	x8, [x1, #8]
	mov	x0, x22
	bl	_process_sub
	mov	x0, x24
	bl	_hb_buffer_close
LBB0_19:
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_22
; %bb.20:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	mul	x8, x9, x26
	lsr	x8, x8, #32
	add	w8, w8, w9
	asr	w9, w8, #6
	add	w8, w9, w8, lsr #31
	ldr	w9, [x1, #4]
	cmp	w9, w8
	b.gt	LBB0_22
; %bb.21:
	ldr	x9, [x1, #8]
	str	w9, [x1, #4]
	add	w8, w8, #1
	sxtw	x8, w8
	str	x8, [x1, #8]
	mov	x0, x22
	bl	_process_sub
LBB0_22:
	mov	x0, x22
	mov	x1, x21
	bl	_ApplySSASubs
Lloh8:
	adrp	x8, _HB_FILTER_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HB_FILTER_OK@GOTPAGEOFF]
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
LBB0_23:
	str	xzr, [x20]
	str	x21, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ; @HB_FILTER_DONE
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_HB_BUF_FLAG_EOS,4,2            ; @HB_BUF_FLAG_EOS
	.comm	_HB_FILTER_OK,4,2               ; @HB_FILTER_OK
	.no_dead_strip	_textsub_work
.subsections_via_symbols
