	.file	"664536.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Haribote OS."
	.text
	.globl	HariMain
	.type	HariMain, @function
HariMain:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -280[rbp], 4080
	mov	DWORD PTR -288[rbp], 120
	mov	DWORD PTR -284[rbp], 120
	call	init_palette
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, WORD PTR 6[rax]
	movsx	edx, ax
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, WORD PTR 4[rax]
	movsx	ecx, ax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, ecx
	mov	rdi, rax
	call	init_screen
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, WORD PTR 4[rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	r9, .LC0[rip]
	mov	r8d, 0
	mov	ecx, 9
	mov	edx, 9
	mov	rdi, rax
	call	putfont8_asc
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, WORD PTR 4[rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	r9, .LC0[rip]
	mov	r8d, 7
	mov	ecx, 8
	mov	edx, 8
	mov	rdi, rax
	call	putfont8_asc
	lea	rax, -272[rbp]
	mov	esi, 14
	mov	rdi, rax
	call	init_mouse_coursor8
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, WORD PTR 4[rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR -284[rbp]
	mov	ecx, DWORD PTR -288[rbp]
	push	16
	lea	rdx, -272[rbp]
	push	rdx
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, 16
	mov	edx, 16
	mov	rdi, rax
	call	putblock8_8
	add	rsp, 16
.L2:
	call	io_hlt@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	HariMain, .-HariMain
	.globl	init_gdtidt
	.type	init_gdtidt, @function
init_gdtidt:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -16[rbp], 2555904
	mov	QWORD PTR -8[rbp], 2553856
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	set_segmdesc
	add	DWORD PTR -20[rbp], 1
.L5:
	cmp	DWORD PTR -20[rbp], 8191
	jle	.L6
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	ecx, 16530
	mov	edx, 0
	mov	esi, -1
	mov	rdi, rax
	call	set_segmdesc
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	ecx, 16538
	mov	edx, 2621440
	mov	esi, 524287
	mov	rdi, rax
	call	set_segmdesc
	mov	esi, 2553856
	mov	edi, 65535
	call	load_gdtr@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	set_gatedesc
	add	DWORD PTR -20[rbp], 1
.L7:
	cmp	DWORD PTR -20[rbp], 255
	jle	.L8
	mov	esi, 2553856
	mov	edi, 2047
	call	load_idtr@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init_gdtidt, .-init_gdtidt
	.globl	set_segmdesc
	.type	set_segmdesc, @function
set_segmdesc:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	cmp	DWORD PTR -12[rbp], 1048575
	jbe	.L11
	or	DWORD PTR -20[rbp], 32768
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 12
	mov	DWORD PTR -12[rbp], eax
.L11:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], dx
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 2[rax], dx
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 4[rax], dl
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 5[rax], dl
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 16
	and	eax, 15
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 8
	and	eax, -16
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 6[rax], dl
	mov	eax, DWORD PTR -16[rbp]
	shr	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 7[rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	set_segmdesc, .-set_segmdesc
	.globl	set_gatedesc
	.type	set_gatedesc, @function
set_gatedesc:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], dx
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 2[rax], dx
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 4[rax], dl
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 5[rax], dl
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 6[rax], dx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	set_gatedesc, .-set_gatedesc
	.globl	putblock8_8
	.type	putblock8_8, @function
putblock8_8:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -44[rbp], r9d
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR 24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -4[rbp]
	add	edx, ecx
	imul	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	add	ecx, esi
	add	edx, ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L18
	add	DWORD PTR -4[rbp], 1
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L19
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	putblock8_8, .-putblock8_8
	.globl	init_mouse_coursor8
	.type	init_mouse_coursor8, @function
init_mouse_coursor8:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L28:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L27:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	lea	rax, cursor.1[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 42
	jne	.L24
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L24:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	lea	rax, cursor.1[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L25
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 7
.L25:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	lea	rax, cursor.1[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L26
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR [rdx], al
.L26:
	add	DWORD PTR -8[rbp], 1
.L23:
	cmp	DWORD PTR -8[rbp], 15
	jle	.L27
	add	DWORD PTR -4[rbp], 1
.L22:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L28
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	init_mouse_coursor8, .-init_mouse_coursor8
	.globl	putfont8_asc
	.type	putfont8_asc, @function
putfont8_asc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	eax, r8d
	mov	QWORD PTR -32[rbp], r9
	mov	BYTE PTR -24[rbp], al
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	cdqe
	lea	rdx, hankaku[rip]
	lea	r8, [rax+rdx]
	movsx	edi, BYTE PTR -24[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9, r8
	mov	r8d, edi
	mov	rdi, rax
	call	putfont8
	add	DWORD PTR -16[rbp], 8
	add	QWORD PTR -32[rbp], 1
.L31:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	putfont8_asc, .-putfont8_asc
	.globl	putfont8
	.type	putfont8, @function
putfont8:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	eax, r8d
	mov	QWORD PTR -48[rbp], r9
	mov	BYTE PTR -40[rbp], al
	mov	DWORD PTR -12[rbp], 0
	jmp	.L35
.L44:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	imul	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	cmp	BYTE PTR -13[rbp], 0
	jns	.L36
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -40[rbp]
	mov	BYTE PTR [rax], dl
.L36:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 64
	test	eax, eax
	je	.L37
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L37:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 32
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L38:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 16
	test	eax, eax
	je	.L39
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L39:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 8
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L40:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 4
	test	eax, eax
	je	.L41
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 5[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L41:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 2
	test	eax, eax
	je	.L42
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 6[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L42:
	movsx	eax, BYTE PTR -13[rbp]
	and	eax, 1
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 7[rax]
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR [rdx], al
.L43:
	add	DWORD PTR -12[rbp], 1
.L35:
	cmp	DWORD PTR -12[rbp], 15
	jle	.L44
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	putfont8, .-putfont8
	.globl	init_screen
	.type	init_screen, @function
init_screen:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -29[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, -1[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, ecx
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 14
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -28[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -28[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, 0
	mov	edx, 8
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -27[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -27[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, 0
	mov	edx, 7
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -26[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, 0
	mov	edx, 8
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -24[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -24[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 59
	mov	r8d, ecx
	mov	ecx, 3
	mov	edx, 7
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -4[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -24[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 2
	mov	r8d, ecx
	mov	ecx, 2
	mov	edx, 7
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -4[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -4[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 59
	mov	r8d, ecx
	mov	ecx, 3
	mov	edx, 15
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -5[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -23[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 59
	mov	r8d, ecx
	mov	ecx, 59
	mov	edx, 15
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -3[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -3[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 59
	mov	r8d, ecx
	mov	ecx, 2
	mov	edx, 0
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -3[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -24[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 60
	mov	r8d, ecx
	mov	ecx, 60
	mov	edx, 0
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -24[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	r8d, -4[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -24[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -47[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, 15
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -4[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	r8d, -47[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -23[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -47[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, 15
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -3[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	r8d, -4[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -3[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -47[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, 7
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -3[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	r8d, -3[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -24[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -3[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, 7
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_screen, .-init_screen
	.globl	boxfill8
	.type	boxfill8, @function
boxfill8:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -44[rbp], r9d
	mov	BYTE PTR -32[rbp], al
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L47
.L50:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L48
.L49:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -8[rbp], 1
.L48:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L49
	add	DWORD PTR -4[rbp], 1
.L47:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR 16[rbp]
	jle	.L50
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	boxfill8, .-boxfill8
	.globl	init_palette
	.type	init_palette, @function
init_palette:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, table_rgb.0[rip]
	mov	esi, 15
	mov	edi, 0
	call	set_palette
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init_palette, .-init_palette
	.globl	set_palette
	.type	set_palette, @function
set_palette:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	call	io_load_eflags@PLT
	mov	DWORD PTR -4[rbp], eax
	call	io_cli@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	mov	edi, 968
	call	io_out8@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L55
.L56:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	eax, al
	mov	esi, eax
	mov	edi, 969
	call	io_out8@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	eax, al
	mov	esi, eax
	mov	edi, 969
	call	io_out8@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	eax, al
	mov	esi, eax
	mov	edi, 969
	call	io_out8@PLT
	add	QWORD PTR -32[rbp], 3
	add	DWORD PTR -8[rbp], 1
.L55:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L56
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	io_store_eflags@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	set_palette, .-set_palette
	.data
	.align 32
	.type	cursor.1, @object
	.size	cursor.1, 256
cursor.1:
	.ascii	"**************.."
	.ascii	"*ooooooooooo*..."
	.ascii	"*oooooooooo*...."
	.ascii	"*ooooooooo*....."
	.ascii	"*oooooooo*......"
	.ascii	"*ooooooo*......."
	.ascii	"*ooooooo*......."
	.ascii	"*oooooooo*......"
	.ascii	"*oooo**ooo*....."
	.ascii	"*ooo*..*ooo*...."
	.ascii	"*oo*....*ooo*..."
	.ascii	"*o*......*ooo*.."
	.ascii	"**........*ooo*."
	.ascii	"*..........*ooo*"
	.ascii	"............*oo*"
	.ascii	".............***"
	.align 32
	.type	table_rgb.0, @object
	.size	table_rgb.0, 48
table_rgb.0:
	.string	""
	.string	""
	.string	""
	.string	"\377"
	.string	""
	.string	""
	.string	"\377"
	.string	"\377\377"
	.string	""
	.string	""
	.string	"\377\377"
	.string	"\377"
	.string	"\377\377\377\377\377\306\306\306\204"
	.string	""
	.string	""
	.string	"\204"
	.string	"\204\204"
	.string	""
	.string	""
	.string	"\204\204"
	.string	"\204"
	.ascii	"\204\204\204\204\204"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"664536.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Haribote OS.\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	HariMain
	.syntax unified
	.arm
	.fpu softvfp
	.type	HariMain, %function
HariMain:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4080
	str	r3, [fp, #-276]
	mov	r3, #120
	str	r3, [fp, #-272]
	mov	r3, #120
	str	r3, [fp, #-268]
	bl	init_palette
	ldr	r3, [fp, #-276]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-276]
	ldrsh	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, [fp, #-276]
	ldrsh	r3, [r3, #6]
	mov	r2, r3
	bl	init_screen
	ldr	r3, [fp, #-276]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-276]
	ldrsh	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, .L4+4
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #9
	bl	putfont8_asc
	ldr	r3, [fp, #-276]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-276]
	ldrsh	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, .L4+4
	str	r3, [sp, #4]
	mov	r3, #7
	str	r3, [sp]
	mov	r3, #8
	mov	r2, #8
	bl	putfont8_asc
	sub	r3, fp, #264
	mov	r1, #14
	mov	r0, r3
	bl	init_mouse_coursor8
	ldr	r3, [fp, #-276]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-276]
	ldrsh	r3, [r3, #4]
	mov	r1, r3
	mov	r3, #16
	str	r3, [sp, #12]
	sub	r3, fp, #264
	str	r3, [sp, #8]
	ldr	r3, [fp, #-268]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-272]
	str	r3, [sp]
	mov	r3, #16
	mov	r2, #16
	bl	putblock8_8
.L2:
	bl	io_hlt
	b	.L2
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	.LC0
	.size	HariMain, .-HariMain
	.align	2
	.global	init_gdtidt
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_gdtidt, %function
init_gdtidt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #2555904
	str	r3, [fp, #-12]
	ldr	r3, .L12
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r0, r2, r3
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	set_segmdesc
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #8192
	blt	.L8
	ldr	r3, [fp, #-12]
	add	r0, r3, #8
	ldr	r3, .L12+4
	mov	r2, #0
	mvn	r1, #0
	bl	set_segmdesc
	ldr	r3, [fp, #-12]
	add	r0, r3, #16
	ldr	r3, .L12+8
	mov	r2, #2621440
	ldr	r1, .L12+12
	bl	set_segmdesc
	ldr	r1, .L12
	ldr	r0, .L12+16
	bl	load_gdtr
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-8]
	add	r0, r2, r3
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	set_gatedesc
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #255
	ble	.L10
	ldr	r1, .L12
	ldr	r0, .L12+20
	bl	load_idtr
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	2553856
	.word	16530
	.word	16538
	.word	524287
	.word	65535
	.word	2047
	.size	init_gdtidt, .-init_gdtidt
	.align	2
	.global	set_segmdesc
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_segmdesc, %function
set_segmdesc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #1048576
	bcc	.L15
	ldr	r3, [fp, #-20]
	orr	r3, r3, #32768
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #12
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-16]
	asr	r3, r3, #16
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #5]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #16
	and	r3, r3, #255
	and	r3, r3, #15
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r3, r3, #255
	bic	r3, r3, #15
	and	r3, r3, #255
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #6]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #7]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_segmdesc, .-set_segmdesc
	.align	2
	.global	set_gatedesc
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_gatedesc, %function
set_gatedesc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #5]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #6]	@ movhi
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_gatedesc, .-set_gatedesc
	.align	2
	.global	putblock8_8
	.syntax unified
	.arm
	.fpu softvfp
	.type	putblock8_8, %function
putblock8_8:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L23:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #12]
	add	r2, r3, r2
	ldr	r1, [fp, #8]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, [fp, #-20]
	mul	r1, r3, r1
	ldr	r0, [fp, #4]
	ldr	r3, [fp, #-12]
	add	r3, r0, r3
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L23
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	putblock8_8, .-putblock8_8
	.align	2
	.global	init_mouse_coursor8
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_mouse_coursor8, %function
init_mouse_coursor8:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L32:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L31:
	ldr	r2, .L34
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L28
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
.L28:
	ldr	r2, .L34
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L29
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #7
	strb	r2, [r3]
.L29:
	ldr	r2, .L34
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L30
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	ble	.L31
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L32
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	cursor.4343
	.size	init_mouse_coursor8, .-init_mouse_coursor8
	.align	2
	.global	putfont8_asc
	.syntax unified
	.arm
	.fpu softvfp
	.type	putfont8_asc, %function
putfont8_asc:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L37
.L38:
	ldr	r3, [fp, #8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L40
	add	r3, r2, r3
	str	r3, [sp, #4]
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	putfont8
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	str	r3, [fp, #-16]
	ldr	r3, [fp, #8]
	add	r3, r3, #1
	str	r3, [fp, #8]
.L37:
	ldr	r3, [fp, #8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L38
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	hankaku
	.size	putfont8_asc, .-putfont8_asc
	.align	2
	.global	putfont8
	.syntax unified
	.arm
	.fpu softvfp
	.type	putfont8, %function
putfont8:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L43
.L52:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrsb	r3, [fp, #-13]
	cmp	r3, #0
	bge	.L44
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L44:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L45:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L46:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L47:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L48:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-8]
	add	r3, r3, #5
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L49:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L50:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	ldrb	r2, [fp, #4]
	strb	r2, [r3]
.L51:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	ble	.L52
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	putfont8, .-putfont8
	.align	2
	.global	init_screen
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_screen, %function
init_screen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	sub	r2, r2, #29
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #14
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #28
	ldr	r2, [fp, #-12]
	sub	r2, r2, #1
	ldr	r1, [fp, #-16]
	sub	r1, r1, #28
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #8
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #27
	ldr	r2, [fp, #-12]
	sub	r2, r2, #1
	ldr	r1, [fp, #-16]
	sub	r1, r1, #27
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #7
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #26
	ldr	r2, [fp, #-12]
	sub	r2, r2, #1
	ldr	r1, [fp, #-16]
	sub	r1, r1, #1
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #8
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #24
	ldr	r2, [fp, #-16]
	sub	r2, r2, #24
	str	r2, [sp, #8]
	mov	r2, #59
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #7
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #24
	ldr	r2, [fp, #-16]
	sub	r2, r2, #4
	str	r2, [sp, #8]
	mov	r2, #2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #7
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #4
	ldr	r2, [fp, #-16]
	sub	r2, r2, #4
	str	r2, [sp, #8]
	mov	r2, #59
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #15
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #23
	ldr	r2, [fp, #-16]
	sub	r2, r2, #5
	str	r2, [sp, #8]
	mov	r2, #59
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #59
	mov	r2, #15
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #3
	ldr	r2, [fp, #-16]
	sub	r2, r2, #3
	str	r2, [sp, #8]
	mov	r2, #59
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-16]
	sub	r3, r3, #24
	ldr	r2, [fp, #-16]
	sub	r2, r2, #3
	str	r2, [sp, #8]
	mov	r2, #60
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #60
	mov	r2, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-12]
	sub	r0, r3, #47
	ldr	r3, [fp, #-16]
	sub	r3, r3, #24
	ldr	r2, [fp, #-12]
	sub	r2, r2, #4
	ldr	r1, [fp, #-16]
	sub	r1, r1, #24
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, #15
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-12]
	sub	r0, r3, #47
	ldr	r3, [fp, #-16]
	sub	r3, r3, #23
	ldr	r2, [fp, #-12]
	sub	r2, r2, #47
	ldr	r1, [fp, #-16]
	sub	r1, r1, #4
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, #15
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-12]
	sub	r0, r3, #47
	ldr	r3, [fp, #-16]
	sub	r3, r3, #3
	ldr	r2, [fp, #-12]
	sub	r2, r2, #4
	ldr	r1, [fp, #-16]
	sub	r1, r1, #3
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, #7
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	ldr	r3, [fp, #-12]
	sub	r0, r3, #3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #24
	ldr	r2, [fp, #-12]
	sub	r2, r2, #3
	ldr	r1, [fp, #-16]
	sub	r1, r1, #3
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, #7
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	boxfill8
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	init_screen, .-init_screen
	.align	2
	.global	boxfill8
	.syntax unified
	.arm
	.fpu softvfp
	.type	boxfill8, %function
boxfill8:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r3, [fp, #-28]
	mov	r3, r2
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-8]
	b	.L55
.L58:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L56
.L57:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L56:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L57
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L55:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	ble	.L58
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	boxfill8, .-boxfill8
	.align	2
	.global	init_palette
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_palette, %function
init_palette:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L62
	mov	r1, #15
	mov	r0, #0
	bl	set_palette
	nop
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	table_rgb.4404
	.size	init_palette, .-init_palette
	.align	2
	.global	set_palette
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_palette, %function
set_palette:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	bl	io_load_eflags
	str	r0, [fp, #-8]
	bl	io_cli
	ldr	r1, [fp, #-16]
	mov	r0, #968
	bl	io_out8
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L65
.L66:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L68
	bl	io_out8
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L68
	bl	io_out8
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L68
	bl	io_out8
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L65:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L66
	ldr	r0, [fp, #-8]
	bl	io_store_eflags
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	969
	.size	set_palette, .-set_palette
	.data
	.align	2
	.type	cursor.4343, %object
	.size	cursor.4343, 256
cursor.4343:
	.ascii	"**************.."
	.ascii	"*ooooooooooo*..."
	.ascii	"*oooooooooo*...."
	.ascii	"*ooooooooo*....."
	.ascii	"*oooooooo*......"
	.ascii	"*ooooooo*......."
	.ascii	"*ooooooo*......."
	.ascii	"*oooooooo*......"
	.ascii	"*oooo**ooo*....."
	.ascii	"*ooo*..*ooo*...."
	.ascii	"*oo*....*ooo*..."
	.ascii	"*o*......*ooo*.."
	.ascii	"**........*ooo*."
	.ascii	"*..........*ooo*"
	.ascii	"............*oo*"
	.ascii	".............***"
	.align	2
	.type	table_rgb.4404, %object
	.size	table_rgb.4404, 48
table_rgb.4404:
	.ascii	"\000\000\000\377\000\000\000\377\000\377\377\000\000"
	.ascii	"\000\377\377\000\377\000\377\377\377\377\377\306\306"
	.ascii	"\306\204\000\000\000\204\000\204\204\000\000\000\204"
	.ascii	"\204\000\204\000\204\204\204\204\204"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
