	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_disable_vga
_i915_disable_vga:                      ## @i915_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_i915_vgacntrl_reg
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_VGA_RSRC_LEGACY_IO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_vga_get_uninterruptible
	movq	_SR01@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VGA_SR_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movq	_VGA_SR_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_inb
	orl	$32, %eax
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_outb
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_vga_put
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	movq	_VGA_DISP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_RSRC_LEGACY_IO,4,2         ## @VGA_RSRC_LEGACY_IO
	.comm	_SR01,4,2                       ## @SR01
	.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	_i915_disable_vga
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_disable_vga
_i915_disable_vga:                      ; @i915_disable_vga
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_i915_vgacntrl_reg
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x21, _VGA_RSRC_LEGACY_IO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VGA_RSRC_LEGACY_IO@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_vga_get_uninterruptible
Lloh2:
	adrp	x8, _SR01@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SR01@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _VGA_SR_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VGA_SR_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_outb
Lloh8:
	adrp	x22, _VGA_SR_DATA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _VGA_SR_DATA@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_inb
	orr	w0, w0, #0x20
	ldr	w1, [x22]
	bl	_outb
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_vga_put
	mov	w0, #300
	bl	_udelay
Lloh10:
	adrp	x8, _VGA_DISP_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VGA_DISP_DISABLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_POSTING_READ
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_RSRC_LEGACY_IO,4,2         ; @VGA_RSRC_LEGACY_IO
	.comm	_SR01,4,2                       ; @SR01
	.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	_i915_disable_vga
.subsections_via_symbols
