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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmp    $0x5,%edi
  jle    L438
L321:
  mov    0x28(%rbx),%rdi
  call   <atof@plt>
  movsd  %xmm0,-0xd0(%rbp)
  mov    0x30(%rbx),%rdi
  call   <atof@plt>
  movsd  %xmm0,-0xd8(%rbp)
  mov    0x20(%rbx),%rdi
  call   <atoi@plt>
  mov    0x8(%rbx),%rdi
  mov    $0x2,%edx
  lea    D64(%rip),%r12
  mov    %r12,%rsi
  call   <openfile_or_exit@plt>
  mov    %rax,%rdi
  lea    -0x70(%rbp),%rcx
  lea    -0x88(%rbp),%rdx
  lea    -0x84(%rbp),%rsi
  lea    -0x68(%rbp),%r8
  call   <read_slap@plt>
  mov    0x10(%rbx),%rdi
  mov    $0x2,%edx
  mov    %r12,%rsi
  call   <openfile_or_exit@plt>
  mov    %rax,%rdi
  lea    -0x60(%rbp),%rcx
  lea    -0x80(%rbp),%rdx
  lea    -0x7c(%rbp),%rsi
  lea    -0x58(%rbp),%r8
  call   <read_slap@plt>
  mov    0x18(%rbx),%rdi
  mov    $0x2,%edx
  mov    %r12,%rsi
  call   <openfile_or_exit@plt>
  mov    %rax,%rdi
  lea    -0x50(%rbp),%rcx
  lea    -0x78(%rbp),%rdx
  lea    -0x74(%rbp),%rsi
  lea    -0x40(%rbp),%r9
  lea    -0x48(%rbp),%r8
  call   <read_slap_w@plt>
  mov    -0x78(%rbp),%r11d
  lea    0x1(%r11),%edx
  shl    $0x2,%rdx
  lea    0xf(%rdx),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  mov    %rsp,%rcx
  sub    %rsi,%rcx
