	.file	"393373.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], 1199
	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], 1199
	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, -1437696[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2376
	.cfi_offset 3, -24
	mov	QWORD PTR -1440072[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 9600
	call	malloc@PLT
	mov	QWORD PTR -1440040[rbp], rax
	mov	DWORD PTR -1440060[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -1440060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1440040[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 9600
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -1440056[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -1440060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1440040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440056[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -1440056[rbp], 1
.L8:
	cmp	DWORD PTR -1440056[rbp], 1199
	jle	.L9
	add	DWORD PTR -1440060[rbp], 1
.L7:
	cmp	DWORD PTR -1440060[rbp], 1199
	jle	.L10
	mov	rax, QWORD PTR -1440072[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1440044[rbp], eax
	cmp	DWORD PTR -1440044[rbp], -1
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1440072[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L21
.L11:
	lea	rcx, -1440032[rbp]
	mov	eax, DWORD PTR -1440044[rbp]
	mov	edx, 1440000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -1440044[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -1440060[rbp], 0
	jmp	.L13
.L20:
	mov	DWORD PTR -1440056[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -1440052[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -1440060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1440040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440056[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -1440048[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -1440060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1440040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440056[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -1440052[rbp]
	imul	edx, eax, 1440000
	mov	eax, DWORD PTR -1440056[rbp]
	imul	eax, eax, 1200
	add	edx, eax
	mov	eax, DWORD PTR -1440060[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -1440048[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -1440032[rbp+rax]
	movzx	edx, al
	mov	ecx, DWORD PTR -1440048[rbp]
	mov	eax, 0
	sub	eax, ecx
	sal	eax, 3
	mov	ecx, eax
	sal	edx, cl
	mov	ecx, edx
	mov	eax, DWORD PTR -1440060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1440040[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440056[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1440052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	or	esi, ecx
	mov	edx, esi
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -1440048[rbp], 1
.L16:
	cmp	DWORD PTR -1440048[rbp], 0
	jle	.L17
	add	DWORD PTR -1440052[rbp], 1
.L15:
	cmp	DWORD PTR -1440052[rbp], 0
	jle	.L18
	add	DWORD PTR -1440056[rbp], 1
.L14:
	cmp	DWORD PTR -1440056[rbp], 1199
	jle	.L19
	add	DWORD PTR -1440060[rbp], 1
.L13:
	cmp	DWORD PTR -1440060[rbp], 1199
	jle	.L20
	mov	rax, QWORD PTR -1440040[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, 458129845
	shr	rdx, 32
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1200
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 458129845
	shr	rdx, 32
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1200
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	lea	ecx, 1199[rax]
	mov	eax, DWORD PTR -52[rbp]
	lea	edi, 1199[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], 43200
.L38:
	cmp	DWORD PTR -52[rbp], 43199
	jle	.L39
	sub	DWORD PTR -52[rbp], 43200
.L39:
	cmp	DWORD PTR -56[rbp], 0
	jns	.L40
	add	DWORD PTR -56[rbp], 21600
.L40:
	cmp	DWORD PTR -56[rbp], 21599
	jle	.L41
	sub	DWORD PTR -56[rbp], 21600
.L41:
	mov	rax, QWORD PTR supertile[rip]
	test	rax, rax
	jne	.L42
	mov	edi, 28800
	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, 28800
	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, 4
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -36[rbp], 1
.L44:
	cmp	DWORD PTR -36[rbp], 3599
	jle	.L45
	add	DWORD PTR -40[rbp], 1
.L43:
	cmp	DWORD PTR -40[rbp], 3599
	jle	.L46
.L42:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 458129845
	shr	rdx, 32
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1200
	mov	DWORD PTR supertile_min_x[rip], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 458129845
	shr	rdx, 32
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, eax, 1200
	mov	DWORD PTR supertile_min_y[rip], eax
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1200
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L47
	add	DWORD PTR -40[rbp], 43200
.L47:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1200
	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], 21600
	cmp	DWORD PTR -40[rbp], 0
	jns	.L48
	add	DWORD PTR -40[rbp], 43200
.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, 1199
	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], 0
	jle	.L53
	add	DWORD PTR -36[rbp], 1
.L51:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L54
	add	DWORD PTR -40[rbp], 1
.L50:
	cmp	DWORD PTR -40[rbp], 1199
	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], 0
	jle	.L60
	add	DWORD PTR -36[rbp], 1
.L58:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L61
	add	DWORD PTR -40[rbp], 1
.L57:
	cmp	DWORD PTR -40[rbp], 1199
	jle	.L62
.L56:
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1200
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L63
	add	DWORD PTR -40[rbp], 43200
.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, 1200
	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], 0
	jle	.L67
	add	DWORD PTR -36[rbp], 1
.L65:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L68
	add	DWORD PTR -40[rbp], 1
.L64:
	cmp	DWORD PTR -40[rbp], 1199
	jle	.L69
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1200
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L70
	add	DWORD PTR -40[rbp], 43200
.L70:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1200
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 21599
	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], 21600
	cmp	DWORD PTR -40[rbp], 0
	jns	.L71
	add	DWORD PTR -40[rbp], 43200
.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, 1199
	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, 2400
	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], 0
	jle	.L76
	add	DWORD PTR -36[rbp], 1
.L74:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L77
	add	DWORD PTR -40[rbp], 1
.L73:
	cmp	DWORD PTR -40[rbp], 1199
	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, 2400
	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], 0
	jle	.L83
	add	DWORD PTR -36[rbp], 1
.L81:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L84
	add	DWORD PTR -40[rbp], 1
.L80:
	cmp	DWORD PTR -40[rbp], 1199
	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, 1200
	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], 21600
	cmp	DWORD PTR -40[rbp], 0
	jns	.L86
	add	DWORD PTR -40[rbp], 43200
.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, 1199
	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, 1200
	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], 0
	jle	.L91
	add	DWORD PTR -36[rbp], 1
.L89:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L92
	add	DWORD PTR -40[rbp], 1
.L88:
	cmp	DWORD PTR -40[rbp], 1199
	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, 1200
	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], 0
	jle	.L98
	add	DWORD PTR -36[rbp], 1
.L96:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L99
	add	DWORD PTR -40[rbp], 1
.L95:
	cmp	DWORD PTR -40[rbp], 1199
	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, 1200
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 1200
	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], 0
	jle	.L104
	add	DWORD PTR -36[rbp], 1
.L102:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L105
	add	DWORD PTR -40[rbp], 1
.L101:
	cmp	DWORD PTR -40[rbp], 1199
	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, 1200
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 21599
	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], 21600
	cmp	DWORD PTR -40[rbp], 0
	jns	.L107
	add	DWORD PTR -40[rbp], 43200
.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, 1199
	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, 1200
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2400
	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], 0
	jle	.L112
	add	DWORD PTR -36[rbp], 1
.L110:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L113
	add	DWORD PTR -40[rbp], 1
.L109:
	cmp	DWORD PTR -40[rbp], 1199
	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, 1200
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2400
	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], 0
	jle	.L119
	add	DWORD PTR -36[rbp], 1
.L117:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L120
	add	DWORD PTR -40[rbp], 1
.L116:
	cmp	DWORD PTR -40[rbp], 1199
	jle	.L121
.L115:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1200
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 43199
	jle	.L122
	sub	DWORD PTR -40[rbp], 43200
.L122:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1200
	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], 21600
	cmp	DWORD PTR -40[rbp], 0
	jns	.L123
	add	DWORD PTR -40[rbp], 43200
.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, 1199
	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, 2400
	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], 0
	jle	.L128
	add	DWORD PTR -36[rbp], 1
.L126:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L129
	add	DWORD PTR -40[rbp], 1
.L125:
	cmp	DWORD PTR -40[rbp], 1199
	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, 2400
	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], 0
	jle	.L135
	add	DWORD PTR -36[rbp], 1
.L133:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L136
	add	DWORD PTR -40[rbp], 1
.L132:
	cmp	DWORD PTR -40[rbp], 1199
	jle	.L137
.L131:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1200
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 43199
	jle	.L138
	sub	DWORD PTR -40[rbp], 43200
.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, 2400
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 1200
	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], 0
	jle	.L142
	add	DWORD PTR -36[rbp], 1
.L140:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L143
	add	DWORD PTR -40[rbp], 1
.L139:
	cmp	DWORD PTR -40[rbp], 1199
	jle	.L144
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1200
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 43199
	jle	.L145
	sub	DWORD PTR -40[rbp], 43200
.L145:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1200
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 21599
	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], 21600
	cmp	DWORD PTR -40[rbp], 0
	jns	.L146
	add	DWORD PTR -40[rbp], 43200
