	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitSubtitle
_InitSubtitle:                          ## @InitSubtitle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movl	12(%rax), %edi
	callq	_hb_list_item
	cmpq	$0, 32(%rax)
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movl	$1, %r14d
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, 40(%rdi)
	movq	8(%r13), %rax
	movq	%rdi, %r12
	movq	16(%r13), %r14
	movl	8(%rax), %edi
	callq	_hb_list_count
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	incl	%eax
	movslq	%eax, %rbx
	shlq	$7, %rbx
	leaq	(%r14,%rbx), %r15
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, (%r12)
	movq	%r13, 120(%r14,%rbx)
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, 8(%r14,%rbx)
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, 112(%r14,%rbx)
	movq	_SYNC_MAX_SUBTITLE_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r14,%rbx)
	movq	_SYNC_MIN_SUBTITLE_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r14,%rbx)
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_9
## %bb.3:
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, 16(%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_SYNC_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14,%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 88(%r14,%rbx)
	movq	%rax, 80(%r14,%rbx)
	movq	%rax, 72(%r14,%rbx)
	movq	%rax, 64(%r14,%rbx)
	movl	$-1, (%r15)
	movq	%rax, 56(%r14,%rbx)
	leaq	24(%r14,%rbx), %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%r14,%rbx)
	movl	24(%rcx), %eax
	movl	%eax, 52(%r14,%rbx)
	movl	40(%rcx), %eax
	movl	%eax, 48(%r14,%rbx)
	movq	%rcx, %rbx
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movq	_WORK_SYNC_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	%rax, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	32(%rbx), %rax
	movq	%rax, 16(%r12)
	movl	24(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_TEXTSUB@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rsi
	movq	16(%rbx), %rax
	movq	_PASSTHRUSUB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rsi
	jne	LBB0_11
## %bb.5:
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.6:
	movq	8(%r13), %rax
	movq	_HB_MUX_MASK_MP4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.7:
	movq	(%r14), %rax
	movl	$1, 24(%rax)
	jmp	LBB0_12
LBB0_9:
	leaq	(%r14,%rbx), %r15
	addq	$8, %r15
	leaq	(%r14,%rbx), %rdi
	addq	$16, %rdi
	callq	_hb_list_close
	movq	%r15, %rdi
	callq	_hb_list_close
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %r14d
LBB0_10:
	callq	_free
	xorl	%edi, %edi
	callq	_free
	jmp	LBB0_16
LBB0_11:
	cmpq	%rcx, %rax
	jne	LBB0_14
LBB0_12:
	movq	8(%rbx), %rax
	movq	_PGSSUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	(%r14), %rax
	movl	$1, 28(%rax)
LBB0_14:
	movq	(%r14), %rdi
	addq	$32, %rdi
	callq	_hb_buffer_list_clear
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_hb_list_add
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_MAX_SUBTITLE_QUEUE_LEN,4,2 ## @SYNC_MAX_SUBTITLE_QUEUE_LEN
	.comm	_SYNC_MIN_SUBTITLE_QUEUE_LEN,4,2 ## @SYNC_MIN_SUBTITLE_QUEUE_LEN
	.comm	_SYNC_TYPE_SUBTITLE,4,2         ## @SYNC_TYPE_SUBTITLE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_WORK_SYNC_SUBTITLE,4,2         ## @WORK_SYNC_SUBTITLE
	.comm	_TEXTSUB,8,3                    ## @TEXTSUB
	.comm	_PASSTHRUSUB,8,3                ## @PASSTHRUSUB
	.comm	_HB_MUX_MASK_MP4,4,2            ## @HB_MUX_MASK_MP4
	.comm	_PGSSUB,8,3                     ## @PGSSUB
	.no_dead_strip	_InitSubtitle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitSubtitle
_InitSubtitle:                          ; @InitSubtitle
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #12]
	bl	_hb_list_item
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_14
; %bb.1:
	mov	x21, x0
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.2:
	str	x19, [x20, #40]
	ldp	x8, x23, [x19, #8]
	ldr	w0, [x8, #8]
	bl	_hb_list_count
	add	w8, w22, w0
	add	w8, w8, #1
	sxtw	x25, w8
	add	x24, x23, x25, lsl #7
	str	x24, [x20]
	str	x19, [x24, #120]
	bl	_hb_list_init
	mov	x22, x24
	str	x0, [x22, #8]!
	bl	_hb_list_init
	str	x0, [x24, #112]
Lloh0:
	adrp	x8, _SYNC_MAX_SUBTITLE_QUEUE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYNC_MAX_SUBTITLE_QUEUE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x24, #104]
Lloh3:
	adrp	x8, _SYNC_MIN_SUBTITLE_QUEUE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYNC_MIN_SUBTITLE_QUEUE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x24, #100]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.3:
	bl	_hb_list_init
	str	x0, [x24, #16]
	cbz	x0, LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _SYNC_TYPE_SUBTITLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYNC_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x9, x23, x25, lsl #7
	str	w8, [x9, #96]
Lloh9:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [x9, #80]
	stp	x8, x8, [x9, #64]
	mov	w10, #-1
	str	w10, [x24]
	str	x8, [x9, #56]
	add	x23, x9, #24
	str	x21, [x9, #40]
	ldr	w8, [x21, #24]
	ldr	w10, [x21, #40]
	stp	w10, w8, [x9, #48]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
Lloh12:
	adrp	x8, _WORK_SYNC_SUBTITLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WORK_SYNC_SUBTITLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_hb_get_work
	mov	x22, x0
	str	x20, [x0, #32]
	ldr	x8, [x21, #32]
	stp	x8, x21, [x0, #16]
	ldr	w8, [x21, #24]
	str	w8, [x0, #8]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x10, [x21]
Lloh15:
	adrp	x8, _TEXTSUB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TEXTSUB@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x8]
	ldr	x8, [x21, #16]
Lloh18:
	adrp	x9, _PASSTHRUSUB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PASSTHRUSUB@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.5:
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _HB_MUX_MASK_MP4@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HB_MUX_MASK_MP4@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [x8, #24]
	b	LBB0_11
LBB0_8:
	add	x0, x24, #16
	bl	_hb_list_close
	mov	x0, x22
	bl	_hb_list_close
LBB0_9:
	mov	x0, x20
	bl	_free
	mov	x0, #0
	bl	_free
	mov	w0, #1
	b	LBB0_15
LBB0_10:
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_11:
	ldr	x8, [x21, #8]
Lloh24:
	adrp	x9, _PGSSUB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PGSSUB@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [x8, #28]
LBB0_13:
	ldr	x8, [x20]
	add	x0, x8, #32
	bl	_hb_buffer_list_clear
	ldr	w0, [x19]
	mov	x1, x22
	bl	_hb_list_add
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_MAX_SUBTITLE_QUEUE_LEN,4,2 ; @SYNC_MAX_SUBTITLE_QUEUE_LEN
	.comm	_SYNC_MIN_SUBTITLE_QUEUE_LEN,4,2 ; @SYNC_MIN_SUBTITLE_QUEUE_LEN
	.comm	_SYNC_TYPE_SUBTITLE,4,2         ; @SYNC_TYPE_SUBTITLE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_WORK_SYNC_SUBTITLE,4,2         ; @WORK_SYNC_SUBTITLE
	.comm	_TEXTSUB,8,3                    ; @TEXTSUB
	.comm	_PASSTHRUSUB,8,3                ; @PASSTHRUSUB
	.comm	_HB_MUX_MASK_MP4,4,2            ; @HB_MUX_MASK_MP4
	.comm	_PGSSUB,8,3                     ; @PGSSUB
	.no_dead_strip	_InitSubtitle
.subsections_via_symbols
