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    L3
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D17(%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    D28(%rip),%r8
  mov    $0x32,%ecx
  lea    D40(%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    D26(%rip),%r8
  mov    $0x33,%ecx
  lea    D40(%rip),%rdx
  mov    %rax,%rdi
  call   <u_realloc@plt>
  mov    %rax,-0x8(%rbp)
L3:
  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: read_data
arguments: data_tag: D17
type_infered: f64
name: read_data
arguments: data_tag: D28
type_infered: string
name: read_data
arguments: data_tag: D40
type_infered: string
name: read_data
arguments: data_tag: D26
type_infered: string

tool: D17: 1.1

tool: D28: irow

tool: D40: /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/insertrad.c

tool: D26: 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/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.15/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/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.15/src/insertrad.c", 51, "next");
  }
  irow[*ifree - 1] = *i2;
  next[*ifree - 1] = ipointer[*i1 - 1];
  ipointer[*i1 - 1] = *ifree;
  *irowp = irow;
  *nextp = next;
  return;
}
```