	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_wl_suppress_screensaver
_gfx_ctx_wl_suppress_screensaver:       ## @gfx_ctx_wl_suppress_screensaver
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	setne	%al
	movl	$1, %r14d
	cmpl	%esi, %eax
	je	LBB0_7
## %bb.3:
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_zwp_idle_inhibit_manager_v1_create_inhibitor
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_LOG
	movq	(%rbx), %rdi
	callq	_zwp_idle_inhibitor_v1_destroy
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, (%rbx)
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Wayland]: Enabling idle inhibitor\n"

L_.str.1:                               ## @.str.1
	.asciz	"[Wayland]: Disabling the idle inhibitor\n"

	.no_dead_strip	_gfx_ctx_wl_suppress_screensaver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_wl_suppress_screensaver
_gfx_ctx_wl_suppress_screensaver:       ; @gfx_ctx_wl_suppress_screensaver
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w8, ne
	cmp	w8, w1
	b.eq	LBB0_7
; %bb.2:
	cbz	w1, LBB0_5
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	bl	_zwp_idle_inhibit_manager_v1_create_inhibitor
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	ldr	x0, [x19]
	bl	_zwp_idle_inhibitor_v1_destroy
	mov	x0, #0
LBB0_6:
	str	x0, [x19]
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Wayland]: Enabling idle inhibitor\n"

l_.str.1:                               ; @.str.1
	.asciz	"[Wayland]: Disabling the idle inhibitor\n"

	.no_dead_strip	_gfx_ctx_wl_suppress_screensaver
.subsections_via_symbols
