	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_source_dialog
_do_source_dialog:                      ## @do_source_dialog
	.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, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_g_debug
	movl	12(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_string
	movq	%rax, %r14
	movl	8(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	callq	_gtk_widget_show
	jmp	LBB0_3
LBB0_2:
	callq	_gtk_widget_hide
LBB0_3:
	movl	8(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_source_dialog_extra_widgets
	movq	%rbx, %rdi
	callq	_gtk_widget_show
	movq	%rbx, %rdi
	callq	_GTK_FILE_CHOOSER
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_gtk_file_chooser_select_filename
	movq	%rbx, %rdi
	callq	_GTK_DIALOG
	movl	%eax, %edi
	callq	_gtk_dialog_run
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_gtk_widget_hide
	movq	_GTK_RESPONSE_NO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_GTK_FILE_CHOOSER
	movl	%eax, %edi
	callq	_gtk_file_chooser_get_filename
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movl	4(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rax, %r15
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rbx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ghb_dict_set_string
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_ghb_pref_save
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ghb_dvd_set_current
LBB0_10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ghb_do_scan
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_free                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source_browse_clicked_cb ()"

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

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

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

	.comm	_GTK_RESPONSE_NO,8,3            ## @GTK_RESPONSE_NO
L_.str.4:                               ## @.str.4
	.asciz	"single_title"

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

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_do_source_dialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_source_dialog
_do_source_dialog:                      ; @do_source_dialog
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_debug
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_string
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_WIDGET
	cbz	x21, LBB0_2
; %bb.1:
	bl	_gtk_widget_show
	b	LBB0_3
LBB0_2:
	bl	_gtk_widget_hide
LBB0_3:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GHB_WIDGET
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_source_dialog_extra_widgets
	mov	x0, x22
	bl	_gtk_widget_show
	mov	x0, x22
	bl	_GTK_FILE_CHOOSER
	mov	x1, x20
	bl	_gtk_file_chooser_select_filename
	mov	x0, x22
	bl	_GTK_DIALOG
	bl	_gtk_dialog_run
	mov	x23, x0
	mov	x0, x22
	bl	_gtk_widget_hide
Lloh8:
	adrp	x8, _GTK_RESPONSE_NO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GTK_RESPONSE_NO@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x22
	bl	_GTK_FILE_CHOOSER
	bl	_gtk_file_chooser_get_filename
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ghb_dict_get_int
	mov	x21, x0
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh13:
	adrp	x20, l_.str.5@PAGE
Lloh14:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_ghb_dict_set_string
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ghb_pref_save
	mov	x0, x22
	mov	x1, x19
	bl	_ghb_dvd_set_current
LBB0_9:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_ghb_do_scan
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_g_free
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source_browse_clicked_cb ()"

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

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

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

	.comm	_GTK_RESPONSE_NO,8,3            ; @GTK_RESPONSE_NO
l_.str.4:                               ; @.str.4
	.asciz	"single_title"

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

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_do_source_dialog
.subsections_via_symbols
