user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r13
  lea    D66(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1a8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x198(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D128(%rip),%rdi
  call   <getenv@plt>
  test   %rax,%rax
  je     L58
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    %eax,%ebx
  cmp    $0xd,%eax
  jg     L20
L118:
  mov    0x198(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x1a8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L20:
  lea    0x10(%rsp),%r12
  xor    %esi,%esi
  mov    $0x40,%edx
  mov    %r12,%rdi
  call   <memset@plt>
  mov    $0x40,%eax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  cmp    %eax,%ebx
  lea    0x4(%rsp),%rbp
  cmovle %ebx,%eax
  mov    %eax,%edx
  call   <memcpy@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movw   $0x3d,0x4(%rsp)
  call   <strtok@plt>
  test   %rax,%rax
  je     L118
  mov    %rbp,%rsi
  xor    %edi,%edi
  call   <strtok@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L118
  lea    0x6(%rsp),%r13
  mov    %rax,%rdi
  lea    0x90(%rsp),%r12
  call   <strlen@plt>
  xor    %esi,%esi
  mov    $0xa,%edx
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <memset@plt>
  mov    $0xa,%eax
  mov    %rbp,%rsi
  mov    %r13,%rdi
  cmp    %eax,%ebx
  lea    0x50(%rsp),%rbp
  cmovle %ebx,%eax
  mov    %eax,%edx
  call   <memcpy@plt>
  xor    %esi,%esi
  mov    $0x100,%edx
  mov    %r12,%rdi
  call   <memset@plt>
  mov    %r13,%rdx
  lea    D77(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    $0x40,%edx
  call   <memset@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <curlGetValue@plt>
  test   %eax,%eax
  jne    L118
  lea    D20(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L139
  lea    D11(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L7
  lea    D76(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L6
  lea    D112(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L110
  lea    D88(%rip),%rdi
  call   <printf@plt>
  jmp    L118
L58:
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L118
L6:
  lea    D114(%rip),%rdi
  call   <printf@plt>
  jmp    L118
L139:
  lea    D105(%rip),%rdi
  call   <printf@plt>
  jmp    L118
L7:
  lea    D68(%rip),%rdi
  call   <printf@plt>
  jmp    L118
L110:
  lea    D23(%rip),%rdi
  call   <printf@plt>
  jmp    L118
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D66
type_infered: string
name: extract_symbolic_data
arguments: label: D128
type_infered: string
name: extract_symbolic_data
arguments: label: D77
type_infered: string
name: extract_symbolic_data
arguments: label: D20
type_infered: string
name: extract_symbolic_data
arguments: label: D11
type_infered: string
name: extract_symbolic_data
arguments: label: D76
type_infered: string
name: extract_symbolic_data
arguments: label: D112
type_infered: string
name: extract_symbolic_data
arguments: label: D88
type_infered: string
name: extract_symbolic_data
arguments: label: D6
type_infered: string
name: extract_symbolic_data
arguments: label: D114
type_infered: string
name: extract_symbolic_data
arguments: label: D105
type_infered: string
name: extract_symbolic_data
arguments: label: D68
type_infered: string
name: extract_symbolic_data
arguments: label: D23
type_infered: string

tool: D66: Content-Type: text/plain;charset=us-ascii



tool: D128: QUERY_STRING

tool: D77: http://rest:9000/getOrderValue?order=%s&parameter=stripe-customer-error%s

tool: D20: declined

tool: D11: network

tool: D76: other

tool: D112: internal

tool: D88: Internal Error, please contact marion@marionsworkshop.com for more details


tool: D6: Internal problem detected


tool: D114: Payment error, please contact marion@marionsworkshop.com for more details


tool: D105: Card declined, cannot be charged


tool: D68: Network error, cannot reach payment center


tool: D23: Please contact marion@marionsworkshop.com for more details


assistant: ```c
int main(int argc, char **argv) {
  printf("Content-Type: text/plain;charset=us-ascii\n\n");
  char *data = NULL;
  int len;
  data = getenv("QUERY_STRING");
  if (!data) {
    printf("Internal problem detected\n");
    return 0;
  }
  len = strlen(data);
  if (len < 14)
    goto end;
  if (len > 64)
    len = 64;
  char buffer[64];
  memset(buffer, 0, 64);
  memcpy(buffer, data, len);
  const char s[2] = "=";
  char *token;
  token = strtok(buffer, s);
  if (!token)
    goto end;
  token = strtok(NULL, s);
  if (!token)
    goto end;
  char order[10];
  int size = 0;
  size = strlen(token);
  if (size > 10)
    size = 10;
  memset(order, 0, 10);
  memcpy(order, token, size);
  char url[256];
  memset(url, 0, 256);
  sprintf(url, "http://rest:9000/getOrderValue?order=%s&parameter=stripe-customer-error%s", order);
  int res;
  char result[64];
  memset(result, 0, 64);
  res = curlGetValue(url, result);
  if (res)
    goto end;
  if (!strcmp(result, "declined"))
    printf("Card declined, cannot be charged\n");
  else if (!strcmp(result, "network"))
    printf("Network error, cannot reach payment center\n");
  else if (!strcmp(result, "other"))
    printf("Payment error, please contact marion@marionsworkshop.com for more details\n");
  else if (!strcmp(result, "internal"))
    printf("Internal Error, please contact marion@marionsworkshop.com for more details\n");
  else
    printf("Please contact marion@marionsworkshop.com for more details\n");
end:
  return 0;
}
```