// File: /workspace/github_cpp_makefile_star2_O3/eiskalteschatten[P]developersnotebook/src/views/DashboardView.cpp
// Function: DashboardView::fill_projects_ending_soon()
void DashboardView::fill_projects_ending_soon() {
    GtkTreeIter tree_iter;
    ProjectsModel projects;

    gtk_list_store_clear(projects_ending_soon_list_store);

    projects.get_projects_ending_soon();
    const tableVector &contents = projects.get_full_table();

    for (auto const &row_map : contents) {
        ProjectsModel *row       = new ProjectsModel(row_map);
        const std::string id_str = std::to_string(row->get_id());

        gtk_list_store_append(GTK_LIST_STORE(projects_ending_soon_list_store), &tree_iter);

        gtk_list_store_set(GTK_LIST_STORE(projects_ending_soon_list_store), &tree_iter, ID_COLUMN, id_str.c_str(),
                                                                                        NAME_COLUMN, row->get_name().c_str(),
                                                                                        END_DATE_COLUMN, row->get_end_date().c_str(),
                                                                                        -1);

        delete row;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2673c
movq %rbx, (%rsp)
movq 0x20(%rbx), %rdi
callq 0x8430
leaq 0x90(%rsp), %rdi
callq 0x27b58
movq 0xd0(%rsp), %r14
movq 0xd8(%rsp), %rax
movq %rax, 0x68(%rsp)
cmpq %rax, %r14
je 0x12d9c
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
movl $0x148, %edi            # imm = 0x148
callq 0x81a0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x268f0
movl 0x58(%r15), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r12d
cmpl $0xa, %ebp
jb 0x12c47
movl $0x4, %r12d
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x12c3e
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x12c44
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x12c47
movl %eax, %ecx
imulq %rbx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x12c0e
addl $-0x3, %r12d
jmp 0x12c47
addl $-0x2, %r12d
jmp 0x12c47
decl %r12d
shrl $0x1f, %r13d
leal (%r12,%r13), %esi
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
movl $0x2d, %edx
callq 0x8740
addq 0x8(%rsp), %r13
movq %r13, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x11780
movq (%rsp), %rax
movq 0x20(%rax), %r13
callq 0x8690
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq 0x8150
movq %rax, %rdi
leaq 0x70(%rsp), %rsi
callq 0x8a30
movq (%rsp), %rax
movq 0x20(%rax), %rdi
movq %r12, %rsi
callq 0x8150
movq %rax, %r12
movq 0x8(%rsp), %r13
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x60(%r15), %rsi
movq 0x68(%r15), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xd4f2
movq 0x48(%rsp), %rbp
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xa0(%r15), %rsi
movq 0xa8(%r15), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xd4f2
subq $0x8, %rsp
movq %r12, %rdi
leaq 0x78(%rsp), %rsi
xorl %edx, %edx
movq %r13, %rcx
movl $0x1, %r8d
movq %rbp, %r9
xorl %eax, %eax
pushq $-0x1
pushq 0x38(%rsp)
pushq $0x2
callq 0x8cc0
addq $0x20, %rsp
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x12d4c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x12d68
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8170
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x12d8d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8170
addq $0x30, %r14
cmpq 0x68(%rsp), %r14
jne 0x12bd6
leaq 0x90(%rsp), %rdi
callq 0x26d92
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12dcc
jmp 0x12dcc
movq %rax, %rbx
movl $0x148, %esi            # imm = 0x148
movq %r15, %rdi
jmp 0x12e2f
movq %rax, %rbx
jmp 0x12e34
jmp 0x12e15
movq %rax, %rbx
jmp 0x12df7
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x12df7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x12e18
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x12e18
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x12e34
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x90(%rsp), %rdi
callq 0x26d92
movq %rbx, %rdi
callq 0x87b0
nop