user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<divideFunctions>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  movsd  %xmm0,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  movsd  D9(%rip),%xmm0
  comisd -0x48(%rbp),%xmm0
  jb     L43
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L0
L43:
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movsd  D10(%rip),%xmm0
  subsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
L0:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L2
L26:
  mov    -0x1c(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x1c(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L2:
  mov    -0x1c(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L26
  mov    -0x2c(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L11
L44:
  mov    -0x1c(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%ecx
  mov    -0x18(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L11:
  mov    -0x10(%rbp),%eax
  sub    -0x18(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L44
  mov    -0x50(%rbp),%rax
  mov    -0x18(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x2c(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  cmp    -0x38(%rbp),%rax
  jne    L57
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    -0xc(%rbp),%edx
  mov    %edx,(%rax)
L57:
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D9
datatype: f64
name: retrieve_data
arguments: tag: D10
datatype: byte[8]

tool: D9: 0.5

tool: {"D10": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void divideFunctions(double sol[], int DIM, double *part1, double *part2, double m, int *psize1, int *psize2) {
  int shared;
  int rest, i, total;
  double *partrest;
  if (m <= 0.5) {
    partrest = part2;
  } else {
    partrest = part1;
    m = 1 - m;
  }
  shared = (int)floor(DIM * m);
  rest = 2 * shared;
  for (i = 0; i < shared; i++) {
    part1[i] = sol[i * 2];
    part2[i] = sol[i * 2 + 1];
  }
  total = DIM - shared;
  for (i = 0; i < total - shared; i++) {
    partrest[i + shared] = sol[i + rest];
  }
  *psize1 = shared;
  *psize2 = DIM - shared;
  if (partrest == part1) {
    int temp = *psize1;
    *psize1 = *psize2;
    *psize2 = temp;
  }
}
```