	.file	"182951798.c"
	.intel_syntax noprefix
	.text
	.globl	make_color
	.type	make_color, @function
make_color:
.LFB0:
	.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 -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	make_color, .-make_color
	.globl	make_vgaentry
	.type	make_vgaentry, @function
make_vgaentry:
.LFB1:
	.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 -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	movsx	ax, BYTE PTR -20[rbp]
	mov	WORD PTR -4[rbp], ax
	movzx	eax, BYTE PTR -24[rbp]
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	sal	eax, 8
	mov	edx, eax
	movzx	eax, WORD PTR -4[rbp]
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	make_vgaentry, .-make_vgaentry
	.globl	strlen
	.type	strlen, @function
strlen:
.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 -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L6
.L7:
	add	QWORD PTR -8[rbp], 1
.L6:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	strlen, .-strlen
	.section	.rodata
	.align 8
	.type	VGA_WIDTH, @object
	.size	VGA_WIDTH, 8
VGA_WIDTH:
	.quad	80
	.align 8
	.type	VGA_HEIGHT, @object
	.size	VGA_HEIGHT, 8
VGA_HEIGHT:
	.quad	25
	.globl	terminal_row
	.bss
	.align 8
	.type	terminal_row, @object
	.size	terminal_row, 8
terminal_row:
	.zero	8
	.globl	terminal_column
	.align 8
	.type	terminal_column, @object
	.size	terminal_column, 8
terminal_column:
	.zero	8
	.globl	terminal_color
	.type	terminal_color, @object
	.size	terminal_color, 1
terminal_color:
	.zero	1
	.globl	terminal_buffer
	.align 8
	.type	terminal_buffer, @object
	.size	terminal_buffer, 8
terminal_buffer:
	.zero	8
	.text
	.globl	terminal_initialize
	.type	terminal_initialize, @function
terminal_initialize:
.LFB3:
	.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	QWORD PTR terminal_row[rip], 0
	mov	QWORD PTR terminal_column[rip], 0
	mov	esi, 0
	mov	edi, 7
	call	make_color
	mov	BYTE PTR terminal_color[rip], al
	mov	QWORD PTR terminal_buffer[rip], 753664
	mov	QWORD PTR -32[rbp], 0
	jmp	.L10
.L13:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L11
.L12:
	mov	eax, 80
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, BYTE PTR terminal_color[rip]
	movzx	eax, al
	mov	rcx, QWORD PTR terminal_buffer[rip]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rdx
	lea	rbx, [rcx+rdx]
	mov	esi, eax
	mov	edi, 32
	call	make_vgaentry
	mov	WORD PTR [rbx], ax
	add	QWORD PTR -24[rbp], 1
.L11:
	mov	eax, 80
	cmp	QWORD PTR -24[rbp], rax
	jb	.L12
	add	QWORD PTR -32[rbp], 1
.L10:
	mov	eax, 25
	cmp	QWORD PTR -32[rbp], rax
	jb	.L13
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	terminal_initialize, .-terminal_initialize
	.globl	terminal_setcolor
	.type	terminal_setcolor, @function
terminal_setcolor:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	mov	BYTE PTR terminal_color[rip], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	terminal_setcolor, .-terminal_setcolor
	.globl	terminal_putentryat
	.type	terminal_putentryat, @function
