	.file	"780103.c"
	.intel_syntax noprefix
	.text
	.globl	data_cache
	.bss
	.align 8
	.type	data_cache, @object
	.size	data_cache, 8
data_cache:
	.zero	8
	.globl	fname_cache
	.align 8
	.type	fname_cache, @object
	.size	fname_cache, 8
fname_cache:
	.zero	8
	.globl	lru
	.align 8
	.type	lru, @object
	.size	lru, 8
lru:
	.zero	8
	.globl	supertile
	.align 8
	.type	supertile, @object
	.size	supertile, 8
supertile:
	.zero	8
	.globl	supertile_min_x
	.data
	.align 4
	.type	supertile_min_x, @object
	.size	supertile_min_x, 4
supertile_min_x:
	.long	999999
	.globl	supertile_min_y
	.align 4
	.type	supertile_min_y, @object
	.size	supertile_min_y, 4
supertile_min_y:
	.long	999999
	.text
	.globl	free_newtile
	.type	free_newtile, @function
free_newtile:
.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 -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 1249
	jle	.L4
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 1249
	jle	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	free_newtile, .-free_newtile
	.section	.rodata
.LC0:
	.string	"Error opening source file %s\n"
	.text
	.globl	read_tile
	.type	read_tile, @function
read_tile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -18747392[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2680
	.cfi_offset 3, -24
	mov	QWORD PTR -18750072[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 10000
	call	malloc@PLT
	mov	QWORD PTR -18750040[rbp], rax
	mov	DWORD PTR -18750060[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -18750060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -18750040[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 10000
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -18750056[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -18750060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -18750040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750056[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -18750056[rbp], 1
.L8:
	cmp	DWORD PTR -18750056[rbp], 1249
	jle	.L9
	add	DWORD PTR -18750060[rbp], 1
.L7:
	cmp	DWORD PTR -18750060[rbp], 1249
	jle	.L10
	mov	rax, QWORD PTR -18750072[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -18750044[rbp], eax
	cmp	DWORD PTR -18750044[rbp], -1
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -18750072[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L21
.L11:
	lea	rcx, -18750032[rbp]
	mov	eax, DWORD PTR -18750044[rbp]
	mov	edx, 18750000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -18750044[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -18750060[rbp], 0
	jmp	.L13
.L20:
	mov	DWORD PTR -18750056[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -18750052[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -18750060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -18750040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750056[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -18750048[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -18750060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -18750040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750056[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -18750052[rbp]
	imul	edx, eax, 1562500
	mov	eax, DWORD PTR -18750056[rbp]
	imul	eax, eax, 1250
	add	edx, eax
	mov	eax, DWORD PTR -18750060[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -18750048[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -18750032[rbp+rax]
	movzx	edx, al
	mov	ecx, DWORD PTR -18750048[rbp]
	mov	eax, 0
	sub	eax, ecx
	sal	eax, 3
	mov	ecx, eax
	sal	edx, cl
	mov	ecx, edx
	mov	eax, DWORD PTR -18750060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -18750040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750056[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -18750052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	or	esi, ecx
	mov	edx, esi
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -18750048[rbp], 1
.L16:
	cmp	DWORD PTR -18750048[rbp], 0
	jle	.L17
	add	DWORD PTR -18750052[rbp], 1
.L15:
	cmp	DWORD PTR -18750052[rbp], 11
	jle	.L18
	add	DWORD PTR -18750056[rbp], 1
.L14:
	cmp	DWORD PTR -18750056[rbp], 1249
	jle	.L19
	add	DWORD PTR -18750060[rbp], 1
.L13:
	cmp	DWORD PTR -18750060[rbp], 1249
	jle	.L20
	mov	rax, QWORD PTR -18750040[rbp]
.L21:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_tile, .-read_tile
	.section	.rodata
.LC1:
	.string	"%5.5i-%5.5i.%5.5i-%5.5i"
	.text
	.globl	get_tile_from_cache
	.type	get_tile_from_cache, @function
get_tile_from_cache:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	edi, 256
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1250
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1250
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	lea	ecx, 1249[rax]
	mov	eax, DWORD PTR -52[rbp]
	lea	edi, 1249[rax]
	mov	esi, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, esi
	mov	r8d, edi
	mov	ecx, edx
	lea	rdx, .LC1[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR data_cache[rip]
	test	rax, rax
	je	.L24
	mov	DWORD PTR -36[rbp], 0
	jmp	.L25
.L28:
	mov	rdx, QWORD PTR fname_cache[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L26
	mov	rdx, QWORD PTR fname_cache[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR data_cache[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L27
.L26:
	add	DWORD PTR -36[rbp], 1
.L25:
	cmp	DWORD PTR -36[rbp], 11
	jle	.L28
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_tile
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR data_cache[rip]
	test	rax, rax
	jne	.L29
	mov	edi, 96
	call	malloc@PLT
	mov	QWORD PTR data_cache[rip], rax
	mov	edi, 96
	call	malloc@PLT
	mov	QWORD PTR fname_cache[rip], rax
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR lru[rip], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR data_cache[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rdx, QWORD PTR fname_cache[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rdx, QWORD PTR lru[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -36[rbp], 1
.L30:
	cmp	DWORD PTR -36[rbp], 11
	jle	.L31
.L29:
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L32
.L34:
	mov	rdx, QWORD PTR lru[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR lru[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jge	.L33
	mov	rdx, QWORD PTR lru[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
.L33:
	add	DWORD PTR -36[rbp], 1
.L32:
	cmp	DWORD PTR -36[rbp], 11
	jle	.L34
	mov	rdx, QWORD PTR data_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L35
	mov	rdx, QWORD PTR data_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR fname_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR lru[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	jmp	.L36
.L35:
	mov	rdx, QWORD PTR data_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free_newtile
	mov	rdx, QWORD PTR data_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR fname_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR fname_cache[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR lru[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_tile_from_cache, .-get_tile_from_cache
	.globl	build_supertile
	.type	build_supertile, @function
build_supertile:
.LFB9:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	cmp	DWORD PTR -52[rbp], 0
	jns	.L38
	add	DWORD PTR -52[rbp], 2500
.L38:
	cmp	DWORD PTR -52[rbp], 2499
	jle	.L39
	sub	DWORD PTR -52[rbp], 2500
.L39:
	cmp	DWORD PTR -56[rbp], 0
	jns	.L40
	add	DWORD PTR -56[rbp], 1250
.L40:
	cmp	DWORD PTR -56[rbp], 1249
	jle	.L41
	sub	DWORD PTR -56[rbp], 1250
.L41:
	mov	rax, QWORD PTR supertile[rip]
	test	rax, rax
	jne	.L42
	mov	edi, 30000
	call	malloc@PLT
	mov	QWORD PTR supertile[rip], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L43
.L46:
	mov	rdx, QWORD PTR supertile[rip]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 30000
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L44
.L45:
	mov	rdx, QWORD PTR supertile[rip]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -36[rbp], 1
.L44:
	cmp	DWORD PTR -36[rbp], 3749
	jle	.L45
	add	DWORD PTR -40[rbp], 1
.L43:
	cmp	DWORD PTR -40[rbp], 3749
	jle	.L46
.L42:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1250
	mov	DWORD PTR supertile_min_x[rip], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1250
	mov	DWORD PTR supertile_min_y[rip], eax
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1250
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L47
	add	DWORD PTR -40[rbp], 2500
.L47:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1250
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L48
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 1250
	cmp	DWORD PTR -40[rbp], 0
	jns	.L48
	add	DWORD PTR -40[rbp], 2500
.L48:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L49
	mov	DWORD PTR -40[rbp], 0
	jmp	.L50
.L55:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L51
.L54:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1249
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L52:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L53
	add	DWORD PTR -36[rbp], 1
.L51:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L54
	add	DWORD PTR -40[rbp], 1
.L50:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L55
	jmp	.L56
.L49:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L57
.L62:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L58
.L61:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L59
.L60:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L59:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L60
	add	DWORD PTR -36[rbp], 1
.L58:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L61
	add	DWORD PTR -40[rbp], 1
.L57:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L62
.L56:
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1250
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L63
	add	DWORD PTR -40[rbp], 2500
.L63:
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L64
.L69:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L65
.L68:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L66
.L67:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L66:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L67
	add	DWORD PTR -36[rbp], 1
.L65:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L68
	add	DWORD PTR -40[rbp], 1
.L64:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L69
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1250
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L70
	add	DWORD PTR -40[rbp], 2500
.L70:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1250
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L71
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 1250
	cmp	DWORD PTR -40[rbp], 0
	jns	.L71
	add	DWORD PTR -40[rbp], 2500
.L71:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L72
	mov	DWORD PTR -40[rbp], 0
	jmp	.L73
.L78:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L74
.L77:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L75
.L76:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1249
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L75:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L76
	add	DWORD PTR -36[rbp], 1
.L74:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L77
	add	DWORD PTR -40[rbp], 1
.L73:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L78
	jmp	.L79
.L72:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L80
.L85:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L81
.L84:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L82
.L83:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L82:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L83
	add	DWORD PTR -36[rbp], 1
.L81:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L84
	add	DWORD PTR -40[rbp], 1
.L80:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L85
.L79:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1250
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L86
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 1250
	cmp	DWORD PTR -40[rbp], 0
	jns	.L86
	add	DWORD PTR -40[rbp], 2500
.L86:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L87
	mov	DWORD PTR -40[rbp], 0
	jmp	.L88
.L93:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L89
.L92:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L90
.L91:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1249
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L90:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L91
	add	DWORD PTR -36[rbp], 1
.L89:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L92
	add	DWORD PTR -40[rbp], 1
.L88:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L93
	jmp	.L94
.L87:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L95
.L100:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L96
.L99:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L97
.L98:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L97:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L98
	add	DWORD PTR -36[rbp], 1
.L96:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L99
	add	DWORD PTR -40[rbp], 1
.L95:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L100
.L94:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L101
.L106:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L102
.L105:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L103
.L104:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L103:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L104
	add	DWORD PTR -36[rbp], 1
.L102:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L105
	add	DWORD PTR -40[rbp], 1
.L101:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L106
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1250
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L107
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 1250
	cmp	DWORD PTR -40[rbp], 0
	jns	.L107
	add	DWORD PTR -40[rbp], 2500
.L107:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L108
	mov	DWORD PTR -40[rbp], 0
	jmp	.L109
.L114:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L110
.L113:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L111
.L112:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1249
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L111:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L112
	add	DWORD PTR -36[rbp], 1
.L110:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L113
	add	DWORD PTR -40[rbp], 1
.L109:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L114
	jmp	.L115
.L108:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L116
.L121:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L117
.L120:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L118
.L119:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L118:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L119
	add	DWORD PTR -36[rbp], 1
.L117:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L120
	add	DWORD PTR -40[rbp], 1
.L116:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L121
.L115:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1250
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 2499
	jle	.L122
	sub	DWORD PTR -40[rbp], 2500
.L122:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1250
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L123
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 1250
	cmp	DWORD PTR -40[rbp], 0
	jns	.L123
	add	DWORD PTR -40[rbp], 2500
.L123:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L124
	mov	DWORD PTR -40[rbp], 0
	jmp	.L125
.L130:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L126
.L129:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L127
.L128:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1249
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L127:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L128
	add	DWORD PTR -36[rbp], 1
.L126:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L129
	add	DWORD PTR -40[rbp], 1
.L125:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L130
	jmp	.L131
.L124:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L132
.L137:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L133
.L136:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L134
.L135:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L134:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L135
	add	DWORD PTR -36[rbp], 1
.L133:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L136
	add	DWORD PTR -40[rbp], 1
.L132:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L137
.L131:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1250
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 2499
	jle	.L138
	sub	DWORD PTR -40[rbp], 2500
.L138:
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L139
.L144:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L140
.L143:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L141
.L142:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 1250
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L141:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L142
	add	DWORD PTR -36[rbp], 1
.L140:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L143
	add	DWORD PTR -40[rbp], 1
.L139:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L144
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1250
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 2499
	jle	.L145
	sub	DWORD PTR -40[rbp], 2500
.L145:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1250
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L146
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 1250
	cmp	DWORD PTR -40[rbp], 0
	jns	.L146
	add	DWORD PTR -40[rbp], 2500
.L146:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_tile_from_cache
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L147
	mov	DWORD PTR -40[rbp], 0
	jmp	.L148
.L153:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L149
.L152:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L150
.L151:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1249
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L150:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L151
	add	DWORD PTR -36[rbp], 1
.L149:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L152
	add	DWORD PTR -40[rbp], 1
.L148:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L153
	jmp	.L161
.L147:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L155
.L160:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L156
.L159:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L157
.L158:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR supertile[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2500
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L157:
	cmp	DWORD PTR -32[rbp], 11
	jle	.L158
	add	DWORD PTR -36[rbp], 1
.L156:
	cmp	DWORD PTR -36[rbp], 1249
	jle	.L159
	add	DWORD PTR -40[rbp], 1
.L155:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L160
.L161:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	build_supertile, .-build_supertile
	.globl	get_value
	.type	get_value, @function
get_value:
.LFB10:
	.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 -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	cmp	DWORD PTR -36[rbp], 0
	jns	.L163
	add	DWORD PTR -36[rbp], 2500
.L163:
	cmp	DWORD PTR -36[rbp], 2499
	jle	.L164
	sub	DWORD PTR -36[rbp], 2500
.L164:
	cmp	DWORD PTR -40[rbp], 0
	jns	.L165
	add	DWORD PTR -40[rbp], 1250
.L165:
	cmp	DWORD PTR -40[rbp], 1249
	jle	.L166
	sub	DWORD PTR -40[rbp], 1250
.L166:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1250
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1250[rdx]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1250
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1250[rdx]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L167
.L170:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L168
.L169:
	mov	rdx, QWORD PTR supertile[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -12[rbp], eax
	add	DWORD PTR -16[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L168:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jle	.L169
	add	DWORD PTR -24[rbp], 1
.L167:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jle	.L170
	cmp	DWORD PTR -16[rbp], 0
	jle	.L171
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	jmp	.L172
.L171:
	mov	eax, 0
.L172:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_value, .-get_value
	.globl	is_in_supertile
	.type	is_in_supertile, @function
is_in_supertile:
.LFB11:
	.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
	cmp	DWORD PTR -4[rbp], 0
	jns	.L174
	add	DWORD PTR -4[rbp], 2500
.L174:
	cmp	DWORD PTR -4[rbp], 2499
	jle	.L175
	sub	DWORD PTR -4[rbp], 2500
.L175:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L176
	add	DWORD PTR -8[rbp], 1250
.L176:
	cmp	DWORD PTR -8[rbp], 1249
	jle	.L177
	sub	DWORD PTR -8[rbp], 1250
.L177:
	mov	eax, DWORD PTR supertile_min_x[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L178
	mov	eax, DWORD PTR supertile_min_x[rip]
	add	eax, 1249
	cmp	DWORD PTR -4[rbp], eax
	jg	.L178
	mov	eax, DWORD PTR supertile_min_y[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L178
	mov	eax, DWORD PTR supertile_min_y[rip]
	add	eax, 1249
	cmp	DWORD PTR -8[rbp], eax
	jg	.L178
	mov	eax, 1
	jmp	.L179
.L178:
	mov	eax, 0
.L179:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	is_in_supertile, .-is_in_supertile
	.section	.rodata
	.align 8
.LC3:
	.string	"retiled/%5.5i-%5.5i.%5.5i-%5.5i"
	.align 8
.LC4:
	.string	"Error: Could not create or open file %s\n"
.LC5:
	.string	"Wrote file %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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, 376
	.cfi_offset 3, -24
	mov	DWORD PTR -372[rbp], edi
	mov	QWORD PTR -384[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -324[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -324[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	call	rint@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -320[rbp], eax
	mov	edi, 10048
	call	malloc@PLT
	mov	QWORD PTR -304[rbp], rax
	mov	DWORD PTR -348[rbp], 0
	jmp	.L181
.L184:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 10048
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -344[rbp], 0
	jmp	.L182
.L183:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -344[rbp], 1
.L182:
	cmp	DWORD PTR -344[rbp], 1255
	jle	.L183
	add	DWORD PTR -348[rbp], 1
.L181:
	cmp	DWORD PTR -348[rbp], 1255
	jle	.L184
	mov	edi, 18930432
	call	malloc@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	DWORD PTR -356[rbp], 0
	jmp	.L185
.L214:
	mov	DWORD PTR -352[rbp], 0
	jmp	.L186
.L213:
	mov	eax, DWORD PTR -352[rbp]
	lea	edi, 1250[rax]
	mov	eax, DWORD PTR -352[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -356[rbp]
	lea	ecx, 1250[rax]
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, 1[rax]
	lea	rax, -288[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -348[rbp], 0
	jmp	.L187
.L190:
	mov	DWORD PTR -344[rbp], 0
	jmp	.L188
.L189:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax], -2147483647
	add	DWORD PTR -344[rbp], 1
.L188:
	cmp	DWORD PTR -344[rbp], 1255
	jle	.L189
	add	DWORD PTR -348[rbp], 1
.L187:
	cmp	DWORD PTR -348[rbp], 1255
	jle	.L190
	lea	rax, -288[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L191
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -288[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L219
.L191:
	mov	DWORD PTR -348[rbp], -3
	jmp	.L193
.L204:
	mov	DWORD PTR -344[rbp], -3
	jmp	.L194
.L203:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	add	rax, 3
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	add	rax, 3
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -2147483647
	jne	.L195
	mov	edx, DWORD PTR -356[rbp]
	mov	eax, DWORD PTR -348[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -320[rbp]
	imul	eax, edx
	mov	DWORD PTR -312[rbp], eax
	mov	edx, DWORD PTR -352[rbp]
	mov	eax, DWORD PTR -344[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -320[rbp]
	imul	eax, edx
	mov	DWORD PTR -308[rbp], eax
	mov	edx, DWORD PTR -308[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, edx
	mov	edi, eax
	call	build_supertile
	mov	DWORD PTR -332[rbp], -3
	jmp	.L196
.L202:
	mov	DWORD PTR -328[rbp], -3
	jmp	.L197
.L201:
	mov	edx, DWORD PTR -356[rbp]
	mov	eax, DWORD PTR -332[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -320[rbp]
	imul	eax, edx
	mov	DWORD PTR -312[rbp], eax
	mov	edx, DWORD PTR -352[rbp]
	mov	eax, DWORD PTR -328[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -320[rbp]
	imul	eax, edx
	mov	DWORD PTR -308[rbp], eax
	mov	edx, DWORD PTR -308[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, edx
	mov	edi, eax
	call	is_in_supertile
	test	eax, eax
	je	.L198
	mov	DWORD PTR -340[rbp], 0
	jmp	.L199
.L200:
	mov	eax, DWORD PTR -320[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -332[rbp]
	cdqe
	add	rax, 3
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -328[rbp]
	cdqe
	add	rax, 3
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	sal	rax, 2
	lea	rbx, [rdx+rax]
	mov	edx, DWORD PTR -340[rbp]
	mov	esi, DWORD PTR -308[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	get_value
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -340[rbp], 1
.L199:
	cmp	DWORD PTR -340[rbp], 11
	jle	.L200
.L198:
	add	DWORD PTR -328[rbp], 1
.L197:
	cmp	DWORD PTR -328[rbp], 1252
	jle	.L201
	add	DWORD PTR -332[rbp], 1
.L196:
	cmp	DWORD PTR -332[rbp], 1252
	jle	.L202
.L195:
	add	DWORD PTR -344[rbp], 1
.L194:
	cmp	DWORD PTR -344[rbp], 1252
	jle	.L203
	add	DWORD PTR -348[rbp], 1
.L193:
	cmp	DWORD PTR -348[rbp], 1252
	jle	.L204
	mov	DWORD PTR -348[rbp], 0
	jmp	.L205
.L212:
	mov	DWORD PTR -344[rbp], 0
	jmp	.L206
.L211:
	mov	DWORD PTR -336[rbp], 0
	jmp	.L207
.L210:
	mov	DWORD PTR -340[rbp], 0
	jmp	.L208
.L209:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -336[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	ecx, DWORD PTR -340[rbp]
	mov	eax, 0
	sub	eax, ecx
	sal	eax, 3
	mov	esi, 255
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	edx, eax
	mov	ecx, DWORD PTR -340[rbp]
	mov	eax, 0
	sub	eax, ecx
	sal	eax, 3
	mov	ecx, eax
	sar	edx, cl
	mov	ecx, edx
	mov	eax, DWORD PTR -336[rbp]
	imul	edx, eax, 1577536
	mov	eax, DWORD PTR -344[rbp]
	imul	eax, eax, 1256
	add	edx, eax
	mov	eax, DWORD PTR -348[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -340[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -296[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -340[rbp], 1
.L208:
	cmp	DWORD PTR -340[rbp], 0
	jle	.L209
	add	DWORD PTR -336[rbp], 1
.L207:
	cmp	DWORD PTR -336[rbp], 11
	jle	.L210
	add	DWORD PTR -344[rbp], 1
.L206:
	cmp	DWORD PTR -344[rbp], 1255
	jle	.L211
	add	DWORD PTR -348[rbp], 1
.L205:
	cmp	DWORD PTR -348[rbp], 1255
	jle	.L212
	mov	rcx, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR -316[rbp]
	mov	edx, 18930432
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -316[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -352[rbp], 1250
.L186:
	cmp	DWORD PTR -352[rbp], 1249
	jle	.L213
	add	DWORD PTR -356[rbp], 1250
.L185:
	cmp	DWORD PTR -356[rbp], 2499
	jle	.L214
	mov	DWORD PTR -348[rbp], 0
	jmp	.L215
.L218:
	mov	DWORD PTR -344[rbp], 0
	jmp	.L216
.L217:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -344[rbp], 1
.L216:
	cmp	DWORD PTR -344[rbp], 1255
	jle	.L217
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -348[rbp], 1
.L215:
	cmp	DWORD PTR -348[rbp], 1255
	jle	.L218
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L219:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L220
	call	__stack_chk_fail@PLT
.L220:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC2:
	.long	1065353216
	.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	"780103.c"
	.text
	.global	data_cache
	.bss
	.align	2
	.type	data_cache, %object
	.size	data_cache, 4
data_cache:
	.space	4
	.global	fname_cache
	.align	2
	.type	fname_cache, %object
	.size	fname_cache, 4
fname_cache:
	.space	4
	.global	lru
	.align	2
	.type	lru, %object
	.size	lru, 4
lru:
	.space	4
	.global	supertile
	.align	2
	.type	supertile, %object
	.size	supertile, 4
supertile:
	.space	4
	.global	supertile_min_x
	.data
	.align	2
	.type	supertile_min_x, %object
	.size	supertile_min_x, 4
supertile_min_x:
	.word	999999
	.global	supertile_min_y
	.align	2
	.type	supertile_min_y, %object
	.size	supertile_min_y, 4
supertile_min_y:
	.word	999999
	.text
	.align	2
	.global	free_newtile
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_newtile, %function
free_newtile:
	@ 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, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, .L6
	cmp	r3, r2
	ble	.L4
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, .L6
	cmp	r3, r2
	ble	.L5
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	1249
	.size	free_newtile, .-free_newtile
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error opening source file %s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_tile
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_tile, %function
read_tile:
	@ args = 0, pretend = 0, frame = 18750040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #18612224
	sub	sp, sp, #137216
	sub	sp, sp, #604
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	str	r0, [r3, #-2644]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r4, r3
	ldr	r0, .L25+4
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-2620]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2636]
	b	.L9
.L12:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	lsl	r2, r3, #2
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2620]
	add	r4, r3, r2
	ldr	r0, .L25+4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2632]
	b	.L10
.L11:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	lsl	r2, r3, #2
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2620]
	add	r3, r3, r2
	ldr	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	add	r3, r3, #1
	str	r3, [r2, #-2632]
.L10:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	ldr	r2, .L25+8
	cmp	r3, r2
	ble	.L11
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	add	r3, r3, #1
	str	r3, [r2, #-2636]
.L9:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	ldr	r2, .L25+8
	cmp	r3, r2
	ble	.L12
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r4, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r1, #0
	ldr	r0, [r3, #-2644]
	bl	open
	str	r0, [r4, #-2616]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2616]
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L25+12
	ldr	r0, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r2, [r3, #-2644]
	ldr	r1, .L25+16
	bl	fprintf
	mov	r3, #0
	b	.L23
.L13:
	ldr	r3, .L25+20
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #18612224
	sub	r2, r2, #12
	sub	r2, r2, #135168
	mov	r0, r2
	ldr	r2, .L25+24
	mov	r1, r3
	ldr	r0, [r0, #-2616]
	bl	read
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r0, [r3, #-2616]
	bl	close
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2636]
	b	.L15
.L22:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2632]
	b	.L16
.L21:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2628]
	b	.L17
.L20:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	lsl	r2, r3, #2
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2620]
	add	r3, r3, r2
	ldr	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2628]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2624]
	b	.L18
.L19:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	lsl	r2, r3, #2
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2620]
	add	r3, r3, r2
	ldr	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2628]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2628]
	ldr	r2, .L25+28
	mul	r0, r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r2, [r3, #-2632]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r0, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	add	r2, r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2624]
	add	r2, r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	add	r3, r3, r2
	ldrb	r3, [r3, #-2612]	@ zero_extendqisi2
	mov	r0, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r2, [r3, #-2624]
	mov	r3, r2
	lsl	r3, r3, #29
	sub	r3, r3, r2
	lsl	r3, r3, #3
	lsl	r2, r0, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	lsl	r0, r3, #2
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2620]
	add	r3, r3, r0
	ldr	r0, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2628]
	lsl	r3, r3, #2
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2624]
	add	r3, r3, #1
	str	r3, [r2, #-2624]
.L18:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2624]
	cmp	r3, #0
	ble	.L19
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2628]
	add	r3, r3, #1
	str	r3, [r2, #-2628]
.L17:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2628]
	cmp	r3, #11
	ble	.L20
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	add	r3, r3, #1
	str	r3, [r2, #-2632]
.L16:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2632]
	ldr	r2, .L25+8
	cmp	r3, r2
	ble	.L21
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	mov	r2, r3
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	add	r3, r3, #1
	str	r3, [r2, #-2636]
.L15:
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2636]
	ldr	r2, .L25+8
	cmp	r3, r2
	ble	.L22
	sub	r3, fp, #18612224
	sub	r3, r3, #12
	sub	r3, r3, #135168
	ldr	r3, [r3, #-2620]
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	5000
	.word	1249
	.word	stderr
	.word	.LC0
	.word	-18750004
	.word	18750000
	.word	1562500
	.size	read_tile, .-read_tile
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%5.5i-%5.5i.%5.5i-%5.5i\000"
	.text
	.align	2
	.global	get_tile_from_cache
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_tile_from_cache, %function
get_tile_from_cache:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r2, .L41
	smull	r1, r2, r3, r2
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r2, .L41
	smull	r1, r2, r3, r2
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1248
	add	r3, r3, #1
	ldr	r2, [fp, #-36]
	add	r2, r2, #1248
	add	r2, r2, #1
	str	r2, [sp, #8]
	ldr	r2, [fp, #-36]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L41+4
	mov	r1, #256
	ldr	r0, [fp, #-16]
	bl	snprintf
	ldr	r3, .L41+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L29
.L32:
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #256
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	b	.L31
.L30:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L29:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L32
.L28:
	ldr	r0, [fp, #-16]
	bl	read_tile
	str	r0, [fp, #-8]
	ldr	r3, .L41+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L33
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+8
	str	r2, [r3]
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+12
	str	r2, [r3]
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+16
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L34
.L35:
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L35
.L33:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L36
.L38:
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L37
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L37:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L36:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L38
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L40
.L39:
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free_newtile
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L40:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	1759218605
	.word	.LC2
	.word	data_cache
	.word	fname_cache
	.word	lru
	.size	get_tile_from_cache, .-get_tile_from_cache
	.align	2
	.global	build_supertile
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_supertile, %function
build_supertile:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L44
	ldr	r3, [fp, #-40]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L44:
	ldr	r3, [fp, #-40]
	ldr	r2, .L168+20
	cmp	r3, r2
	ble	.L45
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2496
	sub	r3, r3, #4
	str	r3, [fp, #-40]
.L45:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L46
	ldr	r3, [fp, #-44]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-44]
.L46:
	ldr	r3, [fp, #-44]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L47
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-44]
.L47:
	ldr	r3, .L168+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L168
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L168+24
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L49
.L52:
	ldr	r3, .L168+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r4, r2, r3
	ldr	r0, .L168
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L50
.L51:
	ldr	r3, .L168+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L50:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+4
	cmp	r3, r2
	ble	.L51
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L49:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+4
	cmp	r3, r2
	ble	.L52
.L48:
	ldr	r3, [fp, #-40]
	ldr	r2, .L168+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L168+12
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, .L168+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L168+16
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L53
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L53:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L54
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L54
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L54:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L55
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L56
.L61:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L57
.L60:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L58
.L59:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #1248
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L58:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L59
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L57:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L60
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L56:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L61
	b	.L62
.L55:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L63
.L68:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L64
.L67:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L65
.L66:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L65:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L66
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L64:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L67
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L63:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L68
.L62:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L69
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L69:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L70
.L75:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L71
.L74:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L72
.L73:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L72:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L73
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L71:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L74
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L70:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L75
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L76
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L76:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L77
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L77
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L77:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L78
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L79
.L84:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L80
.L83:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L81
.L82:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #1248
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L81:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L82
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L80:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L83
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L79:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L84
	b	.L85
.L78:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L86
.L91:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L87
.L90:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L88
.L89:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L88:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L89
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L87:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L90
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L86:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L91
.L85:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L92
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L92
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L92:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L93
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L94
.L99:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L95
.L98:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L96
.L97:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #1248
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L96:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L97
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L95:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L98
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L94:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L99
	b	.L100
.L93:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L101
.L106:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L102
.L105:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L103
.L104:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L103:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L104
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L102:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L105
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L101:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L106
.L100:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L107
.L112:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L108
.L111:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L109
.L110:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L109:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L110
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L108:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L111
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L107:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L112
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L113
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L113
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L113:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L114
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L115
.L120:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L116
.L119:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L117
.L118:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #1248
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L117:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L118
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L116:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L119
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L115:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L120
	b	.L121
.L114:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L122
.L127:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L123
.L126:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L124
.L125:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L124:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L125
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L123:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L126
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L122:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L127
.L121:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+20
	cmp	r3, r2
	ble	.L128
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2496
	sub	r3, r3, #4
	str	r3, [fp, #-32]
.L128:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L129
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L129
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L129:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L130
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L131
.L136:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L132
.L135:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L133
.L134:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #1248
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L133:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L134
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L132:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L135
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L131:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L136
	b	.L137
.L130:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L138
.L143:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L139
.L142:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L140
.L169:
	.align	2
.L168:
	.word	15000
	.word	3749
	.word	1759218605
	.word	supertile_min_x
	.word	supertile_min_y
	.word	2499
	.word	supertile
	.word	1249
.L141:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L140:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L141
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L139:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L142
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L138:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L143
.L137:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+20
	cmp	r3, r2
	ble	.L144
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2496
	sub	r3, r3, #4
	str	r3, [fp, #-32]
.L144:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L145
.L150:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L146
.L149:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L147
.L148:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1248
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L147:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L148
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L146:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L149
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L145:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L150
	ldr	r3, [fp, #-40]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+20
	cmp	r3, r2
	ble	.L151
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2496
	sub	r3, r3, #4
	str	r3, [fp, #-32]
.L151:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L152
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L152
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L152:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	get_tile_from_cache
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L153
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L154
.L159:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L155
.L158:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L156
.L157:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #1248
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L156:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L157
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L155:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L158
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L154:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L159
	b	.L167
.L153:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L161
.L166:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L162
.L165:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L163
.L164:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L168+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2496
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L163:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L164
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L162:
	ldr	r3, [fp, #-28]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L165
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L161:
	ldr	r3, [fp, #-32]
	ldr	r2, .L168+28
	cmp	r3, r2
	ble	.L166
.L167:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	build_supertile, .-build_supertile
	.global	__aeabi_idiv
	.align	2
	.global	get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_value, %function
get_value:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L171
	ldr	r3, [fp, #-32]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L171:
	ldr	r3, [fp, #-32]
	ldr	r2, .L181
	cmp	r3, r2
	ble	.L172
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2496
	sub	r3, r3, #4
	str	r3, [fp, #-32]
.L172:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L173
	ldr	r3, [fp, #-36]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-36]
.L173:
	ldr	r3, [fp, #-36]
	ldr	r2, .L181+4
	cmp	r3, r2
	ble	.L174
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-36]
.L174:
	ldr	r1, [fp, #-32]
	ldr	r3, .L181+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #9
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1248
	add	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-36]
	ldr	r3, .L181+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #9
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1248
	add	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	b	.L175
.L178:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	b	.L176
.L177:
	ldr	r3, .L181+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L176:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L177
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L175:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L178
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L179
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	b	.L180
.L179:
	mov	r3, #0
.L180:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L182:
	.align	2
.L181:
	.word	2499
	.word	1249
	.word	1759218605
	.word	supertile
	.size	get_value, .-get_value
	.align	2
	.global	is_in_supertile
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_in_supertile, %function
is_in_supertile:
	@ 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]
	cmp	r3, #0
	bge	.L184
	ldr	r3, [fp, #-8]
	add	r3, r3, #2496
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L184:
	ldr	r3, [fp, #-8]
	ldr	r2, .L190
	cmp	r3, r2
	ble	.L185
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2496
	sub	r3, r3, #4
	str	r3, [fp, #-8]
.L185:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L186
	ldr	r3, [fp, #-12]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-12]
.L186:
	ldr	r3, [fp, #-12]
	ldr	r2, .L190+4
	cmp	r3, r2
	ble	.L187
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1248
	sub	r3, r3, #2
	str	r3, [fp, #-12]
.L187:
	ldr	r3, .L190+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L188
	ldr	r3, .L190+8
	ldr	r3, [r3]
	add	r3, r3, #1248
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L188
	ldr	r3, .L190+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L188
	ldr	r3, .L190+12
	ldr	r3, [r3]
	add	r3, r3, #1248
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L188
	mov	r3, #1
	b	.L189
.L188:
	mov	r3, #0
.L189:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L191:
	.align	2
.L190:
	.word	2499
	.word	1249
	.word	supertile_min_x
	.word	supertile_min_y
	.size	is_in_supertile, .-is_in_supertile
	.global	__aeabi_f2d
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC3:
	.ascii	"retiled/%5.5i-%5.5i.%5.5i-%5.5i\000"
	.align	2
.LC4:
	.ascii	"Error: Could not create or open file %s\012\000"
	.align	2
.LC5:
	.ascii	"Wrote file %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #340
	str	r0, [fp, #-336]
	str	r1, [fp, #-340]
	ldr	r3, .L233
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1065353216
	str	r3, [fp, #-300]	@ float
	ldr	r0, [fp, #-300]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	rint
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-296]
	ldr	r0, .L233+4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L193
.L196:
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r4, r2, r3
	ldr	r0, .L233+4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L194
.L195:
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L194:
	ldr	r3, [fp, #-320]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L195
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L193:
	ldr	r3, [fp, #-324]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L196
	ldr	r0, .L233+12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-332]
	b	.L197
.L226:
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L198
.L225:
	ldr	r3, [fp, #-332]
	add	ip, r3, #1
	ldr	r3, [fp, #-332]
	add	r2, r3, #1248
	add	r2, r2, #2
	ldr	r3, [fp, #-328]
	add	r1, r3, #1
	ldr	r3, [fp, #-328]
	add	r3, r3, #1248
	add	r3, r3, #2
	sub	r0, fp, #272
	str	r3, [sp, #4]
	str	r1, [sp]
	mov	r3, r2
	mov	r2, ip
	ldr	r1, .L233+16
	bl	sprintf
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L199
.L202:
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L200
.L201:
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #-2147483647
	str	r2, [r3]
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L200:
	ldr	r3, [fp, #-320]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L201
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L199:
	ldr	r3, [fp, #-324]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L202
	sub	r3, fp, #272
	mov	r2, #420
	ldr	r1, .L233+20
	mov	r0, r3
	bl	open
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	bne	.L203
	ldr	r3, .L233+24
	ldr	r3, [r3]
	sub	r2, fp, #272
	ldr	r1, .L233+28
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L231
.L203:
	mvn	r3, #2
	str	r3, [fp, #-324]
	b	.L205
.L216:
	mvn	r3, #2
	str	r3, [fp, #-320]
	b	.L206
.L215:
	ldr	r3, [fp, #-324]
	add	r3, r3, #3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #-2147483647
	bne	.L207
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-324]
	add	r2, r2, r3
	ldr	r3, [fp, #-296]
	mul	r3, r2, r3
	str	r3, [fp, #-280]
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-320]
	add	r2, r2, r3
	ldr	r3, [fp, #-296]
	mul	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-280]
	bl	build_supertile
	mvn	r3, #2
	str	r3, [fp, #-308]
	b	.L208
.L214:
	mvn	r3, #2
	str	r3, [fp, #-304]
	b	.L209
.L213:
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-308]
	add	r2, r2, r3
	ldr	r3, [fp, #-296]
	mul	r3, r2, r3
	str	r3, [fp, #-280]
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-304]
	add	r2, r2, r3
	ldr	r3, [fp, #-296]
	mul	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-280]
	bl	is_in_supertile
	mov	r3, r0
	cmp	r3, #0
	beq	.L210
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L211
.L212:
	ldr	r3, [fp, #-296]
	sub	r1, r3, #1
	ldr	r3, [fp, #-308]
	add	r3, r3, #3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-304]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-316]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r3, r1
	ldr	r2, [fp, #-316]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-280]
	bl	get_value
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L211:
	ldr	r3, [fp, #-316]
	cmp	r3, #11
	ble	.L212
.L210:
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L209:
	ldr	r3, [fp, #-304]
	ldr	r2, .L233+32
	cmp	r3, r2
	ble	.L213
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L208:
	ldr	r3, [fp, #-308]
	ldr	r2, .L233+32
	cmp	r3, r2
	ble	.L214
.L207:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L206:
	ldr	r3, [fp, #-320]
	ldr	r2, .L233+32
	cmp	r3, r2
	ble	.L215
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L205:
	ldr	r3, [fp, #-324]
	ldr	r2, .L233+32
	cmp	r3, r2
	ble	.L216
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L217
.L224:
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L218
.L223:
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L219
.L222:
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L220
.L221:
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-316]
	mov	r3, r2
	lsl	r3, r3, #29
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	mov	r3, #255
	lsl	r3, r3, r2
	and	r1, r1, r3
	ldr	r2, [fp, #-316]
	mov	r3, r2
	lsl	r3, r3, #29
	sub	r3, r3, r2
	lsl	r3, r3, #3
	asr	r1, r1, r3
	ldr	r3, [fp, #-312]
	ldr	r2, .L233+36
	mul	r0, r2, r3
	ldr	r2, [fp, #-320]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r0, r3
	ldr	r3, [fp, #-324]
	add	r2, r2, r3
	ldr	r3, [fp, #-316]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-288]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L220:
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	ble	.L221
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L219:
	ldr	r3, [fp, #-312]
	cmp	r3, #11
	ble	.L222
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L218:
	ldr	r3, [fp, #-320]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L223
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L217:
	ldr	r3, [fp, #-324]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L224
	ldr	r2, .L233+12
	ldr	r1, [fp, #-288]
	ldr	r0, [fp, #-284]
	bl	write
	ldr	r0, [fp, #-284]
	bl	close
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L233+40
	bl	printf
	ldr	r3, [fp, #-328]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-328]
.L198:
	ldr	r3, [fp, #-328]
	ldr	r2, .L233+44
	cmp	r3, r2
	ble	.L225
	ldr	r3, [fp, #-332]
	add	r3, r3, #1248
	add	r3, r3, #2
	str	r3, [fp, #-332]
.L197:
	ldr	r3, [fp, #-332]
	ldr	r2, .L233+48
	cmp	r3, r2
	ble	.L226
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L227
.L230:
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L228
.L229:
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L228:
	ldr	r3, [fp, #-320]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L229
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L227:
	ldr	r3, [fp, #-324]
	ldr	r2, .L233+8
	cmp	r3, r2
	ble	.L230
	ldr	r0, [fp, #-292]
	bl	free
	mov	r3, #0
.L231:
	ldr	r2, .L233
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L232
	bl	__stack_chk_fail
.L232:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L234:
	.align	2
.L233:
	.word	.LC6
	.word	5024
	.word	1255
	.word	18930432
	.word	.LC3
	.word	577
	.word	stderr
	.word	.LC4
	.word	1252
	.word	1577536
	.word	.LC5
	.word	1249
	.word	2499
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
