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

```asm
<write_inner_products>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %edi,-0x94(%rbp)
  mov    %esi,-0x98(%rbp)
  mov    %edx,-0x9c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x98(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x70(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L210:
  cmp    %rdx,%rsp
  je     L59
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L210
L59:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L199
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L199:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x60(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L123:
  cmp    %rdx,%rsp
  je     L19
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L123
L19:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L148
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L148:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x50(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L83:
  cmp    %rdx,%rsp
  je     L151
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L83
L151:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L28
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L28:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x58(%rbp),%rdx
  mov    -0x9c(%rbp),%ecx
  mov    -0x94(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <celcon_get_inner_normal@plt>
  mov    %eax,-0x88(%rbp)
  cmpl   $0x1,-0x88(%rbp)
  jne    L29
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L178
L29:
  mov    -0x9c(%rbp),%eax
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x84(%rbp)
  jmp    L174
L112:
  mov    -0x58(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  movq   %rax,%xmm0
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x84(%rbp)
L174:
  mov    -0x84(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jl     L112
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x89(%rbp),%rax
  mov    %rax,%rsi
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x68(%rbp),%rdx
  lea    -0x98(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <celcon_length_of_supports@plt>
  mov    %eax,-0x88(%rbp)
  movl   $0x0,-0x84(%rbp)
  jmp    L106
L163:
  mov    -0x84(%rbp),%eax
  mov    %eax,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x80(%rbp)
  jmp    L39
L103:
  mov    -0x80(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0x84(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x48(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rcx
  mov    %edi,%edx
  mov    %eax,%edi
  call   <celcon_get_lifted_point@plt>
  mov    %eax,-0x88(%rbp)
  movl   $0x0,-0x7c(%rbp)
  jmp    L143
L32:
  mov    -0x48(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x7c(%rbp)
L143:
  mov    -0x94(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x7c(%rbp)
  jl     L32
  mov    -0x48(%rbp),%rdx
  mov    -0x58(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <inner_product@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x80(%rbp)
  jne    L188
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  jmp    L15
L188:
  movsd  -0x78(%rbp),%xmm0
  comisd -0x40(%rbp),%xmm0
  jbe    L15
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
L15:
  addl   $0x1,-0x80(%rbp)
L39:
  mov    -0x68(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    %eax,-0x80(%rbp)
  jl     L103
  mov    -0x78(%rbp),%rdx
  mov    -0x84(%rbp),%eax
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x84(%rbp)
L106:
  mov    -0x98(%rbp),%eax
  cmp    %eax,-0x84(%rbp)
  jl     L163
L178:
  mov    -0x88(%rbp),%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L124
  call   <__stack_chk_fail@plt>
L124:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D39
datatype: string
name: extract_symbolic_data
arguments: label: D54
datatype: string
name: extract_symbolic_data
arguments: label: D47
datatype: string
name: extract_symbolic_data
arguments: label: D26
datatype: string
name: extract_symbolic_data
arguments: label: D46
datatype: string
name: extract_symbolic_data
arguments: label: D74
datatype: string
name: extract_symbolic_data
arguments: label: D53
datatype: string
name: extract_symbolic_data
arguments: label: D34
datatype: string
name: extract_symbolic_data
arguments: label: D23
datatype: string
name: extract_symbolic_data
arguments: label: D67
datatype: string

tool: D39: an error happened...

tool: D54: inner normal for cell %d :


tool: D47: %.15le


tool: D26: Hit enter to continue.

tool: D46: %c

tool: D74: 
computing the inner products with all points ...

tool: D53: support %d :


tool: D34:  %d

tool: D23:  : %.15le


tool: D67: -> support %d has minimal product : %.15le


assistant: ```c
int write_inner_products(int n, int r, int k) {
  int fail, i, j, kk;
  int nl[r];
  double normal[n], point[n], prod, minprod;
  char ch;
  fail = celcon_get_inner_normal(n, k, normal);
  if (fail == 1)
    printf("an error happened...\n");
  else {
    printf("inner normal for cell %d :\n", k);
    for (i = 0; i < n; i++)
      printf("%.15le\n", normal[i]);
    printf("Hit enter to continue.");
    scanf("%c", &ch);
    printf("\ncomputing the inner products with all points ...\n");
    fail = celcon_length_of_supports(&r, nl);
    for (i = 0; i < r; i++) {
      printf("support %d :\n", i);
      for (j = 0; j < nl[i]; j++) {
        fail = celcon_get_lifted_point(n, i + 1, j + 1, point);
        for (kk = 0; kk < n - 1; kk++)
          printf(" %d", (int)point[kk]);
        prod = inner_product(n, normal, point);
        printf(" : %.15le\n", prod);
        if (j == 0)
          minprod = prod;
        else if (prod < minprod)
          minprod = prod;
      }
      printf("-> support %d has minimal product : %.15le\n", i, minprod);
    }
  }
  return fail;
}
```