	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ghb_can_shutdown_gpm
_ghb_can_shutdown_gpm:                  ## @ghb_can_shutdown_gpm
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -20(%rbp)
	movq	$0, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_g_debug
	movq	_GPM_DBUS_PM_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GPM_DBUS_PM_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPM_DBUS_PM_INTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ghb_get_session_dbus_proxy
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	_G_DBUS_CALL_FLAGS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_g_dbus_proxy_call_sync
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rax, %rdi
	callq	_g_variant_get
	movq	%rbx, %rdi
	callq	_g_variant_unref
	jmp	LBB0_7
LBB0_2:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_g_warning
	movq	-32(%rbp), %rdi
	callq	_g_error_free
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_g_warning
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
LBB0_7:
	movq	%r14, %rdi
	callq	_G_OBJECT
	movl	%eax, %edi
	callq	_g_object_unref
	leaq	-20(%rbp), %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ghb_can_shutdown_gpm()"

	.comm	_GPM_DBUS_PM_SERVICE,4,2        ## @GPM_DBUS_PM_SERVICE
	.comm	_GPM_DBUS_PM_PATH,4,2           ## @GPM_DBUS_PM_PATH
	.comm	_GPM_DBUS_PM_INTERFACE,4,2      ## @GPM_DBUS_PM_INTERFACE
L_.str.1:                               ## @.str.1
	.asciz	"CanShutdown"

	.comm	_G_DBUS_CALL_FLAGS_NONE,4,2     ## @G_DBUS_CALL_FLAGS_NONE
L_.str.2:                               ## @.str.2
	.asciz	"CanShutdown failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"CanShutdown failed"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.4:                               ## @.str.4
	.asciz	"(b)"

	.no_dead_strip	_ghb_can_shutdown_gpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ghb_can_shutdown_gpm
_ghb_can_shutdown_gpm:                  ; @ghb_can_shutdown_gpm
	.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
Lloh0:
	adrp	x20, _FALSE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	ldr	w8, [x20]
	stur	w8, [x29, #-20]
	str	xzr, [sp, #16]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_debug
Lloh4:
	adrp	x8, _GPM_DBUS_PM_SERVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPM_DBUS_PM_SERVICE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _GPM_DBUS_PM_PATH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GPM_DBUS_PM_PATH@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _GPM_DBUS_PM_INTERFACE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GPM_DBUS_PM_INTERFACE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_ghb_get_session_dbus_proxy
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh13:
	adrp	x8, _G_DBUS_CALL_FLAGS_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _G_DBUS_CALL_FLAGS_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x6, sp, #16
	mov	x2, #0
	mov	w4, #-1
	mov	x5, #0
	bl	_g_dbus_proxy_call_sync
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #20
	bl	_g_variant_get
	mov	x0, x20
	bl	_g_variant_unref
	b	LBB0_7
LBB0_3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_g_warning
	ldr	x0, [sp, #16]
	bl	_g_error_free
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_g_warning
LBB0_6:
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stur	w8, [x29, #-20]
LBB0_7:
	mov	x0, x19
	bl	_G_OBJECT
	bl	_g_object_unref
	sub	x20, x29, #20
LBB0_8:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ghb_can_shutdown_gpm()"

	.comm	_GPM_DBUS_PM_SERVICE,4,2        ; @GPM_DBUS_PM_SERVICE
	.comm	_GPM_DBUS_PM_PATH,4,2           ; @GPM_DBUS_PM_PATH
	.comm	_GPM_DBUS_PM_INTERFACE,4,2      ; @GPM_DBUS_PM_INTERFACE
l_.str.1:                               ; @.str.1
	.asciz	"CanShutdown"

	.comm	_G_DBUS_CALL_FLAGS_NONE,4,2     ; @G_DBUS_CALL_FLAGS_NONE
l_.str.2:                               ; @.str.2
	.asciz	"CanShutdown failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"CanShutdown failed"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.4:                               ; @.str.4
	.asciz	"(b)"

	.no_dead_strip	_ghb_can_shutdown_gpm
.subsections_via_symbols
