	.file	"737408.c"
	.intel_syntax noprefix
	.text
	.globl	WORLD_AREA
	.data
	.align 4
	.type	WORLD_AREA, @object
	.size	WORLD_AREA, 4
WORLD_AREA:
	.long	4000000
	.globl	IMAGE_DATA_LENGTH
	.align 4
	.type	IMAGE_DATA_LENGTH, @object
	.size	IMAGE_DATA_LENGTH, 4
IMAGE_DATA_LENGTH:
	.long	16000000
	.globl	world
	.bss
	.align 32
	.type	world, @object
	.size	world, 128000000
world:
	.zero	128000000
	.globl	imageData
	.align 32
	.type	imageData, @object
	.size	imageData, 16000000
imageData:
	.zero	16000000
	.text
	.globl	getIdFromPosition
	.type	getIdFromPosition, @function
getIdFromPosition:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -20[rbp], 1999
	jle	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	cmp	DWORD PTR -24[rbp], 1999
	jle	.L4
	mov	eax, -1
	jmp	.L3
.L4:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L5
	mov	eax, -1
	jmp	.L3
.L5:
	cmp	DWORD PTR -24[rbp], 0
	jns	.L6
	mov	eax, -1
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L7
	mov	eax, 2000
	sub	eax, DWORD PTR -20[rbp]
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -20[rbp]
.L8:
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	imul	edx, eax, 2000
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getIdFromPosition, .-getIdFromPosition
	.globl	getOffsetFromPosition
	.type	getOffsetFromPosition, @function
getOffsetFromPosition:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -24[rbp]
	imul	edx, eax, 2000
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 2
	add	eax, 3
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getOffsetFromPosition, .-getOffsetFromPosition
	.globl	getSpaceFromPosition
	.type	getSpaceFromPosition, @function
getSpaceFromPosition:
.LFB2:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getIdFromPosition
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, world[rip]
	add	rax, rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getSpaceFromPosition, .-getSpaceFromPosition
	.local	g_seed
	.comm	g_seed,4,4
	.globl	fast_srand
	.type	fast_srand, @function
