	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdg_screensaver_inhibit
_xdg_screensaver_inhibit:               ## @xdg_screensaver_inhibit
	.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	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movb	$0, -96(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	leaq	L_.str.1(%rip), %rdx
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_system
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %edi
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	movq	_xdg_screensaver_available@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	callq	_RARCH_WARN
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[X11]: Suspending screensaver (X11, xdg-screensaver).\n"

L_.str.1:                               ## @.str.1
	.asciz	"xdg-screensaver suspend 0x%x"

	.comm	_xdg_screensaver_available,4,2  ## @xdg_screensaver_available
L_.str.2:                               ## @.str.2
	.asciz	"Failed to launch xdg-screensaver.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not suspend screen saver.\n"

	.no_dead_strip	_xdg_screensaver_inhibit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdg_screensaver_inhibit
_xdg_screensaver_inhibit:               ; @xdg_screensaver_inhibit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	strb	wzr, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	add	x0, sp, #8
	bl	_system
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	bl	_WEXITSTATUS
	cbz	x0, LBB0_5
; %bb.2:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
Lloh11:
	adrp	x8, _xdg_screensaver_available@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xdg_screensaver_available@GOTPAGEOFF]
Lloh13:
	str	wzr, [x8]
	bl	_RARCH_WARN
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[X11]: Suspending screensaver (X11, xdg-screensaver).\n"

l_.str.1:                               ; @.str.1
	.asciz	"xdg-screensaver suspend 0x%x"

	.comm	_xdg_screensaver_available,4,2  ; @xdg_screensaver_available
l_.str.2:                               ; @.str.2
	.asciz	"Failed to launch xdg-screensaver.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not suspend screen saver.\n"

	.no_dead_strip	_xdg_screensaver_inhibit
.subsections_via_symbols
