// File: Leeingnyo[P]newPuyoC/game.cpp
// Function: VSRemoteGame::Deserialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void VSRemoteGame::Deserialize(std::string data) {
    int state = 0;
    std::ostringstream buffer;
    for (int i = 0; i < data.length(); i++) {
        char token = data.at(i);
        switch (state) {
            case 0: {
                if (token == 'G') continue;
                if (token == '{') state = 1;
            } break;
            case 1: {
                if (token == 'P') continue;
                if (token == '{') continue;
                if (token == '}') {
                    other_info.Deserialize(buffer.str());
                    buffer.str("");
                    state = 2;
                    continue;
                }
                buffer << token;
            } break;
            case 2: {
                if (token == 'M') continue;
                if (token == '{') continue;
                if (token == '}') {
                    other_board->Deserialize(buffer.str());
                    buffer.str("");
                    state = 3;
                    continue;
                }
                buffer << token;
            } break;
            case 3: {
                if (token == 'B') continue;
                if (token == '{') continue;
                if (token == '}') {
                    other_next_bipuyo->Deserialize(buffer.str());
                    buffer.str("");
                    state = 4;
                    continue;
                }
                buffer << token;
            } break;
            case 4: {
                if (token == 'O') continue;
                if (token == '{') continue;
                if (token == '}') {
                    obstacle_to_take = std::stoi(buffer.str());
                    buffer.str("");
                    state = 5;
                }
                buffer << token;
            } break;
            case 5: {
                continue;
            } break;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x330, %rsp            # imm = 0x330
movq %rsi, -0x2d8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2d0(%rbp)
movl $0x0, -0x14(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x43e0
movl $0x0, -0x194(%rbp)
movq -0x2d8(%rbp), %rdi
movslq -0x194(%rbp), %rax
movq %rax, -0x2e0(%rbp)
callq 0x4470
movq %rax, %rcx
movq -0x2e0(%rbp), %rax
cmpq %rcx, %rax
jae 0x858f
movq -0x2d8(%rbp), %rdi
movslq -0x194(%rbp), %rsi
callq 0x4530
movq %rax, -0x2e8(%rbp)
jmp 0x7f6b
movq -0x2e8(%rbp), %rax
movb (%rax), %al
movb %al, -0x195(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0x2f0(%rbp)
subq $0x5, %rax
ja 0x8579
movq -0x2f0(%rbp), %rax
leaq 0x120c0(%rip), %rcx     # 0x1a05c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x85a4
movsbl -0x195(%rbp), %eax
cmpl $0x47, %eax
jne 0x7fcd
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7b, %eax
jne 0x7fe0
movl $0x1, -0x14(%rbp)
jmp 0x8579
movsbl -0x195(%rbp), %eax
cmpl $0x50, %eax
jne 0x7ff6
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7b, %eax
jne 0x8007
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7d, %eax
jne 0x812d
movq -0x2d0(%rbp), %rax
subq $-0x80, %rax
movq %rax, -0x2f8(%rbp)
leaq -0x1c8(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x4300
jmp 0x803e
movq -0x2f8(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x9d30
jmp 0x8053
leaq -0x1c8(%rbp), %rdi
callq 0x41f0
leaq -0x1e9(%rbp), %rdi
movq %rdi, -0x300(%rbp)
callq 0x4500
movq -0x300(%rbp), %rdx
leaq 0x12573(%rip), %rsi     # 0x1a5f3
leaq -0x1e8(%rbp), %rdi
callq 0x43f0
jmp 0x808e
leaq -0x190(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x4170
jmp 0x80a3
leaq -0x1e8(%rbp), %rdi
callq 0x41f0
leaq -0x1e9(%rbp), %rdi
callq 0x4330
movl $0x2, -0x14(%rbp)
jmp 0x857b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x41f0
jmp 0x85a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x811c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x41f0
leaq -0x1e9(%rbp), %rdi
callq 0x4330
jmp 0x85a4
movsbl -0x195(%rbp), %esi
leaq -0x190(%rbp), %rdi
callq 0x4390
jmp 0x8142
jmp 0x8579
movsbl -0x195(%rbp), %eax
cmpl $0x4d, %eax
jne 0x8158
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7b, %eax
jne 0x8169
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7d, %eax
jne 0x8294
movq -0x2d0(%rbp), %rdi
addq $0x60, %rdi
callq 0x87b0
movq %rax, -0x308(%rbp)
leaq -0x210(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x4300
jmp 0x81a5
movq -0x308(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x9f70
jmp 0x81ba
leaq -0x210(%rbp), %rdi
callq 0x41f0
leaq -0x231(%rbp), %rdi
movq %rdi, -0x310(%rbp)
callq 0x4500
movq -0x310(%rbp), %rdx
leaq 0x1240c(%rip), %rsi     # 0x1a5f3
leaq -0x230(%rbp), %rdi
callq 0x43f0
jmp 0x81f5
leaq -0x190(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0x4170
jmp 0x820a
leaq -0x230(%rbp), %rdi
callq 0x41f0
leaq -0x231(%rbp), %rdi
callq 0x4330
movl $0x3, -0x14(%rbp)
jmp 0x857b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x41f0
jmp 0x85a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x8283
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x230(%rbp), %rdi
callq 0x41f0
leaq -0x231(%rbp), %rdi
callq 0x4330
jmp 0x85a4
movsbl -0x195(%rbp), %esi
leaq -0x190(%rbp), %rdi
callq 0x4390
jmp 0x82a9
jmp 0x8579
movsbl -0x195(%rbp), %eax
cmpl $0x42, %eax
jne 0x82bf
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7b, %eax
jne 0x82d0
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7d, %eax
jne 0x83fb
movq -0x2d0(%rbp), %rdi
addq $0x70, %rdi
callq 0x8930
movq %rax, -0x318(%rbp)
leaq -0x258(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x4300
jmp 0x830c
movq -0x318(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0xa340
jmp 0x8321
leaq -0x258(%rbp), %rdi
callq 0x41f0
leaq -0x279(%rbp), %rdi
movq %rdi, -0x320(%rbp)
callq 0x4500
movq -0x320(%rbp), %rdx
leaq 0x122a5(%rip), %rsi     # 0x1a5f3
leaq -0x278(%rbp), %rdi
callq 0x43f0
jmp 0x835c
leaq -0x190(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x4170
jmp 0x8371
leaq -0x278(%rbp), %rdi
callq 0x41f0
leaq -0x279(%rbp), %rdi
callq 0x4330
movl $0x4, -0x14(%rbp)
jmp 0x857b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x258(%rbp), %rdi
callq 0x41f0
jmp 0x85a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x83ea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x278(%rbp), %rdi
callq 0x41f0
leaq -0x279(%rbp), %rdi
callq 0x4330
jmp 0x85a4
movsbl -0x195(%rbp), %esi
leaq -0x190(%rbp), %rdi
callq 0x4390
jmp 0x8410
jmp 0x8579
movsbl -0x195(%rbp), %eax
cmpl $0x4f, %eax
jne 0x8426
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7b, %eax
jne 0x8437
jmp 0x857b
movsbl -0x195(%rbp), %eax
cmpl $0x7d, %eax
jne 0x8560
leaq -0x2a0(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x4300
jmp 0x845c
xorl %eax, %eax
movl %eax, %esi
leaq -0x2a0(%rbp), %rdi
movl $0xa, %edx
callq 0x9780
movl %eax, -0x324(%rbp)
jmp 0x8479
movq -0x2d0(%rbp), %rax
movl -0x324(%rbp), %ecx
movl %ecx, 0xa4(%rax)
leaq -0x2a0(%rbp), %rdi
callq 0x41f0
leaq -0x2c1(%rbp), %rdi
movq %rdi, -0x330(%rbp)
callq 0x4500
movq -0x330(%rbp), %rdx
leaq 0x1213a(%rip), %rsi     # 0x1a5f3
leaq -0x2c0(%rbp), %rdi
callq 0x43f0
jmp 0x84c7
leaq -0x190(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0x4170
jmp 0x84dc
leaq -0x2c0(%rbp), %rdi
callq 0x41f0
leaq -0x2c1(%rbp), %rdi
callq 0x4330
movl $0x5, -0x14(%rbp)
jmp 0x8560
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x2a0(%rbp), %rdi
callq 0x41f0
jmp 0x85a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x8552
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x41f0
leaq -0x2c1(%rbp), %rdi
callq 0x4330
jmp 0x85a4
movsbl -0x195(%rbp), %esi
leaq -0x190(%rbp), %rdi
callq 0x4390
jmp 0x8575
jmp 0x8579
jmp 0x857b
jmp 0x857b
movl -0x194(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x194(%rbp)
jmp 0x7f22
leaq -0x190(%rbp), %rdi
callq 0x4090
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq
leaq -0x190(%rbp), %rdi
callq 0x4090
movq -0x1a0(%rbp), %rdi
callq 0x44f0
nopl (%rax)