// File: /workspace/github_cpp_makefile_star2_O1/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
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
je 0x4312
movq %rsi, %r15
leaq 0x68(%rsp), %r12
xorl %ecx, %ecx
movq %rsi, 0xc0(%rsp)
movq (%r15), %rax
movq %rcx, 0xb8(%rsp)
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %r14
movq %rcx, 0xc8(%rsp)
cmpq %r14, 0x8(%rax,%rcx,8)
je 0x42e5
xorl %r13d, %r13d
leaq (,%r13,2), %rbx
addq %r13, %rbx
shlq $0x5, %rbx
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
leaq (%r14,%rbx), %rsi
addq $0x28, %rsi
movq %rdi, %rdx
callq 0x3a1e
movq %r13, 0xd0(%rsp)
addq %rbx, %r14
movl (%r14), %ebp
movl %ebp, %r13d
negl %r13d
cmovsl %ebp, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x3fd8
movl $0x4, %ebx
movl %r13d, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x3fd1
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3fd6
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x3fd8
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x3fa3
addl $-0x3, %ebx
jmp 0x3fd8
addl $-0x2, %ebx
jmp 0x3fd8
decl %ebx
movsd %xmm0, 0x30(%rsp)
shrl $0x1f, %ebp
leal (%rbx,%rbp), %esi
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
leaq 0xd8(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x32f0
addq 0xd8(%rsp), %rbp
movq %rbp, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x54c2
movq %r15, %rdi
leaq 0x4ff8(%rip), %rsi      # 0x9020
callq 0x3490
leaq 0x108(%rsp), %r13
movq %r13, 0xf8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4061
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x4069
movups (%rcx), %xmm0
movups %xmm0, (%r13)
leaq 0xa8(%rsp), %r15
leaq 0x48(%rsp), %rbp
movq 0x8(%rax), %rdx
movq %rdx, 0x100(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
leaq 0xf8(%rsp), %rdi
callq 0x30b0
movq %r15, 0x98(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40d2
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x40d9
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xa0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rdi
leaq 0x4f1d(%rip), %rsi      # 0x9020
callq 0x3490
movq %rbp, 0x38(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x412b
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x4132
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movsd 0x30(%rsp), %xmm0
movq 0x8(%rax), %rdx
movq %rdx, 0x40(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x148, %edx            # imm = 0x148
leaq 0x78(%rsp), %rdi
movq 0x8e47(%rip), %rsi      # 0xcfa8
leaq 0x5036(%rip), %rcx      # 0x919e
movb $0x1, %al
callq 0x552f
movq 0x38(%rsp), %rcx
movl $0xf, %esi
cmpq %rbp, %rcx
je 0x4183
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x41ba
movl $0xf, %esi
leaq 0x88(%rsp), %rdi
cmpq %rdi, 0x78(%rsp)
je 0x41b5
movq 0x88(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x41cb
movq 0x78(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x30b0
jmp 0x41d9
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32d0
movq %r12, 0x58(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x41f9
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x4201
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5ff6
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x423c
callq 0x3260
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4253
callq 0x3260
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4262
callq 0x3260
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x4274
callq 0x3260
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
movq 0xc0(%rsp), %r15
je 0x428e
callq 0x3260
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
movq 0xd0(%rsp), %r13
je 0x42b0
callq 0x3260
incq %r13
movq (%r15), %rax
movq 0xc8(%rsp), %rcx
movq (%rax,%rcx,8), %r14
movq 0x8(%rax,%rcx,8), %rax
subq %r14, %rax
sarq $0x5, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r13, %rax
ja 0x3f4b
movq 0x8(%r15), %rax
subq (%r15), %rax
movq 0xb8(%rsp), %rcx
incq %rcx
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rax
cmpq %rcx, %rax
ja 0x3f22
movq 0x8(%rsp), %rax
leaq 0x18(%rax), %r14
movq %r14, %rdi
callq 0x3370
testl %eax, %eax
jne 0x43c2
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x439e
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rdi
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
callq 0x32e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31a0
incq %r12
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r15
cmpq %r12, %rcx
ja 0x4340
movq %r14, %rdi
callq 0x31d0
leaq 0x10(%rsp), %rdi
callq 0x5224
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x3190
jmp 0x43e8
jmp 0x43e8
movq %rax, %rbx
jmp 0x4425
movq %rax, %rbx
jmp 0x4449
movq %rax, %rbx
jmp 0x43ff
jmp 0x43e8
movq %rax, %rbx
jmp 0x4437
movq %rax, %rbx
jmp 0x4416
movq %rax, %rbx
jmp 0x4463
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x43ff
callq 0x3260
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4416
callq 0x3260
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4425
callq 0x3260
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x4437
callq 0x3260
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4449
callq 0x3260
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x4463
callq 0x3260
leaq 0x10(%rsp), %rdi
callq 0x5224
movq %rbx, %rdi
callq 0x3440