	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_check_dependency           ## -- Begin function ghb_check_dependency
	.p2align	4, 0x90
_ghb_check_dependency:                  ## @ghb_check_dependency
	.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	%rdx, %r14
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_G_OBJECT_TYPE
	movq	_GTK_TYPE_COMBO_BOX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_GTK_COMBO_BOX
	movl	%eax, %edi
	callq	_gtk_combo_box_get_active
	testq	%rax, %rax
	js	LBB0_16
LBB0_3:
	movq	%rbx, %rdi
	callq	_ghb_get_setting_key
	movq	%rax, %r14
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_g_debug
	movq	_dep_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.5:
	movq	%r14, %rsi
	callq	_ghb_dict_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ghb_array_len
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_16
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_g_message
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ghb_array_get
	movq	%rax, %rdi
	callq	_ghb_value_get_string
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_gtk_builder_get_object
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rdx
	callq	_dep_check
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_gtk_widget_set_sensitive
	movq	%r13, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_gtk_widget_set_can_focus
	movq	-64(%rbp), %rbx
	movq	%r13, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	callq	_gtk_widget_get_visible
	testq	%r14, %r14
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	callq	_gtk_widget_hide
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	callq	_gtk_widget_show
	jmp	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GTK_TYPE_COMBO_BOX,8,3         ## @GTK_TYPE_COMBO_BOX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ghb_check_dependency() %s"

	.comm	_dep_map,8,3                    ## @dep_map
L_.str.1:                               ## @.str.1
	.asciz	"Failed to find dependent widget %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_check_dependency           ; -- Begin function ghb_check_dependency
	.p2align	2
_ghb_check_dependency:                  ; @ghb_check_dependency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x0, x1
	bl	_G_OBJECT_TYPE
Lloh0:
	adrp	x8, _GTK_TYPE_COMBO_BOX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GTK_TYPE_COMBO_BOX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_GTK_COMBO_BOX
	bl	_gtk_combo_box_get_active
	tbnz	x0, #63, LBB0_16
LBB0_3:
	mov	x0, x20
	bl	_ghb_get_setting_key
	mov	x21, x0
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_g_debug
Lloh5:
	adrp	x8, _dep_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dep_map@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	cbz	x0, LBB0_16
; %bb.5:
	mov	x1, x21
	bl	_ghb_dict_get
	mov	x20, x0
	bl	_ghb_array_len
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x21, x0
	mov	x22, #0
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_g_message
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	cmp	x21, x22
	b.eq	LBB0_16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ghb_array_get
	bl	_ghb_value_get_string
	mov	x25, x0
	ldr	w0, [x19]
	mov	x1, x25
	bl	_gtk_builder_get_object
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x25
	bl	_dep_check
	mov	x25, x0
	mov	x0, x24
	bl	_GTK_WIDGET
	mov	x1, x25
	bl	_gtk_widget_set_sensitive
	mov	x0, x24
	bl	_GTK_WIDGET
	mov	x1, x25
	bl	_gtk_widget_set_can_focus
	ldr	x26, [sp, #8]
	mov	x0, x24
	bl	_GTK_WIDGET
	bl	_gtk_widget_get_visible
	cbnz	x25, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x26, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_GTK_WIDGET
	bl	_gtk_widget_hide
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_GTK_WIDGET
	bl	_gtk_widget_show
	b	LBB0_8
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GTK_TYPE_COMBO_BOX,8,3         ; @GTK_TYPE_COMBO_BOX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ghb_check_dependency() %s"

	.comm	_dep_map,8,3                    ; @dep_map
l_.str.1:                               ; @.str.1
	.asciz	"Failed to find dependent widget %s"

.subsections_via_symbols
