	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subtitle_def_lang_list_init
_subtitle_def_lang_list_init:           ## @subtitle_def_lang_list_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_TREE_VIEW
	movq	%rax, %rdi
	callq	_gtk_tree_view_get_model
	movq	%rax, %r14
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_TREE_VIEW
	movq	%rax, %rdi
	callq	_gtk_tree_view_get_model
	movq	%rax, %rdi
	callq	_GTK_TREE_STORE
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_subtitle_def_selected_lang_list_clear
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_ghb_dict_get_value
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ghb_array_new
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_ghb_dict_set
LBB0_2:
	movq	%rbx, %rdi
	callq	_ghb_array_len
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	leaq	-92(%rbp), %r13
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ghb_array_remove
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	cmpl	%eax, %r14d
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ghb_array_get
	movq	%rax, %rdi
	callq	_ghb_lookup_lang
	movl	%eax, %r15d
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_ghb_iso639_lookup_by_int
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_subtitle_update_pref_lang
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_ghb_find_lang_row
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	leaq	-72(%rbp), %rcx
	movl	$1, %r8d
	leaq	-64(%rbp), %r9
	callq	_gtk_tree_model_get
	movq	%rbx, %r15
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-60(%rbp), %rsi
	xorl	%edx, %edx
	callq	_gtk_tree_store_append
	movq	-72(%rbp), %rcx
	movl	-64(%rbp), %r9d
	movl	$-1, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rbx
	leaq	-60(%rbp), %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_gtk_tree_store_set
	movq	-72(%rbp), %rdi
	callq	_g_free
	movq	%r12, %rdi
	callq	_GTK_TREE_STORE
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_gtk_tree_store_remove
	incl	%r14d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r14d
	jl	LBB0_4
LBB0_10:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_subtitle_update_pref_lang
LBB0_12:
	addq	$72, %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_avail_lang"

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

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

	.no_dead_strip	_subtitle_def_lang_list_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subtitle_def_lang_list_init
_subtitle_def_lang_list_init:           ; @subtitle_def_lang_list_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_TREE_VIEW
	bl	_gtk_tree_view_get_model
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_TREE_VIEW
	bl	_gtk_tree_view_get_model
	bl	_GTK_TREE_STORE
	mov	x21, x0
	mov	x0, x19
	bl	_subtitle_def_selected_lang_list_clear
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_dict_get_value
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_ghb_array_new
	mov	x22, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_ghb_dict_set
LBB0_2:
	mov	x0, x22
	bl	_ghb_array_len
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w24, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_ghb_array_remove
	sub	w23, w23, #1
	cmp	w24, w23
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_ghb_array_get
	bl	_ghb_lookup_lang
	mov	x25, x0
	cbnz	w24, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_ghb_iso639_lookup_by_int
	mov	x1, x0
	mov	x0, x19
	bl	_subtitle_update_pref_lang
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #28
	mov	x0, x20
	mov	x2, x25
	bl	_ghb_find_lang_row
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #28
	add	x3, sp, #16
	add	x5, sp, #12
	mov	x0, x20
	mov	w2, #0
	mov	w4, #1
	mov	w6, #-1
	bl	_gtk_tree_model_get
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_gtk_tree_store_append
	ldr	x3, [sp, #16]
	ldr	w5, [sp, #12]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	mov	w4, #1
	mov	w6, #-1
	bl	_gtk_tree_store_set
	ldr	x0, [sp, #16]
	bl	_g_free
	mov	x0, x20
	bl	_GTK_TREE_STORE
	add	x1, sp, #28
	bl	_gtk_tree_store_remove
	add	w24, w24, #1
	cmp	w24, w23
	b.lt	LBB0_5
LBB0_9:
	cbnz	w23, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, #0
	bl	_subtitle_update_pref_lang
LBB0_11:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subtitle_avail_lang"

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

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

	.no_dead_strip	_subtitle_def_lang_list_init
.subsections_via_symbols
