	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_job_add_subtitles    ## -- Begin function hb_preset_job_add_subtitles
	.p2align	4, 0x90
_hb_preset_job_add_subtitles:           ## @hb_preset_job_add_subtitles
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_hb_find_title_by_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_get_job_mux
	movl	%eax, %r12d
	movq	_HB_MUX_INVALID@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	(%rax), %r12d
	je	LBB0_63
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_hb_dict_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_hb_value_array_len
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_hb_value_array_get
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_int
	movq	%rax, %r15
	movl	4(%r13), %edi
	callq	_hb_list_count
	cmpl	%r15d, %eax
	jle	LBB0_7
## %bb.4:
	movl	4(%r13), %edi
	movl	%r15d, %esi
	callq	_hb_list_audio_config_item
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_hb_error
	movl	$-1, %ebx
	jmp	LBB0_63
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	je	LBB0_63
## %bb.9:
	movl	%eax, %r15d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_hb_dict_init
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
LBB0_11:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hb_dict_get
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_hb_value_array_init
	movq	%rax, %r12
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
LBB0_13:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%r15d, -112(%rbp)               ## 4-byte Spill
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -160(%rbp)
	movl	$0, -144(%rbp)
	movq	%rax, -136(%rbp)
	movq	%r12, %rdi
	callq	_hb_value_array_len
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hb_value_array_get
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_int
	cltq
	movl	$1, (%r14,%rax,4)
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_15
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_string
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %rbx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	sete	%r13b
	jmp	LBB0_21
