// File: spatialfruitsalad[P]volume2position/./remove_inside_holes_2.hpp
// Function: removeInsideHoles::Process(tomogram3d<unsigned char>&)
static void Process (tomogram3d <uint8_t> & matrix_in)
    {
        std::cout << "removing inside holes ... " << std::flush;

        tomogram3d<int> clustermap;

        std::vector <int> rename;

        int nx = matrix_in.get_sx();
        int ny = matrix_in.get_sy();
        int nz = matrix_in.get_sz();

        // initialise
        rename.clear ();

        clustermap.initialise (nx, ny, nz, -1);

        // this is basically hoshen kopelman for the black clusters
        for (int k = 0; k != nz; ++k)
        {
            for (int j = 0; j != ny; ++j)
                for (int i = 0; i != nx; ++i)
                {
                    if (voxset_in_2 (i,j,k,matrix_in))
                    {
                        int imin = std::max (i-1, 0);
                        int imax = std::min (i+1, int (nx-1));
                        int jmin = std::max (j-1, 0);
                        int jmax = std::min (j+1, int (ny-1));
                        int kmin = std::max (k-1, 0);
                        int kmax = std::min (k+1, int (nz-1));
                        int cluster_id = rename.size (); // possibly start a new cluster.


                        int pos[6][3] = {{imin,j,k},{imax,j,k},{i,jmin,k},{i,jmax,k},{i,j,kmin},{i,j,kmax}};
                        for (int a = 0; a < 6; ++a)
                        {
//                        std::cout << "a = " << a << std::endl;
                            int ii = pos[a][0];
                            int jj = pos[a][1];
                            int kk = pos[a][2];
//                        std::cout << "ii = " << ii << "  jj = " << jj << "  kk = " << kk << std::endl;
                            if (voxset_in_2 (ii,jj,kk,matrix_in) && clustermap.get(ii,jj,kk) != -1)
                            {
                                int oclid = lookup_in_2 (clustermap.get(ii,jj,kk),rename);
                                if (cluster_id == (int)rename.size ())
                                    cluster_id = oclid;
                                else if (cluster_id != oclid)
                                    cluster_id = merge_clusters_in_2 (oclid, cluster_id, rename);
                            }
                        }



                        // start a new cluster
                        if (cluster_id == (int)rename.size ())
                            rename.push_back (cluster_id);

                        clustermap.set(i,j,k,cluster_id);
                    }
                }
        }



        // resolve all indirections in the indirection map
        for (int i = 0; i != (int)rename.size (); ++i)
            rename[i] = lookup_in_2 (i, rename);
        int max_clustercount = 0;
        // resolve the indirections on the facing planes
        // in the cluster map (other data is not needed)
        rename.insert (rename.begin (), -1);
        for (int i = 0; i != nx; ++i)
            for (int j = 0; j != ny; ++j)
                for (int k = 0; k != nz; ++k)
                {
                    if(rename[clustermap.get(i,j,k)+1] > max_clustercount) max_clustercount = rename[clustermap.get(i,j,k)+1];
                    clustermap.set(i,j,k, rename[clustermap.get(i,j,k)+1]);
                }
        rename.erase (rename.begin ());

        std::vector<int> clustersizes (max_clustercount + 1);
        for (int k = 0; k != nz; ++k)
            for (int j = 0; j != ny; ++j)
                for (int i = 0; i != nx; ++i)
                {
                    if (clustermap.get(i,j,k) >= 0)
                    {
                        clustersizes.at(clustermap.get(i,j,k))++;
                    }
                }


        tomogram3d <uint8_t> matrix_out;
        matrix_out.initialise(nx,ny,nz,0);
        for (int k = 0; k != nz; ++k)
        for (int j = 0; j != ny; ++j)
        for (int i = 0; i != nx; ++i)
        {
            bool fill = false;
            if (clustermap.get(i,j,k) == -1) 
            {
                fill = true;
            }

            else if (clustermap.get(i,j,k) > 0 && clustersizes.at(clustermap.get(i,j,k)) < 100000) 
            {
                fill = true;
            }

            if(fill == true)
            {
                matrix_out.set(i,j,k,1);
            }
        }


        std::cout << " done" << std::endl;

        std::swap (matrix_in, matrix_out);
    }