.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, 1199
	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, 2400
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2400
	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], 0
	jle	.L151
	add	DWORD PTR -36[rbp], 1
.L149:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L152
	add	DWORD PTR -40[rbp], 1
.L148:
	cmp	DWORD PTR -40[rbp], 1199
	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, 2400
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 2400
	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], 0
	jle	.L158
	add	DWORD PTR -36[rbp], 1
.L156:
	cmp	DWORD PTR -36[rbp], 1199
	jle	.L159
	add	DWORD PTR -40[rbp], 1
.L155:
	cmp	DWORD PTR -40[rbp], 1199
	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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	cmp	DWORD PTR -28[rbp], 0
	jns	.L163
	add	DWORD PTR -28[rbp], 43200
.L163:
	cmp	DWORD PTR -28[rbp], 43199
	jle	.L164
	sub	DWORD PTR -28[rbp], 43200
.L164:
	cmp	DWORD PTR -32[rbp], 0
	jns	.L165
	add	DWORD PTR -32[rbp], 21600
.L165:
	cmp	DWORD PTR -32[rbp], 21599
	jle	.L166
	sub	DWORD PTR -32[rbp], 21600
.L166:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 458129845
	shr	rdx, 32
	sar	edx, 7
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1200
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1200[rdx]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 458129845
	shr	rdx, 32
	sar	edx, 7
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1200
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1200[rdx]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L167
.L168:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -16[rbp], 1
.L167:
	cmp	DWORD PTR -16[rbp], 23
	jle	.L168
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L169
.L172:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L170
.L171:
	mov	rdx, QWORD PTR supertile[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -12[rbp], 1
.L170:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jle	.L171
	add	DWORD PTR -16[rbp], 1
.L169:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cmp	DWORD PTR -16[rbp], eax
	jle	.L172
	nop
	nop
	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], 43200
