// File: Alcaro[P]bridges/game.cpp
// Function: (anonymous namespace)::game_impl::draw_island_fragment(int, int, bool, bool, bool, bool, bool)
void draw_island_fragment(int x, int y, bool right, bool up, bool left, bool down, bool downright)
	{
		const image& im = (tileset==0 ? resources::fg0 : tileset==1 ? resources::fg1 : resources::fg2);
		
		int bx = (tileset==2 ? 5 : 3); // border x
		int by = (tileset==2 ? 6 : 4);
		
		image im_tile;
		im_tile.init_ref_sub(im, bx, by, 40-bx*2, 40-by*2);
		
		if (left)
		{
			//top left
			out.insert_tile(x, y+(up?0:by), 20, 20-(up?0:by), im_tile, x, y+(up?0:by));
			if (!up)
				out.insert_sub(x-8, y, im, 6, 0, 28, by);
			
			//bottom left
			out.insert_tile(x, y+20, 20, 20-(down?-8:by), im_tile, x, y+20);
			if (!down)
				out.insert_sub(x-8, y+40-by, im, 6, 40-by, 28, by);
		}
		else
		{
			//top left
			out.insert_tile(x+bx, y+(up?0:by), 20-bx, 20-(up?0:by), im_tile, x+bx, y+(up?0:by));
			out.insert_sub(x, y-(up?8:0), im, 0, (up?6:0), bx, (up?28:20));
			if (!up)
				out.insert_sub(x+bx, y, im, bx, 0, 20-bx, by);
			
			//bottom left
			out.insert_tile(x+bx, y+20, 20-bx, 20-(down?-8:by), im_tile, x+bx, y+20);
			out.insert_sub(x, y+20, im, 0, (down?10:20), bx, 20-(down?-8:by));
			if (!down)
				out.insert_sub(x, y+40-by, im, 0, 40-by, 20, by);
		}
		
		if (right)
		{
			//top right
			out.insert_tile(x+20, y+(up?0:by), 28, 20-(up?0:by), im_tile, x+20, y+(up?0:by));
			if (!up)
				out.insert_sub(x+20, y, im, 6, 0, 28, by);
			
			//bottom right
			if (downright)
				out.insert_tile(x+20, y+20, 28, 20-(down?-8:by), im_tile, x+20, y+20);
			else
			{
				if (down) out.insert_tile(x+20, y+40, 20, 8, im_tile, x+20, y+40);
				out.insert_tile(x+20, y+20, 28, 20-(down?0:by), im_tile, x+20, y+20);
			}
			if (!down)
				out.insert_sub(x+20, y+40-by, im, 6, 40-by, 28, by);
		}
		else
		{
			//top right
			out.insert_tile(x+20, y+(up?0:by), 20-bx, 20-(up?-8:by), im_tile, x+20, y+(up?0:by));
			out.insert_sub(x+40-bx, y-(up?8:0), im, 40-bx, (up?6:0), bx, (up?28:20));
			if (!up)
				out.insert_sub(x+20, y, im, 20, 0, 20-bx, by);
			
			//bottom right
			out.insert_tile(x+20, y+20, 20-bx, 20-(down?-8:by), im_tile, x+20, y+20);
			out.insert_sub(x+40-bx, y+20, im, 40-bx, (down?10:20), bx, (down?28:20));
			if (!down)
				out.insert_sub(x+20, y+40-by, im, 20, 40-by, 20-bx, by);
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movl %r9d, -0x54(%rbp)
movl %r8d, %eax
movl %edx, %r8d
movl -0x54(%rbp), %edx
movl %esi, %r9d
movq %rdi, %r10
movb %al, %sil
movb %cl, %dil
movb 0x18(%rbp), %al
movb 0x10(%rbp), %cl
movq %r10, -0x10(%rbp)
movl %r9d, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
andb $0x1, %dil
movb %dil, -0x19(%rbp)
andb $0x1, %sil
movb %sil, -0x1a(%rbp)
andb $0x1, %dl
movb %dl, -0x1b(%rbp)
andb $0x1, %cl
movb %cl, -0x1c(%rbp)
andb $0x1, %al
movb %al, -0x1d(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpl $0x0, 0x48(%rax)
jne 0x4d443
leaq 0x33cc7(%rip), %rax     # 0x81104
movq %rax, -0x60(%rbp)
jmp 0x4d46f
movq -0x50(%rbp), %rax
cmpl $0x1, 0x48(%rax)
jne 0x4d45a
leaq 0x33ce0(%rip), %rax     # 0x81134
movq %rax, -0x68(%rbp)
jmp 0x4d467
leaq 0x33d1b(%rip), %rax     # 0x8117c
movq %rax, -0x68(%rbp)
jmp 0x4d467
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movl 0x48(%rax), %esi
movl $0x3, %ecx
movl $0x5, %edx
cmpl $0x2, %esi
cmovel %edx, %ecx
movl %ecx, -0x2c(%rbp)
movl 0x48(%rax), %edx
movl $0x4, %eax
movl $0x6, %ecx
cmpl $0x2, %edx
cmovel %ecx, %eax
movl %eax, -0x30(%rbp)
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %eax
shll %eax
movl $0x28, %r8d
subl %eax, %r8d
movl -0x30(%rbp), %eax
shll %eax
movl $0x28, %r9d
subl %eax, %r9d
leaq -0x48(%rbp), %rdi
callq 0x1afe0
testb $0x1, -0x1b(%rbp)
je 0x4d6ab
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x78(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x6c(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4d505
xorl %eax, %eax
movl %eax, -0x7c(%rbp)
jmp 0x4d50b
movl -0x30(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x6c(%rbp), %eax
movl -0x7c(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x80(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4d526
xorl %eax, %eax
movl %eax, -0x84(%rbp)
jmp 0x4d52f
movl -0x30(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %ecx
movl $0x14, %eax
subl %ecx, %eax
movl %eax, -0x90(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x88(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4d564
xorl %eax, %eax
movl %eax, -0x94(%rbp)
jmp 0x4d56d
movl -0x30(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x8c(%rbp), %r10d
movl -0x90(%rbp), %r8d
movl -0x80(%rbp), %edx
movl -0x70(%rbp), %esi
movq -0x78(%rbp), %rdi
movl -0x88(%rbp), %eax
movl -0x94(%rbp), %ecx
addl %ecx, %eax
movl $0x14, %ecx
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
testb $0x1, -0x1a(%rbp)
jne 0x4d5e0
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
subl $0x8, %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movl -0x30(%rbp), %eax
movl $0x6, %r8d
xorl %r9d, %r9d
movl $0x1c, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xa8(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x98(%rbp)
testb $0x1, -0x1c(%rbp)
je 0x4d617
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0xac(%rbp)
jmp 0x4d620
movl -0x30(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0x98(%rbp), %edx
movl -0x9c(%rbp), %esi
movq -0xa8(%rbp), %rdi
movl -0xac(%rbp), %eax
movl $0x14, %r8d
subl %eax, %r8d
movl -0x14(%rbp), %r10d
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl $0x14, %ecx
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
testb $0x1, -0x1c(%rbp)
jne 0x4d6a6
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
subl $0x8, %esi
movl -0x18(%rbp), %edx
addl $0x28, %edx
subl -0x30(%rbp), %edx
movq -0x28(%rbp), %rcx
movl $0x28, %r9d
subl -0x30(%rbp), %r9d
movl -0x30(%rbp), %eax
movl $0x6, %r8d
movl $0x1c, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
jmp 0x4d9d9
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xc0(%rbp)
movl -0x14(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0xb0(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4d6df
xorl %eax, %eax
movl %eax, -0xc4(%rbp)
jmp 0x4d6e8
movl -0x30(%rbp), %eax
movl %eax, -0xc4(%rbp)
movl -0xb0(%rbp), %eax
movl -0xc4(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0xcc(%rbp)
movl $0x14, %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xc8(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4d71a
xorl %eax, %eax
movl %eax, -0xd0(%rbp)
jmp 0x4d723
movl -0x30(%rbp), %eax
movl %eax, -0xd0(%rbp)
movl -0xd0(%rbp), %ecx
movl $0x14, %eax
subl %ecx, %eax
movl %eax, -0xdc(%rbp)
movl -0x14(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0xd8(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0xd4(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4d75b
xorl %eax, %eax
movl %eax, -0xe0(%rbp)
jmp 0x4d764
movl -0x30(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl -0xd8(%rbp), %r10d
movl -0xdc(%rbp), %r8d
movl -0xc8(%rbp), %ecx
movl -0xcc(%rbp), %edx
movl -0xb4(%rbp), %esi
movq -0xc0(%rbp), %rdi
movl -0xd4(%rbp), %eax
movl -0xe0(%rbp), %r9d
addl %r9d, %eax
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movb -0x1a(%rbp), %r8b
xorl %eax, %eax
movl $0x8, %ecx
testb $0x1, %r8b
cmovnel %ecx, %eax
subl %eax, %edx
movq -0x28(%rbp), %rcx
movb -0x1a(%rbp), %r8b
xorl %r9d, %r9d
movl $0x6, %eax
testb $0x1, %r8b
cmovnel %eax, %r9d
movl -0x2c(%rbp), %r10d
movb -0x1a(%rbp), %r11b
movl $0x14, %eax
movl $0x1c, %r8d
testb $0x1, %r11b
cmovnel %r8d, %eax
xorl %r8d, %r8d
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
testb $0x1, -0x1a(%rbp)
jne 0x4d84d
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl -0x2c(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
movl $0x14, %r10d
subl -0x2c(%rbp), %r10d
movl -0x30(%rbp), %eax
xorl %r9d, %r9d
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xf8(%rbp)
movl -0x14(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl %eax, -0xe8(%rbp)
movl $0x14, %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xe4(%rbp)
testb $0x1, -0x1c(%rbp)
je 0x4d895
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0xfc(%rbp)
jmp 0x4d89e
movl -0x30(%rbp), %eax
movl %eax, -0xfc(%rbp)
movl -0xe4(%rbp), %ecx
movl -0xe8(%rbp), %edx
movl -0xec(%rbp), %esi
movq -0xf8(%rbp), %rdi
movl -0xfc(%rbp), %eax
movl $0x14, %r8d
subl %eax, %r8d
movl -0x14(%rbp), %r10d
addl -0x2c(%rbp), %r10d
movl -0x18(%rbp), %eax
addl $0x14, %eax
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x120(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x118(%rbp)
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x114(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x110(%rbp)
movb -0x1c(%rbp), %dl
movl $0x14, %eax
movl $0xa, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x104(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x100(%rbp)
testb $0x1, -0x1c(%rbp)
je 0x4d949
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x124(%rbp)
jmp 0x4d952
movl -0x30(%rbp), %eax
movl %eax, -0x124(%rbp)
movl -0x100(%rbp), %r10d
movl -0x104(%rbp), %r9d
movq -0x110(%rbp), %rcx
movl -0x114(%rbp), %edx
movl -0x118(%rbp), %esi
movq -0x120(%rbp), %rdi
movl -0x124(%rbp), %r8d
movl $0x14, %eax
subl %r8d, %eax
xorl %r8d, %r8d
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
testb $0x1, -0x1c(%rbp)
jne 0x4d9d7
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
addl $0x28, %edx
subl -0x30(%rbp), %edx
movq -0x28(%rbp), %rcx
movl $0x28, %r9d
subl -0x30(%rbp), %r9d
movl -0x30(%rbp), %eax
xorl %r8d, %r8d
movl $0x14, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
jmp 0x4d9d9
testb $0x1, -0x19(%rbp)
je 0x4dcb5
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x138(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x12c(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x128(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4da17
xorl %eax, %eax
movl %eax, -0x13c(%rbp)
jmp 0x4da20
movl -0x30(%rbp), %eax
movl %eax, -0x13c(%rbp)
movl -0x128(%rbp), %eax
movl -0x13c(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x140(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4da44
xorl %eax, %eax
movl %eax, -0x144(%rbp)
jmp 0x4da4d
movl -0x30(%rbp), %eax
movl %eax, -0x144(%rbp)
movl -0x144(%rbp), %ecx
movl $0x14, %eax
subl %ecx, %eax
movl %eax, -0x150(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x14c(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x148(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4da85
xorl %eax, %eax
movl %eax, -0x154(%rbp)
jmp 0x4da8e
movl -0x30(%rbp), %eax
movl %eax, -0x154(%rbp)
movl -0x14c(%rbp), %r10d
movl -0x150(%rbp), %r8d
movl -0x140(%rbp), %edx
movl -0x12c(%rbp), %esi
movq -0x138(%rbp), %rdi
movl -0x148(%rbp), %eax
movl -0x154(%rbp), %ecx
addl %ecx, %eax
movl $0x1c, %ecx
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
testb $0x1, -0x1a(%rbp)
jne 0x4db0a
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x14, %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movl -0x30(%rbp), %eax
movl $0x6, %r8d
xorl %r9d, %r9d
movl $0x1c, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
testb $0x1, -0x1d(%rbp)
je 0x4dba2
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x168(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x15c(%rbp)
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x158(%rbp)
testb $0x1, -0x1c(%rbp)
je 0x4db4e
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x16c(%rbp)
jmp 0x4db57
movl -0x30(%rbp), %eax
movl %eax, -0x16c(%rbp)
movl -0x158(%rbp), %edx
movl -0x15c(%rbp), %esi
movq -0x168(%rbp), %rdi
movl -0x16c(%rbp), %eax
movl $0x14, %r8d
subl %eax, %r8d
movl -0x14(%rbp), %r10d
addl $0x14, %r10d
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl $0x1c, %ecx
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
jmp 0x4dc6c
testb $0x1, -0x1c(%rbp)
je 0x4dbe6
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x14, %esi
movl -0x18(%rbp), %edx
addl $0x28, %edx
movl -0x14(%rbp), %r10d
addl $0x14, %r10d
movl -0x18(%rbp), %eax
addl $0x28, %eax
movl $0x14, %ecx
movl $0x8, %r8d
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x180(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x174(%rbp)
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x170(%rbp)
testb $0x1, -0x1c(%rbp)
je 0x4dc1d
xorl %eax, %eax
movl %eax, -0x184(%rbp)
jmp 0x4dc26
movl -0x30(%rbp), %eax
movl %eax, -0x184(%rbp)
movl -0x170(%rbp), %edx
movl -0x174(%rbp), %esi
movq -0x180(%rbp), %rdi
movl -0x184(%rbp), %eax
movl $0x14, %r8d
subl %eax, %r8d
movl -0x14(%rbp), %r10d
addl $0x14, %r10d
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl $0x1c, %ecx
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
testb $0x1, -0x1c(%rbp)
jne 0x4dcb0
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x14, %esi
movl -0x18(%rbp), %edx
addl $0x28, %edx
subl -0x30(%rbp), %edx
movq -0x28(%rbp), %rcx
movl $0x28, %r9d
subl -0x30(%rbp), %r9d
movl -0x30(%rbp), %eax
movl $0x6, %r8d
movl $0x1c, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
jmp 0x4dfae
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x198(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x18c(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x188(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4dce9
xorl %eax, %eax
movl %eax, -0x19c(%rbp)
jmp 0x4dcf2
movl -0x30(%rbp), %eax
movl %eax, -0x19c(%rbp)
movl -0x188(%rbp), %eax
movl -0x19c(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x1a4(%rbp)
movl $0x14, %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x1a0(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4dd27
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x1a8(%rbp)
jmp 0x4dd30
movl -0x30(%rbp), %eax
movl %eax, -0x1a8(%rbp)
movl -0x1a8(%rbp), %ecx
movl $0x14, %eax
subl %ecx, %eax
movl %eax, -0x1b4(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x1b0(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x1ac(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x4dd68
xorl %eax, %eax
movl %eax, -0x1b8(%rbp)
jmp 0x4dd71
movl -0x30(%rbp), %eax
movl %eax, -0x1b8(%rbp)
movl -0x1b0(%rbp), %r10d
movl -0x1b4(%rbp), %r8d
movl -0x1a0(%rbp), %ecx
movl -0x1a4(%rbp), %edx
movl -0x18c(%rbp), %esi
movq -0x198(%rbp), %rdi
movl -0x1ac(%rbp), %eax
movl -0x1b8(%rbp), %r9d
addl %r9d, %eax
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x28, %esi
subl -0x2c(%rbp), %esi
movl -0x18(%rbp), %edx
movb -0x1a(%rbp), %r8b
xorl %eax, %eax
movl $0x8, %ecx
testb $0x1, %r8b
cmovnel %ecx, %eax
subl %eax, %edx
movq -0x28(%rbp), %rcx
movl $0x28, %r8d
subl -0x2c(%rbp), %r8d
movb -0x1a(%rbp), %r10b
xorl %r9d, %r9d
movl $0x6, %eax
testb $0x1, %r10b
cmovnel %eax, %r9d
movl -0x2c(%rbp), %r10d
movb -0x1a(%rbp), %bl
movl $0x14, %eax
movl $0x1c, %r11d
testb $0x1, %bl
cmovnel %r11d, %eax
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
testb $0x1, -0x1a(%rbp)
jne 0x4de67
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x14, %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movl $0x14, %r10d
subl -0x2c(%rbp), %r10d
movl -0x30(%rbp), %eax
movl $0x14, %r8d
xorl %r9d, %r9d
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
movq -0x50(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x1d0(%rbp)
movl -0x14(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x1c4(%rbp)
movl -0x18(%rbp), %eax
addl $0x14, %eax
movl %eax, -0x1c0(%rbp)
movl $0x14, %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x1bc(%rbp)
testb $0x1, -0x1c(%rbp)
je 0x4deaf
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x1d4(%rbp)
jmp 0x4deb8
movl -0x30(%rbp), %eax
movl %eax, -0x1d4(%rbp)
movl -0x1bc(%rbp), %ecx
movl -0x1c0(%rbp), %edx
movl -0x1c4(%rbp), %esi
movq -0x1d0(%rbp), %rdi
movl -0x1d4(%rbp), %eax
movl $0x14, %r8d
subl %eax, %r8d
movl -0x14(%rbp), %r10d
addl $0x14, %r10d
movl -0x18(%rbp), %eax
addl $0x14, %eax
leaq -0x48(%rbp), %r9
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x18840
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x28, %esi
subl -0x2c(%rbp), %esi
movl -0x18(%rbp), %edx
addl $0x14, %edx
movq -0x28(%rbp), %rcx
movl $0x28, %r8d
subl -0x2c(%rbp), %r8d
movb -0x1c(%rbp), %r10b
movl $0x14, %r9d
movl $0xa, %eax
testb $0x1, %r10b
cmovnel %eax, %r9d
movl -0x2c(%rbp), %r10d
movb -0x1c(%rbp), %bl
movl $0x14, %eax
movl $0x1c, %r11d
testb $0x1, %bl
cmovnel %r11d, %eax
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
testb $0x1, -0x1c(%rbp)
jne 0x4dfac
movq -0x50(%rbp), %rdi
addq $0x28, %rdi
movl -0x14(%rbp), %esi
addl $0x14, %esi
movl -0x18(%rbp), %edx
addl $0x28, %edx
subl -0x30(%rbp), %edx
movq -0x28(%rbp), %rcx
movl $0x28, %r9d
subl -0x30(%rbp), %r9d
movl $0x14, %r10d
subl -0x2c(%rbp), %r10d
movl -0x30(%rbp), %eax
movl $0x14, %r8d
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1af80
jmp 0x4dfae
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %rbp
retq
nopl (%rax,%rax)