user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r13
  lea    D115(%rip),%rdi
  push   %r12
  lea    D150(%rip),%r12
  sub    $0x898,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x888(%rsp)
  xor    %eax,%eax
  lea    0x80(%rsp),%r13
  call   <printf@plt>
  mov    $0x138a,%edx
  lea    D100(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <WSQ_Init@plt>
  lea    D94(%rip),%rdi
  call   <WSQ_SetQueryName@plt>
  xor    %eax,%eax
  call   <WSQ_Pause@plt>
  lea    D139(%rip),%rdi
  call   <printf@plt>
  mov    $0x3e9,%edi
  call   <WSQ_BeginTransaction@plt>
  mov    $0x65,%edi
  call   <WSQ_BeginSubgraph@plt>
  lea    D56(%rip),%r8
  mov    %r12,%rdx
  lea    D3(%rip),%rcx
  lea    D14(%rip),%rsi
  mov    $0x64,%edi
  call   <WSQ_AddOp@plt>
  mov    %r13,%r8
  mov    %r12,%rdx
  mov    $0x65,%edi
  lea    D167(%rip),%rcx
  lea    D161(%rip),%rsi
  call   <WSQ_AddOp@plt>
  lea    D75(%rip),%r13
  lea    D118(%rip),%r8
  mov    $0x66,%edi
  mov    %r13,%rcx
  lea    D68(%rip),%rdx
  lea    D128(%rip),%rsi
  call   <WSQ_AddOp@plt>
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    $0x67,%edi
  lea    D111(%rip),%r8
  lea    D173(%rip),%rsi
  call   <WSQ_AddOp@plt>
  xor    %eax,%eax
  call   <WSQ_EndSubgraph@plt>
  xor    %eax,%eax
  call   <WSQ_EndTransaction@plt>
  test   %eax,%eax
  je     L28
L19:
  xor    %eax,%eax
  call   <WSQ_Shutdown@plt>
  mov    0x888(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x898,%rsp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  ret
L28:
  lea    D112(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rdi
  mov    $0x3b,%ecx
  xor    %eax,%eax
  lea    D130(%rip),%rsi
  rep movsb %ds:(%rsi),%es:(%rdi)
  mov    $0x45,%ecx
  rep stos %al,%es:(%rdi)
  mov    %rsp,%rdi
  call   <system@plt>
  jmp    L19
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D115
data_type: string
name: parse_data
arguments: tag: D150
data_type: string
name: parse_data
arguments: tag: D100
data_type: string
name: parse_data
arguments: tag: D94
data_type: string
name: parse_data
arguments: tag: D139
data_type: string
name: parse_data
arguments: tag: D56
data_type: string
name: parse_data
arguments: tag: D3
data_type: string
name: parse_data
arguments: tag: D14
data_type: string
name: parse_data
arguments: tag: D167
data_type: string
name: parse_data
arguments: tag: D161
data_type: string
name: parse_data
arguments: tag: D75
data_type: string
name: parse_data
arguments: tag: D118
data_type: string
name: parse_data
arguments: tag: D68
data_type: string
name: parse_data
arguments: tag: D128
data_type: string
name: parse_data
arguments: tag: D111
data_type: string
name: parse_data
arguments: tag: D173
data_type: string
name: parse_data
arguments: tag: D112
data_type: string
name: parse_data
arguments: tag: D130
data_type: string

tool: D115: Proc2 starting.


tool: 

tool: D100: localhost | %d | string SYM, float TIME, float PRICE, int VOLUME

tool: D94: proc2query

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


tool: D56: 1000 |foobar.schema

tool: D3: 100

tool: D14: RandomSource

tool: D167: 101

tool: D161: ConnectRemoteIn

tool: D75: 102

tool: D118: TIME

tool: D68: 100 101

tool: D128: MergeMonotonic

tool: D111: NETSTRM: 

tool: D173: Printer

tool: D112: pid is 000000000000


tool: D130: WSQ_OPTLVL=3 WSQ_MAXSPEED=1 WSQ_VERBOSE=3 ./proc2query.exe

assistant: ```c
int main(int argc, char *argv[]) {
  printf("Proc2 starting.\n");
  char strargs[2048];
  sprintf(strargs, "localhost | %d | string SYM, float TIME, float PRICE, int VOLUME", 5002);
  WSQ_Init("");
  WSQ_SetQueryName("proc2query");
  WSQ_Pause();
  printf("PAUSING WSQ engine, run compiled query manually...\n");
  WSQ_BeginTransaction(1001);
  WSQ_BeginSubgraph(101);
  WSQ_AddOp(100, "RandomSource", "", "100", "1000 |foobar.schema");
  WSQ_AddOp(101, "ConnectRemoteIn", "", "101", strargs);
  WSQ_AddOp(102, "MergeMonotonic", "100 101", "102", "TIME");
  WSQ_AddOp(103, "Printer", "102", "", "NETSTRM: ");
  WSQ_EndSubgraph();
  int pid = WSQ_EndTransaction();
  if (pid == 0) {
    printf("pid is 000000000000\n");
    char cmd[128] = "WSQ_OPTLVL=3 WSQ_MAXSPEED=1 WSQ_VERBOSE=3 ./proc2query.exe";
    system(cmd);
  }
  WSQ_Shutdown();
  return 0;
}
```