// File: /workspace/github_cpp_makefile_star2_O1/SneachChea[P]Wolf-Monte-Carlo-Cpp/main.cpp
// Function: main
int main(int argc, const char * argv[]) {
    const parameters params = get_params();
    model mod(params.L, params.Ntrials);
    std::random_device rd;
    std::mt19937 gen(rd());
    std::uniform_int_distribution<> dis(0, mod.get_N()-1);
    std::uniform_real_distribution<> dis_real(0, 1);

    d_vector magnetization(mod.get_Ntrials());
    d_vector tNum = linspace(params.Tmin, params.Tmax, params.nT, true);
    d_vector meanMag(tNum.size());
    i_vector pocket, cluster;
    i_vector S(mod.get_N());
    double beta;
    double p;
    int k, s;
    std::ofstream txt;
    txt.open("magnetization_L"+std::to_string(mod.get_L())+"_Ntrials"+std::to_string(mod.get_Ntrials())+".dat");

    for(size_t i = 0; i<tNum.size();i++)
    {
        std::cout<<"Temperature ="<<tNum[i]<<std::endl;
        beta = 1./tNum[i];
        p = 1.- std::exp(-2*beta);
        initLattice(S);
        for(size_t j = 0; j<mod.get_Ntrials();j++)
        {
            k = dis(gen);
            pocket.push_back(k);
            cluster.push_back(k);
            while(pocket.size()!=0)
            {
                s = randomChoice(pocket);
                for(int k =0; k<4;k++)
                {
                    if(S[mod.get_nbr(s, k)]==S[s])
                    {
                        if(!isInVector(cluster,mod.get_nbr(s, k)))
                        {
                            if(dis_real(gen)<p)
                            {
                                pocket.push_back(mod.get_nbr(s, k));
                                cluster.push_back(mod.get_nbr(s, k));
                            }
                        }
                    }
                }
                pocket.erase(std::remove(pocket.begin(), pocket.end(), s), pocket.end());
            }
            for(size_t l=0; l<cluster.size();l++)
            {
                S[cluster[l]] = -S[cluster[l]];
            }
            cluster.resize(0);
            magnetization[j] = std::abs(std::accumulate(S.begin(), S.end(), 0.0));
        } 
        meanMag[i] = std::accumulate(magnetization.begin(), magnetization.end(), 0)/(1.*mod.get_Ntrials()*mod.get_N());
    }
     // */
    for(size_t i =0; i<tNum.size();i++)
    {
        txt<<tNum[i]<<"\t"<<meanMag[i]<<std::endl;
    }
    txt.close();
    std::cout<<"Done !"<<std::endl;

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b58, %rsp           # imm = 0x2B58
leaq 0x228(%rsp), %rbx
movq %rbx, %rdi
callq 0x4b14
movl (%rbx), %esi
movl 0x4(%rbx), %edx
leaq 0x1a0(%rsp), %rdi
callq 0x3294
leaq 0x17d0(%rsp), %rdi
callq 0x3338
leaq 0x17d0(%rsp), %rdi
callq 0x22a0
movl %eax, %eax
movq %rax, 0x448(%rsp)
movl $0x1, %ecx
movq %rax, %rdx
shrq $0x1e, %rdx
xorl %eax, %edx
imull $0x6c078965, %edx, %eax # imm = 0x6C078965
addl %ecx, %eax
movq %rax, 0x448(%rsp,%rcx,8)
incq %rcx
cmpq $0x270, %rcx            # imm = 0x270
jne 0x25e8
movq $0x270, 0x17c8(%rsp) # imm = 0x270
movl 0x1a4(%rsp), %eax
decl %eax
movl $0x0, 0x78(%rsp)
movl %eax, 0x7c(%rsp)
movslq 0x1a8(%rsp), %rsi
leaq 0x150(%rsp), %rdi
leaq 0x248(%rsp), %rdx
callq 0x33a2
vmovsd 0x238(%rsp), %xmm0
vmovsd 0x240(%rsp), %xmm1
movl 0x230(%rsp), %esi
leaq 0x50(%rsp), %rdi
movl $0x1, %edx
callq 0x4620
movq 0x58(%rsp), %rsi
subq 0x50(%rsp), %rsi
sarq $0x3, %rsi
leaq 0x168(%rsp), %rdi
leaq 0x248(%rsp), %rdx
callq 0x33a2
xorl %eax, %eax
movq %rax, 0x20(%rsp)
vxorpd %xmm0, %xmm0, %xmm0
vmovapd %xmm0, 0x10(%rsp)
movq %rax, 0x40(%rsp)
vmovapd %xmm0, 0x30(%rsp)
movslq 0x1a4(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
leaq 0x248(%rsp), %rdx
callq 0x342e
leaq 0x248(%rsp), %rdi
callq 0x2340
movl 0x1a0(%rsp), %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x273e
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x2735
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x273b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x273e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x2702
addl $-0x3, %r14d
jmp 0x273e
addl $-0x2, %r14d
jmp 0x273e
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x190(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x180(%rsp), %rdi
movl $0x2d, %edx
callq 0x2270
leaq 0x180(%rsp), %r15
addq (%r15), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x38be
leaq 0x3949(%rip), %rcx      # 0x60cc
movl $0xf, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2240
leaq 0x140(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x27c5
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x27cd
vmovupd (%rcx), %xmm0
vmovupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x130(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38e9(%rip), %rsi      # 0x60dc
callq 0x2380
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2828
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x2832
vmovupd (%rcx), %xmm0
vmovupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x1a8(%rsp), %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x28af
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x28a6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x28ac
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x28af
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x2873
addl $-0x3, %r14d
jmp 0x28af
addl $-0x2, %r14d
jmp 0x28af
decl %r14d
movq %r12, %r15
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb8(%rsp), %rdi
movl $0x2d, %edx
callq 0x2270
addq 0xb8(%rsp), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x38be
movq 0xd8(%rsp), %rcx
movq 0xe0(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x291b
movq 0xe8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x293c
movl $0xf, %esi
cmpq %r12, 0xb8(%rsp)
je 0x2937
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2953
movq 0xb8(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
callq 0x20a0
jmp 0x2964
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2240
leaq 0x90(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x2991
movq %rsi, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0x2999
vmovupd (%rcx), %xmm0
vmovupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x88(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x3985(%rip), %rsi      # 0x6345
leaq 0x80(%rsp), %rdi
callq 0x2380
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x29fd
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x2a06
vmovupd (%rcx), %xmm0
vmovupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0xf8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x248(%rsp), %rdi
movl $0x10, %edx
callq 0x20e0
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a49
callq 0x2200
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a5f
callq 0x2200
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a71
callq 0x2200
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2a83
callq 0x2200
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x2a9d
callq 0x2200
movq 0x180(%rsp), %rdi
cmpq %r15, %rdi
je 0x2aaf
callq 0x2200
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x2ec8
movq $0x0, 0x48(%rsp)
leaq 0x210(%rsp), %r15
leaq 0x1a0(%rsp), %r14
leaq 0xf8(%rsp), %rbx
movl $0xd, %edx
movq 0x64ec(%rip), %rdi      # 0x8fd8
leaq 0x35f2(%rip), %rsi      # 0x60e5
callq 0x2260
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
vmovsd (%rax,%rcx,8), %xmm0
movq 0x64ca(%rip), %rdi      # 0x8fd8
callq 0x2300
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
vmovsd 0x34b9(%rip), %xmm0     # 0x6008
vdivsd (%rax,%rcx,8), %xmm0, %xmm0
vmulsd 0x34b4(%rip), %xmm0, %xmm0 # 0x6010
callq 0x2360
vmovsd %xmm0, 0x68(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x47bf
movl 0x1a8(%rsp), %eax
testl %eax, %eax
je 0x2e4c
vmovsd 0x347d(%rip), %xmm0     # 0x6008
vsubsd 0x68(%rsp), %xmm0, %xmm0
vmovsd %xmm0, 0x68(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x448(%rsp), %rsi
movq %rdi, %rdx
callq 0x3964
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2bd2
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2be1
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x3c16
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x2c01
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0x2da0
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x3c16
jmp 0x2da0
movq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x35b0
movq %r15, %rdi
callq 0x34b9
movl %eax, 0x8(%rsp)
movq 0x210(%rsp), %rdi
testq %rdi, %rdi
je 0x2c40
callq 0x2200
xorl %ebp, %ebp
movl 0x8(%rsp), %esi
movq %r14, %rdi
movl %ebp, %edx
callq 0x42bc
cltq
movq 0xa0(%rsp), %rcx
movl (%rcx,%rax,4), %eax
movslq 0x8(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x2d5f
leaq 0x118(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x35b0
movl 0x8(%rsp), %esi
movq %r14, %rdi
movl %ebp, %edx
callq 0x42bc
movl %eax, 0xf8(%rsp)
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq %rbx, %rdx
callq 0x3d25
movq %rax, %r12
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %r13
testq %rdi, %rdi
je 0x2cc7
callq 0x2200
cmpq %r13, %r12
jne 0x2d5f
leaq 0x448(%rsp), %rdi
callq 0x3dbe
vmovsd 0x68(%rsp), %xmm1
vucomisd %xmm0, %xmm1
jbe 0x2d5f
movl 0x8(%rsp), %esi
movq %r14, %rdi
movl %ebp, %edx
callq 0x42bc
movl %eax, 0xf8(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2d17
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2d24
leaq 0x10(%rsp), %rdi
movq %rbx, %rdx
callq 0x3eb6
movl 0x8(%rsp), %esi
movq %r14, %rdi
movl %ebp, %edx
callq 0x42bc
movl %eax, 0xf8(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x2d52
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0x2d5f
leaq 0x30(%rsp), %rdi
movq %rbx, %rdx
callq 0x3eb6
incl %ebp
cmpl $0x4, %ebp
jne 0x2c42
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x3f82
movq 0x18(%rsp), %rcx
cmpq %rcx, %rax
je 0x2da0
movq 0x18(%rsp), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x2da0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x2c15
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
je 0x2de4
sarq $0x2, %rcx
movq 0xa0(%rsp), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movslq (%rax,%rsi,4), %rdi
negl (%rdx,%rdi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x2dd5
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
callq 0x3632
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
vxorpd %xmm0, %xmm0, %xmm0
cmpq %rcx, %rax
je 0x2e17
vcvtsi2sdl (%rax), %xmm3, %xmm1
vaddsd %xmm1, %xmm0, %xmm0
addq $0x4, %rax
jmp 0x2e04
vandpd 0x31f7(%rip){1to2}, %xmm0, %xmm0 # 0x6018
movq 0x150(%rsp), %rax
movq 0x70(%rsp), %rcx
vmovlpd %xmm0, (%rax,%rcx,8)
incq %rcx
movslq 0x1a8(%rsp), %rax
movq %rcx, 0x70(%rsp)
cmpq %rax, %rcx
jb 0x2ba0
movq 0x150(%rsp), %rcx
movq 0x158(%rsp), %rdx
cmpq %rdx, %rcx
je 0x2e7e
xorl %esi, %esi
vcvtsi2sd %esi, %xmm3, %xmm0
vaddsd (%rcx), %xmm0, %xmm0
vcvttsd2si %xmm0, %esi
addq $0x8, %rcx
cmpq %rdx, %rcx
jne 0x2e63
vcvtsi2sd %esi, %xmm3, %xmm0
jmp 0x2e82
vxorpd %xmm0, %xmm0, %xmm0
vcvtsi2sd %eax, %xmm3, %xmm1
vcvtsi2sdl 0x1a4(%rsp), %xmm3, %xmm2
vmulsd %xmm2, %xmm1, %xmm1
vdivsd %xmm1, %xmm0, %xmm0
movq 0x168(%rsp), %rax
movq 0x48(%rsp), %rcx
vmovsd %xmm0, (%rax,%rcx,8)
incq %rcx
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
sarq $0x3, %rax
movq %rcx, 0x48(%rsp)
cmpq %rax, %rcx
jb 0x2ae0
movq 0x50(%rsp), %rax
cmpq %rax, 0x58(%rsp)
je 0x2f64
xorl %r12d, %r12d
leaq 0x248(%rsp), %rbx
leaq 0x3209(%rip), %r14      # 0x60f3
vmovsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
callq 0x2300
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2260
movq 0x168(%rsp), %rax
vmovsd (%rax,%r12,8), %xmm0
movq %r15, %rdi
callq 0x2300
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
incq %r12
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r12
jb 0x2eea
leaq 0x248(%rsp), %rdi
callq 0x22c0
movq 0x6060(%rip), %rbx      # 0x8fd8
leaq 0x3176(%rip), %rsi      # 0x60f5
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2260
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x602e(%rip), %rdi      # 0x8fd8
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq 0x6012(%rip), %rax      # 0x8fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x250(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x248(%rsp,%rcx)
callq 0x21d0
leaq 0x340(%rsp), %rdi
callq 0x20b0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3001
callq 0x2200
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3010
callq 0x2200
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x301f
callq 0x2200
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0x3031
callq 0x2200
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3040
callq 0x2200
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x3052
callq 0x2200
leaq 0x17d0(%rsp), %rdi
callq 0x21f0
movq 0x1f8(%rsp), %rdi
testq %rdi, %rdi
je 0x3071
callq 0x2200
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0x3083
callq 0x2200
leaq 0x1b0(%rsp), %rdi
callq 0x37e4
xorl %eax, %eax
addq $0x2b58, %rsp           # imm = 0x2B58
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x328c
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x30c3
callq 0x2200
jmp 0x30c3
movq %rax, %rbx
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30de
callq 0x2200
jmp 0x30de
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
je 0x30f5
callq 0x2200
jmp 0x30f5
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x310f
callq 0x2200
jmp 0x310f
movq %r12, %r15
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x3131
callq 0x2200
jmp 0x3131
movq %r12, %r15
movq %rax, %rbx
movq 0x180(%rsp), %rdi
cmpq %r15, %rdi
jne 0x31a1
jmp 0x31ab
jmp 0x31a8
movq %rax, %rbx
jmp 0x31e3
movq %rax, %rbx
jmp 0x31f5
movq %rax, %rbx
jmp 0x3225
movq %rax, %rbx
jmp 0x3234
jmp 0x3164
movq %rax, %rbx
jmp 0x3246
movq %rax, %rbx
jmp 0x3253
jmp 0x31a8
jmp 0x31a8
jmp 0x31a8
jmp 0x31a8
jmp 0x31a8
jmp 0x31a8
movq %rax, %rbx
movq 0x210(%rsp), %rdi
jmp 0x319c
jmp 0x31a8
jmp 0x31a8
movq %rax, %rbx
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x31ab
callq 0x2200
jmp 0x31ab
movq %rax, %rbx
movq 0x5e1e(%rip), %rax      # 0x8fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x250(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x248(%rsp,%rcx)
callq 0x21d0
leaq 0x340(%rsp), %rdi
callq 0x20b0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x31f5
callq 0x2200
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3204
callq 0x2200
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3213
callq 0x2200
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0x3225
callq 0x2200
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3234
callq 0x2200
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x3246
callq 0x2200
leaq 0x17d0(%rsp), %rdi
callq 0x21f0
movq 0x1f8(%rsp), %rdi
testq %rdi, %rdi
je 0x3265
callq 0x2200
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0x3277
callq 0x2200
leaq 0x1b0(%rsp), %rdi
callq 0x37e4
movq %rbx, %rdi
callq 0x2350
movq %rax, %rdi
callq 0x37a0