	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subtitle_add_track
_subtitle_add_track:                    ## @subtitle_add_track
	.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
	movl	%r9d, %r14d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r15d
	xorl	%eax, %eax
	testl	%edx, %edx
	js	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_ghb_get_title_subtitle_track
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_dict_get_int
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
LBB0_3:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_hb_subtitle_can_pass
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	orl	24(%rbp), %ebx
	movq	32(%rbp), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_6:
	xorl	%eax, %eax
	callq	_ghb_dict_new
	movq	%rax, %r13
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_ghb_dict_new
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movq	_IMPORTSRT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_ghb_dict_set_string
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ghb_dict_get_string
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_ghb_dict_set_string
	leaq	L_.str.8(%rip), %rsi
	leaq	L_.str.9(%rip), %rdx
	movq	%r14, %rdi
	callq	_ghb_dict_set_string
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_ghb_dict_get_string
	leaq	L_.str.11(%rip), %rdi
	movq	%rax, %rsi
	callq	_g_strdup_printf
	movq	%rax, %r15
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_ghb_dict_set_string
	movq	%r15, %rdi
	callq	_g_free
LBB0_8:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	cmpb	$0, (%rdx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_ghb_dict_set_string
LBB0_11:
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_ghb_dict_set_int
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ghb_dict_set_int
	xorl	%edx, %edx
	cmpl	$-1, %r12d
	sete	%dl
	leaq	L_.str.15(%rip), %rsi
	movq	%r13, %rdi
	callq	_ghb_dict_set_bool
	leaq	L_.str.16(%rip), %rsi
	movq	%r13, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_ghb_dict_set_bool
	leaq	L_.str.17(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_ghb_dict_set_bool
	cmpl	$-1, %r12d
	je	LBB0_14
## %bb.12:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_subtitle_add_to_settings
LBB0_15:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Source"

L_.str.1:                               ## @.str.1
	.asciz	"Name"

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

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

	.comm	_IMPORTSRT,4,2                  ## @IMPORTSRT
L_.str.4:                               ## @.str.4
	.asciz	"SRT"

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

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"UTF-8"

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

L_.str.11:                              ## @.str.11
	.asciz	"%s/none"

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

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

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

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

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

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

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_subtitle_add_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subtitle_add_track
_subtitle_add_track:                    ; @subtitle_add_track
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x7
	mov	x26, x6
	mov	x27, x5
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x25, x0
	mov	x24, #0
	ldr	x28, [x29, #16]
	tbnz	w2, #31, LBB0_3
; %bb.1:
	cbnz	w27, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_ghb_get_title_subtitle_track
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_int
	mov	x26, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_ghb_dict_get_string
	mov	x24, x0
LBB0_3:
	mov	x0, x26
	mov	x1, x23
	bl	_hb_subtitle_can_pass
	cmp	w0, #0
	cset	w8, eq
	orr	w23, w8, w22
	ldr	w8, [x28]
	cmp	w8, #0
	ccmp	w23, #0, #4, ne
	b.ne	LBB0_13
; %bb.4:
	bl	_ghb_dict_new
	mov	x22, x0
	cbz	w27, LBB0_6
; %bb.5:
	bl	_ghb_dict_new
	mov	x27, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x27
	bl	_hb_dict_set
Lloh6:
	adrp	x8, _IMPORTSRT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMPORTSRT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, l_.str.5@PAGE
Lloh10:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh11:
	adrp	x10, l_.str.4@PAGE
Lloh12:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w26, w8
	csel	x2, x10, x9, eq
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x27
	bl	_ghb_dict_set_string
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ghb_dict_get_string
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x27
	bl	_ghb_dict_set_string
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
Lloh21:
	adrp	x2, l_.str.9@PAGE
Lloh22:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x27
	bl	_ghb_dict_set_string
	ldr	x0, [x25]
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_ghb_dict_get_string
	mov	x1, x0
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_g_strdup_printf
	mov	x25, x0
Lloh27:
	adrp	x1, l_.str.12@PAGE
Lloh28:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x27
	mov	x2, x25
	bl	_ghb_dict_set_string
	mov	x0, x25
	bl	_g_free
LBB0_6:
	cbz	x24, LBB0_9
; %bb.7:
	ldrb	w8, [x24]
	cbz	w8, LBB0_9
; %bb.8:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_ghb_dict_set_string
LBB0_9:
Lloh31:
	adrp	x1, l_.str.13@PAGE
Lloh32:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_ghb_dict_set_int
Lloh33:
	adrp	x1, l_.str.14@PAGE
Lloh34:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_ghb_dict_set_int
	cmn	w20, #1
	cset	w2, eq
Lloh35:
	adrp	x1, l_.str.15@PAGE
Lloh36:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x22
	bl	_ghb_dict_set_bool
Lloh37:
	adrp	x1, l_.str.16@PAGE
Lloh38:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_ghb_dict_set_bool
Lloh39:
	adrp	x1, l_.str.17@PAGE
Lloh40:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_ghb_dict_set_bool
	cmn	w20, #1
	b.eq	LBB0_12
; %bb.10:
	cbz	w23, LBB0_12
; %bb.11:
Lloh41:
	adrp	x8, _TRUE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x28]
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	bl	_subtitle_add_to_settings
	b	LBB0_14
LBB0_13:
	mov	x22, #0
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Source"

l_.str.1:                               ; @.str.1
	.asciz	"Name"

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

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

	.comm	_IMPORTSRT,4,2                  ; @IMPORTSRT
l_.str.4:                               ; @.str.4
	.asciz	"SRT"

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

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"UTF-8"

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

l_.str.11:                              ; @.str.11
	.asciz	"%s/none"

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

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

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

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

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

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

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_subtitle_add_track
.subsections_via_symbols
