// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x0, 0x58(%rdi)
jne 0x11dcd
movq %rbx, %rdi
callq 0x11982
leaq 0x8(%rsp), %rdi
callq 0xf86c
andq $0x0, (%rsp)
movq 0x8(%rbx), %rdx
leaq 0x10a3d(%rip), %rsi     # 0x22824
leaq 0x90(%rsp), %rdi
callq 0xb117
leaq 0x10a31(%rip), %rdx     # 0x2282c
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0xb059
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x86e0
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x12de5
leaq 0x109f4(%rip), %rdx     # 0x22832
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xb059
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x86e0
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x1217a
leaq 0x110(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x12de5
leaq 0x109a5(%rip), %rdx     # 0x22835
leaq 0x130(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0xb059
leaq 0x1098b(%rip), %rdx     # 0x22837
leaq 0x150(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0xb059
movl 0x58(%rbx), %esi
leaq 0x10(%rsp), %rdi
callq 0xe22b
leaq 0x170(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x12de5
leaq 0x10695(%rip), %rdx     # 0x22584
leaq 0x190(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0xb059
leaq 0x170(%rsp), %rdi
callq 0x9120
leaq 0x10(%rsp), %rdi
callq 0x9120
leaq 0x150(%rsp), %rdi
callq 0x9120
leaq 0x130(%rsp), %rdi
callq 0x9120
leaq 0x110(%rsp), %rdi
callq 0x9120
leaq 0x50(%rsp), %rdi
callq 0x9120
leaq 0x30(%rsp), %rdi
callq 0x9120
leaq 0xf0(%rsp), %rdi
callq 0x9120
leaq 0xd0(%rsp), %rdi
callq 0x9120
leaq 0x70(%rsp), %rdi
callq 0x9120
leaq 0xb0(%rsp), %rdi
callq 0x9120
leaq 0x90(%rsp), %rdi
callq 0x9120
movq 0x8(%rsp), %rdi
movq 0x190(%rsp), %rsi
movq %rsp, %r8
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x80c0
testl %eax, %eax
jne 0x11fd5
leaq 0x190(%rsp), %rdi
callq 0x9120
leaq 0x8(%rsp), %rdi
callq 0xf8c0
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %r15
retq
movq 0x1ffb4(%rip), %rax     # 0x31f90
movq (%rax), %rdi
movq (%rsp), %rdx
leaq 0x1059c(%rip), %rsi     # 0x22586
xorl %eax, %eax
callq 0x8250
movq (%rsp), %rdi
callq 0x9060
jmp 0x11fb1
jmp 0x1215c
movq %rdx, %rbx
movq %rax, %r14
leaq 0x170(%rsp), %rdi
callq 0x9120
jmp 0x1201c
movq %rdx, %rbx
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x9120
jmp 0x1202e
movq %rdx, %rbx
movq %rax, %r14
leaq 0x150(%rsp), %rdi
callq 0x9120
jmp 0x12043
movq %rdx, %rbx
movq %rax, %r14
leaq 0x130(%rsp), %rdi
callq 0x9120
jmp 0x12058
movq %rdx, %rbx
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0x9120
leaq 0x50(%rsp), %rdi
callq 0x9120
leaq 0x30(%rsp), %rdi
callq 0x9120
leaq 0xf0(%rsp), %rdi
callq 0x9120
leaq 0xd0(%rsp), %rdi
callq 0x9120
leaq 0x70(%rsp), %rdi
callq 0x9120
leaq 0xb0(%rsp), %rdi
callq 0x9120
leaq 0x90(%rsp), %rdi
callq 0x9120
leaq 0x8(%rsp), %rdi
callq 0xf8c0
movq %r14, %rdi
cmpl $0x1, %ebx
jne 0x120ff
callq 0x8090
movq 0x1febb(%rip), %rcx     # 0x31f90
movq (%rcx), %rbx
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
leaq 0x106fd(%rip), %rsi     # 0x227e5
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8250
callq 0x89d0
jmp 0x11fc8
callq 0x87f0
movq %rdx, %rbx
movq %rax, %r14
jmp 0x12065
movq %rdx, %rbx
movq %rax, %r14
jmp 0x1206f
movq %rdx, %rbx
movq %rax, %r14
jmp 0x12079
movq %rdx, %rbx
movq %rax, %r14
jmp 0x12086
movq %rdx, %rbx
movq %rax, %r14
jmp 0x12093
movq %rdx, %rbx
movq %rax, %r14
jmp 0x1209d
movq %rdx, %rbx
movq %rax, %r14
jmp 0x120aa
movq %rdx, %rbx
movq %rax, %r14
jmp 0x120b7
movq %rdx, %rbx
movq %rax, %r14
jmp 0x120c1
movq %rdx, %rbx
movq %rax, %r14
leaq 0x190(%rsp), %rdi
jmp 0x120b2