user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0xe8(%rbp)
  movl   $0xa,-0xa8(%rbp)
  movl   $0x6,-0xa4(%rbp)
  mov    -0xa4(%rbp),%esi
  mov    -0xa8(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0xa0(%rbp)
  movslq %esi,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  movslq %esi,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x98(%rbp)
  movslq %esi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %edi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L160:
  cmp    %rdx,%rsp
  je     L163
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L160
L163:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L20
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L20:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x90(%rbp)
  mov    -0xa8(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x88(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L3:
  cmp    %rdx,%rsp
  je     L162
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L3
L162:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L165
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L165:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x80(%rbp)
  lea    D50(%rip),%rax
  mov    %rax,%rsi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0xb4(%rbp)
  jmp    L146
L80:
  movl   $0x0,-0xb0(%rbp)
  jmp    L50
L81:
  mov    %rbx,%rdx
  shr    $0x2,%rdx
  mov    -0xb0(%rbp),%eax
  movslq %eax,%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  imul   %rdx,%rax
  add    %rcx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rax,%rdx
  mov    -0x78(%rbp),%rax
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  addl   $0x1,-0xb0(%rbp)
L50:
  mov    -0xb0(%rbp),%eax
  cmp    -0xa4(%rbp),%eax
  jl     L81
  movl   $0x0,-0xac(%rbp)
  movl   $0x1,-0xb0(%rbp)
  jmp    L156
L121:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x90(%rbp),%rax
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb4(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0xac(%rbp),%eax
  cltq
  mov    %edx,-0x70(%rbp,%rax,4)
  addl   $0x1,-0xac(%rbp)
  addl   $0x1,-0xb0(%rbp)
L156:
  mov    -0xb0(%rbp),%eax
  cmp    -0xa4(%rbp),%eax
  jl     L121
  lea    -0x70(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <heikin@plt>
  movd   %xmm0,%eax
  mov    -0xb4(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,-0x50(%rbp,%rdx,4)
  addl   $0x1,-0xb4(%rbp)
L146:
  mov    -0xb4(%rbp),%eax
  cmp    -0xa8(%rbp),%eax
  jl     L80
  mov    -0xa8(%rbp),%edx
  mov    -0x80(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <jyuni@plt>
  movl   $0x0,-0xb4(%rbp)
  jmp    L125
L77:
  movl   $0x0,-0xb0(%rbp)
  jmp    L34
L94:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x90(%rbp),%rax
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb4(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0xb0(%rbp)
L34:
  mov    -0xb0(%rbp),%eax
  cmp    -0xa4(%rbp),%eax
  jl     L94
  mov    -0xb4(%rbp),%eax
  cltq
  movss  -0x50(%rbp,%rax,4),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x80(%rbp),%rax
  mov    -0xb4(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0xb4(%rbp)
L125:
  mov    -0xb4(%rbp),%eax
  cmp    -0xa8(%rbp),%eax
  jl     L77
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0xe8(%rbp),%rsp
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L19
  call   <__stack_chk_fail@plt>
L19:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: label: D50
type_guessed: string
name: unpack_data
arguments: label: D47
type_guessed: string
name: unpack_data
arguments: label: D2
type_guessed: string
name: unpack_data
arguments: label: D26
type_guessed: string
name: unpack_data
arguments: label: D1
type_guessed: string

tool: D50: r

tool: D47: tensuu

tool: D2: %d

tool: D26: %3d

tool: D1: %5.1f

assistant: ```c
main() {
  int n = 10;
  int m = 6;
  int i, j, k, data[n][m];
  int T[5], B[n];
  float A[5];
  FILE *fp;
  fp = fopen("tensuu", "r");
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      fscanf(fp, "%d", &data[i][j]);
    }
    k = 0;
    for (j = 1; j < m; j++) {
      T[k] = data[i][j];
      k++;
    }
    A[i] = heikin(T, 5);
  }
  jyuni(A, B, n);
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      printf("%3d", data[i][j]);
    }
    printf("%5.1f", A[i]);
    printf("%3d", B[i]);
  }
  fclose(fp);
}
```