	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_control_mmio_write
_vga_control_mmio_write:                ## @vga_control_mmio_write
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_write_vreg
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_vgpu_vreg
	movq	_VGA_DISP_DISABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_gvt_dbg_core
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_DISP_DISABLE,4,2           ## @VGA_DISP_DISABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vgpu%d: %s VGA mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Disable"

L_.str.2:                               ## @.str.2
	.asciz	"Enable"

	.no_dead_strip	_vga_control_mmio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_control_mmio_write
_vga_control_mmio_write:                ; @vga_control_mmio_write
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_write_vreg
	mov	x0, x20
	mov	x1, x19
	bl	_vgpu_vreg
Lloh0:
	adrp	x8, _VGA_DISP_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGA_DISP_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w1, [x20]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w0
	csel	x2, x10, x9, eq
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_dbg_core
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_DISP_DISABLE,4,2           ; @VGA_DISP_DISABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vgpu%d: %s VGA mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Disable"

l_.str.2:                               ; @.str.2
	.asciz	"Enable"

	.no_dead_strip	_vga_control_mmio_write
.subsections_via_symbols
