	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subtitle_get_track_description
_subtitle_get_track_description:        ## @subtitle_get_track_description
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ghb_dict_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	_IMPORTSRT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r12
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r13
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_IMPORTSSA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movq	%r13, %rdi
	callq	_lang_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %r13
	testq	%r13, %r13
	jne	LBB0_7
## %bb.6:
	movq	8(%rax), %r13
LBB0_7:
	movq	_G_FILE_TEST_IS_REGULAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_g_file_test
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	callq	_g_path_get_basename
	movq	%rax, %r12
	movq	_IMPORTSRT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.7(%rip), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_g_strdup_printf
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_ghb_dict_get_int
	leaq	-44(%rbp), %rsi
	movl	%eax, %edi
	callq	_ghb_lookup_title
	movq	%rax, %r15
	leaq	L_.str.11(%rip), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ghb_dict_get
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ghb_dict_get_int
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ghb_get_subtitle_info
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	incl	%r14d
	movl	(%rax), %edx
	leaq	L_.str.13(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_g_strdup_printf
	jmp	LBB0_20
LBB0_12:
	movq	_IMPORTSRT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_13
## %bb.22:
	leaq	L_.str.8(%rip), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_strdup_printf                ## TAILCALL
LBB0_10:
	leaq	L_.str.8(%rip), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_g_strdup_printf
LBB0_11:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_g_free
	jmp	LBB0_21
LBB0_16:
	leaq	L_.str.12(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_g_strdup
LBB0_20:
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_13:
	leaq	L_.str.9(%rip), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_strdup_printf                ## TAILCALL
LBB0_18:
	xorl	%ebx, %ebx
LBB0_21:
	movq	%rbx, %rax
	addq	$8, %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	"Import"

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

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

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

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

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

	.comm	_IMPORTSSA,4,2                  ## @IMPORTSSA
	.comm	_G_FILE_TEST_IS_REGULAR,4,2     ## @G_FILE_TEST_IS_REGULAR
L_.str.7:                               ## @.str.7
	.asciz	"%s (%s)(%s)(%s)"

L_.str.8:                               ## @.str.8
	.asciz	"%s (%s)(%s)"

L_.str.9:                               ## @.str.9
	.asciz	"%s (%s)"

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

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

L_.str.12:                              ## @.str.12
	.asciz	"Foreign Audio Scan"

L_.str.13:                              ## @.str.13
	.asciz	"%d - %s"

	.no_dead_strip	_subtitle_get_track_description
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subtitle_get_track_description
_subtitle_get_track_description:        ; @subtitle_get_track_description
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ghb_dict_get
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x24, _IMPORTSRT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IMPORTSRT@GOTPAGEOFF]
	ldr	w23, [x24]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_dict_get_string
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get_string
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get_string
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get_string
	mov	x21, x0
	cbz	x19, LBB0_3
; %bb.2:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
Lloh14:
	adrp	x8, _IMPORTSSA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IMPORTSSA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w23, w8, w23, eq
LBB0_3:
	mov	x0, x20
	bl	_lang_lookup
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x20, [x0]
	cbnz	x20, LBB0_6
; %bb.5:
	ldr	x20, [x0, #8]
LBB0_6:
Lloh17:
	adrp	x8, _G_FILE_TEST_IS_REGULAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _G_FILE_TEST_IS_REGULAR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_g_file_test
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x22
	bl	_g_path_get_basename
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_15
; %bb.8:
	stp	x19, x22, [sp, #16]
	stp	x20, x21, [sp]
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_9:
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	add	x1, sp, #44
	bl	_ghb_lookup_title
	mov	x20, x0
Lloh24:
	adrp	x21, l_.str.11@PAGE
Lloh25:
	add	x21, x21, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ghb_dict_get
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ghb_dict_get_int
	cbz	x22, LBB0_17
; %bb.10:
	mov	x19, x0
	tbnz	w0, #31, LBB0_17
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_ghb_get_subtitle_info
	cbz	x0, LBB0_20
; %bb.12:
	add	w8, w19, #1
	ldr	w9, [x0]
	stp	x8, x9, [sp]
Lloh26:
	adrp	x0, l_.str.13@PAGE
Lloh27:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_g_strdup_printf
	b	LBB0_18
LBB0_13:
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_19
; %bb.14:
	stp	x21, x19, [sp, #8]
	str	x20, [sp]
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_g_strdup_printf
	b	LBB0_22
LBB0_15:
	stp	x19, x22, [sp, #8]
	str	x20, [sp]
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_16:
	bl	_g_strdup_printf
	mov	x19, x0
	mov	x0, x22
	bl	_g_free
	b	LBB0_21
LBB0_17:
Lloh32:
	adrp	x0, l_.str.12@PAGE
Lloh33:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	__
	bl	_g_strdup
LBB0_18:
	mov	x19, x0
	b	LBB0_21
LBB0_19:
	stp	x20, x19, [sp]
Lloh34:
	adrp	x0, l_.str.9@PAGE
Lloh35:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_g_strdup_printf
	b	LBB0_22
LBB0_20:
	mov	x19, #0
LBB0_21:
	mov	x0, x19
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Import"

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

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

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

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

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

	.comm	_IMPORTSSA,4,2                  ; @IMPORTSSA
	.comm	_G_FILE_TEST_IS_REGULAR,4,2     ; @G_FILE_TEST_IS_REGULAR
l_.str.7:                               ; @.str.7
	.asciz	"%s (%s)(%s)(%s)"

l_.str.8:                               ; @.str.8
	.asciz	"%s (%s)(%s)"

l_.str.9:                               ; @.str.9
	.asciz	"%s (%s)"

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

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

l_.str.12:                              ; @.str.12
	.asciz	"Foreign Audio Scan"

l_.str.13:                              ; @.str.13
	.asciz	"%d - %s"

	.no_dead_strip	_subtitle_get_track_description
.subsections_via_symbols
