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

```asm
<insertfreq>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L9
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D38(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edx
  mov    0x10(%rbp),%rax
  mov    %edx,(%rax)
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%esi
  mov    -0x10(%rbp),%rax
  lea    D7(%rip),%r8
  mov    $0x34,%ecx
  lea    D16(%rip),%rdx
  mov    %rax,%rdi
  call   <u_realloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%esi
  mov    -0x8(%rbp),%rax
  lea    D48(%rip),%r8
  mov    $0x35,%ecx
  lea    D16(%rip),%rdx
  mov    %rax,%rdi
  call   <u_realloc@plt>
  mov    %rax,-0x8(%rbp)
L9:
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x30(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D38
type_guessed: f64
name: parse_data
arguments: label: D7
type_guessed: string
name: parse_data
arguments: label: D16
type_guessed: string
name: parse_data
arguments: label: D48
type_guessed: string

tool: D38: 1.1

tool: D7: mast1

tool: D16: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.15/src/insertfreq.c

tool: D48: next

assistant: ```c
void insertfreq(int *ipointer, int **mast1p, int **nextp, int *i1, int *i2, int *ifree, int *nzs_) {
  int idof1, idof2, istart, *mast1 = NULL, *next = NULL;
  mast1 = *mast1p;
  next = *nextp;
  idof1 = *i1;
  idof2 = *i2 - 1;
  if (*ifree >= *nzs_) {
    *nzs_ = (int)(1.1 * *nzs_);
    mast1 = (int *)u_realloc((int *)(mast1), (*nzs_) * sizeof(int), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.15/src/insertfreq.c", 52, "mast1");
    next = (int *)u_realloc((int *)(next), (*nzs_) * sizeof(int), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.15/src/insertfreq.c", 53, "next");
  }
  mast1[*ifree] = idof1;
  next[*ifree] = ipointer[idof2];
  ipointer[idof2] = ++*ifree;
  *mast1p = mast1;
  *nextp = next;
  return;
}
```