	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_idle_ui_init               ## -- Begin function ghb_idle_ui_init
	.p2align	4, 0x90
_ghb_idle_ui_init:                      ## @ghb_idle_ui_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	callq	_ghb_settings_to_ui
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ghb_settings_to_ui
	movq	_dvd_device@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_set_string
	movq	_ghb_idle_scan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_g_idle_add
	jmp	LBB0_3
LBB0_2:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_value
	movl	(%rbx), %r14d
	movq	%rax, %rdi
	callq	_ghb_value_dup
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_ghb_dict_set
LBB0_3:
	movq	_arg_preset@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	_HB_PRESET_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ghb_select_preset
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_ghb_select_default_preset
LBB0_6:
	movq	%rbx, %rdi
	callq	_ghb_check_all_depencencies
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dvd_device,8,3                 ## @dvd_device
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scan_source"

	.comm	_ghb_idle_scan,8,3              ## @ghb_idle_scan
L_.str.1:                               ## @.str.1
	.asciz	"default_source"

	.comm	_arg_preset,8,3                 ## @arg_preset
	.comm	_HB_PRESET_TYPE_ALL,4,2         ## @HB_PRESET_TYPE_ALL
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_idle_ui_init               ; -- Begin function ghb_idle_ui_init
	.p2align	2
_ghb_idle_ui_init:                      ; @ghb_idle_ui_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w1, [x0]
	bl	_ghb_settings_to_ui
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_ghb_settings_to_ui
Lloh0:
	adrp	x8, _dvd_device@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dvd_device@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_set_string
Lloh5:
	adrp	x8, _ghb_idle_scan@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ghb_idle_scan@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_g_idle_add
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_value
	ldr	w20, [x19]
	bl	_ghb_value_dup
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set
LBB0_3:
Lloh12:
	adrp	x8, _arg_preset@GOTPAGE
Lloh13:
	ldr	x8, [x8, _arg_preset@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _HB_PRESET_TYPE_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HB_PRESET_TYPE_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ghb_select_preset
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ghb_select_default_preset
LBB0_6:
	mov	x0, x19
	bl	_ghb_check_all_depencencies
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_dvd_device,8,3                 ; @dvd_device
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scan_source"

	.comm	_ghb_idle_scan,8,3              ; @ghb_idle_scan
l_.str.1:                               ; @.str.1
	.asciz	"default_source"

	.comm	_arg_preset,8,3                 ; @arg_preset
	.comm	_HB_PRESET_TYPE_ALL,4,2         ; @HB_PRESET_TYPE_ALL
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