.L174:
	cmp	DWORD PTR -4[rbp], 43199
	jle	.L175
	sub	DWORD PTR -4[rbp], 43200
.L175:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L176
	add	DWORD PTR -8[rbp], 21600
.L176:
	cmp	DWORD PTR -8[rbp], 21599
	jle	.L177
	sub	DWORD PTR -8[rbp], 21600
.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, 1199
	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, 1199
	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"
.LC6:
	.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 -332[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -332[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	rint@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -328[rbp], eax
	mov	edi, 4800
	call	malloc@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	DWORD PTR -356[rbp], 0
	jmp	.L181
.L184:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 4800
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -352[rbp], 0
	jmp	.L182
.L183:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 96
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -352[rbp], 1
.L182:
	cmp	DWORD PTR -352[rbp], 599
	jle	.L183
	add	DWORD PTR -356[rbp], 1
.L181:
	cmp	DWORD PTR -356[rbp], 599
	jle	.L184
	mov	edi, 96
	call	malloc@PLT
	mov	QWORD PTR -304[rbp], rax
	mov	edi, 8640000
	call	malloc@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	DWORD PTR -368[rbp], 0
	jmp	.L185
.L218:
	mov	DWORD PTR -364[rbp], 0
	jmp	.L186
.L217:
	mov	eax, DWORD PTR -364[rbp]
	lea	edi, 600[rax]
	mov	eax, DWORD PTR -364[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -368[rbp]
	lea	ecx, 600[rax]
	mov	eax, DWORD PTR -368[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 -356[rbp], 0
	jmp	.L187
.L190:
	mov	DWORD PTR -352[rbp], 0
	jmp	.L188
.L189:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax], -2147483647
	add	DWORD PTR -352[rbp], 1
.L188:
	cmp	DWORD PTR -352[rbp], 599
	jle	.L189
	add	DWORD PTR -356[rbp], 1
.L187:
	cmp	DWORD PTR -356[rbp], 599
	jle	.L190
	lea	rax, -288[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[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	.L223
.L191:
	mov	DWORD PTR -356[rbp], 0
	jmp	.L193
.L208:
	mov	DWORD PTR -352[rbp], 0
	jmp	.L194
.L207:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	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 -368[rbp]
	mov	eax, DWORD PTR -356[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -328[rbp]
	imul	eax, edx
	mov	DWORD PTR -320[rbp], eax
	mov	edx, DWORD PTR -364[rbp]
	mov	eax, DWORD PTR -352[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -328[rbp]
	imul	eax, edx
	mov	DWORD PTR -316[rbp], eax
	mov	edx, DWORD PTR -316[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	esi, edx
	mov	edi, eax
	call	build_supertile
	mov	DWORD PTR -340[rbp], 0
	jmp	.L196
.L206:
	mov	DWORD PTR -336[rbp], 0
	jmp	.L197
.L205:
	mov	edx, DWORD PTR -368[rbp]
	mov	eax, DWORD PTR -340[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -328[rbp]
	imul	eax, edx
	mov	DWORD PTR -320[rbp], eax
	mov	edx, DWORD PTR -364[rbp]
	mov	eax, DWORD PTR -336[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -328[rbp]
	imul	eax, edx
	mov	DWORD PTR -316[rbp], eax
	mov	edx, DWORD PTR -316[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	esi, edx
	mov	edi, eax
	call	is_in_supertile
	test	eax, eax
	je	.L198
	mov	eax, DWORD PTR -328[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -316[rbp]
	mov	esi, DWORD PTR -320[rbp]
	mov	rax, QWORD PTR -304[rbp]
	mov	r8d, ecx
	mov	ecx, 0
	mov	rdi, rax
	call	get_value
	mov	DWORD PTR -360[rbp], 0
	mov	DWORD PTR -348[rbp], 0
	jmp	.L199
.L200:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -360[rbp], eax
	add	DWORD PTR -348[rbp], 1
.L199:
	cmp	DWORD PTR -348[rbp], 23
	jle	.L200
	mov	DWORD PTR -348[rbp], 0
	jmp	.L201
.L204:
	cmp	DWORD PTR -360[rbp], 0
	jle	.L202
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -360[rbp]
	cvtss2sd	xmm1, xmm1
	divsd	xmm0, xmm1
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -336[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	cvttsd2si	eax, xmm0
	mov	DWORD PTR [rdx], eax
	jmp	.L203
.L202:
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -336[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L203:
	add	DWORD PTR -348[rbp], 1
.L201:
	cmp	DWORD PTR -348[rbp], 23
	jle	.L204
.L198:
	add	DWORD PTR -336[rbp], 1
.L197:
	cmp	DWORD PTR -336[rbp], 599
	jle	.L205
	add	DWORD PTR -340[rbp], 1
.L196:
	cmp	DWORD PTR -340[rbp], 599
	jle	.L206
.L195:
	add	DWORD PTR -352[rbp], 1
.L194:
	cmp	DWORD PTR -352[rbp], 599
	jle	.L207
	add	DWORD PTR -356[rbp], 1
.L193:
	cmp	DWORD PTR -356[rbp], 599
	jle	.L208
	mov	DWORD PTR -356[rbp], 0
	jmp	.L209
.L216:
	mov	DWORD PTR -352[rbp], 0
	jmp	.L210
.L215:
	mov	DWORD PTR -344[rbp], 0
	jmp	.L211
.L214:
	mov	DWORD PTR -348[rbp], 0
	jmp	.L212
.L213:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	ecx, DWORD PTR -348[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 -348[rbp]
	mov	eax, 0
	sub	eax, ecx
	sal	eax, 3
	mov	ecx, eax
	sar	edx, cl
	mov	ecx, edx
	mov	eax, DWORD PTR -344[rbp]
	imul	edx, eax, 360000
	mov	eax, DWORD PTR -352[rbp]
	imul	eax, eax, 600
	add	edx, eax
	mov	eax, DWORD PTR -356[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -348[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 -348[rbp], 1
.L212:
	cmp	DWORD PTR -348[rbp], 0
	jle	.L213
	add	DWORD PTR -344[rbp], 1
.L211:
	cmp	DWORD PTR -344[rbp], 23
	jle	.L214
	add	DWORD PTR -352[rbp], 1
.L210:
	cmp	DWORD PTR -352[rbp], 599
	jle	.L215
	add	DWORD PTR -356[rbp], 1
.L209:
	cmp	DWORD PTR -356[rbp], 599
	jle	.L216
	mov	rcx, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR -324[rbp]
	mov	edx, 8640000
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -324[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -364[rbp], 600
.L186:
	cmp	DWORD PTR -364[rbp], 5399
	jle	.L217
	add	DWORD PTR -368[rbp], 600
.L185:
	cmp	DWORD PTR -368[rbp], 10799
	jle	.L218
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -356[rbp], 0
	jmp	.L219
.L222:
	mov	DWORD PTR -352[rbp], 0
	jmp	.L220
.L221:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -352[rbp], 1
.L220:
	cmp	DWORD PTR -352[rbp], 599
	jle	.L221
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -356[rbp], 1
.L219:
	cmp	DWORD PTR -356[rbp], 599
	jle	.L222
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L223:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L224
	call	__stack_chk_fail@PLT
.L224:
	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	1082130432
	.align 8
.LC5:
	.long	0
	.long	1079574528
	.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	"393373.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]
	cmp	r3, #1200
	blt	.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]
	cmp	r3, #1200
	blt	.L5
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.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 = 1440040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1425408
	sub	sp, sp, #14592
	sub	sp, sp, #44
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	str	r0, [r3, #-2340]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r4, r3
	mov	r0, #4800
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-2316]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2332]
	b	.L7
.L10:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	lsl	r2, r3, #2
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2316]
	add	r4, r3, r2
	mov	r0, #4800
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2328]
	b	.L8
.L9:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	lsl	r2, r3, #2
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2316]
	add	r3, r3, r2
	ldr	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	add	r3, r3, #1
	str	r3, [r2, #-2328]
.L8:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	cmp	r3, #1200
	blt	.L9
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	add	r3, r3, #1
	str	r3, [r2, #-2332]
.L7:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	cmp	r3, #1200
	blt	.L10
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r4, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, #0
	ldr	r0, [r3, #-2340]
	bl	open
	str	r0, [r4, #-2312]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2312]
	cmn	r3, #1
	bne	.L11
	ldr	r3, .L23+4
	ldr	r0, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2340]
	ldr	r1, .L23+8
	bl	fprintf
	mov	r3, #0
	b	.L21
.L11:
	ldr	r3, .L23+12
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #1425408
	sub	r2, r2, #12
	sub	r2, r2, #12288
	mov	r0, r2
	ldr	r2, .L23+16
	mov	r1, r3
	ldr	r0, [r0, #-2312]
	bl	read
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r0, [r3, #-2312]
	bl	close
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2332]
	b	.L13
.L20:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2328]
	b	.L14
.L19:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2324]
	b	.L15
.L18:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	lsl	r2, r3, #2
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2316]
	add	r3, r3, r2
	ldr	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2320]
	b	.L16
.L17:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	lsl	r2, r3, #2
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2316]
	add	r3, r3, r2
	ldr	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	ldr	r2, .L23+16
	mul	r0, r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2328]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	mov	r3, r2
	add	r2, r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	add	r2, r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2320]
	add	r2, r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	add	r3, r3, r2
	ldrb	r3, [r3, #-2308]	@ zero_extendqisi2
	mov	r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2320]
	mov	r3, r2
	lsl	r3, r3, #29
	sub	r3, r3, r2
	lsl	r3, r3, #3
	lsl	r2, r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	lsl	r0, r3, #2
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2316]
	add	r3, r3, r0
	ldr	r0, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	lsl	r3, r3, #2
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2320]
	add	r3, r3, #1
	str	r3, [r2, #-2320]
.L16:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2320]
	cmp	r3, #0
	ble	.L17
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	add	r3, r3, #1
	str	r3, [r2, #-2324]
.L15:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	cmp	r3, #0
	ble	.L18
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	add	r3, r3, #1
	str	r3, [r2, #-2328]
.L14:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	cmp	r3, #1200
	blt	.L19
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	add	r3, r3, #1
	str	r3, [r2, #-2332]
.L13:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	cmp	r3, #1200
	blt	.L20
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2316]
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.word	-1440004
	.word	1440000
	.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, .L39
	smull	r1, r2, r3, r2
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	mov	r3, r2
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r2, .L39
	smull	r1, r2, r3, r2
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	mov	r3, r2
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1184
	add	r3, r3, #15
	ldr	r2, [fp, #-36]
	add	r2, r2, #1184
	add	r2, r2, #15
	str	r2, [sp, #8]
	ldr	r2, [fp, #-36]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L39+4
	mov	r1, #256
	ldr	r0, [fp, #-16]
	bl	snprintf
	ldr	r3, .L39+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L27
.L30:
	ldr	r3, .L39+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L39+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	.L28
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, .L39+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	.L29
.L28:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L27:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L30
.L26:
	ldr	r0, [fp, #-16]
	bl	read_tile
	str	r0, [fp, #-8]
	ldr	r3, .L39+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L39+8
	str	r2, [r3]
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L39+12
	str	r2, [r3]
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L39+16
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L32
.L33:
	ldr	r3, .L39+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+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]
.L32:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L33
.L31:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L34
.L36:
	ldr	r3, .L39+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, .L39+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	.L35
	ldr	r3, .L39+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]
.L35:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L36
	ldr	r3, .L39+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L39+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, .L39+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, .L39+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L38
.L37:
	ldr	r3, .L39+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, .L39+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, .L39+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, .L39+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, .L39+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L38:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	458129845
	.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	.L42
	ldr	r3, [fp, #-40]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-40]
.L42:
	ldr	r3, [fp, #-40]
	ldr	r2, .L166+12
	cmp	r3, r2
	ble	.L43
	ldr	r3, [fp, #-40]
	sub	r3, r3, #43008
	sub	r3, r3, #192
	str	r3, [fp, #-40]
.L43:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L44
	ldr	r3, [fp, #-44]
	add	r3, r3, #21504
	add	r3, r3, #96
	str	r3, [fp, #-44]
.L44:
	ldr	r3, [fp, #-44]
	ldr	r2, .L166+16
	cmp	r3, r2
	ble	.L45
	ldr	r3, [fp, #-44]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-44]
.L45:
	ldr	r3, .L166+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L46
	mov	r0, #14400
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L166+20
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L47
.L50:
	ldr	r3, .L166+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #14400
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L48
.L49:
	ldr	r3, .L166+20
	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, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L48:
	ldr	r3, [fp, #-28]
	cmp	r3, #3600
	blt	.L49
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L47:
	ldr	r3, [fp, #-32]
	cmp	r3, #3600
	blt	.L50
.L46:
	ldr	r3, [fp, #-40]
	ldr	r2, .L166
	smull	r1, r2, r3, r2
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	ldr	r3, .L166+4
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, .L166
	smull	r1, r2, r3, r2
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	ldr	r3, .L166+8
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1200
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L51
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L51:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1200
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L52
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L52
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L52:
	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	.L53
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L54
.L59:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L55
.L58:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L56
.L57:
	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, #1184
	add	r3, r3, #15
	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, .L166+20
	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]
.L56:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L57
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L55:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L58
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L54:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L59
	b	.L60
.L53:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L61
.L66:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L62
.L65:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L63
.L64:
	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, .L166+20
	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]
.L63:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L64
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L62:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L65
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L61:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L66
.L60:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1200
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L67
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L67:
	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	.L68
.L73:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L69
.L72:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L70
.L71:
	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, .L166+20
	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, #1200
	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]
.L70:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L71
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L69:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L72
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L68:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L73
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1200
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L74
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L74:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1200
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L166+16
	cmp	r3, r2
	ble	.L75
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L75
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L75:
	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	.L76
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L77
.L82:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L78
.L81:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L79
.L80:
	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, #1184
	add	r3, r3, #15
	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, .L166+20
	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, #2400
	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]
.L79:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L80
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L78:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L81
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L77:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L82
	b	.L83
.L76:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L84
.L89:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L85
.L88:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L86
.L87:
	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, .L166+20
	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, #2400
	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]
.L86:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L87
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L85:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L88
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L84:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L89
.L83:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1200
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L90
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L90
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L90:
	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	.L91
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L92
.L97:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L93
.L96:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L94
.L95:
	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, #1184
	add	r3, r3, #15
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1200
	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]
.L94:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L95
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L93:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L96
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L92:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L97
	b	.L98
.L91:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L99
.L104:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L100
.L103:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L101
.L102:
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1200
	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]
.L101:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L102
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L100:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L103
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L99:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L104
.L98:
	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	.L105
.L110:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L106
.L109:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L107
.L108:
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1200
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1200
	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]
.L107:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L108
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L106:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L109
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L105:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L110
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1200
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L166+16
	cmp	r3, r2
	ble	.L111
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L111
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L111:
	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	.L112
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L113
.L118:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L114
.L117:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L115
.L116:
	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, #1184
	add	r3, r3, #15
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1200
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2400
	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]
.L115:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L116
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L114:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L117
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L113:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L118
	b	.L119
.L112:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L120
.L125:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L121
.L124:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L122
.L123:
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1200
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2400
	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]
.L122:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L123
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L121:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L124
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L120:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L125
.L119:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1200
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L166+12
	cmp	r3, r2
	ble	.L126
	ldr	r3, [fp, #-32]
	sub	r3, r3, #43008
	sub	r3, r3, #192
	str	r3, [fp, #-32]
.L126:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1200
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L127
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L127
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L127:
	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	.L128
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L129
.L134:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L130
.L133:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L131
.L132:
	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, #1184
	add	r3, r3, #15
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2400
	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]
.L131:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L132
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L130:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L133
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L129:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L134
	b	.L135
.L128:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L136
.L141:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L137
.L140:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L138
.L139:
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2400
	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]
.L138:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L139
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L137:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L140
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L136:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L141
.L135:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1200
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L166+12
	cmp	r3, r2
	ble	.L142
	ldr	r3, [fp, #-32]
	sub	r3, r3, #43008
	sub	r3, r3, #192
	str	r3, [fp, #-32]
.L142:
	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	.L143
.L148:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L144
.L147:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L145
.L167:
	.align	2
.L166:
	.word	458129845
	.word	supertile_min_x
	.word	supertile_min_y
	.word	43199
	.word	21599
	.word	supertile
.L146:
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2400
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1200
	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]
.L145:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L146
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L144:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L147
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L143:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L148
	ldr	r3, [fp, #-40]
	add	r3, r3, #1200
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L166+12
	cmp	r3, r2
	ble	.L149
	ldr	r3, [fp, #-32]
	sub	r3, r3, #43008
	sub	r3, r3, #192
	str	r3, [fp, #-32]
.L149:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1200
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, .L166+16
	cmp	r3, r2
	ble	.L150
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L150
	ldr	r3, [fp, #-32]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-32]
.L150:
	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	.L151
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L152
.L157:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L153
.L156:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L154
.L155:
	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, #1184
	add	r3, r3, #15
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2400
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2400
	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]
.L154:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L155
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L153:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L156
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L152:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L157
	b	.L165
.L151:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L159
.L164:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L160
.L163:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L161
.L162:
	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, .L166+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2400
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2400
	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]
.L161:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L162
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L160:
	ldr	r3, [fp, #-28]
	cmp	r3, #1200
	blt	.L163
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L159:
	ldr	r3, [fp, #-32]
	cmp	r3, #1200
	blt	.L164
.L165:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	build_supertile, .-build_supertile
	.align	2
	.global	get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_value, %function
get_value:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L169
	ldr	r3, [fp, #-28]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-28]
.L169:
	ldr	r3, [fp, #-28]
	ldr	r2, .L179
	cmp	r3, r2
	ble	.L170
	ldr	r3, [fp, #-28]
	sub	r3, r3, #43008
	sub	r3, r3, #192
	str	r3, [fp, #-28]
.L170:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L171
	ldr	r3, [fp, #-32]
	add	r3, r3, #21504
	add	r3, r3, #96
	str	r3, [fp, #-32]
.L171:
	ldr	r3, [fp, #-32]
	ldr	r2, .L179+4
	cmp	r3, r2
	ble	.L172
	ldr	r3, [fp, #-32]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-32]
.L172:
	ldr	r1, [fp, #-28]
	ldr	r3, .L179+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	sub	r2, r1, r2
	add	r3, r2, #1200
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-32]
	ldr	r3, .L179+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	sub	r2, r1, r2
	add	r3, r2, #1200
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L173
.L174:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L173:
	ldr	r3, [fp, #-20]
	cmp	r3, #23
	ble	.L174
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L175
.L178:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L176
.L177:
	ldr	r3, .L179+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L176:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L177
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L175:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L178
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L180:
	.align	2
.L179:
	.word	43199
	.word	21599
	.word	458129845
	.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	.L182
	ldr	r3, [fp, #-8]
	add	r3, r3, #43008
	add	r3, r3, #192
	str	r3, [fp, #-8]
.L182:
	ldr	r3, [fp, #-8]
	ldr	r2, .L188
	cmp	r3, r2
	ble	.L183
	ldr	r3, [fp, #-8]
	sub	r3, r3, #43008
	sub	r3, r3, #192
	str	r3, [fp, #-8]
.L183:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L184
	ldr	r3, [fp, #-12]
	add	r3, r3, #21504
	add	r3, r3, #96
	str	r3, [fp, #-12]
.L184:
	ldr	r3, [fp, #-12]
	ldr	r2, .L188+4
	cmp	r3, r2
	ble	.L185
	ldr	r3, [fp, #-12]
	sub	r3, r3, #21504
	sub	r3, r3, #96
	str	r3, [fp, #-12]
.L185:
	ldr	r3, .L188+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L186
	ldr	r3, .L188+8
	ldr	r3, [r3]
	add	r3, r3, #1184
	add	r3, r3, #15
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L186
	ldr	r3, .L188+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L186
	ldr	r3, .L188+12
	ldr	r3, [r3]
	add	r3, r3, #1184
	add	r3, r3, #15
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L186
	mov	r3, #1
	b	.L187
.L186:
	mov	r3, #0
.L187:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L189:
	.align	2
.L188:
	.word	43199
	.word	21599
	.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"
	.global	__aeabi_i2f
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.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 = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #344
	str	r0, [fp, #-344]
	str	r1, [fp, #-348]
	ldr	r3, .L235
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L235+4
	str	r3, [fp, #-304]	@ float
	ldr	r0, [fp, #-304]	@ 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, #-300]
	mov	r0, #2400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L191
.L194:
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r4, r2, r3
	mov	r0, #2400
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L192
.L193:
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #96
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L192:
	ldr	r3, [fp, #-324]
	cmp	r3, #600
	blt	.L193
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L191:
	ldr	r3, [fp, #-328]
	cmp	r3, #600
	blt	.L194
	mov	r0, #96
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r0, .L235+8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-340]
	b	.L195
.L228:
	mov	r3, #0
	str	r3, [fp, #-336]
	b	.L196
.L227:
	ldr	r3, [fp, #-340]
	add	r1, r3, #1
	ldr	r3, [fp, #-340]
	add	ip, r3, #600
	ldr	r3, [fp, #-336]
	add	r3, r3, #1
	ldr	r2, [fp, #-336]
	add	r2, r2, #600
	sub	r0, fp, #272
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, .L235+12
	bl	sprintf
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L197
.L200:
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L198
.L199:
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #-2147483647
	str	r2, [r3]
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L198:
	ldr	r3, [fp, #-324]
	cmp	r3, #600
	blt	.L199
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L197:
	ldr	r3, [fp, #-328]
	cmp	r3, #600
	blt	.L200
	sub	r3, fp, #272
	mov	r2, #420
	ldr	r1, .L235+16
	mov	r0, r3
	bl	open
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	bne	.L201
	ldr	r3, .L235+20
	ldr	r3, [r3]
	sub	r2, fp, #272
	ldr	r1, .L235+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L233
.L201:
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L203
.L218:
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L204
.L217:
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #-2147483647
	bne	.L205
	ldr	r2, [fp, #-340]
	ldr	r3, [fp, #-328]
	add	r2, r2, r3
	ldr	r3, [fp, #-300]
	mul	r3, r2, r3
	str	r3, [fp, #-280]
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-324]
	add	r2, r2, r3
	ldr	r3, [fp, #-300]
	mul	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-280]
	bl	build_supertile
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L206
.L216:
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L207
.L215:
	ldr	r2, [fp, #-340]
	ldr	r3, [fp, #-312]
	add	r2, r2, r3
	ldr	r3, [fp, #-300]
	mul	r3, r2, r3
	str	r3, [fp, #-280]
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-308]
	add	r2, r2, r3
	ldr	r3, [fp, #-300]
	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	.L208
	ldr	r3, [fp, #-300]
	sub	r3, r3, #1
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-276]
	ldr	r1, [fp, #-280]
	ldr	r0, [fp, #-292]
	bl	get_value
	mov	r3, #0
	str	r3, [fp, #-332]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L209
.L210:
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-332]
	add	r3, r2, r3
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L209:
	ldr	r3, [fp, #-320]
	cmp	r3, #23
	ble	.L210
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L211
.L214:
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	ble	.L212
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L235+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-332]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-308]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	add	r4, r2, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [r4]
	b	.L213
.L212:
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-308]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L213:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L211:
	ldr	r3, [fp, #-320]
	cmp	r3, #23
	ble	.L214
.L208:
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L207:
	ldr	r3, [fp, #-308]
	cmp	r3, #600
	blt	.L215
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L206:
	ldr	r3, [fp, #-312]
	cmp	r3, #600
	blt	.L216
.L205:
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L204:
	ldr	r3, [fp, #-324]
	cmp	r3, #600
	blt	.L217
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L203:
	ldr	r3, [fp, #-328]
	cmp	r3, #600
	blt	.L218
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L219
.L226:
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L220
.L225:
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L221
.L224:
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L222
.L223:
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-316]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-320]
	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, #-320]
	mov	r3, r2
	lsl	r3, r3, #29
	sub	r3, r3, r2
	lsl	r3, r3, #3
	asr	r1, r1, r3
	ldr	r3, [fp, #-316]
	ldr	r2, .L235+32
	mul	r0, r2, r3
	ldr	r2, [fp, #-324]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	mov	r3, r2
	add	r2, r0, r3
	ldr	r3, [fp, #-328]
	add	r2, r2, r3
	ldr	r3, [fp, #-320]
	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, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L222:
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	ble	.L223
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L221:
	ldr	r3, [fp, #-316]
	cmp	r3, #23
	ble	.L224
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L220:
	ldr	r3, [fp, #-324]
	cmp	r3, #600
	blt	.L225
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L219:
	ldr	r3, [fp, #-328]
	cmp	r3, #600
	blt	.L226
	ldr	r2, .L235+8
	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, .L235+36
	bl	printf
	ldr	r3, [fp, #-336]
	add	r3, r3, #600
	str	r3, [fp, #-336]
.L196:
	ldr	r3, [fp, #-336]
	ldr	r2, .L235+40
	cmp	r3, r2
	ble	.L227
	ldr	r3, [fp, #-340]
	add	r3, r3, #600
	str	r3, [fp, #-340]
.L195:
	ldr	r3, [fp, #-340]
	ldr	r2, .L235+44
	cmp	r3, r2
	ble	.L228
	ldr	r0, [fp, #-292]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L229
.L232:
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L230
.L231:
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L230:
	ldr	r3, [fp, #-324]
	cmp	r3, #600
	blt	.L231
	ldr	r3, [fp, #-328]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L229:
	ldr	r3, [fp, #-328]
	cmp	r3, #600
	blt	.L232
	ldr	r0, [fp, #-296]
	bl	free
	mov	r3, #0
.L233:
	ldr	r2, .L235
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L234
	bl	__stack_chk_fail
.L234:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L236:
	.align	2
.L235:
	.word	.LC6
	.word	1082130432
	.word	8640000
	.word	.LC3
	.word	577
	.word	stderr
	.word	.LC4
	.word	1079574528
	.word	360000
	.word	.LC5
	.word	5399
	.word	10799
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
