// File: /workspace/github_cpp_makefile_star2_O1/eiskalteschatten[P]developersnotebook/src/models/AbstractSqliteModel.cpp
// Function: AbstractSqliteModel::update_single(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void AbstractSqliteModel::update_single(const std::string insert_column_name, const std::string &value) {
    try {
        if (!id) {
            insert_new_row();
        }

        SqliteConnectionManager connection_manager;

        char *error_message = 0;
        int connection;
        std::string sql = "UPDATE " + table_schema->table_name +
                          " SET " + (std::string)insert_column_name +
                          " = \"" + text_escape(value) + "\"" +
                          " 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 save to the database: %s\n", e.what());
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x0, 0x58(%rdi)
jne 0x161bc
movq %rbx, %rdi
callq 0x15976
leaq 0x10(%rsp), %rdi
callq 0x12e2c
movq $0x0, 0x8(%rsp)
movq 0x8(%rbx), %rdx
leaq 0x1363a(%rip), %rsi     # 0x29814
leaq 0x198(%rsp), %rdi
callq 0xd49b
leaq 0x1362e(%rip), %rsi     # 0x2981c
leaq 0x198(%rsp), %rdi
callq 0x87f0
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16223
movq %rdx, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x1622b
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x20(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0xd524
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r8
movq 0x40(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x16282
movq 0x28(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1629d
movl $0xf, %esi
cmpq %r13, 0x38(%rsp)
je 0x16298
movq 0x48(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x162ae
movq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x8940
jmp 0x162bc
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x81e0
leaq 0x68(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x162e0
movq %rsi, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x162e6
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x13518(%rip), %rsi     # 0x29822
leaq 0x58(%rsp), %rdi
callq 0x87f0
leaq 0xe8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16345
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x1634d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x168(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0xd524
leaq 0x118(%rsp), %rdi
leaq 0x158(%rsp), %rdx
callq 0x16b20
movq 0xd8(%rsp), %rcx
movq 0xe0(%rsp), %r8
movq 0x120(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x163ce
movq 0xe8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x163f3
leaq 0x128(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x163ee
movq 0x128(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1640a
movq 0x118(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
callq 0x8940
jmp 0x1641b
leaq 0x118(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x81e0
leaq 0x88(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x16445
movq %rsi, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x1644b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x133b3(%rip), %rsi     # 0x29825
leaq 0x78(%rsp), %rdi
callq 0x87f0
leaq 0x148(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x164ac
movq %rdx, 0x138(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x148(%rsp)
jmp 0x164b2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x138(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1334f(%rip), %rsi     # 0x29827
callq 0x87f0
leaq 0x108(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1650d
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x16515
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x100(%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 0x1658e
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16585
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1658b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1658e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16552
addl $-0x3, %r14d
jmp 0x1658e
addl $-0x2, %r14d
jmp 0x1658e
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb8(%rsp), %rdi
movl $0x2d, %edx
callq 0x8740
addq 0xb8(%rsp), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x1175c
movq 0xf8(%rsp), %rcx
movq 0x100(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x165f6
movq 0x108(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x16617
movl $0xf, %esi
cmpq %r15, 0xb8(%rsp)
je 0x16612
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1662e
movq 0xb8(%rsp), %rsi
leaq 0xf8(%rsp), %rdi
callq 0x8940
jmp 0x1663f
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x81e0
leaq 0xa8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1666c
movq %rsi, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x16672
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xa0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x12ee1(%rip), %rsi     # 0x2957a
leaq 0x98(%rsp), %rdi
callq 0x87f0
leaq 0x188(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x166d6
movq %rdx, 0x178(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x188(%rsp)
jmp 0x166dd
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x180(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16719
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16736
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x168(%rsp), %r15
je 0x1675b
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
leaq 0x28(%rsp), %rbx
leaq 0x48(%rsp), %r14
je 0x1678a
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x167ab
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x167cc
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x167e9
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x16806
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16821
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x16838
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x18(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1684f
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16870
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x10(%rsp), %rdi
movq 0x178(%rsp), %rsi
leaq 0x8(%rsp), %r8
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x80c0
testl %eax, %eax
jne 0x168c8
movq 0x178(%rsp), %rdi
cmpq %rbp, %rdi
je 0x168ac
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x10(%rsp), %rdi
callq 0x12e56
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x206b1(%rip), %rax     # 0x36f80
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x12c9e(%rip), %rsi     # 0x2957c
xorl %eax, %eax
callq 0x8240
movq 0x8(%rsp), %rdi
callq 0x9010
jmp 0x1688f
jmp 0x16afa
movq %rdx, %rbx
movq %rax, %r14
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16925
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x16925
movq %rdx, %rbx
movq %rax, %r14
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1694a
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x1694a
movq %rdx, %rbx
movq %rax, %r14
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1696f
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x1696f
movq %rdx, %rbx
movq %rax, %r14
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x1699c
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x1699c
movq %rdx, %rbx
movq %rax, %r14
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x169c5
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x169c5
movq %rdx, %rbx
movq %rax, %r14
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x169ee
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x169ee
movq %rdx, %rbx
movq %rax, %r14
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x16a1b
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x16a1b
movq %rdx, %rbx
movq %rax, %r14
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x16a40
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x8170
jmp 0x16a40
movq %rdx, %rbx
movq %rax, %r14
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16a5b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x16a77
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8170
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x16a93
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16ab4
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8170
leaq 0x10(%rsp), %rdi
callq 0x12e56
movq %r14, %rdi
cmpl $0x1, %ebx
jne 0x16ad2
movl %ebx, %esi
callq 0x9184
jmp 0x168b6
callq 0x87b0
movq %rdx, %rbx
movq %rax, %r14
jmp 0x16a5b
movq %rdx, %rbx
movq %rax, %r14
jmp 0x16a77
movq %rdx, %rbx
movq %rax, %r14
jmp 0x16a93
movq %rdx, %rbx
movq %rax, %r14
jmp 0x16ab4
movq %rdx, %rbx
movq %rax, %r14
jmp 0x16abe
movq %rdx, %rbx
movq %rax, %r14
movq 0x178(%rsp), %rdi
cmpq %rbp, %rdi
je 0x16ab4
movq 0x188(%rsp), %rsi
jmp 0x16aac
nop