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
L48:
  cmp    %rdx,%rsp
  je     L152
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L48
L152:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L136
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L136:
  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
L177:
  cmp    %rdx,%rsp
  je     L83
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L177
L83:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L121
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L121:
  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
L160:
  cmp    %rdx,%rsp
  je     L29
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L160
L29:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L186
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L186:
  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    L140
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L133
L140:
  mov    -0x9c(%rbp),%eax
  mov    %eax,%esi
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x84(%rbp)
  jmp    L49
L8:
  mov    -0x58(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  movq   %rax,%xmm0
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x84(%rbp)
L49:
  mov    -0x84(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jl     L8
  lea    D16(%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    L196
L184:
  mov    -0x84(%rbp),%eax
  mov    %eax,%esi
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x80(%rbp)
  jmp    L182
L205:
  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    L95
L176:
  mov    -0x48(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x7c(%rbp)
L95:
  mov    -0x94(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x7c(%rbp)
  jl     L176
  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    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x80(%rbp)
  jne    L161
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  jmp    L151
L161:
  movsd  -0x78(%rbp),%xmm0
  comisd -0x40(%rbp),%xmm0
  jbe    L151
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
L151:
  addl   $0x1,-0x80(%rbp)
L182:
  mov    -0x68(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    %eax,-0x80(%rbp)
  jl     L205
  mov    -0x78(%rbp),%rdx
  mov    -0x84(%rbp),%eax
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x84(%rbp)
L196:
  mov    -0x98(%rbp),%eax
  cmp    %eax,-0x84(%rbp)
  jl     L184
L133:
  mov    -0x88(%rbp),%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L212
  call   <__stack_chk_fail@plt>
L212:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D44
type: string
name: unpack_data
arguments: tag: D76
type: string
name: unpack_data
arguments: tag: D32
type: string
name: unpack_data
arguments: tag: D16
type: string
name: unpack_data
arguments: tag: D68
type: string
name: unpack_data
arguments: tag: D20
type: string
name: unpack_data
arguments: tag: D19
type: string
name: unpack_data
arguments: tag: D45
type: string

tool: D44: an error happened...

tool: D76: inner normal for cell %d :


tool: D32: %.15le


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

tool: D68: support %d :


tool: D20:  %d

tool: D19:  : %.15le


tool: D45: -> 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;
  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("\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;
}
```