terminal_putentryat:
.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, 40
	.cfi_offset 3, -24
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	edx, edi
	mov	BYTE PTR -28[rbp], dl
	mov	BYTE PTR -32[rbp], al
	mov	eax, 80
	imul	rax, QWORD PTR -48[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	movzx	edx, BYTE PTR -32[rbp]
	movsx	eax, BYTE PTR -28[rbp]
	mov	rsi, QWORD PTR terminal_buffer[rip]
	mov	rcx, QWORD PTR -16[rbp]
	add	rcx, rcx
	lea	rbx, [rsi+rcx]
	mov	esi, edx
	mov	edi, eax
	call	make_vgaentry
	mov	WORD PTR [rbx], ax
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	terminal_putentryat, .-terminal_putentryat
	.globl	terminal_putchar
	.type	terminal_putchar, @function
terminal_putchar:
.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	rcx, QWORD PTR terminal_row[rip]
	mov	rdx, QWORD PTR terminal_column[rip]
	movzx	eax, BYTE PTR terminal_color[rip]
	movzx	esi, al
	movsx	eax, BYTE PTR -4[rbp]
	mov	edi, eax
	call	terminal_putentryat
	mov	rax, QWORD PTR terminal_column[rip]
	add	rax, 1
	mov	QWORD PTR terminal_column[rip], rax
	mov	rax, QWORD PTR terminal_column[rip]
	mov	edx, 80
	cmp	rax, rdx
	jne	.L18
	mov	QWORD PTR terminal_column[rip], 0
	mov	rax, QWORD PTR terminal_row[rip]
	add	rax, 1
	mov	QWORD PTR terminal_row[rip], rax
	mov	rax, QWORD PTR terminal_row[rip]
	mov	edx, 25
	cmp	rax, rdx
	jne	.L18
	mov	QWORD PTR terminal_row[rip], 0
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	terminal_putchar, .-terminal_putchar
	.globl	terminal_writestring
	.type	terminal_writestring, @function
terminal_writestring:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	terminal_putchar
	add	QWORD PTR -16[rbp], 1
.L20:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L21
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	terminal_writestring, .-terminal_writestring
	.section	.rodata
.LC0:
	.string	"Hello, kernel World!\n"
	.text
	.globl	kernel_main
	.type	kernel_main, @function
kernel_main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	terminal_initialize
	lea	rdi, .LC0[rip]
	call	terminal_writestring
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	kernel_main, .-kernel_main
	.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	"182951798.c"
	.text
	.align	2
	.global	make_color
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_color, %function
make_color:
	@ 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, #-12]
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	orr	r3, r2, r3
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	make_color, .-make_color
	.align	2
	.global	make_vgaentry
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_vgaentry, %function
make_vgaentry:
	@ 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
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	strh	r3, [fp, #-8]	@ movhi
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-8]
	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	make_vgaentry, .-make_vgaentry
	.align	2
	.global	strlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlen, %function
strlen:
	@ 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, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	strlen, .-strlen
	.section	.rodata
	.align	2
	.type	VGA_WIDTH, %object
	.size	VGA_WIDTH, 4
VGA_WIDTH:
	.word	80
	.align	2
	.type	VGA_HEIGHT, %object
	.size	VGA_HEIGHT, 4
VGA_HEIGHT:
	.word	25
	.comm	terminal_row,4,4
	.comm	terminal_column,4,4
	.comm	terminal_color,1,1
	.comm	terminal_buffer,4,4
	.text
	.align	2
	.global	terminal_initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminal_initialize, %function
terminal_initialize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L14
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L14+4
	mov	r2, #0
	str	r2, [r3]
	mov	r1, #0
	mov	r0, #7
	bl	make_color
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+8
	strb	r2, [r3]
	ldr	r3, .L14+12
	mov	r2, #753664
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L13:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L12:
	mov	r2, #80
	ldr	r3, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L14+8
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, .L14+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r4, r2, r3
	mov	r0, #32
	bl	make_vgaentry
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	mov	r2, #80
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bcc	.L12
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	mov	r2, #25
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bcc	.L13
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	terminal_row
	.word	terminal_column
	.word	terminal_color
	.word	terminal_buffer
	.size	terminal_initialize, .-terminal_initialize
	.align	2
	.global	terminal_setcolor
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminal_setcolor, %function
terminal_setcolor:
	@ 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
	strb	r3, [fp, #-5]
	ldr	r2, .L17
	ldrb	r3, [fp, #-5]
	strb	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	terminal_color
	.size	terminal_setcolor, .-terminal_setcolor
	.align	2
	.global	terminal_putentryat
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminal_putentryat, %function
terminal_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
	str	r2, [fp, #-28]
	str	r3, [fp, #-32]
	mov	r3, r0
	strb	r3, [fp, #-21]
	mov	r3, r1
	strb	r3, [fp, #-22]
	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, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r4, r2, r3
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	make_vgaentry
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	terminal_buffer
	.size	terminal_putentryat, .-terminal_putentryat
	.align	2
	.global	terminal_putchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminal_putchar, %function
terminal_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, .L25
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldrb	r0, [fp, #-5]	@ zero_extendqisi2
	bl	terminal_putentryat
	ldr	r3, .L25+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+4
	str	r3, [r2]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r2, #80
	cmp	r3, r2
	bne	.L24
	ldr	r3, .L25+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+8
	str	r3, [r2]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	mov	r2, #25
	cmp	r3, r2
	bne	.L24
	ldr	r3, .L25+8
	mov	r2, #0
	str	r2, [r3]
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	terminal_color
	.word	terminal_column
	.word	terminal_row
	.size	terminal_putchar, .-terminal_putchar
	.align	2
	.global	terminal_writestring
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminal_writestring, %function
terminal_writestring:
	@ 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	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L28
.L29:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	terminal_putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L28:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L29
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	terminal_writestring, .-terminal_writestring
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello, kernel World!\012\000"
	.text
	.align	2
	.global	kernel_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	kernel_main, %function
kernel_main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	terminal_initialize
	ldr	r0, .L31
	bl	terminal_writestring
	nop
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC0
	.size	kernel_main, .-kernel_main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
