// File: /workspace/github_cpp_makefile_star2_O3/eiskalteschatten[P]developersnotebook/src/models/AbstractSqliteModel.cpp
// Function: AbstractSqliteModel::delete_single()
void AbstractSqliteModel::delete_single() {
    try {
        if (!id) {
            fprintf(stderr, "Could not delete the entry because there was no id!");
            return;
        }

        SqliteConnectionManager connection_manager;

        char *error_message = 0;
        int connection;
        std::string sql = "DELETE FROM " + table_schema->table_name +
                          " WHERE id=" + std::to_string(id) + ";";

        connection = sqlite3_exec(connection_manager.get_db(), sql.c_str(), NULL, 0, &error_message);

        if(connection != SQLITE_OK) {
            fprintf(stderr, "SQL error: %s\n", error_message);
            sqlite3_free(error_message);
        }
    }
    catch(const std::exception& e) {
        fprintf(stderr, "An exception occured while trying to delete from the database: %s\n", e.what());
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
cmpl $0x0, 0x58(%rdi)
je 0x17079
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x12e50
movq $0x0, 0x8(%rsp)
movq 0x8(%rbx), %rdx
leaq 0x12aa2(%rip), %rsi     # 0x29866
leaq 0x98(%rsp), %rdi
callq 0xd469
leaq 0x12a4f(%rip), %rsi     # 0x29827
leaq 0x98(%rsp), %rdi
callq 0x87f0
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16e0c
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x16e13
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x40(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x58(%rbx), %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x16e89
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16e80
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16e86
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16e89
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16e4d
addl $-0x3, %r14d
jmp 0x16e89
addl $-0x2, %r14d
jmp 0x16e89
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x58(%rsp), %rdi
movl $0x2d, %edx
callq 0x8740
addq 0x58(%rsp), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x11780
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0x60(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x16edd
movq 0x48(%rsp), %rdi
movq 0x58(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x16efb
movl $0xf, %edi
cmpq %r12, %rsi
je 0x16ef6
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x16f07
leaq 0x38(%rsp), %rdi
callq 0x8940
jmp 0x16f15
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x81e0
leaq 0x28(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x16f39
movq %rsi, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x16f3f
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x20(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x12617(%rip), %rsi     # 0x2957a
leaq 0x18(%rsp), %rdi
callq 0x87f0
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16f9a
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x16fa2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16fd8
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x16fef
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x17006
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17027
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x10(%rsp), %rdi
movq 0x78(%rsp), %rsi
leaq 0x8(%rsp), %r8
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x80c0
testl %eax, %eax
jne 0x17080
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x1705d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x10(%rsp), %rdi
callq 0x12e7a
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x91ea
jmp 0x17067
movq 0x1fef9(%rip), %rax     # 0x36f80
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x124e6(%rip), %rsi     # 0x2957c
xorl %eax, %eax
callq 0x8240
movq 0x8(%rsp), %rdi
callq 0x9010
jmp 0x17043
movq %rdx, %rbx
movq %rax, %r14
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x170d2
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x170d2
movq %rdx, %rbx
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x170f1
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x170f1
movq %rdx, %rbx
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x17110
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x17110
movq %rdx, %rbx
movq %rax, %r14
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1715b
movq 0xa8(%rsp), %rsi
jmp 0x17153
movq %rdx, %rbx
movq %rax, %r14
jmp 0x1715b
movq %rdx, %rbx
movq %rax, %r14
jmp 0x17165
movq %rdx, %rbx
movq %rax, %r14
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x1715b
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x10(%rsp), %rdi
callq 0x12e7a
movq %r14, %rdi
cmpl $0x1, %ebx
jne 0x17179
movl %ebx, %esi
callq 0x91b6
jmp 0x17067
callq 0x87b0