// File: 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
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rsi, -0x178(%rbp)
movq %rdi, -0x170(%rbp)
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
leaq 0xf0b9(%rip), %rdi      # 0x17528
callq 0x8b50
testb $0x1, %al
jne 0x847a
jmp 0x84a8
leaq 0xf1af(%rip), %rax      # 0x17630
testb $0x1, (%rax)
je 0x84a8
leaq -0x38(%rbp), %rdi
callq 0x51b0
movq -0x170(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x44f0
leaq -0x38(%rbp), %rdi
callq 0x4828
leaq -0x58(%rbp), %rdi
callq 0x4590
movq -0x178(%rbp), %rdi
callq 0x46f0
testb $0x1, %al
jne 0x84c6
jmp 0x85a3
testb $0x1, -0x11(%rbp)
je 0x852d
leaq 0xf15d(%rip), %rax      # 0x17630
testb $0x1, (%rax)
je 0x852d
leaq -0x78(%rbp), %rdi
callq 0xee30
jmp 0x84e3
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x44f0
leaq -0x78(%rbp), %rdi
callq 0x4828
leaq -0x58(%rbp), %rdi
callq 0x42c0
cmpq $0x0, %rax
jne 0x852b
movl $0x1, -0x88(%rbp)
jmp 0x8686
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x870a
jmp 0x85a1
movq -0x170(%rbp), %rsi
leaq -0xc8(%rbp), %rdi
callq 0x41b0
jmp 0x8542
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xef10
jmp 0x8557
leaq -0x58(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x44f0
leaq -0xa8(%rbp), %rdi
callq 0x4828
leaq -0xc8(%rbp), %rdi
callq 0x4828
jmp 0x85a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x4828
jmp 0x870a
jmp 0x85b7
movq -0x178(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x4050
jmp 0x85b5
jmp 0x85b7
leaq 0x7c47(%rip), %rsi      # 0x10205
leaq -0x128(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x60e0
jmp 0x85d0
leaq 0x7c34(%rip), %rdx      # 0x1020b
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x6090
jmp 0x85ec
movq -0x170(%rbp), %rdx
leaq -0xe8(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x5fc0
jmp 0x8608
leaq -0x108(%rbp), %rdi
callq 0x4828
leaq -0x128(%rbp), %rdi
callq 0x4828
movq -0x170(%rbp), %rdx
leaq -0x168(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x8b10
jmp 0x8639
leaq 0xef00(%rip), %rdi      # 0x17540
leaq -0x168(%rbp), %rsi
callq 0x8ae0
jmp 0x864e
leaq -0x168(%rbp), %rdi
callq 0x6850
leaq -0xe8(%rbp), %rdi
callq 0x41a0
movq %rax, %rdi
callq 0xe7a0
jmp 0x8670
leaq -0xe8(%rbp), %rdi
callq 0x4828
movl $0x0, -0x88(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x4828
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x86c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x4828
leaq -0x128(%rbp), %rdi
callq 0x4828
jmp 0x870a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x86fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x6850
leaq -0xe8(%rbp), %rdi
callq 0x4828
leaq -0x58(%rbp), %rdi
callq 0x4828
movq -0x80(%rbp), %rdi
callq 0x4730
nopl (%rax)