	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mga_enable_vblank              ## -- Begin function mga_enable_vblank
	.p2align	4, 0x90
_mga_enable_vblank:                     ## @mga_enable_vblank
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	_MGA_IEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MGA_VLINEIEN@GOTPCREL(%rip), %rax
	movq	_MGA_SOFTRAPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_MGA_WRITE
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tried to enable vblank on non-existent crtc %u\n"

	.comm	_MGA_IEN,4,2                    ## @MGA_IEN
	.comm	_MGA_VLINEIEN,4,2               ## @MGA_VLINEIEN
	.comm	_MGA_SOFTRAPEN,4,2              ## @MGA_SOFTRAPEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mga_enable_vblank              ; -- Begin function mga_enable_vblank
	.p2align	2
_mga_enable_vblank:                     ; @mga_enable_vblank
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _MGA_IEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MGA_IEN@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MGA_VLINEIEN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MGA_VLINEIEN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _MGA_SOFTRAPEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MGA_SOFTRAPEN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_MGA_WRITE
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tried to enable vblank on non-existent crtc %u\n"

	.comm	_MGA_IEN,4,2                    ; @MGA_IEN
	.comm	_MGA_VLINEIEN,4,2               ; @MGA_VLINEIEN
	.comm	_MGA_SOFTRAPEN,4,2              ; @MGA_SOFTRAPEN
.subsections_via_symbols
