	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_restore_crtc               ## -- Begin function drm_restore_crtc
	.p2align	4, 0x90
_drm_restore_crtc:                      ## @drm_restore_crtc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_g_orig_crtc@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_g_drm_fd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	16(%rax), %esi
	movl	12(%rax), %edx
	movl	4(%rax), %r8d
	movl	8(%rax), %ecx
	movq	_g_connector_id@GOTPCREL(%rip), %r9
	pushq	%rax
	pushq	$1
	callq	_drmModeSetCrtc
	addq	$16, %rsp
	movq	(%rbx), %rdi
	callq	_drmModeFreeCrtc
	movq	$0, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_orig_crtc,8,3                ## @g_orig_crtc
	.comm	_g_drm_fd,4,2                   ## @g_drm_fd
	.comm	_g_connector_id,4,2             ## @g_connector_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_restore_crtc               ; -- Begin function drm_restore_crtc
	.p2align	2
_drm_restore_crtc:                      ; @drm_restore_crtc
	.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
Lloh0:
	adrp	x19, _g_orig_crtc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_orig_crtc@GOTPAGEOFF]
	ldr	x7, [x19]
	cbz	x7, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _g_drm_fd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_drm_fd@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	w2, w1, [x7, #12]
	ldp	w4, w3, [x7, #4]
Lloh5:
	adrp	x5, _g_connector_id@GOTPAGE
Lloh6:
	ldr	x5, [x5, _g_connector_id@GOTPAGEOFF]
	mov	w6, #1
	bl	_drmModeSetCrtc
	ldr	x0, [x19]
	bl	_drmModeFreeCrtc
	str	xzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_g_orig_crtc,8,3                ; @g_orig_crtc
	.comm	_g_drm_fd,4,2                   ; @g_drm_fd
	.comm	_g_connector_id,4,2             ; @g_connector_id
.subsections_via_symbols
