	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subtitle_update_pref_lang
_subtitle_update_pref_lang:             ## @subtitle_update_pref_lang
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %r14
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_LABEL
	testq	%r15, %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	(%r15), %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%r15), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	cmpb	$0, (%r14)
	jne	LBB0_6
LBB0_5:
	movq	16(%r15), %r14
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %r12
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_g_strdup_printf
	movq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_gtk_label_set_text
	movq	%r14, %rdi
	callq	_g_free
	movq	%rbx, %r14
	movl	4(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_ghb_dict_set_string
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	setne	%r13b
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_BUTTON
	movq	%rax, %r12
	testb	%r13b, %r13b
	je	LBB0_10
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rsi
	xorl	%eax, %eax
	callq	_g_strdup_printf
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_g_strdup_printf
LBB0_11:
	movq	%rax, %rbx
	movzbl	%r13b, %r15d
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_gtk_button_set_label
	movq	%rbx, %rdi
	callq	_g_free
	movq	%r12, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_gtk_widget_set_sensitive
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_BUTTON
	movq	%rax, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gtk_widget_set_sensitive       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"None"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Preferred Language: %s"

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

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

L_.str.6:                               ## @.str.6
	.asciz	"Add %s subtitle track if default audio is not %s"

L_.str.7:                               ## @.str.7
	.asciz	"Add subtitle track if default audio is not your preferred language"

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

	.no_dead_strip	_subtitle_update_pref_lang
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subtitle_update_pref_lang
_subtitle_update_pref_lang:             ; @subtitle_update_pref_lang
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_LABEL
	mov	x23, x0
	cbz	x21, LBB0_5
; %bb.1:
	ldr	x22, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x20, [x21, #8]
	cbz	x20, LBB0_4
; %bb.3:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_6
LBB0_4:
	ldr	x20, [x21, #16]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_6:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	str	x20, [sp]
	bl	_g_strdup_printf
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_gtk_label_set_text
	mov	x0, x24
	bl	_g_free
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_ghb_dict_set_string
	cbz	x21, LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cmp	x0, #0
	cset	w21, ne
LBB0_8:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_BUTTON
	mov	x22, x0
	cbz	w21, LBB0_10
; %bb.9:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	stp	x20, x20, [sp]
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
LBB0_11:
	bl	_g_strdup_printf
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_gtk_button_set_label
	mov	x0, x20
	bl	_g_free
	mov	x0, x22
	bl	_GTK_WIDGET
	mov	x1, x21
	bl	_gtk_widget_set_sensitive
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_BUTTON
	bl	_GTK_WIDGET
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_gtk_widget_set_sensitive
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"None"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Preferred Language: %s"

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

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

l_.str.6:                               ; @.str.6
	.asciz	"Add %s subtitle track if default audio is not %s"

l_.str.7:                               ; @.str.7
	.asciz	"Add subtitle track if default audio is not your preferred language"

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

	.no_dead_strip	_subtitle_update_pref_lang
.subsections_via_symbols
