	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_subtitle_add_lang_iter         ## -- Begin function subtitle_add_lang_iter
	.p2align	4, 0x90
_subtitle_add_lang_iter:                ## @subtitle_add_lang_iter
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_TREE_VIEW
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_gtk_tree_view_get_model
	movq	%rax, %rdi
	callq	_GTK_TREE_STORE
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_gtk_tree_view_get_selection
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, (%rsp)
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_gtk_tree_model_get
	leaq	-84(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_gtk_tree_store_append
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %r9d
	movl	$-1, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_gtk_tree_store_set
	movq	-56(%rbp), %rdi
	callq	_g_free
	movq	%r14, %rdi
	callq	_GTK_TREE_MODEL
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_gtk_tree_model_get_path
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_gtk_tree_selection_select_iter
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gtk_tree_view_scroll_to_cell
	movq	%rbx, %rdi
	callq	_gtk_tree_path_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_GTK_TREE_STORE
	movq	%rax, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_gtk_tree_store_remove
	movl	-44(%rbp), %edi
	callq	_ghb_iso639_lookup_by_int
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_ghb_string_value_new
	movq	%rax, %r14
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_value
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ghb_array_len
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_subtitle_update_pref_lang
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ghb_array_append
	movq	%r13, %rdi
	callq	_ghb_clear_presets_selection
	addq	$56, %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	"subtitle_selected_lang"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"SubtitleLanguageList"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_subtitle_add_lang_iter         ; -- Begin function subtitle_add_lang_iter
	.p2align	2
_subtitle_add_lang_iter:                ; @subtitle_add_lang_iter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x2, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_TREE_VIEW
	mov	x22, x0
	bl	_gtk_tree_view_get_model
	bl	_GTK_TREE_STORE
	mov	x23, x0
	mov	x0, x22
	bl	_gtk_tree_view_get_selection
	mov	x24, x0
	add	x3, sp, #16
	add	x5, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w4, #1
	mov	w6, #-1
	bl	_gtk_tree_model_get
	add	x1, sp, #28
	mov	x0, x23
	mov	x2, #0
	bl	_gtk_tree_store_append
	ldr	x3, [sp, #16]
	ldr	w5, [sp, #12]
	add	x1, sp, #28
	mov	x0, x23
	mov	w2, #0
	mov	w4, #1
	mov	w6, #-1
	bl	_gtk_tree_store_set
	ldr	x0, [sp, #16]
	bl	_g_free
	mov	x0, x23
	bl	_GTK_TREE_MODEL
	add	x1, sp, #28
	bl	_gtk_tree_model_get_path
	mov	x23, x0
	add	x1, sp, #28
	mov	x0, x24
	bl	_gtk_tree_selection_select_iter
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_gtk_tree_view_scroll_to_cell
	mov	x0, x23
	bl	_gtk_tree_path_free
	mov	x0, x21
	bl	_GTK_TREE_STORE
	mov	x1, x20
	bl	_gtk_tree_store_remove
	ldr	w0, [sp, #12]
	bl	_ghb_iso639_lookup_by_int
	mov	x20, x0
	ldr	w0, [x0]
	bl	_ghb_string_value_new
	mov	x21, x0
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_value
	mov	x22, x0
	bl	_ghb_array_len
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_subtitle_update_pref_lang
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_ghb_array_append
	mov	x0, x19
	bl	_ghb_clear_presets_selection
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subtitle_selected_lang"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"SubtitleLanguageList"

.subsections_via_symbols
