	.file	"extr_vmwgfx_drv.c___vmw_svga_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__vmw_svga_disable, @function
__vmw_svga_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	spin_lock@PLT
	mov	rdx, QWORD PTR TTM_PL_VRAM[rip]
	mov	rax, QWORD PTR 8[rbp]
	lea	rax, [rax+rdx*4]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jne	.L5
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR [rax], 0
	mov	esi, DWORD PTR SVGA_REG_ENABLE[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR SVGA_REG_ENABLE_HIDE[rip]
	or	edx, DWORD PTR SVGA_REG_ENABLE_ENABLE[rip]
	call	vmw_write@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	__vmw_svga_disable, .-__vmw_svga_disable
	.comm	TTM_PL_VRAM,8,8
	.comm	SVGA_REG_ENABLE_HIDE,4,4
	.comm	SVGA_REG_ENABLE_ENABLE,4,4
	.comm	SVGA_REG_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vmwgfx_drv.c___vmw_svga_disable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__vmw_svga_disable, %function
__vmw_svga_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	spin_lock
	ldr	r2, .L9
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [r3, r2, lsl #2]
	cmp	r1, #0
	bne	.L8
	mov	r0, r4
	pop	{r4, lr}
	b	spin_unlock
.L8:
	mov	ip, #0
	ldr	r0, .L9+4
	ldr	r1, .L9+8
	str	ip, [r3, r2, lsl #2]
	ldr	r1, [r1]
	ldr	r2, [r0]
	ldr	r3, .L9+12
	mov	r0, r4
	orr	r2, r1, r2
	ldr	r1, [r3]
	bl	vmw_write
	mov	r0, r4
	pop	{r4, lr}
	b	spin_unlock
.L10:
	.align	2
.L9:
	.word	TTM_PL_VRAM
	.word	SVGA_REG_ENABLE_ENABLE
	.word	SVGA_REG_ENABLE_HIDE
	.word	SVGA_REG_ENABLE
	.size	__vmw_svga_disable, .-__vmw_svga_disable
	.comm	TTM_PL_VRAM,4,4
	.comm	SVGA_REG_ENABLE_HIDE,4,4
	.comm	SVGA_REG_ENABLE_ENABLE,4,4
	.comm	SVGA_REG_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
