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

```asm
<getCoordsString>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  add    $0xffffffffffffff80,%rsp
  lea    D42(%rip),%r12
  movsd  %xmm1,(%rsp)
  mov    %rsi,%r13
  lea    0x70(%rsp),%rbp
  movsd  %xmm0,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x2078(%rsp)
  lea    D9(%rip),%rax
  mov    %rax,0x20(%rsp)
  call   <strdup@plt>
  movsd  0x8(%rsp),%xmm0
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    %rax,0x28(%rsp)
  lea    D77(%rip),%rax
  mov    %rax,0x30(%rsp)
  lea    D46(%rip),%rax
  mov    %rax,0x38(%rsp)
  lea    D22(%rip),%rax
  mov    %rax,0x40(%rsp)
  mov    $0x1,%eax
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <strdup@plt>
  movsd  (%rsp),%xmm1
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    %rax,0x48(%rsp)
  mov    $0x1,%eax
  lea    0x1070(%rsp),%r12
  movapd %xmm1,%xmm0
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <strdup@plt>
  mov    %r13,%rdx
  lea    D2(%rip),%rsi
  mov    %r12,%rdi
  mov    %rax,0x50(%rsp)
  lea    D71(%rip),%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x60(%rsp)
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <strdup@plt>
  lea    0x20(%rsp),%rdi
  mov    %rax,%rsi
  call   <wgrib22@plt>
  lea    D6(%rip),%rsi
  mov    %r12,%rdi
  call   <OpenFile@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rax,0x18(%rsp)
  call   <GetALine@plt>
  lea    0x18(%rsp),%rdi
  test   %rax,%rax
  jne    L6
  call   <CloseFile@plt>
  mov    %r12,%rdi
  call   <removeAFile@plt>
  xor    %eax,%eax
L8:
  mov    0x2078(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L0
  add    $0x2080,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L6:
  call   <CloseFile@plt>
  mov    %r12,%rdi
  call   <removeAFile@plt>
  mov    %rbp,%rdi
  call   <strdup@plt>
  jmp    L8
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D42
data_type: string
name: extract_symbolic_data
arguments: label: D9
data_type: string
name: extract_symbolic_data
arguments: label: D77
data_type: string
name: extract_symbolic_data
arguments: label: D46
data_type: string
name: extract_symbolic_data
arguments: label: D22
data_type: string
name: extract_symbolic_data
arguments: label: D2
data_type: string
name: extract_symbolic_data
arguments: label: D71
data_type: string
name: extract_symbolic_data
arguments: label: D6
data_type: string

tool: D42: %5.6f

tool: D9: wgrib2

tool: D77: -colon

tool: D46: ,

tool: D22: -lon

tool: D2: %s.txt

tool: D71: -end

tool: D6: r

assistant: ```c
char *getCoordsString(char *inputFileName, char *site, double longitude, double latitude) {
  int success = 0;
  char *grib_cargv[9], temp[4096], temp2[4096];
  grib_cargv[0] = "wgrib2";
  grib_cargv[1] = strdup(inputFileName);
  grib_cargv[2] = "-colon";
  grib_cargv[3] = ",";
  grib_cargv[4] = "-lon";
  sprintf(temp, "%5.6f", longitude);
  grib_cargv[5] = strdup(temp);
  sprintf(temp, "%5.6f", latitude);
  grib_cargv[6] = strdup(temp);
  grib_cargv[7] = "-end";
  grib_cargv[8] = NULL;
  sprintf(temp2, "%s.txt", site);
  wgrib22(grib_cargv, strdup(temp2));
  FILE *dailyCoordsFile = OpenFile(temp2, "r");
  if (GetALine(dailyCoordsFile, temp))
    success = 1;
  CloseFile(&dailyCoordsFile);
  removeAFile(temp2);
  if (success == 1)
    return strdup(temp);
  return NULL;
}
```