// File: 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
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq -0x170(%rbp), %rdi
callq 0x4f110
movq -0x218(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xa5b0
jmp 0x1c8e8
leaq -0x170(%rbp), %rdi
callq 0x50ec0
jmp 0x1c8f6
leaq -0x170(%rbp), %rdi
callq 0x18f50
movq %rax, -0x220(%rbp)
jmp 0x1c90b
movq -0x220(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rdi
callq 0x18f70
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
callq 0x18fa0
movq %rax, -0x1a0(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x18fd0
testb $0x1, %al
jne 0x1c969
jmp 0x1cbdd
leaq -0x198(%rbp), %rdi
callq 0x19010
movq %rax, -0x1a8(%rbp)
movl $0x148, %edi            # imm = 0x148
callq 0xa280
movq %rax, -0x228(%rbp)
jmp 0x1c98f
movq -0x228(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
callq 0x4f370
jmp 0x1c9a4
movq -0x228(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rdi
callq 0x19170
movq %rax, -0x230(%rbp)
jmp 0x1c9c7
movq -0x230(%rbp), %rax
movl (%rax), %esi
leaq -0x1d0(%rbp), %rdi
callq 0x19050
jmp 0x1c9de
movq -0x218(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x240(%rbp)
callq 0xa8a0
movq -0x240(%rbp), %rdi
movq %rax, %rsi
callq 0xa190
movq %rax, -0x238(%rbp)
jmp 0x1ca0d
movq -0x238(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xac80
jmp 0x1ca1f
movq -0x218(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x250(%rbp)
callq 0xa8a0
movq -0x250(%rbp), %rdi
movq %rax, %rsi
callq 0xa190
movq %rax, -0x248(%rbp)
jmp 0x1ca4e
leaq -0x1d0(%rbp), %rdi
callq 0xa1d0
movq %rax, -0x258(%rbp)
movq -0x1b0(%rbp), %rsi
leaq -0x1f0(%rbp), %rdi
callq 0x19190
jmp 0x1ca76
leaq -0x1f0(%rbp), %rdi
callq 0xa1d0
movq %rax, -0x260(%rbp)
movq -0x1b0(%rbp), %rsi
leaq -0x210(%rbp), %rdi
callq 0x19200
jmp 0x1ca9e
leaq -0x210(%rbp), %rdi
callq 0xa1d0
movq -0x248(%rbp), %rdi
movq -0x258(%rbp), %rcx
movq -0x260(%rbp), %r9
movq %rax, %rdx
movq %rsp, %rax
movq %rdx, 0x8(%rax)
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movl $0x2, (%rax)
xorl %edx, %edx
movb %dl, %al
leaq -0x28(%rbp), %rsi
movl $0x1, %r8d
callq 0xafa0
jmp 0x1caeb
leaq -0x210(%rbp), %rdi
callq 0xb430
leaq -0x1f0(%rbp), %rdi
callq 0xb430
movq -0x1b0(%rbp), %rax
movq %rax, -0x268(%rbp)
cmpq $0x0, %rax
je 0x1cb24
movq -0x268(%rbp), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
leaq -0x1d0(%rbp), %rdi
callq 0xb430
leaq -0x198(%rbp), %rdi
callq 0x19030
jmp 0x1c94d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x178(%rbp)
movl %eax, -0x17c(%rbp)
jmp 0x1cbf2
movq -0x228(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x178(%rbp)
movl %eax, -0x17c(%rbp)
movl $0x148, %esi            # imm = 0x148
callq 0xa200
jmp 0x1cbf2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x178(%rbp)
movl %eax, -0x17c(%rbp)
jmp 0x1cbcf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x178(%rbp)
movl %eax, -0x17c(%rbp)
jmp 0x1cbc3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x178(%rbp)
movl %eax, -0x17c(%rbp)
leaq -0x210(%rbp), %rdi
callq 0xb430
leaq -0x1f0(%rbp), %rdi
callq 0xb430
leaq -0x1d0(%rbp), %rdi
callq 0xb430
jmp 0x1cbf2
leaq -0x170(%rbp), %rdi
callq 0x4f8a0
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
leaq -0x170(%rbp), %rdi
callq 0x4f8a0
movq -0x178(%rbp), %rdi
callq 0xaa00
nopw (%rax,%rax)