// File: /workspace/github_c_makefile_star2_O0/barabo[P]advanced-shell-history/src/database.cpp
// Function: ash::DBObject::get_sql[abi:cxx11]() const
const string DBObject::get_sql() const {
  typedef map<string, string>::const_iterator c_iter;

  stringstream ss;
  ss << "INSERT INTO " << get_name() << " (";

  // Insert the column names.
  for (c_iter i = values.begin(), e = values.end(); i != e; ) {
    ss << (i -> first);
    if (++i == e) break;
    ss << ", ";
  }

  ss << ") VALUES (";
  // Insert the values.
  for (c_iter i = values.begin(), e = values.end(); i != e; ) {
    ss << (i -> second);
    if (++i == e) break;
    ss << ", ";
  }

  ss << "); ";

  return ss.str();
}

// Assembly:
subq $0x288, %rsp            # imm = 0x288
movq %rdi, 0x80(%rsp)
movq %rdi, %rax
movq %rax, 0x88(%rsp)
movq %rdi, 0x280(%rsp)
movq %rsi, 0x278(%rsp)
movq 0x278(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x82a0
leaq 0x100(%rsp), %rdi
leaq 0x1e90b(%rip), %rsi     # 0xb2981
callq 0x8400
movq %rax, 0x98(%rsp)
jmp 0x94085
movq 0x90(%rsp), %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
leaq 0xc0(%rsp), %rdi
callq *%rax
jmp 0x940a0
movq 0x98(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x8350
movq %rax, 0x78(%rsp)
jmp 0x940bc
movq 0x78(%rsp), %rdi
leaq 0x1e8ce(%rip), %rsi     # 0xb2996
callq 0x8400
jmp 0x940cf
leaq 0xc0(%rsp), %rdi
callq 0x88f8
jmp 0x940de
movq 0x90(%rsp), %rdi
addq $0x8, %rdi
callq 0x8cf70
movq %rax, 0x70(%rsp)
jmp 0x940f6
movq 0x90(%rsp), %rdi
movq 0x70(%rsp), %rax
movq %rax, 0xb8(%rsp)
addq $0x8, %rdi
callq 0x8cfa0
movq %rax, 0x68(%rsp)
jmp 0x9411b
movq 0x68(%rsp), %rax
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x8cfd0
movb %al, 0x67(%rsp)
jmp 0x94143
movb 0x67(%rsp), %al
testb $0x1, %al
jne 0x94150
jmp 0x94216
leaq 0x100(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x8d030
movq %rax, 0x58(%rsp)
jmp 0x94171
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdi
callq 0x8350
jmp 0x94182
leaq 0xb8(%rsp), %rdi
callq 0x8d050
movq %rax, 0x48(%rsp)
jmp 0x94196
movq 0x48(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x948b0
movb %al, 0x47(%rsp)
jmp 0x941ae
movb 0x47(%rsp), %al
testb $0x1, %al
jne 0x941b8
jmp 0x941fb
jmp 0x94216
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
jmp 0x94371
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x88f8
jmp 0x941f6
jmp 0x94371
leaq 0x100(%rsp), %rdi
leaq 0x1c743(%rip), %rsi     # 0xb094d
callq 0x8400
jmp 0x94211
jmp 0x94128
leaq 0x100(%rsp), %rdi
leaq 0x1e769(%rip), %rsi     # 0xb298e
callq 0x8400
jmp 0x9422c
movq 0x90(%rsp), %rdi
addq $0x8, %rdi
callq 0x8cf70
movq %rax, 0x38(%rsp)
jmp 0x94244
movq 0x90(%rsp), %rdi
movq 0x38(%rsp), %rax
movq %rax, 0xa8(%rsp)
addq $0x8, %rdi
callq 0x8cfa0
movq %rax, 0x30(%rsp)
jmp 0x94269
movq 0x30(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x8cfd0
movb %al, 0x2f(%rsp)
jmp 0x94291
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0x9429e
jmp 0x94327
leaq 0x100(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x8d030
movq %rax, 0x20(%rsp)
jmp 0x942bf
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
addq $0x20, %rsi
callq 0x8350
jmp 0x942d4
leaq 0xa8(%rsp), %rdi
callq 0x8d050
movq %rax, 0x10(%rsp)
jmp 0x942e8
movq 0x10(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x948b0
movb %al, 0xf(%rsp)
jmp 0x94300
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x9430a
jmp 0x9430c
jmp 0x94327
leaq 0x100(%rsp), %rdi
leaq 0x1c632(%rip), %rsi     # 0xb094d
callq 0x8400
jmp 0x94322
jmp 0x94276
leaq 0x100(%rsp), %rdi
leaq 0x1e663(%rip), %rsi     # 0xb2999
callq 0x8400
jmp 0x9433d
movq 0x80(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x83e0
jmp 0x94354
leaq 0xf0(%rsp), %rdi
callq 0x8900
movq 0x88(%rsp), %rax
addq $0x288, %rsp            # imm = 0x288
retq
leaq 0xf0(%rsp), %rdi
callq 0x8900
jmp 0x94380
jmp 0x94382
movq 0xe8(%rsp), %rdi
callq 0x87d0
movq %rax, %rdi
callq 0x8cf60
nopw (%rax,%rax)