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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D31(%rip),%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movl   $0x439520c5,0x1c(%rsp)
  movl   $0x0,0x28(%rsp)
  movl   $0x1,0x2c(%rsp)
  movl   $0xb,0x30(%rsp)
  movl   $0x0,0x34(%rsp)
  call   <setpar@plt>
  lea    0x34(%rsp),%rdx
  lea    D14(%rip),%rsi
  lea    D25(%rip),%rdi
  call   <getpar@plt>
  lea    0x8(%rsp),%rdx
  mov    %rbp,%rsi
  lea    D2(%rip),%rdi
  call   <mstpar@plt>
  lea    0xc(%rsp),%rdx
  mov    %rbp,%rsi
  lea    D6(%rip),%rdi
  call   <mstpar@plt>
  xor    %eax,%eax
  call   <endpar@plt>
  cmpl   $0x1,0x34(%rsp)
  je     L14
  lea    0x20(%rsp),%rbx
  lea    0x1c(%rsp),%rsi
  movl   $0x42dea398,0x24(%rsp)
  mov    %rbx,%rdi
  call   <set_g2@plt>
  movss  D41(%rip),%xmm0
  mulss  0xc(%rsp),%xmm0
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm0
  call   <geocen@plt>
  lea    0x24(%rsp),%rcx
  lea    0x14(%rsp),%rdx
  lea    0x18(%rsp),%rsi
  lea    0x10(%rsp),%rdi
  mov    %rbx,%r8
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x10(%rsp)
  call   <latlon2km@plt>
L68:
  mov    %rsp,%r12
  lea    0x4(%rsp),%rbp
  lea    0x2c(%rsp),%r15
  lea    D78(%rip),%rbx
  lea    0x30(%rsp),%r14
  lea    D46(%rip),%r13
  jmp    L3
  cs nopw 0x0(%rax,%rax,1)
L27:
  divss  0x14(%rsp),%xmm0
  divss  0x18(%rsp),%xmm1
  addss  0x8(%rsp),%xmm0
  addss  0xc(%rsp),%xmm1
L64:
  mov    %r13,%rdi
  call   <printf@plt>
L3:
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L69
  cmpl   $0x1,0x34(%rsp)
  movss  (%rsp),%xmm0
  movss  0x4(%rsp),%xmm1
  jne    L27
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm1
  lea    0x60(%rsp),%rcx
  mulsd  D49(%rip),%xmm0
  lea    0x58(%rsp),%rdx
  lea    0x50(%rsp),%rsi
  mov    %r15,%r9
  mov    %r14,%r8
  mulsd  D49(%rip),%xmm1
  addsd  0x38(%rsp),%xmm0
  lea    0x48(%rsp),%rdi
  addsd  0x40(%rsp),%xmm1
  movsd  %xmm0,0x58(%rsp)
  movsd  %xmm1,0x60(%rsp)
  call   <geoutm_@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsd2ss 0x48(%rsp),%xmm0
  cvtsd2ss 0x50(%rsp),%xmm1
  jmp    L64
  nopl   (%rax)
L69:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L14:
  pxor   %xmm0,%xmm0
  lea    0x40(%rsp),%rcx
  lea    0x38(%rsp),%rdx
  cvtss2sd 0x8(%rsp),%xmm0
  lea    0x50(%rsp),%rsi
  movsd  %xmm0,0x48(%rsp)
  lea    0x48(%rsp),%rdi
  pxor   %xmm0,%xmm0
  lea    0x28(%rsp),%r9
  lea    0x30(%rsp),%r8
  cvtss2sd 0xc(%rsp),%xmm0
  movsd  %xmm0,0x50(%rsp)
  call   <geoutm_@plt>
  jmp    L68
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D31
datatype: string
name: parse_data
arguments: label: D14
datatype: string
name: parse_data
arguments: label: D25
datatype: string
name: parse_data
arguments: label: D2
datatype: string
name: parse_data
arguments: label: D6
datatype: string
name: parse_data
arguments: label: D41
datatype: f32
name: parse_data
arguments: label: D78
datatype: string
name: parse_data
arguments: label: D46
datatype: string
name: parse_data
arguments: label: D49
datatype: f64

tool: D31: f

tool: D14: d

tool: D25: utm

tool: D2: ref_lon

tool: D6: ref_lat

tool: D41: 0.017453292

tool: D78: %f %f

tool: D46: %.5f %.5f


tool: D49: 1000

assistant: ```c
main(int ac, char **av) {
  FILE *fpw, *fpr, *fopfile();
  float rlon, rlat, east, nort, ref_lon, ref_lat;
  float latavg, kmlon, kmlat;
  float rperd = 0.017453292;
  float erad = 6378.139;
  float fc = 298.256;
  float g2, radc;
  double geocen();
  double xr0, yr0, dlon, dlat, dxr, dyr;
  int geo2utm = 0;
  int utm2geo = 1;
  int utm_zone = 11;
  int utm = 0;
  setpar(ac, av);
  getpar("utm", "d", &utm);
  mstpar("ref_lon", "f", &ref_lon);
  mstpar("ref_lat", "f", &ref_lat);
  endpar();
  if (utm == 1) {
    dlon = ref_lon;
    dlat = ref_lat;
    geoutm_(&dlon, &dlat, &xr0, &yr0, &utm_zone, &geo2utm);
  } else {
    radc = 6378.139 * 0.017453292;
    set_g2(&g2, &fc);
    latavg = geocen(ref_lat * rperd);
    latlon2km(&latavg, &kmlat, &kmlon, &radc, &g2);
  }
  while (scanf("%f %f", &nort, &east) == 2) {
    if (utm == 1) {
      dxr = xr0 + 1000.0 * east;
      dyr = yr0 + 1000.0 * nort;
      geoutm_(&dlon, &dlat, &dxr, &dyr, &utm_zone, &utm2geo);
      rlon = dlon;
      rlat = dlat;
    } else {
      rlon = ref_lon + east / kmlon;
      rlat = ref_lat + nort / kmlat;
    }
    printf("%.5f %.5f\n", rlon, rlat);
  }
}
```