	.file	"103689.c"
	.intel_syntax noprefix
	.text
	.globl	VGA_WIDTH
	.section	.rodata
	.align 4
	.type	VGA_WIDTH, @object
	.size	VGA_WIDTH, 4
VGA_WIDTH:
	.long	80
	.globl	VGA_HEIGHT
	.align 4
	.type	VGA_HEIGHT, @object
	.size	VGA_HEIGHT, 4
VGA_HEIGHT:
	.long	25
	.local	terminalBuffer
	.comm	terminalBuffer,8,8
	.local	terminalRow
	.comm	terminalRow,4,4
	.local	terminalColumn
	.comm	terminalColumn,4,4
	.local	terminalForeGround
	.comm	terminalForeGround,4,4
	.local	terminalBackGround
	.comm	terminalBackGround,4,4
	.local	terminalColor
	.comm	terminalColor,1,1
	.text
	.type	memcpy, @function
memcpy:
.LFB0:
	.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	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	memcpy, .-memcpy
	.type	entryColor, @function
entryColor:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	movzx	eax, al
	sal	eax, 4
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	entryColor, .-entryColor
	.type	entry, @function
entry:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -4[rbp], dl
	mov	BYTE PTR -8[rbp], al
	movzx	edx, BYTE PTR -4[rbp]
	movzx	eax, BYTE PTR -8[rbp]
	sal	eax, 8
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	entry, .-entry
	.globl	vga_init
	.type	vga_init, @function
vga_init:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR terminalRow[rip], 0
	mov	DWORD PTR terminalColumn[rip], 0
	mov	DWORD PTR terminalForeGround[rip], 7
	mov	DWORD PTR terminalBackGround[rip], 8
	mov	edx, DWORD PTR terminalBackGround[rip]
	mov	eax, DWORD PTR terminalForeGround[rip]
	mov	esi, edx
	mov	edi, eax
	call	entryColor
	mov	BYTE PTR terminalColor[rip], al
	mov	QWORD PTR terminalBuffer[rip], 753664
	mov	eax, 0
	call	vga_clear
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	vga_init, .-vga_init
	.globl	vga_panic
	.type	vga_panic, @function
vga_panic:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	vga_getRow
	mov	DWORD PTR -24[rbp], eax
	mov	eax, 0
	call	vga_getColumn
	mov	DWORD PTR -20[rbp], eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	vga_getColor
	mov	eax, 25
	sub	eax, 1
	mov	edi, eax
	call	vga_setRow
	mov	edi, 0
	call	vga_setColumn
	mov	esi, 15
	mov	edi, 4
	call	vga_setColor
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	vga_write
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	vga_setRow
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	vga_setColumn
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	vga_setColor
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	vga_panic, .-vga_panic
	.globl	vga_clear
	.type	vga_clear, @function
vga_clear:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -24
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L13:
	movzx	eax, BYTE PTR terminalColor[rip]
	movzx	eax, al
	mov	rcx, QWORD PTR terminalBuffer[rip]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	add	rdx, rdx
	lea	rbx, [rcx+rdx]
	mov	esi, eax
	mov	edi, 32
	call	entry
	mov	WORD PTR [rbx], ax
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	edx, 25
	mov	eax, 80
	imul	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jl	.L13
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	vga_clear, .-vga_clear
	.globl	vga_setForeGround
	.type	vga_setForeGround, @function
vga_setForeGround:
.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, 8
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR terminalForeGround[rip], eax
	mov	edx, DWORD PTR terminalBackGround[rip]
	mov	eax, DWORD PTR terminalForeGround[rip]
	mov	esi, edx
	mov	edi, eax
	call	entryColor
	mov	BYTE PTR terminalColor[rip], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	vga_setForeGround, .-vga_setForeGround
	.globl	vga_setBackGround
	.type	vga_setBackGround, @function
vga_setBackGround:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR terminalBackGround[rip], eax
	mov	edx, DWORD PTR terminalBackGround[rip]
	mov	eax, DWORD PTR terminalForeGround[rip]
	mov	esi, edx
	mov	edi, eax
	call	entryColor
	mov	BYTE PTR terminalColor[rip], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	vga_setBackGround, .-vga_setBackGround
	.globl	vga_setColor
	.type	vga_setColor, @function
