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

```asm
<insertrad>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    (%rax),%edx
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L5
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D23(%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    D19(%rip),%r8
  mov    $0x32,%ecx
  lea    D46(%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    D8(%rip),%r8
  mov    $0x33,%ecx
  lea    D46(%rip),%rdx
  mov    %rax,%rdi
  call   <u_realloc@plt>
  mov    %rax,-0x8(%rbp)
L5:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x20(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D23
data_type: f64
name: parse_data
arguments: data_label: D19
data_type: string
name: parse_data
arguments: data_label: D46
data_type: string
name: parse_data
arguments: data_label: D8
data_type: string

tool: D23: 1.1

tool: D19: irow

tool: D46: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/prool/ccx_prool/refs/heads/master/CalculiX/ccx_2.10/src/insertrad.c

tool: D8: next

assistant: ```c
void insertrad(int *ipointer, int **irowp, int **nextp, int *i1, int *i2, int *ifree, int *nzs_) {
  int *irow = NULL, *next = NULL;
  irow = *irowp;
  next = *nextp;
  ++*ifree;
  if (*ifree > *nzs_) {
    *nzs_ = (int)(1.1 * *nzs_);
    irow = (int *)u_realloc((int *)(irow), (*nzs_) * sizeof(int), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/prool/ccx_prool/refs/heads/master/CalculiX/ccx_2.10/src/insertrad.c", 50, "irow");
    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/prool/ccx_prool/refs/heads/master/CalculiX/ccx_2.10/src/insertrad.c", 51, "next");
  }
  irow[*ifree - 1] = *i2;
  next[*ifree - 1] = ipointer[*i1 - 1];
  ipointer[*i1 - 1] = *ifree;
  *irowp = irow;
  *nextp = next;
  return;
}
```