fast_srand:
.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR g_seed[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	fast_srand, .-fast_srand
	.globl	fast_rand
	.type	fast_rand, @function
fast_rand:
.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, DWORD PTR g_seed[rip]
	imul	eax, eax, 214013
	add	eax, 2531011
	mov	DWORD PTR g_seed[rip], eax
	mov	eax, DWORD PTR g_seed[rip]
	shr	eax, 16
	and	eax, 32767
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	fast_rand, .-fast_rand
	.globl	setup
	.type	setup, @function
setup:
.LFB5:
	.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	edi, 0
	call	fast_srand
	mov	DWORD PTR -20[rbp], 0
	jmp	.L17
.L20:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L18
.L19:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getIdFromPosition
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, world[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getOffsetFromPosition
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getSpaceFromPosition
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	getSpaceFromPosition
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	getSpaceFromPosition
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 3
	cdqe
	lea	rdx, imageData[rip]
	mov	BYTE PTR [rax+rdx], -2
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 2
	cdqe
	lea	rdx, imageData[rip]
	mov	BYTE PTR [rax+rdx], -52
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cdqe
	lea	rdx, imageData[rip]
	mov	BYTE PTR [rax+rdx], 70
	add	DWORD PTR -16[rbp], 1
.L18:
	cmp	DWORD PTR -16[rbp], 1999
	jle	.L19
	add	DWORD PTR -20[rbp], 1
.L17:
	cmp	DWORD PTR -20[rbp], 1999
	jle	.L20
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	setup, .-setup
	.globl	setSpace
	.type	setSpace, @function
setSpace:
.LFB6:
	.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	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR -28[rbp]
	mov	BYTE PTR 4[rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	je	.L22
	mov	eax, -1
	jmp	.L23
.L22:
	mov	eax, 0
.L23:
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, imageData[rip]
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax+rcx], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setSpace, .-setSpace
	.globl	setSpaceById
	.type	setSpaceById, @function
setSpaceById:
.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	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -24[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, world[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	movzx	edx, BYTE PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setSpace
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setSpaceById, .-setSpaceById
	.globl	setSpaceByPosition
	.type	setSpaceByPosition, @function
setSpaceByPosition:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -28[rbp], al
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getIdFromPosition
	mov	DWORD PTR -4[rbp], eax
	movzx	edx, BYTE PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setSpaceById
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setSpaceByPosition, .-setSpaceByPosition
	.globl	redrawWorld
	.type	redrawWorld, @function
redrawWorld:
.LFB9:
	.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 -16[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, world[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	je	.L28
	mov	eax, -1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	mov	BYTE PTR -17[rbp], al
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, imageData[rip]
	movzx	edx, BYTE PTR -17[rbp]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -16[rbp], 1
.L27:
	mov	eax, DWORD PTR WORLD_AREA[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L30
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	redrawWorld, .-redrawWorld
	.globl	updateWorld
	.type	updateWorld, @function
updateWorld:
.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, 32
	mov	eax, DWORD PTR WORLD_AREA[rip]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	jmp	.L32
.L37:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, world[rip]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	je	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 4[rax]
	xor	eax, 1
	test	al, al
	je	.L34
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	setSpace
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	setSpace
	jmp	.L33
.L34:
	call	fast_rand
	and	eax, 1
	test	eax, eax
	setne	al
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
.L36:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 4[rax]
	xor	eax, 1
	test	al, al
	je	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	setSpace
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	setSpace
	nop
.L33:
	sub	DWORD PTR -28[rbp], 1
.L32:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L37
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	updateWorld, .-updateWorld
	.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	"737408.c"
	.text
	.global	WORLD_AREA
	.data
	.align	2
	.type	WORLD_AREA, %object
	.size	WORLD_AREA, 4
WORLD_AREA:
	.word	4000000
	.global	IMAGE_DATA_LENGTH
	.align	2
	.type	IMAGE_DATA_LENGTH, %object
	.size	IMAGE_DATA_LENGTH, 4
IMAGE_DATA_LENGTH:
	.word	16000000
	.comm	world,80000000,4
	.comm	imageData,16000000,4
	.text
	.align	2
	.global	getIdFromPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	getIdFromPosition, %function
getIdFromPosition:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2000
	blt	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #2000
	blt	.L4
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L5
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L6
	mvn	r3, #0
	b	.L3
.L6:
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #2000
	b	.L8
.L7:
	ldr	r3, [fp, #-16]
.L8:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getIdFromPosition, .-getIdFromPosition
	.align	2
	.global	getOffsetFromPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	getOffsetFromPosition, %function
getOffsetFromPosition:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getOffsetFromPosition, .-getOffsetFromPosition
	.align	2
	.global	getSpaceFromPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	getSpaceFromPosition, %function
getSpaceFromPosition:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getIdFromPosition
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L13
	add	r3, r3, r2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	world
	.size	getSpaceFromPosition, .-getSpaceFromPosition
	.local	g_seed
	.comm	g_seed,4,4
	.align	2
	.global	fast_srand
	.syntax unified
	.arm
	.fpu softvfp
	.type	fast_srand, %function
fast_srand:
	@ 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, [fp, #-8]
	ldr	r2, .L16
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	g_seed
	.size	fast_srand, .-fast_srand
	.align	2
	.global	fast_rand
	.syntax unified
	.arm
	.fpu softvfp
	.type	fast_rand, %function
fast_rand:
	@ 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, .L20
	ldr	r3, [r3]
	ldr	r2, .L20+4
	mul	r2, r3, r2
	ldr	r3, .L20+8
	add	r3, r2, r3
	ldr	r2, .L20
	str	r3, [r2]
	ldr	r3, .L20
	ldr	r3, [r3]
	lsr	r3, r3, #16
	lsl	r3, r3, #17
	lsr	r3, r3, #17
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	g_seed
	.word	214013
	.word	2531011
	.size	fast_rand, .-fast_rand
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ 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	r0, #0
	bl	fast_srand
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L23
.L26:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L24
.L25:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	getIdFromPosition
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L27
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	getOffsetFromPosition
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	getSpaceFromPosition
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	getSpaceFromPosition
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	getSpaceFromPosition
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, .L27+4
	mvn	r1, #1
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L27+4
	mvn	r1, #51
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L27+4
	mov	r1, #70
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L24:
	ldr	r3, [fp, #-16]
	cmp	r3, #2000
	blt	.L25
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L23:
	ldr	r3, [fp, #-20]
	cmp	r3, #2000
	blt	.L26
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	world
	.word	imageData
	.size	setup, .-setup
	.align	2
	.global	setSpace
	.syntax unified
	.arm
	.fpu softvfp
	.type	setSpace, %function
setSpace:
	@ 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]
	ldr	r3, [fp, #-16]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L30
	mov	r3, #255
	b	.L31
.L30:
	mov	r3, #0
.L31:
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, .L32
	ldrb	r2, [fp, #-5]
	strb	r2, [r1, r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.word	imageData
	.size	setSpace, .-setSpace
	.align	2
	.global	setSpaceById
	.syntax unified
	.arm
	.fpu softvfp
	.type	setSpaceById, %function
setSpaceById:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L35
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setSpace
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	world
	.size	setSpaceById, .-setSpaceById
	.align	2
	.global	setSpaceByPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	setSpaceByPosition, %function
setSpaceByPosition:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-21]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getIdFromPosition
	str	r0, [fp, #-8]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setSpaceById
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setSpaceByPosition, .-setSpaceByPosition
	.align	2
	.global	redrawWorld
	.syntax unified
	.arm
	.fpu softvfp
	.type	redrawWorld, %function
redrawWorld:
	@ 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, #0
	str	r3, [fp, #-16]
	b	.L39
.L42:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L43
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L40
	mov	r3, #255
	b	.L41
.L40:
	mov	r3, #0
.L41:
	strb	r3, [fp, #-17]
	ldr	r2, .L43+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, .L43+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L42
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L44:
	.align	2
.L43:
	.word	world
	.word	imageData
	.word	WORLD_AREA
	.size	redrawWorld, .-redrawWorld
	.align	2
	.global	updateWorld
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateWorld, %function
updateWorld:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L52
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L46
.L51:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L52+4
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L48
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	setSpace
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	setSpace
	b	.L47
.L48:
	bl	fast_rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	b	.L50
.L49:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
.L50:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L47
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	setSpace
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	setSpace
	nop
.L47:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L46:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L51
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	WORLD_AREA
	.word	world
	.size	updateWorld, .-updateWorld
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