L382:
  cmp    %rcx,%rsp
  je     L38
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L382
L438:
  mov    (%rsi),%rsi
  lea    D74(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L321
L38:
  mov    %rax,%rcx
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L96
  orq    $0x0,-0x8(%rsp,%rcx,1)
L96:
  mov    %rsp,%r15
  lea    0xf(%rdx),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L317:
  cmp    %rdx,%rsp
  je     L26
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L317
L26:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L276
  orq    $0x0,-0x8(%rsp,%rdx,1)
L276:
  mov    %rsp,%r13
  mov    %r13,-0xb0(%rbp)
  mov    -0x88(%rbp),%r8d
  mov    -0x68(%rbp),%r10
  mov    %r8d,%eax
  lea    (%r10,%rax,4),%r12
  mov    -0x80(%rbp),%edi
  mov    -0x58(%rbp),%r9
  mov    %edi,%eax
  lea    (%r9,%rax,4),%rbx
  mov    %r11d,%esi
  mov    $0x0,%eax
  jmp    L377
L104:
  mov    (%r12),%ecx
  jmp    L59
L336:
  mov    (%rbx),%edx
L236:
  mov    %edx,0x0(%r13,%rax,4)
  lea    0x1(%rax),%rdx
  cmp    %rsi,%rax
  je     L199
  mov    %rdx,%rax
L377:
  mov    %eax,%edx
  cmp    %eax,%r8d
  jb     L104
  mov    (%r10,%rax,4),%ecx
L59:
  mov    %ecx,(%r15,%rax,4)
  cmp    %edx,%edi
  jb     L336
  mov    (%r9,%rax,4),%edx
  jmp    L236
L199:
  shl    $0x3,%rsi
  lea    0xf(%rsi),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L9:
  cmp    %rdx,%rsp
  je     L456
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L9
L456:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L239
  orq    $0x0,-0x8(%rsp,%rdx,1)
L239:
  mov    %rsp,-0xe0(%rbp)
  lea    0xf(%rsi),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L216:
  cmp    %rdx,%rsp
  je     L251
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L216
L251:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L358
  orq    $0x0,-0x8(%rsp,%rdx,1)
L358:
  mov    %rsp,-0xe8(%rbp)
  lea    0xf(%rsi),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L148:
  cmp    %rdx,%rsp
  je     L4
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L148
L4:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L357
  orq    $0x0,-0x8(%rsp,%rdx,1)
L357:
  mov    %rsp,-0xf0(%rbp)
  test   %r11d,%r11d
  je     L301
  movq   $0x0,-0xc8(%rbp)
  jmp    L268
L163:
  movsd  -0xd0(%rbp),%xmm0
  mov    %ebx,%edi
  call   <pow@plt>
  pxor   %xmm7,%xmm7
  cvtsi2sd %eax,%xmm7
  movsd  %xmm7,-0xa0(%rbp)
  test   %r12d,%r12d
  jle    L348
  movsd  -0xd8(%rbp),%xmm0
  mov    %r12d,%edi
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xa8(%rbp),%xmm0
  mulsd  -0xa0(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movapd %xmm0,%xmm4
  mulsd  %xmm1,%xmm4
  movsd  -0x98(%rbp),%xmm2
  addsd  %xmm4,%xmm2
  movsd  %xmm2,-0x98(%rbp)
  movsd  %xmm4,-0xa0(%rbp)
  movapd %xmm4,%xmm0
  call   <log@plt>
  mulsd  -0xa0(%rbp),%xmm0
  addsd  -0xc0(%rbp),%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  jmp    L209
L200:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,-0xc0(%rbp)
  movsd  %xmm7,-0x98(%rbp)
L102:
  mov    -0xe0(%rbp),%rsi
  mov    -0xc8(%rbp),%rax
  movsd  -0x98(%rbp),%xmm5
  movsd  %xmm5,(%rsi,%rax,8)
  mov    -0xe8(%rbp),%rsi
  movsd  -0xc0(%rbp),%xmm7
  movsd  %xmm7,(%rsi,%rax,8)
  mov    0x4(%r15,%rax,4),%r12d
  sub    (%r15,%rax,4),%r12d
  mov    -0xb0(%rbp),%rdx
  mov    0x4(%rdx,%rax,4),%ebx
  sub    (%rdx,%rax,4),%ebx
  lea    (%r12,%rbx,1),%eax
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  movsd  %xmm6,-0x98(%rbp)
  divsd  %xmm6,%xmm0
  cvttsd2si %xmm0,%edi
  mov    D26(%rip),%rax
  movq   %rax,%xmm0
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  divsd  -0x98(%rbp),%xmm0
  cvttsd2si %xmm0,%edi
  mov    D26(%rip),%rax
  movq   %rax,%xmm0
  call   <pow@plt>
  mov    D55(%rip),%r13
  test   %r12d,%r12d
  jg     L174
L90:
  pxor   %xmm0,%xmm0
  test   %ebx,%ebx
  jg     L428
L346:
  movq   %r13,%xmm5
  mulsd  %xmm0,%xmm5
  mov    -0xf0(%rbp),%rax
  mov    -0xc8(%rbp),%rsi
  movsd  %xmm5,(%rax,%rsi,8)
  mov    -0x78(%rbp),%eax
  add    $0x1,%rsi
  mov    %rsi,-0xc8(%rbp)
  cmp    %esi,%eax
  jbe    L23
L268:
  mov    -0x48(%rbp),%rdx
  mov    -0xc8(%rbp),%rsi
  lea    0x0(,%rsi,4),%rax
  mov    (%rdx,%rsi,4),%r14d
  lea    0x4(%rax),%rsi
  mov    %rsi,-0xb8(%rbp)
  cmp    0x4(%rdx,%rax,1),%r14d
  jae    L200
  movslq %r14d,%r13
  shl    $0x2,%r13
  pxor   %xmm2,%xmm2
  movsd  %xmm2,-0xc0(%rbp)
  movsd  %xmm2,-0x98(%rbp)
  jmp    L351
L174:
  movsd  -0xd0(%rbp),%xmm0
  mov    %r12d,%edi
  call   <pow@plt>
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  movq   %xmm6,%r13
  jmp    L90
L428:
  movsd  -0xd8(%rbp),%xmm0
  mov    %ebx,%edi
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  jmp    L346
L23:
  test   %eax,%eax
  je     L376
  lea    -0x1(%rax),%r13d
  mov    $0x0,%ebx
  pxor   %xmm1,%xmm1
  movsd  %xmm1,-0xa0(%rbp)
  movsd  %xmm1,-0x98(%rbp)
  movsd  %xmm1,-0xb0(%rbp)
  mov    -0xe0(%rbp),%r12
  mov    -0xe8(%rbp),%r15
  mov    -0xf0(%rbp),%r14
  jmp    L49
L187:
  movsd  (%r14,%rbx,8),%xmm0
  movapd %xmm0,%xmm1
  mulsd  (%r15,%rbx,8),%xmm1
  addsd  -0x98(%rbp),%xmm1
  movsd  %xmm1,-0x98(%rbp)
  mulsd  -0xa8(%rbp),%xmm0
  addsd  -0xa0(%rbp),%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  lea    0x1(%rbx),%rax
  cmp    %rbx,%r13
  je     L412
  mov    %rax,%rbx
L49:
  movsd  (%r12,%rbx,8),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  pxor   %xmm5,%xmm5
  comisd %xmm5,%xmm0
  jbe    L187
  movapd %xmm0,%xmm5
  mulsd  (%r14,%rbx,8),%xmm5
  movsd  %xmm5,-0xb8(%rbp)
  call   <log@plt>
  mulsd  -0xb8(%rbp),%xmm0
  addsd  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  jmp    L187
L301:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,-0xa0(%rbp)
  movsd  %xmm5,-0x98(%rbp)
  movsd  %xmm5,-0xb0(%rbp)
L412:
  movsd  -0xb0(%rbp),%xmm0
  subsd  -0x98(%rbp),%xmm0
  divsd  -0xa0(%rbp),%xmm0
  movsd  -0xd8(%rbp),%xmm2
  movsd  -0xd0(%rbp),%xmm1
  lea    D48(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L352
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L376:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,-0xa0(%rbp)
  movsd  %xmm6,-0x98(%rbp)
  movsd  %xmm6,-0xb0(%rbp)
  jmp    L412
L348:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xa8(%rbp),%xmm0
  mulsd  -0xa0(%rbp),%xmm0
  mulsd  D55(%rip),%xmm0
  addsd  -0x98(%rbp),%xmm0
  movsd  %xmm0,-0x98(%rbp)
L209:
  add    $0x1,%r14d
  add    $0x4,%r13
  mov    -0x48(%rbp),%rax
  mov    -0xb8(%rbp),%rsi
  cmp    %r14d,(%rax,%rsi,1)
  jbe    L102
L351:
  mov    -0x40(%rbp),%rax
  cvttsd2si (%rax,%r13,2),%eax
  mov    %eax,-0xa8(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax,%r13,1),%eax
  lea    0x1(%rax),%edx
  mov    %eax,%eax
  mov    (%r15,%rdx,4),%ebx
  sub    (%r15,%rax,4),%ebx
  mov    -0xb0(%rbp),%rcx
  mov    (%rcx,%rdx,4),%r12d
  sub    (%rcx,%rax,4),%r12d
  lea    (%rbx,%r12,1),%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  movsd  %xmm3,-0xa0(%rbp)
  divsd  %xmm3,%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D26(%rip),%xmm0
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  divsd  -0xa0(%rbp),%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D26(%rip),%xmm0
  call   <pow@plt>
  test   %ebx,%ebx
  jg     L163
  test   %r12d,%r12d
  jg     L93
  pxor   %xmm7,%xmm7
  movsd  %xmm7,-0xa0(%rbp)
  jmp    L348
L93:
  movsd  -0xd8(%rbp),%xmm0
  mov    %r12d,%edi
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xa8(%rbp),%xmm0
  mulsd  D55(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mulsd  %xmm1,%xmm0
  addsd  -0x98(%rbp),%xmm0
  movsd  %xmm0,-0x98(%rbp)
  jmp    L209
L352:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D64
type: string
name: parse_data
arguments: data_tag: D74
type: string
name: parse_data
arguments: data_tag: D26
type: f64
name: parse_data
arguments: data_tag: D55
type: f64
name: parse_data
arguments: data_tag: D48
type: string

tool: D64: r

tool: D74: Usage: %s <layer1> <layer2> <overlapping network> <N nodes> <b1> <b2>


tool: D26: 2

tool: D55: 0

tool: D48: %f %f %f


assistant: ```c
int main(int argc, char *argv[]) {
  if (argc < 6) {
    printf("Usage: %s <layer1> <layer2> <overlapping network> <N nodes> <b1> <b2>\n", argv[0]);
    exit(1);
  }
  FILE *filein0, *filein1, *filein, *fileout;
  unsigned int N0, K0, N1, K1, N, K;
  unsigned int *J_slap0, *r_slap0, *J_slap1, *r_slap1, *J_slap, *r_slap;
  double *w_slap;
  int i, j;
  double c_i, d_i, f_i, f_i_2;
  double alpha = (atof(argv[5]));
  double beta = (atof(argv[6]));
  int ov;
  int deg0, deg1;
  double degM, part, f_j, f_j_2;
  double degMrid, maxdegM = 200.0;
  double num1, num2, den, h;
  int number_nodes = (atoi(argv[4]));
  double M = 2.0;
  filein0 = openfile_or_exit(argv[1], "r", 2);
  read_slap(filein0, &K0, &N0, &J_slap0, &r_slap0);
  filein1 = openfile_or_exit(argv[2], "r", 2);
  read_slap(filein1, &K1, &N1, &J_slap1, &r_slap1);
  filein = openfile_or_exit(argv[3], "r", 2);
  read_slap_w(filein, &K, &N, &J_slap, &r_slap, &w_slap);
  int r_slap0_n[N + 1], r_slap1_n[N + 1];
  for (i = 0; i <= N; i++) {
    if (i <= N0) {
      r_slap0_n[i] = r_slap0[i];
    } else {
      r_slap0_n[i] = r_slap0[N0];
    }
    if (i <= N1) {
      r_slap1_n[i] = r_slap1[i];
    } else {
      r_slap1_n[i] = r_slap1[N1];
    }
  }
  double c_i_vec[N];
  double d_i_vec[N];
  double f_i_vec[N];
  for (i = 0; i < N; i++) {
    c_i = 0;
    d_i = 0;
    for (j = r_slap[i]; j < r_slap[i + 1]; j++) {
      ov = w_slap[j];
      deg0 = r_slap0_n[J_slap[j] + 1] - r_slap0_n[J_slap[j]];
      deg1 = r_slap1_n[J_slap[j] + 1] - r_slap1_n[J_slap[j]];
      degM = (deg0 + deg1) * 1.0;
      part = (M / (M - 1)) * (1 - (pow((deg0 / degM), 2)) - (pow((deg1 / degM), 2)));
      if (deg0 > 0.0000000001) {
        f_j = pow(deg0, alpha);
      } else {
        f_j = 0;
      }
      if (deg1 > 0.0000000001) {
        f_j_2 = pow(deg1, beta);
      } else {
        f_j_2 = 0;
      }
      c_i += ov * f_j * f_j_2;
      if (deg0 > 0.0000000001 && deg1 > 0.0000000001) {
        d_i += ov * f_j * f_j_2 * log((ov * f_j * f_j_2));
      }
    }
    c_i_vec[i] = c_i;
    d_i_vec[i] = d_i;
    deg0 = r_slap0_n[i + 1] - r_slap0_n[i];
    deg1 = r_slap1_n[i + 1] - r_slap1_n[i];
    degM = (deg0 + deg1) * 1.0;
    part = (M / (M - 1)) * (1 - (pow((deg0 / degM), 2)) - (pow((deg1 / degM), 2)));
    if (deg0 > 0.0000000001) {
      f_i = pow(deg0, alpha);
    } else {
      f_i = 0;
    }
    if (deg1 > 0.0000000001) {
      f_i_2 = pow(deg1, beta);
    } else {
      f_i_2 = 0;
    }
    f_i_vec[i] = f_i * f_i_2;
  }
  num1 = 0;
  num2 = 0;
  den = 0;
  for (i = 0; i < N; i++) {
    if (c_i_vec[i] > 0.0) {
      num1 += f_i_vec[i] * c_i_vec[i] * log(c_i_vec[i]);
    }
    num2 = num2 + f_i_vec[i] * d_i_vec[i];
    den = den + f_i_vec[i] * c_i_vec[i];
  }
  h = (num1 - num2) / den;
  printf("%f %f %f\n", h, alpha, beta);
}
```