	.file	"19128.c"
	.intel_syntax noprefix
	.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, 16
	call	init_palette
	mov	QWORD PTR -8[rbp], 655360
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	120
	mov	r9d, 120
	mov	r8d, 20
	mov	ecx, 20
	mov	edx, 1
	mov	esi, 320
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	150
	mov	r9d, 170
	mov	r8d, 50
	mov	ecx, 70
	mov	edx, 2
	mov	esi, 320
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	180
	mov	r9d, 220
	mov	r8d, 80
	mov	ecx, 120
	mov	edx, 4
	mov	esi, 320
	mov	rdi, rax
	call	boxfill8
	add	rsp, 16
.L2:
	call	io_hlt@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	HariMain, .-HariMain
	.globl	boxfill8
	.type	boxfill8, @function
boxfill8:
.LFB1:
	.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	.L4
.L7:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L5
.L6:
	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
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L6
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR 16[rbp]
	jle	.L7
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	boxfill8, .-boxfill8
	.globl	init_palette
	.type	init_palette, @function
init_palette:
.LFB2:
	.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
.LFE2:
	.size	init_palette, .-init_palette
	.globl	set_palette
	.type	set_palette, @function
set_palette:
.LFB3:
	.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	.L12
.L13:
	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
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L13
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	io_store_eflags@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	set_palette, .-set_palette
	.data
	.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	"19128.c"
	.text
	.align	2
	.global	HariMain
	.syntax unified
	.arm
	.fpu softvfp
	.type	HariMain, %function
HariMain:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	bl	init_palette
	mov	r3, #655360
	str	r3, [fp, #-8]
	mov	r3, #120
	str	r3, [sp, #8]
	mov	r3, #120
	str	r3, [sp, #4]
	mov	r3, #20
	str	r3, [sp]
	mov	r3, #20
	mov	r2, #1
	mov	r1, #320
	ldr	r0, [fp, #-8]
	bl	boxfill8
	mov	r3, #150
	str	r3, [sp, #8]
	mov	r3, #170
	str	r3, [sp, #4]
	mov	r3, #50
	str	r3, [sp]
	mov	r3, #70
	mov	r2, #2
	mov	r1, #320
	ldr	r0, [fp, #-8]
	bl	boxfill8
	mov	r3, #180
	str	r3, [sp, #8]
	mov	r3, #220
	str	r3, [sp, #4]
	mov	r3, #80
	str	r3, [sp]
	mov	r3, #120
	mov	r2, #4
	mov	r1, #320
	ldr	r0, [fp, #-8]
	bl	boxfill8
.L2:
	bl	io_hlt
	b	.L2
	.size	HariMain, .-HariMain
	.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	.L4
.L7:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L5
.L6:
	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]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	ble	.L7
	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, .L11
	mov	r1, #15
	mov	r0, #0
	bl	set_palette
	nop
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	table_rgb.4245
	.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	.L14
.L15:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L17
	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, .L17
	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, .L17
	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]
.L14:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L15
	ldr	r0, [fp, #-8]
	bl	io_store_eflags
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	969
	.size	set_palette, .-set_palette
	.data
	.align	2
	.type	table_rgb.4245, %object
	.size	table_rgb.4245, 48
table_rgb.4245:
	.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
