user: 这段汇编代码用C语言表示是什么样的:

```asm
<set_swift_swapdir_record>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %rdx,-0x18(%rbp)
  mov    %rcx,-0x20(%rbp)
  mov    %r8d,-0x24(%rbp)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  js     L62
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L88
L62:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L88:
  mov    -0x10(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x20(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    -0x10(%rbp),%rdx
  lea    0x8(%rdx),%rcx
  test   %rax,%rax
  js     L2
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L24
L2:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L24:
  movsd  %xmm0,(%rcx)
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    -0x10(%rbp),%rdx
  lea    0x10(%rdx),%rcx
  test   %rax,%rax
  js     L77
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L69
L77:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L69:
  movsd  %xmm0,(%rcx)
  mov    -0x20(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    -0x10(%rbp),%rdx
  lea    0x18(%rdx),%rcx
  test   %rax,%rax
  js     L119
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L99
L119:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L99:
  movsd  %xmm0,(%rcx)
  mov    -0x20(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%rax
  mov    -0x10(%rbp),%rdx
  lea    0x20(%rdx),%rcx
  test   %rax,%rax
  js     L106
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L15
L106:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L15:
  movsd  %xmm0,(%rcx)
  mov    -0x20(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L107
  mov    -0x10(%rbp),%rax
  add    $0x28,%rax
  movsd  D7(%rip),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L49
L107:
  mov    -0x24(%rbp),%eax
  imul   $0x64,%eax,%eax
  cltq
  mov    -0x20(%rbp),%rdx
  add    $0x28,%rdx
  mov    (%rdx),%rdx
  mov    -0x18(%rbp),%rcx
  add    $0x28,%rcx
  mov    (%rcx),%rcx
  mov    %rdx,%rsi
  sub    %rcx,%rsi
  mov    $0x0,%edx
  div    %rsi
  mov    -0x10(%rbp),%rdx
  lea    0x28(%rdx),%rcx
  test   %rax,%rax
  js     L115
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L48
L115:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L48:
  movsd  %xmm0,(%rcx)
L49:
  nop
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D7
type_guessed: byte[8]

tool: {"D7": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

assistant: ```c
void set_swift_swapdir_record(struct module *mod, double st_array[], unsigned long long pre_array[], unsigned long long cur_array[], int inter) {
  st_array[0] = cur_array[0];
  st_array[1] = cur_array[1];
  st_array[2] = cur_array[2];
  st_array[3] = cur_array[3];
  st_array[4] = cur_array[4];
  if (cur_array[5] - pre_array[5] <= 0) {
    st_array[5] = -1;
  } else {
    st_array[5] = 100 * inter / (cur_array[5] - pre_array[5]);
  }
}
```