	.file	"extr_nv_hw.c_NVShowHideCursor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	NVShowHideCursor
	.type	NVShowHideCursor, @function
NVShowHideCursor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	and	esi, 1
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR 24[rdi]
	mov	ebp, DWORD PTR [rdx]
	mov	eax, ebp
	and	eax, 254
	or	eax, esi
	mov	esi, 980
	mov	DWORD PTR [rdx], eax
	mov	edx, 49
	call	VGA_WR08@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, 981
	mov	edx, DWORD PTR [rax]
	call	VGA_WR08@PLT
	mov	rax, QWORD PTR NV_ARCH_40[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L5
	mov	eax, ebp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	and	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, 768
	call	NV_RD32@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, 768
	mov	edx, eax
	call	NV_WR32@PLT
	mov	eax, ebp
	add	rsp, 8
	.cfi_def_cfa_offset 24
	and	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	NVShowHideCursor, .-NVShowHideCursor
	.comm	NV_ARCH_40,8,8
	.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_nv_hw.c_NVShowHideCursor.c"
	.text
	.align	2
	.global	NVShowHideCursor
	.syntax unified
	.arm
	.fpu softvfp
	.type	NVShowHideCursor, %function
NVShowHideCursor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, [r0, #8]
	and	r3, r1, #1
	ldr	r5, [r2]
	ldr	r0, [r0, #12]
	and	r1, r5, #254
	orr	r1, r1, r3
	str	r1, [r2]
	mov	r2, #49
	mov	r1, #980
	bl	VGA_WR08
	ldr	r3, [r4, #8]
	ldr	r0, [r4, #12]
	ldr	r2, [r3]
	ldr	r1, .L6
	bl	VGA_WR08
	ldr	r3, .L6+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	and	r0, r5, #1
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r4, [r4, #4]
	mov	r1, #768
	mov	r0, r4
	bl	NV_RD32
	mov	r1, #768
	mov	r2, r0
	mov	r0, r4
	bl	NV_WR32
	and	r0, r5, #1
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	981
	.word	NV_ARCH_40
	.size	NVShowHideCursor, .-NVShowHideCursor
	.comm	NV_ARCH_40,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