LBB0_19:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_20:
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r13b
LBB0_21:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_string
	testq	%rax, %rax
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	je	LBB0_25
## %bb.22:
	movq	%rax, %rbx
	leaq	L_.str.10(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_36
## %bb.24:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	sete	%r15b
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_28
LBB0_25:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_27
LBB0_26:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_27:
	xorl	%r15d, %r15d
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_int
	movq	%rax, -120(%rbp)
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_int
	movq	%rax, -128(%rbp)
	movl	%r15d, %r13d
	orb	%r15b, %bl
	movzbl	%bl, %eax
	movl	%eax, -148(%rbp)
	leaq	L_.str.14(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_bool
	movl	%eax, %r12d
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_bool
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_lang_get_any
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_hb_value_array_len
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_31
## %bb.30:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_hb_value_array_get
	movq	%rax, %rdi
	callq	_hb_value_get_string
	movq	%rax, %rbx
LBB0_31:
	movq	%r15, -168(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	orb	%r13b, %r15b
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	%rcx, %r14
	cmoveq	%rbx, %r14
	movl	$0, %r13d
	cmovnel	%r12d, %r13d
	testl	%eax, %eax
	cmovnel	%r12d, %r13d
	cmovneq	%rbx, %r14
	testq	%rcx, %rcx
	je	LBB0_38
## %bb.32:
	testl	%eax, %eax
	je	LBB0_38
## %bb.33:
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_39
## %bb.34:
	movq	%rcx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_39
## %bb.35:
	movzbl	%r15b, %eax
	movl	$1, -160(%rbp)
	movl	%eax, -156(%rbp)
	movl	$1, -152(%rbp)
	leaq	-160(%rbp), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	_add_subtitle_for_lang
	xorl	%r13d, %r13d
	jmp	LBB0_39
LBB0_38:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
LBB0_39:
	leaq	L_.str.17(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hb_dict_get
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_41
## %bb.40:
	xorl	%eax, %eax
	callq	_hb_dict_init
	movq	%rax, %r12
	leaq	L_.str.17(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
LBB0_41:
	xorl	%eax, %eax
	leaq	L_.str.18(%rip), %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_45
## %bb.42:
	testl	%r13d, %r13d
	je	LBB0_45
## %bb.43:
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	movl	$0, %eax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_46
## %bb.44:
	cmpl	$0, -148(%rbp)
	setne	%al
	orb	%al, %r15b
	movzbl	%r15b, %ebx
	movl	$1, %edi
	callq	_hb_value_bool
	leaq	L_.str.18(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movl	%ebx, %eax
	xorb	$1, %al
	movzbl	%al, %edi
	callq	_hb_value_bool
	leaq	L_.str.19(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movl	$1, %edi
	callq	_hb_value_bool
	leaq	L_.str.20(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movl	%ebx, %eax
	leaq	L_.str.21(%rip), %rbx
	jmp	LBB0_46
LBB0_45:
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_46:
	movl	%eax, %edi
	callq	_hb_value_bool
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_hb_dict_set
	testb	%r13b, %r13b
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_52
## %bb.47:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -160(%rbp)
	movq	$0, -156(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_51
## %bb.48:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-168(%rbp), %r12                ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hb_value_array_get
	movq	%rax, %rdi
	callq	_hb_value_get_string
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movq	%rax, %rcx
	leaq	-160(%rbp), %r8
	callq	_add_subtitle_for_lang
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	incl	%ebx
	cmpl	%ebx, %eax
	jne	LBB0_49
## %bb.50:
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_52
LBB0_51:
	leaq	L_.str.22(%rip), %rcx
	leaq	-160(%rbp), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_add_subtitle_for_lang
LBB0_52:
	leaq	L_.str.23(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_bool
	testl	%eax, %eax
	movl	-112(%rbp), %eax                ## 4-byte Reload
	je	LBB0_62
## %bb.53:
	testl	%eax, %eax
	jle	LBB0_62
## %bb.54:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	_CC608SUB@GOTPCREL(%rip), %r12
	movq	_CC708SUB@GOTPCREL(%rip), %r13
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_56 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_62
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	-136(%rbp), %rax
	cmpl	$0, (%rax,%rbx,4)
	jne	LBB0_55
## %bb.57:                              ##   in Loop: Header=BB0_56 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r14
	movq	(%rax), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_56 Depth=1
	cmpq	(%r13), %rdi
	jne	LBB0_55
LBB0_59:
	xorl	%r8d, %r8d
	cmpl	$0, -144(%rbp)
	jne	LBB0_61
## %bb.60:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_hb_subtitle_can_pass
	testl	%eax, %eax
	sete	%al
	cmpl	$0, -148(%rbp)
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %r8d
LBB0_61:
	movq	-136(%rbp), %rax
	movl	$1, (%rax,%rbx,4)
	orl	%r8d, -144(%rbp)
	movl	8(%r14), %r9d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_add_subtitle
LBB0_62:
	movq	-136(%rbp), %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_63:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movb	$1, %bl
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid title index (%d)"

	.comm	_HB_MUX_INVALID,4,2             ## @HB_MUX_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"Audio"

L_.str.2:                               ## @.str.2
	.asciz	"AudioList"

L_.str.3:                               ## @.str.3
	.asciz	"Track"

L_.str.4:                               ## @.str.4
	.asciz	"Subtitle"

L_.str.5:                               ## @.str.5
	.asciz	"SubtitleList"

L_.str.6:                               ## @.str.6
	.asciz	"SubtitleTrackSelectionBehavior"

L_.str.7:                               ## @.str.7
	.asciz	"first"

L_.str.8:                               ## @.str.8
	.asciz	"all"

L_.str.9:                               ## @.str.9
	.asciz	"SubtitleBurnBehavior"

L_.str.10:                              ## @.str.10
	.asciz	"foreign"

L_.str.11:                              ## @.str.11
	.asciz	"foreign_first"

L_.str.12:                              ## @.str.12
	.asciz	"SubtitleBurnDVDSub"

L_.str.13:                              ## @.str.13
	.asciz	"SubtitleBurnBDSub"

L_.str.14:                              ## @.str.14
	.asciz	"SubtitleAddForeignAudioSearch"

L_.str.15:                              ## @.str.15
	.asciz	"SubtitleAddForeignAudioSubtitle"

L_.str.16:                              ## @.str.16
	.asciz	"SubtitleLanguageList"

L_.str.17:                              ## @.str.17
	.asciz	"Search"

L_.str.18:                              ## @.str.18
	.asciz	"Enable"

L_.str.19:                              ## @.str.19
	.asciz	"Default"

L_.str.20:                              ## @.str.20
	.asciz	"Forced"

L_.str.21:                              ## @.str.21
	.asciz	"Burn"

L_.str.22:                              ## @.str.22
	.asciz	"und"

L_.str.23:                              ## @.str.23
	.asciz	"SubtitleAddCC"

	.comm	_CC608SUB,8,3                   ## @CC608SUB
	.comm	_CC708SUB,8,3                   ## @CC708SUB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_job_add_subtitles    ; -- Begin function hb_preset_job_add_subtitles
	.p2align	2
_hb_preset_job_add_subtitles:           ; @hb_preset_job_add_subtitles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x22, x3
	mov	x27, x2
	mov	x19, x1
	bl	_hb_find_title_by_index
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	bl	_get_job_mux
Lloh0:
	adrp	x8, _HB_MUX_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_MUX_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_61
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_hb_error
	mov	w0, #-1
	b	LBB0_61
LBB0_4:
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_get
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_hb_dict_get
	mov	x23, x0
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x0, x23
	mov	w1, #0
	bl	_hb_value_array_get
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_hb_dict_get
	bl	_hb_value_get_int
	mov	x23, x0
	ldr	w0, [x20, #4]
	bl	_hb_list_count
	cmp	w0, w23
	b.le	LBB0_8
; %bb.6:
	ldr	w0, [x20, #4]
	mov	x1, x23
	bl	_hb_list_audio_config_item
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x0]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_9
LBB0_8:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
LBB0_9:
	ldr	w0, [x20]
	bl	_hb_list_count
	cbz	w0, LBB0_61
; %bb.10:
	mov	x28, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_get
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.11:
	bl	_hb_dict_init
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_hb_dict_set
LBB0_12:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_hb_dict_get
	mov	x22, x0
	cbnz	x0, LBB0_14
; %bb.13:
	bl	_hb_value_array_init
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_hb_dict_set
LBB0_14:
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x28
	mov	w1, #4
	bl	_calloc
	mov	x23, x0
	stp	xzr, xzr, [sp, #48]
	str	wzr, [sp, #64]
	str	x0, [sp, #72]
	mov	x0, x22
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x26, x0
	mov	w24, #0
Lloh19:
	adrp	x25, l_.str.3@PAGE
Lloh20:
	add	x25, x25, l_.str.3@PAGEOFF
	mov	w21, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_hb_value_array_get
	mov	x1, x25
	bl	_hb_dict_get
	bl	_hb_value_get_int
	sbfiz	x8, x0, #2, #32
	str	w21, [x23, x8]
	add	w24, w24, #1
	cmp	w26, w24
	b.ne	LBB0_16
LBB0_17:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x27
	bl	_hb_dict_get
	bl	_hb_value_get_string
	cbz	x0, LBB0_20
; %bb.18:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_21
; %bb.19:
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	bl	_strcasecmp
	mov	w21, #0
	cmp	w0, #0
	cset	w24, eq
	b	LBB0_22
LBB0_20:
	mov	w24, #0
	mov	w21, #0
	b	LBB0_22
LBB0_21:
	mov	w24, #1
	mov	w21, #1
LBB0_22:
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x27
	bl	_hb_dict_get
	bl	_hb_value_get_string
	mov	x23, x0
	stp	w24, w28, [sp, #24]             ; 8-byte Folded Spill
	str	w21, [sp, #8]                   ; 4-byte Folded Spill
	cbz	x0, LBB0_26
; %bb.23:
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x23
	bl	_strcasecmp
	cbz	w0, LBB0_27
; %bb.24:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_strcasecmp
	cbz	w0, LBB0_28
; %bb.25:
Lloh33:
	adrp	x1, l_.str.11@PAGE
Lloh34:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x23
	bl	_strcasecmp
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w23, #0
	cmp	w0, #0
	cset	w21, eq
	b	LBB0_29
LBB0_26:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w21, #0
	b	LBB0_29
LBB0_27:
	mov	w21, #0
	mov	w23, #0
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_29
LBB0_28:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w21, #0
	mov	w23, #1
LBB0_29:
Lloh35:
	adrp	x1, l_.str.12@PAGE
Lloh36:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x27
	bl	_hb_dict_get
	bl	_hb_value_get_int
	str	x0, [sp, #88]
Lloh37:
	adrp	x1, l_.str.13@PAGE
Lloh38:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x27
	bl	_hb_dict_get
	bl	_hb_value_get_int
	str	x0, [sp, #80]
	orr	w8, w21, w23
	str	w8, [sp, #60]
Lloh39:
	adrp	x1, l_.str.14@PAGE
Lloh40:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x27
	bl	_hb_dict_get
	bl	_hb_value_get_bool
	mov	x23, x0
Lloh41:
	adrp	x1, l_.str.15@PAGE
Lloh42:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x27
	bl	_hb_dict_get
	bl	_hb_value_get_bool
	mov	x28, x0
Lloh43:
	adrp	x1, l_.str.16@PAGE
Lloh44:
	add	x1, x1, l_.str.16@PAGEOFF
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x27
	bl	_hb_dict_get
	mov	x26, x0
	bl	_lang_get_any
	mov	x24, x0
	ldr	x25, [x0]
	mov	x0, x26
	bl	_hb_value_array_len
	mov	x27, x0
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.30:
	mov	x0, x26
	mov	w1, #0
	bl	_hb_value_array_get
	bl	_hb_value_get_string
	mov	x25, x0
LBB0_31:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	orr	w8, w8, w21
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x1, [x24]
	mov	x0, x25
	bl	_strcmp
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x9, #0
	csel	x8, x25, x9, eq
	ccmp	w0, #0, #0, eq
	csel	w21, wzr, w23, eq
	cmp	w0, #0
	csel	x23, x8, x25, eq
	cbz	x9, LBB0_36
; %bb.32:
	cbz	w0, LBB0_36
; %bb.33:
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	cbz	w28, LBB0_37
; %bb.34:
	mov	x0, x9
	mov	x1, x23
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_37
; %bb.35:
	mov	w8, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #48]
	str	w8, [sp, #56]
	add	x4, sp, #48
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_add_subtitle_for_lang
	mov	w21, #0
	b	LBB0_37
LBB0_36:
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
LBB0_37:
Lloh45:
	adrp	x1, l_.str.17@PAGE
Lloh46:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_get
	mov	x28, x0
	cbnz	x0, LBB0_39
; %bb.38:
	bl	_hb_dict_init
	mov	x28, x0
Lloh47:
	adrp	x1, l_.str.17@PAGE
Lloh48:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x24
	mov	x2, x28
	bl	_hb_dict_set
LBB0_39:
	mov	w25, #0
Lloh49:
	adrp	x24, l_.str.18@PAGE
Lloh50:
	add	x24, x24, l_.str.18@PAGEOFF
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_44
; %bb.40:
	cbz	w21, LBB0_44
; %bb.41:
	mov	x1, x23
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_43
; %bb.42:
	mov	w25, #0
Lloh51:
	adrp	x24, l_.str.18@PAGE
Lloh52:
	add	x24, x24, l_.str.18@PAGEOFF
	b	LBB0_44
LBB0_43:
	ldr	w8, [sp, #60]
	cmp	w8, #0
	cset	w8, ne
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w25, w9, w8
	mov	w0, #1
	bl	_hb_value_bool
	mov	x2, x0
Lloh53:
	adrp	x1, l_.str.18@PAGE
Lloh54:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x28
	bl	_hb_dict_set
	eor	w0, w25, #0x1
	bl	_hb_value_bool
	mov	x2, x0
Lloh55:
	adrp	x1, l_.str.19@PAGE
Lloh56:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x28
	bl	_hb_dict_set
	mov	w0, #1
	bl	_hb_value_bool
	mov	x2, x0
Lloh57:
	adrp	x1, l_.str.20@PAGE
Lloh58:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x28
	bl	_hb_dict_set
Lloh59:
	adrp	x24, l_.str.21@PAGE
Lloh60:
	add	x24, x24, l_.str.21@PAGEOFF
LBB0_44:
	mov	x0, x25
	bl	_hb_value_bool
	mov	x2, x0
	mov	x0, x28
	mov	x1, x24
	bl	_hb_dict_set
	ldp	w8, w28, [sp, #24]              ; 8-byte Folded Reload
	cbz	w8, LBB0_50
; %bb.45:
	stp	wzr, wzr, [sp, #52]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w8, [sp, #48]
	cmp	w27, #1
	b.lt	LBB0_49
; %bb.46:
	mov	w23, #0
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x23
	bl	_hb_value_array_get
	bl	_hb_value_get_string
	mov	x3, x0
	add	x4, sp, #48
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_add_subtitle_for_lang
	add	w23, w23, #1
	cmp	w27, w23
	b.ne	LBB0_47
; %bb.48:
	cmp	w27, #0
	b.gt	LBB0_50
LBB0_49:
Lloh61:
	adrp	x3, l_.str.22@PAGE
Lloh62:
	add	x3, x3, l_.str.22@PAGEOFF
	add	x4, sp, #48
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_add_subtitle_for_lang
LBB0_50:
Lloh63:
	adrp	x1, l_.str.23@PAGE
Lloh64:
	add	x1, x1, l_.str.23@PAGEOFF
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_hb_dict_get
	bl	_hb_value_get_bool
	cbz	w0, LBB0_60
; %bb.51:
	cmp	w28, #1
	b.lt	LBB0_60
; %bb.52:
	mov	x21, #0
Lloh65:
	adrp	x24, _CC608SUB@GOTPAGE
Lloh66:
	ldr	x24, [x24, _CC608SUB@GOTPAGEOFF]
Lloh67:
	adrp	x25, _CC708SUB@GOTPAGE
Lloh68:
	ldr	x25, [x25, _CC708SUB@GOTPAGEOFF]
	mov	w26, w28
	b	LBB0_54
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=1
	add	x21, x21, #1
	cmp	x26, x21
	b.eq	LBB0_60
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #72]
	ldr	w8, [x8, x21, lsl #2]
	cbnz	w8, LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=1
	ldr	w0, [x20]
	mov	x1, x21
	bl	_hb_list_item
	mov	x23, x0
	ldr	x0, [x0]
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_53
; %bb.56:
	ldr	w8, [sp, #64]
	cbz	w8, LBB0_58
; %bb.57:
	mov	w4, #0
	b	LBB0_59
LBB0_58:
	mov	x1, x19
	bl	_hb_subtitle_can_pass
	cmp	w0, #0
	ldr	w8, [sp, #60]
	ccmp	w8, #0, #0, ne
	cset	w4, ne
LBB0_59:
	ldr	x8, [sp, #72]
	mov	w9, #1
	str	w9, [x8, x21, lsl #2]
	ldr	w8, [sp, #64]
	orr	w8, w8, w4
	str	w8, [sp, #64]
	ldr	w5, [x23, #8]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_add_subtitle
LBB0_60:
	ldr	x0, [sp, #72]
	bl	_free
	mov	w0, #0
LBB0_61:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid title index (%d)"

	.comm	_HB_MUX_INVALID,4,2             ; @HB_MUX_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"Audio"

l_.str.2:                               ; @.str.2
	.asciz	"AudioList"

l_.str.3:                               ; @.str.3
	.asciz	"Track"

l_.str.4:                               ; @.str.4
	.asciz	"Subtitle"

l_.str.5:                               ; @.str.5
	.asciz	"SubtitleList"

l_.str.6:                               ; @.str.6
	.asciz	"SubtitleTrackSelectionBehavior"

l_.str.7:                               ; @.str.7
	.asciz	"first"

l_.str.8:                               ; @.str.8
	.asciz	"all"

l_.str.9:                               ; @.str.9
	.asciz	"SubtitleBurnBehavior"

l_.str.10:                              ; @.str.10
	.asciz	"foreign"

l_.str.11:                              ; @.str.11
	.asciz	"foreign_first"

l_.str.12:                              ; @.str.12
	.asciz	"SubtitleBurnDVDSub"

l_.str.13:                              ; @.str.13
	.asciz	"SubtitleBurnBDSub"

l_.str.14:                              ; @.str.14
	.asciz	"SubtitleAddForeignAudioSearch"

l_.str.15:                              ; @.str.15
	.asciz	"SubtitleAddForeignAudioSubtitle"

l_.str.16:                              ; @.str.16
	.asciz	"SubtitleLanguageList"

l_.str.17:                              ; @.str.17
	.asciz	"Search"

l_.str.18:                              ; @.str.18
	.asciz	"Enable"

l_.str.19:                              ; @.str.19
	.asciz	"Default"

l_.str.20:                              ; @.str.20
	.asciz	"Forced"

l_.str.21:                              ; @.str.21
	.asciz	"Burn"

l_.str.22:                              ; @.str.22
	.asciz	"und"

l_.str.23:                              ; @.str.23
	.asciz	"SubtitleAddCC"

	.comm	_CC608SUB,8,3                   ; @CC608SUB
	.comm	_CC708SUB,8,3                   ; @CC708SUB
.subsections_via_symbols
