// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun_relay.cc
// Function: scdc_dataprov_jobrun_relay::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_relay::do_cmd_ls(const std::string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  SCDC_TRACE("do_cmd_ls: params: '" << params << "'");

  string s;

  for (sched_jobs_t::iterator i = sched_jobs.begin(); i != sched_jobs.end(); ++i)
  {
    s += i->first + ":unknown:" + i->second + ",";
  }

  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 $0x88, %rsp
movq %r8, 0x80(%rsp)
movq %rdi, %r14
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x110(%rdi), %r15
addq $0x100, %r14            # imm = 0x100
cmpq %r14, %r15
je 0x58592
leaq 0x70(%rsp), %rbp
leaq 0x50(%rsp), %rbx
leaq 0x10(%rsp), %r13
leaq 0x60(%rsp), %r12
movq %rbp, 0x60(%rsp)
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x1d19a
movq %r12, %rdi
leaq 0x14ed6(%rip), %rsi     # 0x6d355
callq 0xba60
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
movq %r12, %rdi
callq 0xb150
movq %rbx, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x584b7
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x584bd
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x123b0(%rip), %rsi     # 0x6a891
callq 0xba60
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x58507
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5850f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0xb150
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x58550
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x58567
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5857e
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r15, %rdi
callq 0xb350
movq %rax, %r15
cmpq %r14, %rax
jne 0x5845d
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x585ab
decq %rsi
leaq 0x20(%rsp), %rdi
xorl %edx, %edx
callq 0xb130
leaq 0x20(%rsp), %rsi
movq 0x80(%rsp), %rdi
callq 0xb2c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x585d9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movb $0x1, %al
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x585ef
movq %rax, %r14
jmp 0x58647
jmp 0x585f6
movq %rax, %r14
jmp 0x58630
movq %rax, %r14
jmp 0x58619
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x58619
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x58630
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x58647
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x58663
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0xb9c0
nop