	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_enable
_display_enable:                        ## @display_enable
	.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, %r15
	movq	%rdi, %rbx
	callq	_to_xen_drm_pipeline
	movq	%rax, %r14
	movq	(%r15), %r15
	movl	8(%rbx), %edi
	leaq	-52(%rbp), %rsi
	callq	_drm_dev_enter
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %ebx
	movl	12(%r15), %r13d
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	shll	$3, %r12d
	movq	%r15, %rdi
	callq	_xen_drm_front_fb_to_cookie
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_xen_drm_front_mode_set
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	$0, (%r14)
LBB0_3:
	movl	-52(%rbp), %edi
	callq	_drm_dev_exit
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable display: %d\n"

	.no_dead_strip	_display_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_enable
_display_enable:                        ; @display_enable
	.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	x20, x2
	mov	x21, x0
	bl	_to_xen_drm_pipeline
	mov	x19, x0
	ldr	x20, [x20]
	ldr	w0, [x21, #8]
	add	x1, sp, #12
	bl	_drm_dev_enter
	cbz	w0, LBB0_4
; %bb.1:
	ldp	w21, w22, [x21]
	ldp	w24, w23, [x20, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsl	w25, w8, #3
	mov	x0, x20
	bl	_xen_drm_front_fb_to_cookie
	mov	x6, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	bl	_xen_drm_front_mode_set
	cbz	w0, LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	str	wzr, [x19]
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_drm_dev_exit
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable display: %d\n"

	.no_dead_strip	_display_enable
.subsections_via_symbols
