// File: /workspace/github_cpp_makefile_star2_O3/lipiji[P]PG_DEEP/deep.cpp
// Function: DBN::finetune(Dataset, Conf)
void DBN::finetune(Dataset data, Conf conf)
{
    cout << "Fine-tuning..." << endl;
    // BP fine-tuning method
    // First, train the LR model without fine-tuning
    double *layer_input = NULL;
    double *pre_layer_input = NULL;
    int pre_size;

    for(int epoch=0; epoch<conf.epoch; epoch++)
    {
        //ofstream fout("./model/x.txt");
        for(int i=0; i<n_samples; i++)
        {
            vector<vector<double> > ai;
            vector<vector<double> > deltai;

            int *train_y = new int[n_labels];
            for(int yi=0; yi<n_labels; yi++)
                train_y[yi] = 0;
            train_y[int(data.Y[i])] = 1;
            // some x may be computed many times
            // which may be replaced by DP algoritham
            for(int j=0; j<n_layers; j++)
            {
                if(j == 0)
                {
                    pre_size = n_features;
                    pre_layer_input = new double[pre_size];
                    for(int f=0; f<pre_size; f++)
                        pre_layer_input[f] = data.X[i][f];
                    
                    //a0 = v0
                    vector<double> al;
                    for(int ia=0; ia<pre_size; ia++)
                        al.push_back(pre_layer_input[ia]);
                    ai.push_back(al);
                    vector<double>().swap(al);
                }
                else
                {
                    pre_size = hidden_layer_size[j-1];
                    pre_layer_input = new double[pre_size];

                    for(int f=0; f<pre_size; f++)
                        pre_layer_input[f] = layer_input[f];
                    delete[] layer_input;

                }
                layer_input = new double[hidden_layer_size[j]];
                rbm_layers[j]->activate_hidden(pre_layer_input, layer_input, NULL, pre_size, hidden_layer_size[j]);
                delete[] pre_layer_input;
                vector<double> al;
                for(int ia=0; ia<hidden_layer_size[j]; ia++)
                    al.push_back(layer_input[ia]);
                ai.push_back(al);
                vector<double>().swap(al);
            }
            ///////////
            // for(int ii=0; ii<hidden_layer_size[n_layers-1]; ii++)
            //   fout << layer_input[ii] << " ";
            //fout << int(data.Y[i]) << endl;
            /////////

            //output layer
            //in http://deeplearning.stanford.edu/wiki/index.php/Fine-tuning_Stacked_AEs
            double *pred_y = new double[lr_layer->n_labels];
            lr_layer->predict(layer_input, pred_y);
            vector<double> di0;
            for(int j=0; j<lr_layer->n_labels; j++)
                di0.push_back(-1*(train_y[j] - pred_y[j]) * pred_y[j] * (1 - pred_y[j]));
            deltai.push_back(di0);
            vector<double>().swap(di0);
            
            // hidden layer
            for(int l=n_layers; l>=0; l--)
            {
                if(l == n_layers)
                {
                    vector<double> di;
                    for(int j=0; j<lr_layer->n_features; j++)
                    {
                        double di_tmp = 0;
                        for(int f=0; f<lr_layer->n_labels; f++)
                        {
                            di_tmp += lr_layer->W[f][j] * deltai[n_layers-l][f];
                        }
                        di_tmp *= ai[l][j] * (1 -  ai[l][j]);
                        di.push_back(di_tmp);
                    }
                    deltai.push_back(di);
                    vector<double>().swap(di);
                }
                else
                {
                    vector<double> di;
                    for(int j=0; j<rbm_layers[l]->n_visible; j++)
                    {
                        double di_tmp = 0;
                        for(int f=0; f<rbm_layers[l]->n_hidden; f++)
                        {
                            di_tmp += rbm_layers[l]->W[f][j] * deltai[n_layers-l][f];
                        }
                        di_tmp *= ai[l][j] * (1 -  ai[l][j]);
                        di.push_back(di_tmp);
                    }
                    deltai.push_back(di);
                    vector<double>().swap(di);
                }
            }// end deltai

            // update hidden layer parameters
            for(int l=0; l<n_layers; l++)
            {
                for(int j=0; j<rbm_layers[l]->n_hidden; j++)
                {
                    for(int f=0; f<rbm_layers[l]->n_visible; f++)
                    {
                        rbm_layers[l]->W[j][f] -= alpha*(deltai[n_layers-l][j]*ai[l][f] + lamda * rbm_layers[l]->W[j][f]); 
                    }
                    rbm_layers[l]->hbias[j] -= alpha * deltai[n_layers-l][j];
                }
            }
            // update the parameters in LR layer
            lr_layer->train(layer_input, train_y, conf.learning_rate);
            
            vector<vector<double> >().swap(ai);
            vector<vector<double> >().swap(deltai);

            delete[] train_y;
            delete[] pred_y;
            delete[] layer_input;
        }//end xi


        ////////////
        //fout << flush;fout.close();
        cout << "Fine-tuning epoch: " << epoch <<endl;
    }//end epoch
    cout << "Fine-tuning done." << endl;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %r14
movq %rsi, 0xa8(%rsp)
movq %rdi, %r12
movq 0x477c(%rip), %rbx      # 0x9fd8
leaq 0x1978(%rip), %rsi      # 0x71db
movl $0xe, %edx
movq %rbx, %rdi
callq 0x21e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movq %r14, 0x90(%rsp)
cmpl $0x0, 0x80(%r14)
jle 0x61b9
xorl %ebx, %ebx
movq %rsp, %r13
xorl %ebp, %ebp
movl $0x0, 0x4c(%rsp)
cmpl $0x0, (%r12)
jle 0x6147
xorl %ecx, %ecx
movq %rcx, 0xa0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movq %rbx, 0x80(%rsp)
movq %rbx, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movslq 0xc(%r12), %rbx
leaq (,%rbx,4), %r14
testq %rbx, %rbx
movq %r14, %rdi
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, %r15
testl %ebx, %ebx
jle 0x5925
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2100
movq 0xa8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0xa0(%rsp), %rcx
cvttsd2si (%rax,%rcx,8), %eax
cltq
movl $0x1, (%r15,%rax,4)
cmpl $0x0, 0x8(%r12)
movq %r15, 0x98(%rsp)
jle 0x5bdb
leaq (%rcx,%rcx,2), %rax
movq %rax, 0x68(%rsp)
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x59b8
movq 0x10(%r12), %rax
movslq -0x4(%rax,%rbx,4), %r13
leaq (,%r13,8), %rdi
testq %r13, %r13
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, %r15
testl %r13d, %r13d
jle 0x5a61
xorl %eax, %eax
movsd (%rbp,%rax,8), %xmm0
movsd %xmm0, (%r15,%rax,8)
incq %rax
cmpq %rax, %r13
jne 0x599f
jmp 0x5a66
movslq 0x4(%r12), %r13
leaq (,%r13,8), %rdi
testq %r13, %r13
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, %r15
testl %r13d, %r13d
jle 0x5a70
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x68(%rsp), %rcx
movq (%rax,%rcx,8), %rax
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%r15,%rcx,8)
incq %rcx
cmpq %rcx, %r13
jne 0x59fb
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %r13, %r14
movq %r15, %rbp
testl %r13d, %r13d
jle 0x5a82
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5a4b
movsd (%rbp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5a56
movq %rsp, %rdi
movq %rbp, %rdx
callq 0x6822
addq $0x8, %rbp
decq %r14
jne 0x5a2b
jmp 0x5a82
testq %rbp, %rbp
je 0x5acd
movq %rbp, %rdi
callq 0x2210
jmp 0x5acd
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0x70(%rsp), %rdi
movq %rsp, %rsi
callq 0x6512
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x5acd
subq %rdi, %rsi
callq 0x21c0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5acd
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq 0x10(%r12), %r14
movslq (%r14,%rbx,4), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, %rbp
movq 0x28(%r12), %rax
movq (%rax,%rbx,8), %rdi
movl (%r14,%rbx,4), %r9d
movq %r15, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
movl %r13d, %r8d
callq 0x4562
movq %r15, %rdi
callq 0x2210
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x10(%r12), %rax
cmpl $0x0, (%rax,%rbx,4)
movq %rsp, %r13
jle 0x5b7f
movq %rbp, %r14
xorl %r15d, %r15d
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5b5f
movsd (%r14), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5b6f
movq %r13, %rdi
movq %r14, %rdx
callq 0x6822
movq 0x10(%r12), %rax
incq %r15
movslq (%rax,%rbx,4), %rcx
addq $0x8, %r14
cmpq %rcx, %r15
jl 0x5b3f
leaq 0x70(%rsp), %rdi
movq %r13, %rsi
callq 0x6512
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x5bca
subq %rdi, %rsi
callq 0x21c0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5bca
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
incq %rbx
movslq 0x8(%r12), %rax
cmpq %rax, %rbx
jl 0x5967
movq 0x30(%r12), %r15
movslq 0x8(%r15), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, %rbx
movq %r15, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x4dfe
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x30(%r12), %rax
cmpl $0x0, 0x8(%rax)
movq 0x98(%rsp), %r14
movq %rbx, %r15
jle 0x5ca8
xorl %ebx, %ebx
xorps %xmm1, %xmm1
cvtsi2sdl (%r14,%rbx,4), %xmm1
movsd (%r15,%rbx,8), %xmm2
subsd %xmm2, %xmm1
xorpd 0x14ab(%rip), %xmm1     # 0x7100
mulsd %xmm2, %xmm1
movsd 0x13b7(%rip), %xmm0     # 0x7018
subsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5c8a
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5c9c
movq %r13, %rdi
leaq 0x20(%rsp), %rdx
callq 0x653e
movq 0x30(%r12), %rax
incq %rbx
movslq 0x8(%rax), %rcx
cmpq %rcx, %rbx
jl 0x5c3a
movq %r15, 0xb0(%rsp)
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x6512
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x5ce5
subq %rdi, %rsi
callq 0x21c0
movslq 0x8(%r12), %rbx
testq %rbx, %rbx
js 0x6058
movl 0x8(%r12), %eax
xorpd %xmm0, %xmm0
cmpq %rax, %rbx
jne 0x5e01
movapd %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%r12), %rax
cmpl $0x0, 0x4(%rax)
jle 0x5ded
movslq %ebx, %r14
xorl %r15d, %r15d
movq $0x0, 0x40(%rsp)
movslq 0x8(%rax), %rcx
testq %rcx, %rcx
jle 0x5d7d
movq 0x18(%rax), %rdx
movslq 0x8(%r12), %rsi
subq %r14, %rsi
movq 0x50(%rsp), %rdi
leaq (%rsi,%rsi,2), %rsi
movq (%rdi,%rsi,8), %rsi
xorpd %xmm0, %xmm0
xorl %edi, %edi
movq (%rdx,%rdi,8), %r8
movsd (%r8,%r15,8), %xmm1
mulsd (%rsi,%rdi,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
incq %rdi
cmpq %rdi, %rcx
jne 0x5d5a
jmp 0x5d81
xorpd %xmm0, %xmm0
movq 0x70(%rsp), %rcx
leaq (%rbx,%rbx,2), %rdx
movq (%rcx,%rdx,8), %rcx
movsd (%rcx,%r15,8), %xmm2
movsd 0x127c(%rip), %xmm1     # 0x7018
subsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rsp)
movq 0x28(%rsp), %rsi
cmpq 0x30(%rsp), %rsi
je 0x5dc9
movsd %xmm1, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x28(%rsp)
jmp 0x5ddd
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x6822
movq 0x30(%r12), %rax
incq %r15
movslq 0x4(%rax), %rcx
cmpq %rcx, %r15
jl 0x5d29
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x6512
jmp 0x5f00
movapd %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x28(%r12), %rax
movq (%rax,%rbx,8), %rdx
cmpl $0x0, 0x4(%rdx)
jle 0x5ef1
movslq %ebx, %r15
xorl %r14d, %r14d
movq $0x0, 0x40(%rsp)
movslq 0x8(%rdx), %rcx
testq %rcx, %rcx
jle 0x5e7d
movq 0x10(%rdx), %rdx
movslq 0x8(%r12), %rsi
subq %r15, %rsi
movq 0x50(%rsp), %rdi
leaq (%rsi,%rsi,2), %rsi
movq (%rdi,%rsi,8), %rsi
xorpd %xmm0, %xmm0
xorl %edi, %edi
movq (%rdx,%rdi,8), %r8
movsd (%r8,%r14,8), %xmm1
mulsd (%rsi,%rdi,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
incq %rdi
cmpq %rdi, %rcx
jne 0x5e5a
jmp 0x5e81
xorpd %xmm0, %xmm0
movq 0x70(%rsp), %rcx
leaq (%rbx,%rbx,2), %rdx
movq (%rcx,%rdx,8), %rcx
movsd (%rcx,%r14,8), %xmm2
movsd 0x117c(%rip), %xmm1     # 0x7018
subsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rsp)
movq 0x28(%rsp), %rsi
cmpq 0x30(%rsp), %rsi
je 0x5ec9
movsd %xmm1, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x28(%rsp)
jmp 0x5edd
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x6822
movq 0x28(%r12), %rax
incq %r14
movq (%rax,%rbx,8), %rdx
movslq 0x4(%rdx), %rcx
cmpq %rcx, %r14
jl 0x5e29
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x6512
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x5f41
subq %rdi, %rsi
callq 0x21c0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5f41
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
leaq -0x1(%rbx), %rax
testq %rbx, %rbx
movq %rax, %rbx
jg 0x5cf3
movslq 0x8(%r12), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
jle 0x6058
movq 0x28(%r12), %rax
movq %rax, 0xc0(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0xb8(%rsp)
xorl %esi, %esi
movq 0xc0(%rsp), %rax
movq (%rax,%rsi,8), %rdi
movslq 0x8(%rdi), %r8
testq %r8, %r8
jle 0x6047
movl 0x4(%rdi), %r9d
movq 0x68(%rsp), %rax
subq %rsi, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
movq 0x50(%rsp), %r10
leaq (%rsi,%rsi,2), %r11
shlq $0x3, %r11
addq 0x70(%rsp), %r11
addq %rax, %r10
movq 0xb8(%rsp), %rcx
movq (%rcx,%rax), %rbx
movq 0x18(%rdi), %r14
xorl %r15d, %r15d
testl %r9d, %r9d
jle 0x6022
movq (%r10), %r13
movq (%r11), %rdx
movq 0x10(%rdi), %rax
movq (%rax,%r15,8), %rcx
xorl %eax, %eax
movsd (%r13,%r15,8), %xmm0
movsd (%rcx,%rax,8), %xmm1
movsd 0x18(%r12), %xmm2
mulsd (%rdx,%rax,8), %xmm0
mulsd %xmm1, %xmm2
addsd %xmm2, %xmm0
mulsd 0x20(%r12), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r9
jne 0x5fea
movsd 0x20(%r12), %xmm0
movsd (%r14,%r15,8), %xmm1
mulsd (%rbx,%r15,8), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, (%r14,%r15,8)
incq %r15
cmpq %r8, %r15
jne 0x5fd5
incq %rsi
cmpq 0x68(%rsp), %rsi
movq %rsp, %r13
jne 0x5f80
movq 0x30(%r12), %rdi
movq 0x90(%rsp), %rax
movsd 0x98(%rax), %xmm0
movq %rbp, %rsi
movq 0x98(%rsp), %r15
movq %r15, %rdx
callq 0x4c28
movaps 0x70(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
xorl %ebx, %ebx
movq %rbx, 0x80(%rsp)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x3198
movapd 0x50(%rsp), %xmm0
movapd %xmm0, 0x20(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x30(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
movq %rbx, 0x60(%rsp)
movq %r14, %rdi
callq 0x3198
movq %r15, %rdi
callq 0x2210
movq 0xb0(%rsp), %rdi
callq 0x2210
testq %rbp, %rbp
je 0x6105
movq %rbp, %rdi
callq 0x2210
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x611b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
leaq 0x50(%rsp), %rdi
callq 0x3198
leaq 0x70(%rsp), %rdi
callq 0x3198
movq 0xa0(%rsp), %rcx
incq %rcx
movslq (%r12), %rax
cmpq %rax, %rcx
jl 0x58c9
movl $0x13, %edx
movq 0x3e85(%rip), %r14      # 0x9fd8
movq %r14, %rdi
leaq 0x108d(%rip), %rsi      # 0x71ea
callq 0x21e0
movq %r14, %rdi
movl 0x4c(%rsp), %r15d
movl %r15d, %esi
callq 0x22a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
incl %r15d
movq 0x90(%rsp), %rax
movl %r15d, 0x4c(%rsp)
cmpl 0x80(%rax), %r15d
jl 0x58bc
leaq 0x103e(%rip), %rsi      # 0x71fe
movl $0x11, %edx
movq 0x3e0c(%rip), %rbx      # 0x9fd8
movq %rbx, %rdi
callq 0x21e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x621f
jmp 0x621f
jmp 0x6242
jmp 0x6242
jmp 0x6242
jmp 0x6226
jmp 0x6226
jmp 0x6242
jmp 0x6242
movq %rax, %rbx
jmp 0x625b
jmp 0x6226
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x6245
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
jmp 0x6245
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x625b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
leaq 0x50(%rsp), %rdi
callq 0x3198
leaq 0x70(%rsp), %rdi
callq 0x3198
movq %rbx, %rdi
callq 0x22b0
nop