	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subtitle_def_selected_lang_list_clear
_subtitle_def_selected_lang_list_clear: ## @subtitle_def_selected_lang_list_clear
	.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
	movq	%rdi, %r14
	movl	(%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, %rdi
	callq	_GTK_TREE_STORE
	movq	%rax, %rbx
	movl	(%r14), %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, %r14
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_gtk_tree_model_get_iter_first
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	-48(%rbp), %r15
	leaq	-60(%rbp), %r12
	leaq	-64(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_gtk_tree_store_append
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %r9d
	movl	$-1, (%rsp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_gtk_tree_store_set
	movq	-56(%rbp), %rdi
	callq	_g_free
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_gtk_tree_model_iter_next
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	movl	$1, %r8d
	leaq	-44(%rbp), %r9
	callq	_gtk_tree_model_get
	movq	%rbx, %rdi
	callq	_GTK_TREE_MODEL
	movl	-44(%rbp), %edx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_ghb_find_lang_row
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
	callq	_gtk_tree_store_insert_before
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_GTK_TREE_STORE
	movq	%rax, %rdi
	callq	_gtk_tree_store_clear
	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	"subtitle_avail_lang"

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

	.no_dead_strip	_subtitle_def_selected_lang_list_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subtitle_def_selected_lang_list_clear
_subtitle_def_selected_lang_list_clear: ; @subtitle_def_selected_lang_list_clear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0]
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
	bl	_GTK_TREE_STORE
	mov	x19, x0
	ldr	w0, [x20]
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
	mov	x20, x0
	sub	x1, x29, #20
	bl	_gtk_tree_model_get_iter_first
	cbnz	x0, LBB0_4
LBB0_1:
	mov	x0, x20
	bl	_GTK_TREE_STORE
	bl	_gtk_tree_store_clear
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x2, #0
	bl	_gtk_tree_store_append
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [sp, #16]
	ldr	w5, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w4, #1
	mov	w6, #-1
	bl	_gtk_tree_store_set
	ldr	x0, [sp, #16]
	bl	_g_free
	sub	x1, x29, #20
	mov	x0, x20
	bl	_gtk_tree_model_iter_next
	cbz	x0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #20
	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
	mov	x0, x19
	bl	_GTK_TREE_MODEL
	ldr	w2, [sp, #12]
	add	x1, sp, #4
	bl	_ghb_find_lang_row
	add	x1, sp, #8
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #4
	mov	x0, x19
	mov	x2, #0
	bl	_gtk_tree_store_insert_before
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.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"

	.no_dead_strip	_subtitle_def_selected_lang_list_clear
.subsections_via_symbols
