// File: /workspace/github_cpp_makefile_star2_O1/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model_unit::ftrl_model_unit(int, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
ftrl_model_unit(int factor_num, const vector<string>& modelLineSeg)
    {
        vi.resize(factor_num);
        v_ni.resize(factor_num);
        v_zi.resize(factor_num);
        wi = stod(modelLineSeg[1]);
        w_ni = stod(modelLineSeg[2 + factor_num]);
        w_zi = stod(modelLineSeg[3 + factor_num]);
        for(int f = 0; f < factor_num; ++f)
        {
            vi[f] = stod(modelLineSeg[2 + f]);
            v_ni[f] = stod(modelLineSeg[4 + factor_num + f]);
            v_zi[f] = stod(modelLineSeg[4 + 2 * factor_num + f]);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r13
movq %rdi, %rbx
leaq 0x18(%rdi), %rdi
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x48(%rbx), %rax
movq %rax, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movslq %esi, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x68(%rbx)
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x18(%rbx)
movq %rdi, 0x28(%rsp)
movq %r14, %rsi
callq 0x529e
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x529e
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x529e
movq (%r13), %rax
movq 0x20(%rax), %r15
callq 0x3040
movq %rax, %r12
movl (%rax), %eax
movl %eax, (%rsp)
movl $0x0, (%r12)
leaq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x31e0
cmpq %r15, (%rbp)
je 0x5186
movl (%r12), %eax
testl %eax, %eax
je 0x4f40
cmpl $0x22, %eax
jne 0x4f47
leaq 0x425e(%rip), %rdi      # 0x9199
callq 0x3350
movl (%rsp), %eax
movl %eax, (%r12)
movsd %xmm0, (%rbx)
movq (%r13), %rax
shlq $0x5, %r14
movq 0x40(%rax,%r14), %r15
movl (%r12), %eax
movl %eax, (%rsp)
movl $0x0, (%r12)
leaq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x31e0
cmpq %r15, (%rbp)
je 0x5192
movl (%r12), %eax
testl %eax, %eax
je 0x4f9a
cmpl $0x22, %eax
jne 0x4fa1
leaq 0x4204(%rip), %rdi      # 0x9199
callq 0x3350
movl (%rsp), %eax
movl %eax, (%r12)
movsd %xmm0, 0x8(%rbx)
movq (%r13), %rax
movq 0x60(%rax,%r14), %r14
movl (%r12), %ebp
movl $0x0, (%r12)
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x31e0
cmpq %r14, (%r15)
je 0x519e
movl (%r12), %eax
testl %eax, %eax
je 0x4fed
cmpl $0x22, %eax
jne 0x4ff1
leaq 0x41b1(%rip), %rdi      # 0x9199
callq 0x3350
movl %ebp, (%r12)
movsd %xmm0, 0x10(%rbx)
cmpl $0x0, 0x10(%rsp)
jle 0x512f
movq 0x10(%rsp), %rax
movl %eax, %ecx
addl %eax, %eax
shlq $0x5, %rax
subq $-0x80, %rax
movq %rax, 0x10(%rsp)
movq %rcx, %rax
shlq $0x5, %rax
movq %rax, (%rsp)
shlq $0x3, %rcx
movq %rcx, 0x30(%rsp)
xorl %ebp, %ebp
leaq 0x8(%rsp), %rbx
movq (%r13), %rax
movq 0x40(%rax,%rbp,4), %r14
movl (%r12), %r15d
movl $0x0, (%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31e0
cmpq %r14, 0x8(%rsp)
je 0x514a
movl (%r12), %eax
testl %eax, %eax
je 0x506f
cmpl $0x22, %eax
jne 0x5073
jmp 0x516e
movl %r15d, (%r12)
movq 0x28(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbp)
movq (%r13), %rax
addq (%rsp), %rax
movq 0x80(%rax,%rbp,4), %r14
movl (%r12), %r15d
movl $0x0, (%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31e0
cmpq %r14, 0x8(%rsp)
je 0x5156
movl (%r12), %eax
testl %eax, %eax
je 0x50c4
cmpl $0x22, %eax
jne 0x50c8
jmp 0x517a
movl %r15d, (%r12)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbp)
movq (%r13), %rax
addq 0x10(%rsp), %rax
movq (%rax,%rbp,4), %r14
movl (%r12), %r15d
movl $0x0, (%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31e0
cmpq %r14, 0x8(%rsp)
je 0x513e
movl (%r12), %eax
testl %eax, %eax
je 0x510f
cmpl $0x22, %eax
jne 0x5113
jmp 0x5162
movl %r15d, (%r12)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbp)
addq $0x8, %rbp
cmpq %rbp, 0x30(%rsp)
jne 0x5032
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4054(%rip), %rdi      # 0x9199
callq 0x3180
leaq 0x4048(%rip), %rdi      # 0x9199
callq 0x3180
leaq 0x403c(%rip), %rdi      # 0x9199
callq 0x3180
leaq 0x4030(%rip), %rdi      # 0x9199
callq 0x3350
leaq 0x4024(%rip), %rdi      # 0x9199
callq 0x3350
leaq 0x4018(%rip), %rdi      # 0x9199
callq 0x3350
leaq 0x400c(%rip), %rdi      # 0x9199
callq 0x3180
leaq 0x4000(%rip), %rdi      # 0x9199
callq 0x3180
leaq 0x3ff4(%rip), %rdi      # 0x9199
callq 0x3180
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x51e6
movl %ebp, (%r12)
jmp 0x51e6
jmp 0x51bc
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x51e6
movl (%rsp), %eax
movl %eax, (%r12)
jmp 0x51e6
movq %rax, %rbx
jmp 0x51e6
jmp 0x51d8
jmp 0x51d8
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x51e6
movl %r15d, (%r12)
movq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x51f8
callq 0x3260
movq 0x20(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x520a
callq 0x3260
movq 0x28(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x521c
callq 0x3260
movq %rbx, %rdi
callq 0x3440