// File: mh0fm4[P]SCDC/test/demos/convert/compU.c
// Function: compU_run
void compU_run()
{
  const char *file_in = "porsche.stl";
  const char *file_out = "porsche.msh";
  const char *compS_uri = "scdc:/compS/convert";
  const char *compC_uri = "scdc:/compC";

  char s[256];

  scdc_dataset_input_t _inp, *inp = &_inp;
  scdc_dataset_output_t _outp, *outp = &_outp;

  /* step U1: put to compS */
  sprintf(s, "%s put %s", compS_uri, file_in);
  TRACE_F("cmd: '%s'", s);
  inp = scdc_dataset_input_create(inp, "file", file_in);
  scdc_dataset_cmd(SCDC_DATASET_NULL, s, inp, NULL);
  scdc_dataset_input_destroy(inp);

  /* step U2: convert on compC */
  sprintf(s, "%s convert %s/%s %s/%s", compC_uri, compS_uri, file_in, compS_uri, file_out);
  TRACE_F("cmd: '%s'", s);
  scdc_dataset_cmd(SCDC_DATASET_NULL, s, NULL, NULL);

  /* step U3: get from compS */
  sprintf(s, "%s get %s", compS_uri, file_out);
  TRACE_F("cmd: '%s'", s);
  outp = scdc_dataset_output_create(outp, "file", file_out);
  scdc_dataset_cmd(SCDC_DATASET_NULL, s, NULL, outp);
  scdc_dataset_output_destroy(outp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
leaq 0x7c3b3(%rip), %rax     # 0x8a0e5
movq %rax, -0x8(%rbp)
leaq 0x7c3b4(%rip), %rax     # 0x8a0f1
movq %rax, -0x10(%rbp)
leaq 0x7c3b5(%rip), %rax     # 0x8a0fd
movq %rax, -0x18(%rbp)
leaq 0x7c3be(%rip), %rax     # 0x8a111
movq %rax, -0x20(%rbp)
leaq -0x178(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq -0x1d8(%rbp), %rax
movq %rax, -0x1e0(%rbp)
leaq -0x120(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rcx
leaq 0x7c301(%rip), %rsi     # 0x8a08a
movb $0x0, %al
callq 0xc0f0
leaq 0x7c2b3(%rip), %rdi     # 0x8a04a
leaq 0x7c37f(%rip), %rsi     # 0x8a11d
movb $0x0, %al
callq 0xcd20
leaq -0x120(%rbp), %rsi
leaq 0x7c29a(%rip), %rdi     # 0x8a04d
movb $0x0, %al
callq 0xcd20
leaq 0x7c24f(%rip), %rdi     # 0x8a010
movb $0x0, %al
callq 0xcd20
movq -0x180(%rbp), %rdi
movq -0x8(%rbp), %rdx
leaq 0x7d881(%rip), %rsi     # 0x8b65b
movb $0x0, %al
callq 0x317a0
movq %rax, -0x180(%rbp)
leaq -0x120(%rbp), %rsi
movq -0x180(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdi
movb $0x0, %al
callq 0x10060
movq -0x180(%rbp), %rdi
callq 0x31920
leaq -0x120(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %r8
movq -0x18(%rbp), %r9
movq -0x10(%rbp), %rax
leaq 0x7c2f3(%rip), %rsi     # 0x8a125
movq %rax, (%rsp)
movb $0x0, %al
callq 0xc0f0
leaq 0x7c206(%rip), %rdi     # 0x8a04a
leaq 0x7c2d2(%rip), %rsi     # 0x8a11d
movb $0x0, %al
callq 0xcd20
leaq -0x120(%rbp), %rsi
leaq 0x7c1ed(%rip), %rdi     # 0x8a04d
movb $0x0, %al
callq 0xcd20
leaq 0x7c1a2(%rip), %rdi     # 0x8a010
movb $0x0, %al
callq 0xcd20
leaq -0x120(%rbp), %rsi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdi
movq %rcx, %rdx
movb $0x0, %al
callq 0x10060
leaq -0x120(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rcx
leaq 0x7c1a0(%rip), %rsi     # 0x8a043
movb $0x0, %al
callq 0xc0f0
leaq 0x7c199(%rip), %rdi     # 0x8a04a
leaq 0x7c265(%rip), %rsi     # 0x8a11d
movb $0x0, %al
callq 0xcd20
leaq -0x120(%rbp), %rsi
leaq 0x7c180(%rip), %rdi     # 0x8a04d
movb $0x0, %al
callq 0xcd20
leaq 0x7c135(%rip), %rdi     # 0x8a010
movb $0x0, %al
callq 0xcd20
movq -0x1e0(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq 0x7d767(%rip), %rsi     # 0x8b65b
movb $0x0, %al
callq 0x32dd0
movq %rax, -0x1e0(%rbp)
leaq -0x120(%rbp), %rsi
movq -0x1e0(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rdi
movb $0x0, %al
callq 0x10060
movq -0x1e0(%rbp), %rdi
callq 0x32ea0
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)