	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_disable
_display_disable:                       ## @display_disable
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_xen_drm_pipeline
	movq	%rax, %r15
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	callq	_drm_dev_enter
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	callq	_xen_drm_front_fb_to_cookie
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_xen_drm_front_mode_set
	movl	%eax, %r14d
	movl	-28(%rbp), %edi
	callq	_drm_dev_exit
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_ERROR
LBB0_3:
	movl	$1, (%r15)
	movq	%r15, %rdi
	callq	_send_pending_event
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable display: %d\n"

	.no_dead_strip	_display_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_disable
_display_disable:                       ; @display_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_to_xen_drm_pipeline
	mov	x19, x0
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_drm_dev_enter
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, #0
	bl	_xen_drm_front_fb_to_cookie
	mov	x6, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_xen_drm_front_mode_set
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_drm_dev_exit
	cbz	w20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_send_pending_event
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable display: %d\n"

	.no_dead_strip	_display_disable
.subsections_via_symbols
