	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_disable_vga
_cdv_disable_vga:                       ## @cdv_disable_vga
	.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
	movq	_VGACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_VGA_SR_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_outb
	movq	_VGA_SR_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inb
	orl	$32, %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_outb
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	movq	_VGA_DISP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_REG_WRITE
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_READ                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VGACNTRL,4,2                   ## @VGACNTRL
	.comm	_VGA_SR_INDEX,4,2               ## @VGA_SR_INDEX
	.comm	_VGA_SR_DATA,4,2                ## @VGA_SR_DATA
	.comm	_VGA_DISP_DISABLE,4,2           ## @VGA_DISP_DISABLE
	.no_dead_strip	_cdv_disable_vga
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_disable_vga
_cdv_disable_vga:                       ; @cdv_disable_vga
	.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	x8, _VGACNTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGACNTRL@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _VGA_SR_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VGA_SR_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_outb
Lloh6:
	adrp	x20, _VGA_SR_DATA@GOTPAGE
Lloh7:
	ldr	x20, [x20, _VGA_SR_DATA@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_inb
	orr	w0, w0, #0x20
	ldr	w1, [x20]
	bl	_outb
	mov	w0, #300
	bl	_udelay
Lloh8:
	adrp	x8, _VGA_DISP_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VGA_DISP_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_READ
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VGACNTRL,4,2                   ; @VGACNTRL
	.comm	_VGA_SR_INDEX,4,2               ; @VGA_SR_INDEX
	.comm	_VGA_SR_DATA,4,2                ; @VGA_SR_DATA
	.comm	_VGA_DISP_DISABLE,4,2           ; @VGA_DISP_DISABLE
	.no_dead_strip	_cdv_disable_vga
.subsections_via_symbols