// Assembly:
subq $0x2f8, %rsp            # imm = 0x2F8
movq %rdi, 0x2f0(%rsp)
movq 0x28caa(%rip), %rdi     # 0x33fc0
leaq 0x1d413(%rip), %rsi     # 0x28730
callq 0x3290
movq %rax, %rdi
movq 0x28c9c(%rip), %rsi     # 0x33fc8
callq 0x32c0
leaq 0x2c0(%rsp), %rdi
callq 0xc950
leaq 0x2a8(%rsp), %rdi
callq 0x125d0
movq 0x2f0(%rsp), %rdi
callq 0x125e0
movq %rax, 0x108(%rsp)
jmp 0xb362
movq 0x108(%rsp), %rax
movl %eax, 0x2a4(%rsp)
movq 0x2f0(%rsp), %rdi
callq 0x125f0
movq %rax, 0x100(%rsp)
jmp 0xb388
movq 0x100(%rsp), %rax
movl %eax, 0x290(%rsp)
movq 0x2f0(%rsp), %rdi
callq 0x12600
movq %rax, 0xf8(%rsp)
jmp 0xb3ae
movq 0xf8(%rsp), %rax
movl %eax, 0x28c(%rsp)
leaq 0x2a8(%rsp), %rdi
callq 0x12610
movslq 0x2a4(%rsp), %rsi
movslq 0x290(%rsp), %rdx
movslq 0x28c(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x12630
jmp 0xb3f7
movl $0x0, 0x288(%rsp)
movl 0x288(%rsp), %eax
cmpl 0x28c(%rsp), %eax
je 0xba14
movl $0x0, 0x284(%rsp)
movl 0x284(%rsp), %eax
cmpl 0x290(%rsp), %eax
je 0xb9fc
movl $0x0, 0x280(%rsp)
movl 0x280(%rsp), %eax
cmpl 0x2a4(%rsp), %eax
je 0xb9e4
movl 0x280(%rsp), %edi
movl 0x284(%rsp), %esi
movl 0x288(%rsp), %edx
movq 0x2f0(%rsp), %rcx
callq 0x12770
movb %al, 0xf7(%rsp)
jmp 0xb47f
movb 0xf7(%rsp), %al
testb $0x1, %al
jne 0xb48f
jmp 0xb9cc
movl 0x280(%rsp), %eax
decl %eax
movl %eax, 0x278(%rsp)
movl $0x0, 0x274(%rsp)
leaq 0x278(%rsp), %rdi
leaq 0x274(%rsp), %rsi
callq 0x127b0
movq %rax, 0xe8(%rsp)
jmp 0xb4c9
movq 0xe8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x27c(%rsp)
movl 0x280(%rsp), %eax
incl %eax
movl %eax, 0x26c(%rsp)
movl 0x2a4(%rsp), %eax
decl %eax
movl %eax, 0x268(%rsp)
leaq 0x26c(%rsp), %rdi
leaq 0x268(%rsp), %rsi
callq 0x127f0
movq %rax, 0xe0(%rsp)
jmp 0xb519
movq 0xe0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x270(%rsp)
movl 0x284(%rsp), %eax
decl %eax
movl %eax, 0x260(%rsp)
movl $0x0, 0x25c(%rsp)
leaq 0x260(%rsp), %rdi
leaq 0x25c(%rsp), %rsi
callq 0x127b0
movq %rax, 0xd8(%rsp)
jmp 0xb564
movq 0xd8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x264(%rsp)
movl 0x284(%rsp), %eax
incl %eax
movl %eax, 0x254(%rsp)
movl 0x290(%rsp), %eax
decl %eax
movl %eax, 0x250(%rsp)
leaq 0x254(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x127f0
movq %rax, 0xd0(%rsp)
jmp 0xb5b4
movq 0xd0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x258(%rsp)
movl 0x288(%rsp), %eax
decl %eax
movl %eax, 0x248(%rsp)
movl $0x0, 0x244(%rsp)
leaq 0x248(%rsp), %rdi
leaq 0x244(%rsp), %rsi
callq 0x127b0
movq %rax, 0xc8(%rsp)
jmp 0xb5ff
movq 0xc8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x24c(%rsp)
movl 0x288(%rsp), %eax
incl %eax
movl %eax, 0x23c(%rsp)
movl 0x28c(%rsp), %eax
decl %eax
movl %eax, 0x238(%rsp)
leaq 0x23c(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0x127f0
movq %rax, 0xc0(%rsp)
jmp 0xb64f
movq 0xc0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x240(%rsp)
leaq 0x2a8(%rsp), %rdi
callq 0x12830
movl %eax, 0x234(%rsp)
movl 0x27c(%rsp), %eax
movl %eax, 0x1e0(%rsp)
movl 0x284(%rsp), %eax
movl %eax, 0x1e4(%rsp)
movl 0x288(%rsp), %eax
movl %eax, 0x1e8(%rsp)
movl 0x270(%rsp), %eax
movl %eax, 0x1ec(%rsp)
movl 0x284(%rsp), %eax
movl %eax, 0x1f0(%rsp)
movl 0x288(%rsp), %eax
movl %eax, 0x1f4(%rsp)
movl 0x280(%rsp), %eax
movl %eax, 0x1f8(%rsp)
movl 0x264(%rsp), %eax
movl %eax, 0x1fc(%rsp)
movl 0x288(%rsp), %eax
movl %eax, 0x200(%rsp)
movl 0x280(%rsp), %eax
movl %eax, 0x204(%rsp)
movl 0x258(%rsp), %eax
movl %eax, 0x208(%rsp)
movl 0x288(%rsp), %eax
movl %eax, 0x20c(%rsp)
movl 0x280(%rsp), %eax
movl %eax, 0x210(%rsp)
movl 0x284(%rsp), %eax
movl %eax, 0x214(%rsp)
movl 0x24c(%rsp), %eax
movl %eax, 0x218(%rsp)
movl 0x280(%rsp), %eax
movl %eax, 0x21c(%rsp)
movl 0x284(%rsp), %eax
movl %eax, 0x220(%rsp)
movl 0x240(%rsp), %eax
movl %eax, 0x224(%rsp)
movl $0x0, 0x1dc(%rsp)
cmpl $0x6, 0x1dc(%rsp)
jge 0xb959
movslq 0x1dc(%rsp), %rax
leaq (%rax,%rax,2), %rax
movl 0x1e0(%rsp,%rax,4), %eax
movl %eax, 0x1d8(%rsp)
movslq 0x1dc(%rsp), %rax
leaq (%rax,%rax,2), %rax
movl 0x1e4(%rsp,%rax,4), %eax
movl %eax, 0x1d4(%rsp)
movslq 0x1dc(%rsp), %rax
leaq (%rax,%rax,2), %rax
movl 0x1e8(%rsp,%rax,4), %eax
movl %eax, 0x1d0(%rsp)
movl 0x1d8(%rsp), %edi
movl 0x1d4(%rsp), %esi
movl 0x1d0(%rsp), %edx
movq 0x2f0(%rsp), %rcx
callq 0x12770
movb %al, 0xbf(%rsp)
jmp 0xb802
movb 0xbf(%rsp), %al
testb $0x1, %al
jne 0xb812
jmp 0xb941
movslq 0x1d8(%rsp), %rsi
movslq 0x1d4(%rsp), %rdx
movslq 0x1d0(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0xb8(%rsp)
jmp 0xb840
movl 0xb8(%rsp), %eax
cmpl $-0x1, %eax
je 0xb941
movslq 0x1d8(%rsp), %rsi
movslq 0x1d4(%rsp), %rdx
movslq 0x1d0(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0xb4(%rsp)
jmp 0xb87e
movl 0xb4(%rsp), %edi
leaq 0x2a8(%rsp), %rsi
callq 0x12850
movl %eax, 0xb0(%rsp)
jmp 0xb89b
movl 0xb0(%rsp), %eax
movl %eax, 0x1cc(%rsp)
movl 0x234(%rsp), %eax
movl %eax, 0xac(%rsp)
leaq 0x2a8(%rsp), %rdi
callq 0x12830
movq %rax, %rcx
movl 0xac(%rsp), %eax
cmpl %ecx, %eax
jne 0xb8fb
movl 0x1cc(%rsp), %eax
movl %eax, 0x234(%rsp)
jmp 0xb93f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x298(%rsp)
movl %eax, 0x294(%rsp)
jmp 0xc185
movl 0x234(%rsp), %eax
cmpl 0x1cc(%rsp), %eax
je 0xb93d
movl 0x1cc(%rsp), %edi
movl 0x234(%rsp), %esi
leaq 0x2a8(%rsp), %rdx
callq 0x128a0
movl %eax, 0xa8(%rsp)
jmp 0xb92f
movl 0xa8(%rsp), %eax
movl %eax, 0x234(%rsp)
jmp 0xb93f
jmp 0xb941
jmp 0xb943
movl 0x1dc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1dc(%rsp)
jmp 0xb77b
movl 0x234(%rsp), %eax
movl %eax, 0xa4(%rsp)
leaq 0x2a8(%rsp), %rdi
callq 0x12830
movq %rax, %rcx
movl 0xa4(%rsp), %eax
cmpl %ecx, %eax
jne 0xb99b
leaq 0x2a8(%rsp), %rdi
leaq 0x234(%rsp), %rsi
callq 0x12910
jmp 0xb999
jmp 0xb99b
movslq 0x280(%rsp), %rsi
movslq 0x284(%rsp), %rdx
movslq 0x288(%rsp), %rcx
movl 0x234(%rsp), %r8d
leaq 0x2c0(%rsp), %rdi
callq 0x12980
jmp 0xb9ca
jmp 0xb9cc
jmp 0xb9ce
movl 0x280(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x280(%rsp)
jmp 0xb440
jmp 0xb9e6
movl 0x284(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x284(%rsp)
jmp 0xb421
jmp 0xb9fe
movl 0x288(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x288(%rsp)
jmp 0xb402
movl $0x0, 0x1c8(%rsp)
movl 0x1c8(%rsp), %eax
movl %eax, 0xa0(%rsp)
leaq 0x2a8(%rsp), %rdi
callq 0x12830
movq %rax, %rcx
movl 0xa0(%rsp), %eax
cmpl %ecx, %eax
je 0xba96
movl 0x1c8(%rsp), %edi
leaq 0x2a8(%rsp), %rsi
callq 0x12850
movl %eax, 0x9c(%rsp)
jmp 0xba65
movslq 0x1c8(%rsp), %rsi
leaq 0x2a8(%rsp), %rdi
callq 0x12d40
movl 0x9c(%rsp), %ecx
movl %ecx, (%rax)
movl 0x1c8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c8(%rsp)
jmp 0xba1f
movl $0x0, 0x1c4(%rsp)
leaq 0x2a8(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0x12da0
movq %rax, 0x1b0(%rsp)
leaq 0x1b8(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x12dd0
movq 0x88(%rsp), %rdi
movl $0xffffffff, 0x1ac(%rsp) # imm = 0xFFFFFFFF
movq 0x1b8(%rsp), %rsi
leaq 0x1ac(%rsp), %rdx
callq 0x12d60
movq %rax, 0x90(%rsp)
jmp 0xbb05
movq 0x90(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movl $0x0, 0x19c(%rsp)
movl 0x19c(%rsp), %eax
cmpl 0x2a4(%rsp), %eax
je 0xbccf
movl $0x0, 0x198(%rsp)
movl 0x198(%rsp), %eax
cmpl 0x290(%rsp), %eax
je 0xbcb7
movl $0x0, 0x194(%rsp)
movl 0x194(%rsp), %eax
cmpl 0x28c(%rsp), %eax
je 0xbc9f
movslq 0x19c(%rsp), %rsi
movslq 0x198(%rsp), %rdx
movslq 0x194(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x84(%rsp)
jmp 0xbba0
movl 0x84(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x2a8(%rsp), %rdi
callq 0x12d40
movl (%rax), %eax
cmpl 0x1c4(%rsp), %eax
jle 0xbc16
movslq 0x19c(%rsp), %rsi
movslq 0x198(%rsp), %rdx
movslq 0x194(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x80(%rsp)
jmp 0xbbf3
movl 0x80(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x2a8(%rsp), %rdi
callq 0x12d40
movl (%rax), %eax
movl %eax, 0x1c4(%rsp)
movslq 0x19c(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movslq 0x198(%rsp), %rdx
movq %rdx, 0x68(%rsp)
movslq 0x194(%rsp), %rcx
movq %rcx, 0x70(%rsp)
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x7c(%rsp)
jmp 0xbc50
movl 0x7c(%rsp), %eax
incl %eax
movslq %eax, %rsi
leaq 0x2a8(%rsp), %rdi
callq 0x12d40
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
movl (%rax), %r8d
leaq 0x2c0(%rsp), %rdi
callq 0x12980
jmp 0xbc87
jmp 0xbc89
movl 0x194(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x194(%rsp)
jmp 0xbb5e
jmp 0xbca1
movl 0x198(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x198(%rsp)
jmp 0xbb3f
jmp 0xbcb9
movl 0x19c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x19c(%rsp)
jmp 0xbb20
leaq 0x2a8(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x12da0
movq %rax, 0x180(%rsp)
leaq 0x188(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x12dd0
movq 0x50(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x12e10
movq %rax, 0x58(%rsp)
jmp 0xbd17
movq 0x58(%rsp), %rax
movq %rax, 0x178(%rsp)
movl 0x1c4(%rsp), %eax
incl %eax
cltq
movq %rax, 0x40(%rsp)
leaq 0x15f(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x12e80
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
leaq 0x160(%rsp), %rdi
callq 0x12e90
jmp 0xbd5f
leaq 0x15f(%rsp), %rdi
callq 0x12f10
movl $0x0, 0x158(%rsp)
movl 0x158(%rsp), %eax
cmpl 0x28c(%rsp), %eax
je 0xbedc
movl $0x0, 0x154(%rsp)
movl 0x154(%rsp), %eax
cmpl 0x290(%rsp), %eax
je 0xbec4
movl $0x0, 0x150(%rsp)
movl 0x150(%rsp), %eax
cmpl 0x2a4(%rsp), %eax
je 0xbeac
movslq 0x150(%rsp), %rsi
movslq 0x154(%rsp), %rdx
movslq 0x158(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x3c(%rsp)
jmp 0xbdf4
movl 0x3c(%rsp), %eax
cmpl $0x0, %eax
jl 0xbe94
movslq 0x150(%rsp), %rsi
movslq 0x154(%rsp), %rdx
movslq 0x158(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x38(%rsp)
jmp 0xbe2c
movl 0x38(%rsp), %eax
movslq %eax, %rsi
leaq 0x160(%rsp), %rdi
callq 0x12f20
movq %rax, 0x30(%rsp)
jmp 0xbe47
movq 0x30(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xbe94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x298(%rsp)
movl %eax, 0x294(%rsp)
leaq 0x15f(%rsp), %rdi
callq 0x12f10
jmp 0xc185
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x298(%rsp)
movl %eax, 0x294(%rsp)
jmp 0xc178
jmp 0xbe96
movl 0x150(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x150(%rsp)
jmp 0xbdb5
jmp 0xbeae
movl 0x154(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x154(%rsp)
jmp 0xbd96
jmp 0xbec6
movl 0x158(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x158(%rsp)
jmp 0xbd77
leaq 0x120(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xa200
movq 0x28(%rsp), %rdi
movslq 0x2a4(%rsp), %rsi
movslq 0x290(%rsp), %rdx
movslq 0x28c(%rsp), %rcx
xorl %r8d, %r8d
callq 0xa210
jmp 0xbf15
movl $0x0, 0x11c(%rsp)
movl 0x11c(%rsp), %eax
cmpl 0x28c(%rsp), %eax
je 0xc0fa
movl $0x0, 0x118(%rsp)
movl 0x118(%rsp), %eax
cmpl 0x290(%rsp), %eax
je 0xc0e2
movl $0x0, 0x114(%rsp)
movl 0x114(%rsp), %eax
cmpl 0x2a4(%rsp), %eax
je 0xc0ca
movb $0x0, 0x113(%rsp)
movslq 0x114(%rsp), %rsi
movslq 0x118(%rsp), %rdx
movslq 0x11c(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x24(%rsp)
jmp 0xbfa5
movl 0x24(%rsp), %eax
cmpl $-0x1, %eax
jne 0xbfe1
movb $0x1, 0x113(%rsp)
jmp 0xc072
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x298(%rsp)
movl %eax, 0x294(%rsp)
leaq 0x120(%rsp), %rdi
callq 0xfda0
jmp 0xc178
movslq 0x114(%rsp), %rsi
movslq 0x118(%rsp), %rdx
movslq 0x11c(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x20(%rsp)
jmp 0xc00c
movl 0x20(%rsp), %eax
cmpl $0x0, %eax
jle 0xc070
movslq 0x114(%rsp), %rsi
movslq 0x118(%rsp), %rdx
movslq 0x11c(%rsp), %rcx
leaq 0x2c0(%rsp), %rdi
callq 0xefc0
movl %eax, 0x1c(%rsp)
jmp 0xc040
movl 0x1c(%rsp), %eax
movslq %eax, %rsi
leaq 0x160(%rsp), %rdi
callq 0x12f20
movq %rax, 0x10(%rsp)
jmp 0xc05b
movq 0x10(%rsp), %rax
cmpl $0x186a0, (%rax)        # imm = 0x186A0
jge 0xc070
movb $0x1, 0x113(%rsp)
jmp 0xc072
movb 0x113(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0xc0b2
movslq 0x114(%rsp), %rsi
movslq 0x118(%rsp), %rdx
movslq 0x11c(%rsp), %rcx
leaq 0x120(%rsp), %rdi
movl $0x1, %r8d
callq 0xa6f0
jmp 0xc0b0
jmp 0xc0b2
jmp 0xc0b4
movl 0x114(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x114(%rsp)
jmp 0xbf5e
jmp 0xc0cc
movl 0x118(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x118(%rsp)
jmp 0xbf3f
jmp 0xc0e4
movl 0x11c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x11c(%rsp)
jmp 0xbf20
movq 0x27ebf(%rip), %rdi     # 0x33fc0
leaq 0x1c742(%rip), %rsi     # 0x2884a
callq 0x3290
movq %rax, 0x8(%rsp)
jmp 0xc114
movq 0x8(%rsp), %rdi
movq 0x27e80(%rip), %rsi     # 0x33fa0
callq 0x32c0
jmp 0xc127
movq 0x2f0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x12f60
leaq 0x120(%rsp), %rdi
callq 0xfda0
leaq 0x160(%rsp), %rdi
callq 0x12fb0
leaq 0x2a8(%rsp), %rdi
callq 0x12fb0
leaq 0x2c0(%rsp), %rdi
callq 0xfd90
addq $0x2f8, %rsp            # imm = 0x2F8
retq
leaq 0x160(%rsp), %rdi
callq 0x12fb0
leaq 0x2a8(%rsp), %rdi
callq 0x12fb0
leaq 0x2c0(%rsp), %rdi
callq 0xfd90
movq 0x298(%rsp), %rdi
callq 0x34a0
nopl (%rax)