// File: /workspace/github_cpp_makefile_star2_O1/Linkerist[P]xs/src/io.cc
// Function: add_to_default_list(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void
add_to_default_list(string path, string desc, bool ask_for_desc)
{
 if (cur_list.empty() && curses_running)
  path = get_cwd_as_string();

 // get the description (either from user or generic)
 string __desc;

 if (desc.empty()) {
  if (ask_for_desc && curses_running) {
   __desc = get_desc_from_user();
   if (__desc.size() == 0)
    return;
  } else
   __desc = last_dirname(path);
 } else
  __desc = desc;

 string msg = "added :" + __desc + ":" + path;
 default_list.push_back(make_pair(__desc, path));
 message(msg.c_str());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc0, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x82d0(%rip), %rax      # 0xe478
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
jne 0x61ed
leaq 0x83c8(%rip), %rax      # 0xe580
cmpb $0x1, (%rax)
jne 0x61ed
movq %rsp, %r15
movq %r15, %rdi
callq 0x40a1
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3430
movq (%r15), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x61ed
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3350
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
cmpq $0x0, 0x8(%r14)
je 0x621b
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x31e0
jmp 0x62ea
testb %bpl, %bpl
je 0x626f
leaq 0x8359(%rip), %rax      # 0xe580
cmpb $0x1, (%rax)
jne 0x626f
movq %rsp, %rdi
callq 0x97cf
leaq 0x40(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x3430
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x625e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3350
cmpq $0x0, 0x48(%rsp)
jne 0x62ea
jmp 0x645a
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0x4a20
movq %rsp, %rdi
leaq 0x80(%rsp), %rsi
callq 0x9867
leaq 0x40(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x3430
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x62cd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3350
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x62ea
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x3350
leaq 0x3f2d(%rip), %rsi      # 0xa21e
leaq 0xa0(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x493d
leaq 0x3f1a(%rip), %rsi      # 0xa224
leaq 0xa0(%rsp), %rdi
callq 0x3680
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x633e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x6346
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x3110
leaq 0x70(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6393
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x639a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x63c8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3350
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63e9
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3350
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x6938
leaq 0x8090(%rip), %rdi      # 0xe490
movq %rsp, %rsi
callq 0x69cc
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6423
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3350
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6439
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3350
movq 0x60(%rsp), %rdi
callq 0x924b
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x645a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3350
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x6471
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3350
addq $0xc0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6508
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x650b
movq 0x90(%rsp), %rsi
jmp 0x64fe
jmp 0x6508
jmp 0x6508
jmp 0x64b3
movq %rax, %rbx
movq %rsp, %rdi
callq 0x689e
jmp 0x64b6
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x650b
movq 0x70(%rsp), %rsi
jmp 0x64fe
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x64e5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3350
jmp 0x64e5
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x650b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3350
jmp 0x650b
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x6522
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3350
movq %rbx, %rdi
callq 0x3620