// File: /workspace/github_cpp_makefile_star2_O2/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_predictor.h
// Function: ftrl_predictor::run_task(std::vector<std::vector<fm_sample, std::allocator<fm_sample>>, std::allocator<std::vector<fm_sample, std::allocator<fm_sample>>>>&)
void ftrl_predictor::run_task(vector<vector<fm_sample> >& dataBuffer)
{
    vector<string> outputVec;
    for(int i = 0; i < dataBuffer.size(); ++i)
    {
        for(int j = 0; j < dataBuffer[i].size(); ++j)
        {
            fm_sample& sample = dataBuffer[i][j];
            double score = pModel->getScore(sample.x, pModel->muMap);
            outputVec.push_back(to_string(sample.y) + " " + sample.qid + " " + to_string(score));
        }
    }
    outMtx.lock();
    for(int i = 0; i < outputVec.size(); ++i)
    {
        fPredict << outputVec[i] << endl;
    }
    outMtx.unlock();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x8(%rsp)
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rsi, 0x18(%rsp)
movq (%rsi), %rcx
xorl %esi, %esi
leaq 0x78(%rsp), %r12
leaq 0x98(%rsp), %rbp
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rdi
idivq %rdi
cmpq %rsi, %rax
jbe 0x3e11
movq %rsi, 0x38(%rsp)
imulq $0x18, %rsi, %rax
movq %rax, 0x40(%rsp)
pushq $0x28
popq %r15
movq %r15, 0x10(%rsp)
xorl %edi, %edi
movq 0x40(%rsp), %rax
movq (%rcx,%rax), %r14
movq 0x8(%rcx,%rax), %rax
subq %r14, %rax
cqto
pushq $0x60
popq %rsi
idivq %rsi
cmpq %rdi, %rax
jbe 0x3e04
movq %rdi, 0x48(%rsp)
leaq 0x4323(%rip), %rbx      # 0x8020
movq %r12, %r13
movq 0x10(%rsp), %rax
leaq (%r14,%rax), %r12
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq %r12, %rsi
movq %rdi, %rdx
callq 0x38ce
movsd %xmm0, 0x50(%rsp)
movl -0x28(%r12), %esi
movq %r13, %r12
movq %r13, %rdi
callq 0x48d4
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x4896
movq 0x10(%rsp), %rax
leaq (%r14,%rax), %rdx
addq $-0x20, %rdx
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x48b5
movq %rbp, %r13
leaq 0xd8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x42a7(%rip), %rdx      # 0x8020
callq 0x4896
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movsd 0x50(%rsp), %xmm0
callq 0x492d
leaq 0xf8(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x482f
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x5a8e
movq %rbp, %rdi
callq 0x3458
leaq 0x58(%rsp), %rdi
callq 0x3458
movq %r14, %rdi
callq 0x3458
movq %rbx, %rdi
callq 0x3458
movq %r13, %rbp
movq %r13, %rdi
callq 0x3458
movq %r12, %rdi
callq 0x3458
movq 0x48(%rsp), %rdi
incq %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rcx
addq $0x60, 0x10(%rsp)
jmp 0x3ccf
movq 0x38(%rsp), %rsi
incq %rsi
jmp 0x3c99
movq 0x8(%rsp), %rax
leaq 0x18(%rax), %rbx
movq %rbx, %rdi
callq 0x449c
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r15, %rax
jbe 0x3e60
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
addq %r14, %rsi
callq 0x3220
movq %rax, %rdi
callq 0x3110
incq %r15
addq $0x20, %r14
jmp 0x3e28
movq %rbx, %rdi
callq 0x31b0
leaq 0x20(%rsp), %rdi
callq 0x480e
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3eb0
jmp 0x3eb0
movq %rax, %rbx
jmp 0x3ee9
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x3458
jmp 0x3ea2
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x3458
jmp 0x3ebd
jmp 0x3eb0
movq %rax, %rbx
jmp 0x3ef3
movq %rax, %rbx
jmp 0x3edc
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x3458
jmp 0x3ecf
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x3458
leaq 0x98(%rsp), %rdi
callq 0x3458
leaq 0x78(%rsp), %rdi
callq 0x3458
leaq 0x20(%rsp), %rdi
callq 0x480e
movq %rbx, %rdi
callq 0x33f0