user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    $0x138a,%edx
  lea    D15(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  lea    D58(%rip),%rbx
  mov    %rbx,%rdi
  call   <WSQ_Init@plt>
  lea    D68(%rip),%rdi
  call   <WSQ_SetQueryName@plt>
  mov    $0x0,%eax
  call   <WSQ_Pause@plt>
  lea    D52(%rip),%rdi
  call   <printf@plt>
  mov    $0x3e9,%edi
  call   <WSQ_BeginTransaction@plt>
  mov    $0x65,%edi
  call   <WSQ_BeginSubgraph@plt>
  lea    D49(%rip),%r8
  lea    D97(%rip),%rbp
  mov    %rbp,%rcx
  mov    %rbx,%rdx
  lea    D72(%rip),%rsi
  mov    $0x1,%edi
  call   <WSQ_AddOp@plt>
  mov    %r12,%r8
  mov    %rbx,%rcx
  mov    %rbp,%rdx
  lea    D18(%rip),%rsi
  mov    $0x2,%edi
  call   <WSQ_AddOp@plt>
  mov    $0x0,%eax
  call   <WSQ_EndSubgraph@plt>
  mov    $0x0,%eax
  call   <WSQ_EndTransaction@plt>
  test   %eax,%eax
  je     L28
L3:
  mov    $0x0,%eax
  call   <WSQ_Shutdown@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L21
  mov    $0x0,%eax
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L28:
  lea    D22(%rip),%rdi
  call   <printf@plt>
  lea    0x80(%rsp),%rdi
  lea    D21(%rip),%rsi
  mov    $0x2d,%ecx
  rep movsb %ds:(%rsi),%es:(%rdi)
  lea    0xad(%rsp),%rdi
  mov    $0x53,%ecx
  mov    $0x0,%eax
  rep stos %al,%es:(%rdi)
  lea    0x80(%rsp),%rdi
  call   <system@plt>
  jmp    L3
L21:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D15
data_type: string
name: disassemble_data
arguments: data_label: D58
data_type: string
name: disassemble_data
arguments: data_label: D68
data_type: string
name: disassemble_data
arguments: data_label: D52
data_type: string
name: disassemble_data
arguments: data_label: D49
data_type: string
name: disassemble_data
arguments: data_label: D97
data_type: string
name: disassemble_data
arguments: data_label: D72
data_type: string
name: disassemble_data
arguments: data_label: D18
data_type: string
name: disassemble_data
arguments: data_label: D22
data_type: string
name: disassemble_data
arguments: data_label: D21
data_type: string

tool: D15: localhost | %d

tool: 

tool: D68: proc1query

tool: D52: PAUSING WSQ engine, run compiled query manually...


tool: D49: -1 |foobar.schema|taq_10lines.dat

tool: D97: 1

tool: D72: ASCIIFileSource

tool: D18: ConnectRemoteOut

tool: D22: pid is 000000000000


tool: D21: WSQ_OPTLVL=3 WSQ_MAXSPEED=1 ./proc1query.exe

assistant: ```c
int main(int argc, char *argv[]) {
  char addr[128];
  sprintf(addr, "localhost | %d", 5002);
  WSQ_Init("");
  WSQ_SetQueryName("proc1query");
  WSQ_Pause();
  printf("PAUSING WSQ engine, run compiled query manually...\n");
  WSQ_BeginTransaction(1001);
  WSQ_BeginSubgraph(101);
  WSQ_AddOp(1, "ASCIIFileSource", "", "1", "-1 |foobar.schema|taq_10lines.dat");
  WSQ_AddOp(2, "ConnectRemoteOut", "1", "", addr);
  WSQ_EndSubgraph();
  int pid = WSQ_EndTransaction();
  if (pid == 0) {
    printf("pid is 000000000000\n");
    char cmd[128] = "WSQ_OPTLVL=3 WSQ_MAXSPEED=1 ./proc1query.exe";
    system(cmd);
  }
  WSQ_Shutdown();
  return 0;
}
```