// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun.cc
// Function: scdc_dataprov_jobrun::do_cmd_ls(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, _scdc_dataset_inout_t*, _scdc_dataset_inout_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool scdc_dataprov_jobrun::do_cmd_ls(const std::string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  stringstream ss;

  pthread_mutex_lock(&sched_lock);
  for (jobs_t::iterator i = jobs.begin(); i != jobs.end(); ++i)
  {
    string state;

    get_job_state(i->first, state, true);

    ss << i->first << ":" << i->second.params.nt_min << "-" << i->second.params.nt_max << ":" << i->second.params.np_min << "-" << i->second.params.np_max << ":" << state << ",";
  }
  pthread_mutex_unlock(&sched_lock);

  string s = ss.str();

  if (s.size() > 0) s.resize(s.size() - 1);

  result = s;

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %r8, 0x20(%rsp)
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
callq 0xb360
leaq 0x190(%r14), %rdi
movq %rdi, 0x28(%rsp)
callq 0xb7d0
movq 0x140(%r14), %r12
leaq 0x130(%r14), %r13
cmpq %r13, %r12
je 0x4e334
leaq 0x1c15e(%rip), %rbx     # 0x6a364
leaq 0x1ea9e(%rip), %r15     # 0x6ccab
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x20(%r12), %rsi
movq %r14, %rdi
movq %rsp, %rdx
movl $0x1, %ecx
callq 0x4e414
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
leaq 0x40(%rsp), %rdi
callq 0xb5f0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb5f0
movq 0x40(%r12), %rsi
movq %rbp, %rdi
callq 0xb1d0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0xb5f0
movq 0x48(%r12), %rsi
movq %rbp, %rdi
callq 0xb1d0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb5f0
movq 0x50(%r12), %rsi
movq %rbp, %rdi
callq 0xb1d0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0xb5f0
movq 0x58(%r12), %rsi
movq %rbp, %rdi
callq 0xb1d0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb5f0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0xb5f0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c5b1(%rip), %rsi     # 0x6a8b1
callq 0xb5f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4e320
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r12, %rdi
callq 0xb350
movq %rax, %r12
cmpq %r13, %rax
jne 0x4e20d
movq 0x28(%rsp), %rdi
callq 0xb3b0
leaq 0x48(%rsp), %rsi
movq %rsp, %rdi
callq 0xb8c0
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x4e362
decq %rsi
movq %rsp, %rdi
xorl %edx, %edx
callq 0xb130
movq %rsp, %rsi
movq 0x20(%rsp), %rdi
callq 0xb2c0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e38a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x3dc1f(%rip), %rsi     # 0x8bfb0
leaq 0x30(%rsp), %rdi
callq 0xb390
leaq 0xb0(%rsp), %rdi
callq 0xb180
movb $0x1, %al
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x4e3ed
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x4e3db
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4e3ed
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x3dbbc(%rip), %rsi     # 0x8bfb0
leaq 0x30(%rsp), %rdi
callq 0xb390
leaq 0xb0(%rsp), %rdi
callq 0xb180
movq %rbx, %rdi
callq 0xb9c0
nop