vga_setColor:
.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, 8
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR terminalForeGround[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR terminalBackGround[rip], eax
	mov	edx, DWORD PTR terminalBackGround[rip]
	mov	eax, DWORD PTR terminalForeGround[rip]
	mov	esi, edx
	mov	edi, eax
	call	entryColor
	mov	BYTE PTR terminalColor[rip], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	vga_setColor, .-vga_setColor
	.section	.rodata
.LC0:
	.string	"ERROR: invalid row index"
	.text
	.globl	vga_setRow
	.type	vga_setRow, @function
vga_setRow:
.LFB9:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, 25
	cmp	DWORD PTR -4[rbp], eax
	jle	.L18
	lea	rdi, .LC0[rip]
	call	vga_panic
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR terminalRow[rip], eax
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	vga_setRow, .-vga_setRow
	.section	.rodata
.LC1:
	.string	"ERROR: invalid column index"
	.text
	.globl	vga_setColumn
	.type	vga_setColumn, @function
vga_setColumn:
.LFB10:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, 80
	cmp	DWORD PTR -4[rbp], eax
	jle	.L21
	lea	rdi, .LC1[rip]
	call	vga_panic
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR terminalColumn[rip], eax
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	vga_setColumn, .-vga_setColumn
	.globl	vga_getForeGround
	.type	vga_getForeGround, @function
vga_getForeGround:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR terminalForeGround[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	vga_getForeGround, .-vga_getForeGround
	.globl	vga_getBackGround
	.type	vga_getBackGround, @function
vga_getBackGround:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR terminalBackGround[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	vga_getBackGround, .-vga_getBackGround
	.globl	vga_getColor
	.type	vga_getColor, @function
vga_getColor:
.LFB13:
	.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	edx, DWORD PTR terminalForeGround[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR terminalBackGround[rip]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	vga_getColor, .-vga_getColor
	.globl	vga_getRow
	.type	vga_getRow, @function
vga_getRow:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR terminalRow[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	vga_getRow, .-vga_getRow
	.globl	vga_getColumn
	.type	vga_getColumn, @function
vga_getColumn:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR terminalColumn[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	vga_getColumn, .-vga_getColumn
	.globl	putEntryAt
	.type	putEntryAt, @function
putEntryAt:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 32
	.cfi_offset 3, -24
	mov	eax, edi
	mov	DWORD PTR -32[rbp], esi
	mov	DWORD PTR -36[rbp], edx
	mov	BYTE PTR -28[rbp], al
	mov	eax, 80
	imul	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	movzx	eax, BYTE PTR terminalColor[rip]
	movzx	edx, al
	movzx	eax, BYTE PTR -28[rbp]
	movzx	eax, al
	mov	rsi, QWORD PTR terminalBuffer[rip]
	mov	ecx, DWORD PTR -12[rbp]
	movsx	rcx, ecx
	add	rcx, rcx
	lea	rbx, [rsi+rcx]
	mov	esi, edx
	mov	edi, eax
	call	entry
	mov	WORD PTR [rbx], ax
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	putEntryAt, .-putEntryAt
	.globl	vga_putChar
	.type	vga_putChar, @function
vga_putChar:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	edx, DWORD PTR terminalRow[rip]
	mov	ecx, DWORD PTR terminalColumn[rip]
	movsx	eax, BYTE PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	putEntryAt
	mov	eax, DWORD PTR terminalColumn[rip]
	add	eax, 1
	mov	DWORD PTR terminalColumn[rip], eax
	cmp	BYTE PTR -4[rbp], 10
	jne	.L34
	mov	eax, DWORD PTR terminalRow[rip]
	add	eax, 1
	mov	DWORD PTR terminalRow[rip], eax
	mov	DWORD PTR terminalColumn[rip], 0
.L34:
	mov	eax, DWORD PTR terminalRow[rip]
	mov	edx, 25
	cmp	eax, edx
	jne	.L35
	mov	DWORD PTR terminalRow[rip], 0
.L35:
	mov	eax, DWORD PTR terminalColumn[rip]
	mov	edx, 80
	cmp	eax, edx
	jne	.L37
	mov	DWORD PTR terminalColumn[rip], 0
.L37:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	vga_putChar, .-vga_putChar
	.globl	vga_write
	.type	vga_write, @function
vga_write:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	vga_putChar
	add	QWORD PTR -8[rbp], 1
.L39:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	vga_write, .-vga_write
	.globl	vga_writeLine
	.type	vga_writeLine, @function
vga_writeLine:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	vga_write
	mov	eax, DWORD PTR terminalRow[rip]
	add	eax, 1
	mov	DWORD PTR terminalRow[rip], eax
	mov	DWORD PTR terminalColumn[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	vga_writeLine, .-vga_writeLine
	.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	"103689.c"
	.text
	.global	VGA_WIDTH
	.section	.rodata
	.align	2
	.type	VGA_WIDTH, %object
	.size	VGA_WIDTH, 4
VGA_WIDTH:
	.word	80
	.global	VGA_HEIGHT
	.align	2
	.type	VGA_HEIGHT, %object
	.size	VGA_HEIGHT, 4
VGA_HEIGHT:
	.word	25
	.local	terminalBuffer
	.comm	terminalBuffer,4,4
	.local	terminalRow
	.comm	terminalRow,4,4
	.local	terminalColumn
	.comm	terminalColumn,4,4
	.local	terminalForeGround
	.comm	terminalForeGround,4,4
	.local	terminalBackGround
	.comm	terminalBackGround,4,4
	.local	terminalColor
	.comm	terminalColor,1,1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memcpy, %function
memcpy:
	@ 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]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	memcpy, .-memcpy
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	entryColor, %function
entryColor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	entryColor, .-entryColor
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	entry, %function
entry:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-5]
	mov	r3, r2
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	entry, .-entry
	.align	2
	.global	vga_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_init, %function
vga_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L9
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L9+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L9+8
	mov	r2, #7
	str	r2, [r3]
	ldr	r3, .L9+12
	mov	r2, #8
	str	r2, [r3]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	ldr	r2, .L9+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	entryColor
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+16
	strb	r2, [r3]
	ldr	r3, .L9+20
	mov	r2, #753664
	str	r2, [r3]
	bl	vga_clear
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	terminalRow
	.word	terminalColumn
	.word	terminalForeGround
	.word	terminalBackGround
	.word	terminalColor
	.word	terminalBuffer
	.size	vga_init, .-vga_init
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vga_panic
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_panic, %function
vga_panic:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	vga_getRow
	str	r0, [fp, #-24]
	bl	vga_getColumn
	str	r0, [fp, #-20]
	sub	r3, fp, #16
	mov	r0, r3
	bl	vga_getColor
	mov	r3, #25
	sub	r3, r3, #1
	mov	r0, r3
	bl	vga_setRow
	mov	r0, #0
	bl	vga_setColumn
	mov	r1, #15
	mov	r0, #4
	bl	vga_setColor
	ldr	r0, [fp, #-32]
	bl	vga_write
	ldr	r0, [fp, #-24]
	bl	vga_setRow
	ldr	r0, [fp, #-20]
	bl	vga_setColumn
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	vga_setColor
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	vga_panic, .-vga_panic
	.align	2
	.global	vga_clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_clear, %function
vga_clear:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L17:
	ldr	r3, .L18
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r4, r2, r3
	mov	r0, #32
	bl	entry
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	mov	r3, #25
	mov	r2, #80
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L17
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	terminalColor
	.word	terminalBuffer
	.size	vga_clear, .-vga_clear
	.align	2
	.global	vga_setForeGround
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_setForeGround, %function
vga_setForeGround:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	entryColor
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L21+8
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	terminalForeGround
	.word	terminalBackGround
	.word	terminalColor
	.size	vga_setForeGround, .-vga_setForeGround
	.align	2
	.global	vga_setBackGround
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_setBackGround, %function
vga_setBackGround:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, .L24
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	entryColor
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L24+8
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	terminalBackGround
	.word	terminalForeGround
	.word	terminalColor
	.size	vga_setBackGround, .-vga_setBackGround
	.align	2
	.global	vga_setColor
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_setColor, %function
vga_setColor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, .L27
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L27+4
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, .L27+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	entryColor
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L27+8
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	terminalForeGround
	.word	terminalBackGround
	.word	terminalColor
	.size	vga_setColor, .-vga_setColor
	.section	.rodata
	.align	2
.LC1:
	.ascii	"ERROR: invalid row index\000"
	.text
	.align	2
	.global	vga_setRow
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_setRow, %function
vga_setRow:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #25
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L30
	ldr	r0, .L32
	bl	vga_panic
	b	.L29
.L30:
	ldr	r2, .L32+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC1
	.word	terminalRow
	.size	vga_setRow, .-vga_setRow
	.section	.rodata
	.align	2
.LC2:
	.ascii	"ERROR: invalid column index\000"
	.text
	.align	2
	.global	vga_setColumn
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_setColumn, %function
vga_setColumn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #80
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L35
	ldr	r0, .L37
	bl	vga_panic
	b	.L34
.L35:
	ldr	r2, .L37+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC2
	.word	terminalColumn
	.size	vga_setColumn, .-vga_setColumn
	.align	2
	.global	vga_getForeGround
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_getForeGround, %function
vga_getForeGround:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L42:
	.align	2
.L41:
	.word	terminalForeGround
	.size	vga_getForeGround, .-vga_getForeGround
	.align	2
	.global	vga_getBackGround
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_getBackGround, %function
vga_getBackGround:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L46:
	.align	2
.L45:
	.word	terminalBackGround
	.size	vga_getBackGround, .-vga_getBackGround
	.align	2
	.global	vga_getColor
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_getColor, %function
vga_getColor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, .L48+4
	ldr	r2, [r2]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L49:
	.align	2
.L48:
	.word	terminalForeGround
	.word	terminalBackGround
	.size	vga_getColor, .-vga_getColor
	.align	2
	.global	vga_getRow
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_getRow, %function
vga_getRow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L53:
	.align	2
.L52:
	.word	terminalRow
	.size	vga_getRow, .-vga_getRow
	.align	2
	.global	vga_getColumn
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_getColumn, %function
vga_getColumn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L56
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L57:
	.align	2
.L56:
	.word	terminalColumn
	.size	vga_getColumn, .-vga_getColumn
	.align	2
	.global	putEntryAt
	.syntax unified
	.arm
	.fpu softvfp
	.type	putEntryAt, %function
putEntryAt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r3, r0
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	strb	r3, [fp, #-21]
	mov	r2, #80
	ldr	r3, [fp, #-32]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L59
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r4, r2, r3
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r0, r3
	bl	entry
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	terminalColor
	.word	terminalBuffer
	.size	putEntryAt, .-putEntryAt
	.align	2
	.global	vga_putChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_putChar, %function
vga_putChar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L66
	ldr	r1, [r3]
	ldr	r3, .L66+4
	ldr	r2, [r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	putEntryAt
	ldr	r3, .L66
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L66
	str	r3, [r2]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L62
	ldr	r3, .L66+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L66+4
	str	r3, [r2]
	ldr	r3, .L66
	mov	r2, #0
	str	r2, [r3]
.L62:
	ldr	r3, .L66+4
	ldr	r3, [r3]
	mov	r2, #25
	cmp	r3, r2
	bne	.L63
	ldr	r3, .L66+4
	mov	r2, #0
	str	r2, [r3]
.L63:
	ldr	r3, .L66
	ldr	r3, [r3]
	mov	r2, #80
	cmp	r3, r2
	bne	.L65
	ldr	r3, .L66
	mov	r2, #0
	str	r2, [r3]
.L65:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	terminalColumn
	.word	terminalRow
	.size	vga_putChar, .-vga_putChar
	.align	2
	.global	vga_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_write, %function
vga_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L69
.L70:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	vga_putChar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L69:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L70
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	vga_write, .-vga_write
	.align	2
	.global	vga_writeLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_writeLine, %function
vga_writeLine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	vga_write
	ldr	r3, .L72
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L72
	str	r3, [r2]
	ldr	r3, .L72+4
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	terminalRow
	.word	terminalColumn
	.size	vga_writeLine, .-vga_writeLine
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
