	.file	"extr_hercules.c_PrintCursorHercules.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PrintCursorHercules
	.type	PrintCursorHercules, @function
PrintCursorHercules:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	jne	.L5
	mov	eax, DWORD PTR count.1933[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR count.1933[rip], edx
	cmp	eax, 100
	jle	.L4
	cmp	QWORD PTR bCursorEnabled[rip], 0
	je	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR OUTPUT_WINDOW[rip]
	mov	rdi, QWORD PTR pVgaOffset[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR wWindow[rip]
	lea	rax, [rax+rdx*4]
	mov	edx, DWORD PTR 8[rax]
	add	edx, DWORD PTR 4[rax]
	sal	edx, 3
	mov	r8d, DWORD PTR [rax]
	lea	esi, 8[rdx]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, edx
	mov	eax, edx
	add	edx, 1
	and	ecx, 3
	sar	eax, 2
	imul	eax, eax, 90
	add	eax, DWORD PTR [rdi+rcx*4]
	add	eax, r8d
	cdqe
	xor	DWORD PTR [rax], 255
	cmp	edx, esi
	jne	.L3
	mov	edx, DWORD PTR bRev[rip]
	xor	eax, eax
	mov	DWORD PTR count.1933[rip], 0
	test	edx, edx
	sete	al
	mov	DWORD PTR bRev[rip], eax
.L4:
	mov	edi, 2500
	jmp	KeStallExecutionProcessor@PLT
	.cfi_endproc
.LFE0:
	.size	PrintCursorHercules, .-PrintCursorHercules
	.local	count.1933
	.comm	count.1933,4,4
	.comm	wWindow,8,8
	.comm	pVgaOffset,8,8
	.comm	bRev,4,4
	.comm	bCursorEnabled,8,8
	.comm	OUTPUT_WINDOW,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_hercules.c_PrintCursorHercules.c"
	.text
	.align	2
	.global	PrintCursorHercules
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintCursorHercules, %function
PrintCursorHercules:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, lr}
	ldr	r4, .L9
	bne	.L5
	ldr	r3, [r4]
	cmp	r3, #100
	add	r3, r3, #1
	str	r3, [r4]
	ble	.L4
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
.L5:
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	r3, [r3]
	ldr	r1, [r2]
	add	r3, r3, r3, lsl #1
	add	r0, r1, r3, lsl #2
	ldr	r2, [r0, #4]
	ldr	r0, [r0, #8]
	ldr	ip, .L9+16
	add	r2, r2, r0
	lsl	r2, r2, #3
	ldr	r0, [r1, r3, lsl #2]
	ldr	ip, [ip]
	add	lr, r2, #8
.L3:
	asr	r3, r2, #2
	and	r1, r2, #3
	ldr	r1, [ip, r1, lsl #2]
	add	r3, r3, r3, lsl #1
	rsb	r3, r3, r3, lsl #4
	add	r3, r1, r3, lsl #1
	ldr	r1, [r3, r0]
	add	r2, r2, #1
	eor	r1, r1, #255
	cmp	r2, lr
	str	r1, [r3, r0]
	bne	.L3
	ldr	r2, .L9+20
	mov	r1, #0
	ldr	r3, [r2]
	str	r1, [r4]
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [r2]
.L4:
	ldr	r0, .L9+24
	pop	{r4, lr}
	b	KeStallExecutionProcessor
.L10:
	.align	2
.L9:
	.word	.LANCHOR0
	.word	bCursorEnabled
	.word	OUTPUT_WINDOW
	.word	wWindow
	.word	pVgaOffset
	.word	bRev
	.word	2500
	.size	PrintCursorHercules, .-PrintCursorHercules
	.comm	wWindow,4,4
	.comm	pVgaOffset,4,4
	.comm	bRev,4,4
	.comm	bCursorEnabled,4,4
	.comm	OUTPUT_WINDOW,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	count.4217, %object
	.size	count.4217, 4
count.4217:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
