ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<window>:
  endbr64
  test   %ecx,%ecx
  jle    L16
  movslq %ecx,%rcx
  xor    %eax,%eax
  nopl   (%rax)
L17:
  movss  (%rsi,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  movss  %xmm0,(%rdi,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L17
L16:
  ret
```

assistant: ```c
void window(float *z, const float *x, const float *y, int N) {
  int i;
  for (i = 0; i < N; i++) {
    z[i] = x[i] * y[i];
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<window>:
  endbr64
  test   %ecx,%ecx
  jle    L59
  lea    0x4(%rdx),%r8
  mov    %rdi,%rax
  sub    %r8,%rax
  cmp    $0x8,%rax
  seta   %r8b
  cmp    $0x1,%ecx
  setne  %al
  test   %al,%r8b
  je     L61
  lea    0x4(%rsi),%r8
  mov    %rdi,%rax
  sub    %r8,%rax
  cmp    $0x8,%rax
  jbe    L61
  lea    -0x1(%rcx),%eax
  mov    %ecx,%r9d
  cmp    $0x2,%eax
  jbe    L39
  mov    %ecx,%r8d
  xor    %eax,%eax
  shr    $0x2,%r8d
  shl    $0x4,%r8
  nopl   (%rax)
L79:
  movups (%rsi,%rax,1),%xmm0
  movups (%rdx,%rax,1),%xmm2
  mulps  %xmm2,%xmm0
  movups %xmm0,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r8
  jne    L79
  mov    %ecx,%r8d
  and    $0xfffffffc,%r8d
  mov    %r8d,%eax
  cmp    %r8d,%ecx
  je     L59
  sub    %r8d,%ecx
  mov    %ecx,%r9d
  cmp    $0x1,%ecx
  je     L33
L82:
  mov    %r8d,%ecx
  movq   (%rsi,%rcx,4),%xmm0
  movq   (%rdx,%rcx,4),%xmm1
  mulps  %xmm1,%xmm0
  movlps %xmm0,(%rdi,%rcx,4)
  mov    %r9d,%ecx
  and    $0xfffffffe,%ecx
  add    %ecx,%eax
  cmp    %ecx,%r9d
  je     L59
L33:
  cltq
  movss  (%rsi,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  movss  %xmm0,(%rdi,%rax,4)
  ret
  nopl   (%rax)
L61:
  movslq %ecx,%rcx
  xor    %eax,%eax
  nopl   (%rax)
L32:
  movss  (%rsi,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  movss  %xmm0,(%rdi,%rax,4)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L32
L59:
  ret
L39:
  xor    %r8d,%r8d
  xor    %eax,%eax
  jmp    L82
```

assistant: ```c
void window(float *z, const float *x, const float *y, int N) {
  int i;
  for (i = 0; i < N; i++) {
    z[i] = x[i] * y[i];
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<display>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L16
L8:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x4(%rbp)
L16:
  cmpl   $0x8,-0x4(%rbp)
  jle    L8
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D0
datatype: string

tool: D0: %d 

assistant: ```c
void display(int arr[]) {
  int i;
  for (i = 0; i < 9; i++) {
    printf("%d ", arr[i]);
  }
  printf("\n");
}
```
user: What is the c source code of the assembly code below:

```asm
<display>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  lea    0x24(%rdi),%r12
  lea    D5(%rip),%rbp
L6:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %r12,%rbx
  jne    L6
  mov    $0xa,%edi
  call   <putchar@plt>
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: unpack_data
arguments: tag: D5
type_infered: string

tool: D5: %d 

assistant: ```c
void display(int arr[]) {
  int i;
  for (i = 0; i < 9; i++) {
    printf("%d ", arr[i]);
  }
  printf("\n");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<display>:
  endbr64
  push   %r12
  lea    0x24(%rdi),%r12
  push   %rbp
  lea    D4(%rip),%rbp
  push   %rbx
  mov    %rdi,%rbx
  cs nopw 0x0(%rax,%rax,1)
L1:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L1
  pop    %rbx
  mov    $0xa,%edi
  pop    %rbp
  pop    %r12
  jmp    1060 <putchar@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D4
data_type: string

tool: D4: %d 

assistant: ```c
void display(int arr[]) {
  int i;
  for (i = 0; i < 9; i++) {
    printf("%d ", arr[i]);
  }
  printf("\n");
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<display>:
  endbr64
  push   %r12
  lea    0x24(%rdi),%r12
  push   %rbp
  lea    D5(%rip),%rbp
  push   %rbx
  mov    %rdi,%rbx
  cs nopw 0x0(%rax,%rax,1)
L5:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L5
  pop    %rbx
  mov    $0xa,%edi
  pop    %rbp
  pop    %r12
  jmp    1060 <putchar@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D5
data_type: string

tool: D5: %d 

assistant: ```c
void display(int arr[]) {
  int i;
  for (i = 0; i < 9; i++) {
    printf("%d ", arr[i]);
  }
  printf("\n");
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<addEm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  jne    L10
  mov    -0x14(%rbp),%eax
  jmp    L6
L10:
  mov    -0x14(%rbp),%eax
  xor    -0x18(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  and    -0x18(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    -0x8(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <addEm>
L6:
  leave
  ret
```

assistant: ```c
int addEm(int a, int b) {
  if (b == 0)
    return a;
  int sum = a ^ b;
  int carries = (a & b) << 1;
  return addEm(sum, carries);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<addEm>:
  endbr64
  mov    %edi,%eax
  test   %esi,%esi
  jne    L8
  ret
L8:
  sub    $0x8,%rsp
  mov    %esi,%edx
  and    %edi,%edx
  add    %edx,%edx
  mov    %esi,%edi
  xor    %eax,%edi
  mov    %edx,%esi
  call   <addEm>
  add    $0x8,%rsp
  ret
```

assistant: ```c
int addEm(int a, int b) {
  if (b == 0)
    return a;
  int sum = a ^ b;
  int carries = (a & b) << 1;
  return addEm(sum, carries);
}
```
user: Translate the below assembly code into C programming language:

```asm
<addEm>:
  endbr64
  mov    %edi,%eax
  test   %esi,%esi
  je     L1
  nopw   0x0(%rax,%rax,1)
L5:
  mov    %eax,%edx
  xor    %esi,%eax
  and    %edx,%esi
  add    %esi,%esi
  jne    L5
L1:
  ret
```

assistant: ```c
int addEm(int a, int b) {
  if (b == 0)
    return a;
  int sum = a ^ b;
  int carries = (a & b) << 1;
  return addEm(sum, carries);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<addEm>:
  endbr64
  mov    %edi,%eax
  test   %esi,%esi
  je     L4
  nopw   0x0(%rax,%rax,1)
L0:
  mov    %eax,%edx
  xor    %esi,%eax
  and    %edx,%esi
  add    %esi,%esi
  jne    L0
L4:
  ret
```

assistant: ```c
int addEm(int a, int b) {
  if (b == 0)
    return a;
  int sum = a ^ b;
  int carries = (a & b) << 1;
  return addEm(sum, carries);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<foo>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    -0x14(%rbp),%r9d
  mov    -0x18(%rbp),%r10d
  nop
  mov    %r9d,-0x4(%rbp)
  mov    -0x14(%rbp),%r9d
  mov    -0x4(%rbp),%r10d
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void foo(int x, int y) {
  register int lr9 asm("r9") = x;
  register int lr10 asm("r10") = y;
  int foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
  foo = lr9;
  lr9 = x;
  lr10 = foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
}
```
user: Translate the below assembly code into C programming language:

```asm
<foo>:
  endbr64
  mov    %esi,%r10d
  mov    %edi,%r9d
  nop
  mov    %r9d,%r10d
  mov    %edi,%r9d
  nop
  ret
```

assistant: ```c
void foo(int x, int y) {
  register int lr9 asm("r9") = x;
  register int lr10 asm("r10") = y;
  int foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
  foo = lr9;
  lr9 = x;
  lr10 = foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<foo>:
  endbr64
  mov    %esi,%r10d
  mov    %edi,%r9d
  nop
  mov    %r9d,%r10d
  mov    %edi,%r9d
  nop
  ret
```

assistant: ```c
void foo(int x, int y) {
  register int lr9 asm("r9") = x;
  register int lr10 asm("r10") = y;
  int foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
  foo = lr9;
  lr9 = x;
  lr10 = foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
}
```
user: What is the c source code of the assembly code below:

```asm
<foo>:
  endbr64
  mov    %esi,%r10d
  mov    %edi,%r9d
  nop
  mov    %r9d,%r10d
  mov    %edi,%r9d
  nop
  ret
```

assistant: ```c
void foo(int x, int y) {
  register int lr9 asm("r9") = x;
  register int lr10 asm("r10") = y;
  int foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
  foo = lr9;
  lr9 = x;
  lr10 = foo;
  asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
}
```
user: Translate the below assembly code into C programming language:

```asm
<_dictStringCopyHTKeyDestructor>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <_dictFree@plt>
  nop
  leave
  ret
```

assistant: ```c
void _dictStringCopyHTKeyDestructor(void *privdata, void *key) {
  ((void)privdata);
  _dictFree((void *)key);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<_dictStringCopyHTKeyDestructor>:
  endbr64
  sub    $0x8,%rsp
  mov    %rsi,%rdi
  call   <_dictFree@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void _dictStringCopyHTKeyDestructor(void *privdata, void *key) {
  ((void)privdata);
  _dictFree((void *)key);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<_dictStringCopyHTKeyDestructor>:
  endbr64
  mov    %rsi,%rdi
  jmp    1050 <_dictFree@plt>
```

assistant: ```c
void _dictStringCopyHTKeyDestructor(void *privdata, void *key) {
  ((void)privdata);
  _dictFree((void *)key);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<_dictStringCopyHTKeyDestructor>:
  endbr64
  mov    %rsi,%rdi
  jmp    1050 <_dictFree@plt>
```

assistant: ```c
void _dictStringCopyHTKeyDestructor(void *privdata, void *key) {
  ((void)privdata);
  _dictFree((void *)key);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  movl   $0x0,-0x10(%rbp)
  movl   $0x12c,-0xc(%rbp)
  movl   $0x14,-0x8(%rbp)
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0xc(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  jmp    L3
L4:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x14(%rbp),%xmm1
  movsd  D29(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D32(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x4(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x4(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd -0x14(%rbp),%xmm2
  movq   %xmm2,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x8(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
L3:
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x10(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jae    L4
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D22
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D29
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D32
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D26
type_guessed: string

tool: D22: C     F


tool: {"D29": [0xcd,0xcc,0xcc,0xcc,0xcc,0xcc,0xfc,0x3f]}

tool: D32: 32

tool: D26: %3.0f %6.1f


assistant: ```c
int main(void) {
  float fahr, celsius;
  int lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  printf("C     F\n\n");
  for (celsius = upper; celsius >= lower; celsius = celsius - step) {
    fahr = (9.0 / 5.0) * celsius + 32.0;
    printf("%3.0f %6.1f\n", celsius, fahr);
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  lea    D39(%rip),%rdi
  call   <puts@plt>
  mov    $0x10,%ebx
  movss  D21(%rip),%xmm3
  movss  %xmm3,0xc(%rsp)
  lea    D10(%rip),%rbp
L0:
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  movsd  D32(%rip),%xmm1
  mulsd  %xmm0,%xmm1
  addsd  D37(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  cvtss2sd %xmm1,%xmm1
  mov    %rbp,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movss  0xc(%rsp),%xmm2
  subss  D38(%rip),%xmm2
  movss  %xmm2,0xc(%rsp)
  sub    $0x1,%ebx
  jne    L0
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D39
type_infered: string
name: disassemble_data
arguments: tag: D21
type_infered: byte[4]
name: disassemble_data
arguments: tag: D10
type_infered: string
name: disassemble_data
arguments: tag: D32
type_infered: byte[8]
name: disassemble_data
arguments: tag: D37
type_infered: f64
name: disassemble_data
arguments: tag: D38
type_infered: byte[4]

tool: D39: C     F


tool: {"D21": [0x00,0x00,0x96,0x43]}

tool: D10: %3.0f %6.1f


tool: {"D32": [0xcd,0xcc,0xcc,0xcc,0xcc,0xcc,0xfc,0x3f]}

tool: D37: 32

tool: {"D38": [0x00,0x00,0xa0,0x41]}

assistant: ```c
int main(void) {
  float fahr, celsius;
  int lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  printf("C     F\n\n");
  for (celsius = upper; celsius >= lower; celsius = celsius - step) {
    fahr = (9.0 / 5.0) * celsius + 32.0;
    printf("%3.0f %6.1f\n", celsius, fahr);
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D37(%rip),%rdi
  lea    D47(%rip),%rbp
  push   %rbx
  mov    $0x10,%ebx
  sub    $0x18,%rsp
  call   <puts@plt>
  movss  D30(%rip),%xmm2
  nopw   0x0(%rax,%rax,1)
L8:
  movsd  D38(%rip),%xmm1
  pxor   %xmm0,%xmm0
  mov    %rbp,%rdi
  mov    $0x2,%eax
  cvtss2sd %xmm2,%xmm0
  movss  %xmm2,0xc(%rsp)
  mulsd  %xmm0,%xmm1
  addsd  D42(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  movss  0xc(%rsp),%xmm2
  subss  D54(%rip),%xmm2
  sub    $0x1,%ebx
  jne    L8
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D37
type_guessed: string
name: retrieve_data
arguments: label: D47
type_guessed: string
name: retrieve_data
arguments: label: D30
type_guessed: byte[4]
name: retrieve_data
arguments: label: D38
type_guessed: byte[8]
name: retrieve_data
arguments: label: D42
type_guessed: f64
name: retrieve_data
arguments: label: D54
type_guessed: byte[4]

tool: D37: C     F


tool: D47: %3.0f %6.1f


tool: {"D30": [0x00,0x00,0x96,0x43]}

tool: {"D38": [0xcd,0xcc,0xcc,0xcc,0xcc,0xcc,0xfc,0x3f]}

tool: D42: 32

tool: {"D54": [0x00,0x00,0xa0,0x41]}

assistant: ```c
int main(void) {
  float fahr, celsius;
  int lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  printf("C     F\n\n");
  for (celsius = upper; celsius >= lower; celsius = celsius - step) {
    fahr = (9.0 / 5.0) * celsius + 32.0;
    printf("%3.0f %6.1f\n", celsius, fahr);
  }
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D6(%rip),%rdi
  lea    D5(%rip),%rbp
  push   %rbx
  mov    $0x10,%ebx
  sub    $0x18,%rsp
  call   <puts@plt>
  movss  D16(%rip),%xmm2
  nopw   0x0(%rax,%rax,1)
L8:
  movsd  D45(%rip),%xmm1
  pxor   %xmm0,%xmm0
  mov    %rbp,%rdi
  mov    $0x2,%eax
  cvtss2sd %xmm2,%xmm0
  movss  %xmm2,0xc(%rsp)
  mulsd  %xmm0,%xmm1
  addsd  D35(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  movss  0xc(%rsp),%xmm2
  subss  D31(%rip),%xmm2
  sub    $0x1,%ebx
  jne    L8
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D6
type: string
name: unpack_data
arguments: tag: D5
type: string
name: unpack_data
arguments: tag: D16
type: byte[4]
name: unpack_data
arguments: tag: D45
type: byte[8]
name: unpack_data
arguments: tag: D35
type: f64
name: unpack_data
arguments: tag: D31
type: byte[4]

tool: D6: C     F


tool: D5: %3.0f %6.1f


tool: {"D16": [0x00,0x00,0x96,0x43]}

tool: {"D45": [0xcd,0xcc,0xcc,0xcc,0xcc,0xcc,0xfc,0x3f]}

tool: D35: 32

tool: {"D31": [0x00,0x00,0xa0,0x41]}

assistant: ```c
int main(void) {
  float fahr, celsius;
  int lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  printf("C     F\n\n");
  for (celsius = upper; celsius >= lower; celsius = celsius - step) {
    fahr = (9.0 / 5.0) * celsius + 32.0;
    printf("%3.0f %6.1f\n", celsius, fahr);
  }
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<psi>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  movsd  %xmm0,-0x18(%rbp)
  movsd  D8(%rip),%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L1
  movsd  D78(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  D9(%rip),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  jmp    L4
L10:
  movsd  D9(%rip),%xmm0
  divsd  -0x8(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x8(%rbp),%xmm1
  movsd  D9(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
L4:
  movsd  -0x18(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  ja     L10
  movsd  -0x10(%rbp),%xmm0
  jmp    L3
L1:
  movsd  D9(%rip),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movsd  -0x8(%rbp),%xmm2
  movsd  D97(%rip),%xmm1
  mulsd  %xmm1,%xmm2
  movsd  D24(%rip),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  -0x8(%rbp),%xmm1
  movsd  D40(%rip),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  movsd  D49(%rip),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
L3:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D8
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D78
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D9
data_type: f64
name: disassemble_data
arguments: data_tag: D97
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D24
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D40
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D49
data_type: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: {"D78": [0x19,0xb6,0x6f,0xfc,0x8c,0x78,0xe2,0xbf]}

tool: D9: 1

tool: {"D97": [0x10,0x04,0x41,0x10,0x04,0x41,0x70,0x3f]}

tool: {"D24": [0x11,0x11,0x11,0x11,0x11,0x11,0x81,0x3f]}

tool: {"D40": [0x55,0x55,0x55,0x55,0x55,0x55,0xb5,0x3f]}

tool: {"D49": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
double psi(double z) {
  double u, u2;
  if (z < 10) {
    u = -0.57721566490153286061;
    for (u2 = 1; u2 < z; u2++) {
      u += 1 / u2;
    }
    return u;
  } else {
    u = 1.0 / z;
    u2 = u * u;
    return log(z) + (-1.0 / 2 + (-1.0 / 12 + (1.0 / 120 - 1.0 / 252 * u2) * u2) * u) * u;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<psi>:
  endbr64
  movapd %xmm0,%xmm4
  movsd  D3(%rip),%xmm0
  comisd %xmm4,%xmm0
  jbe    L2
  movsd  D86(%rip),%xmm1
  movsd  D82(%rip),%xmm0
  movapd %xmm1,%xmm2
  comisd %xmm1,%xmm4
  jbe    L13
L15:
  movapd %xmm2,%xmm3
  divsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  addsd  %xmm2,%xmm1
  comisd %xmm1,%xmm4
  ja     L15
  ret
L2:
  sub    $0x18,%rsp
  movsd  D86(%rip),%xmm0
  divsd  %xmm4,%xmm0
  movapd %xmm0,%xmm6
  movsd  %xmm0,(%rsp)
  mulsd  %xmm0,%xmm6
  movsd  %xmm6,0x8(%rsp)
  movapd %xmm4,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm2
  mulsd  D62(%rip),%xmm2
  movsd  D78(%rip),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm6,%xmm0
  subsd  D80(%rip),%xmm0
  movsd  (%rsp),%xmm5
  mulsd  %xmm5,%xmm0
  subsd  D64(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  %xmm1,%xmm0
  add    $0x18,%rsp
  ret
L13:
  movsd  D82(%rip),%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D3
type: byte[8]
name: unpack_data
arguments: data_tag: D86
type: f64
name: unpack_data
arguments: data_tag: D82
type: byte[8]
name: unpack_data
arguments: data_tag: D62
type: byte[8]
name: unpack_data
arguments: data_tag: D78
type: byte[8]
name: unpack_data
arguments: data_tag: D80
type: byte[8]
name: unpack_data
arguments: data_tag: D64
type: byte[8]

tool: {"D3": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D86: 1

tool: {"D82": [0x19,0xb6,0x6f,0xfc,0x8c,0x78,0xe2,0xbf]}

tool: {"D62": [0x10,0x04,0x41,0x10,0x04,0x41,0x70,0x3f]}

tool: {"D78": [0x11,0x11,0x11,0x11,0x11,0x11,0x81,0x3f]}

tool: {"D80": [0x55,0x55,0x55,0x55,0x55,0x55,0xb5,0x3f]}

tool: {"D64": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
double psi(double z) {
  double u, u2;
  if (z < 10) {
    u = -0.57721566490153286061;
    for (u2 = 1; u2 < z; u2++) {
      u += 1 / u2;
    }
    return u;
  } else {
    u = 1.0 / z;
    u2 = u * u;
    return log(z) + (-1.0 / 2 + (-1.0 / 12 + (1.0 / 120 - 1.0 / 252 * u2) * u2) * u) * u;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<psi>:
  endbr64
  movapd %xmm0,%xmm4
  movsd  D38(%rip),%xmm0
  comisd %xmm4,%xmm0
  jbe    L0
  movsd  D54(%rip),%xmm2
  movsd  D66(%rip),%xmm0
  comisd %xmm2,%xmm4
  movapd %xmm2,%xmm1
  jbe    L9
L29:
  movapd %xmm2,%xmm3
  divsd  %xmm1,%xmm3
  addsd  %xmm2,%xmm1
  comisd %xmm1,%xmm4
  addsd  %xmm3,%xmm0
  ja     L29
  ret
  nopw   0x0(%rax,%rax,1)
L9:
  ret
  nopl   0x0(%rax)
L0:
  sub    $0x18,%rsp
  movsd  D54(%rip),%xmm2
  movapd %xmm4,%xmm0
  divsd  %xmm4,%xmm2
  movapd %xmm2,%xmm3
  movsd  %xmm2,0x8(%rsp)
  mulsd  %xmm2,%xmm3
  movsd  %xmm3,(%rsp)
  call   <log@plt>
  movsd  (%rsp),%xmm3
  movsd  D1(%rip),%xmm5
  movsd  D67(%rip),%xmm1
  movapd %xmm0,%xmm4
  movsd  0x8(%rsp),%xmm2
  mulsd  %xmm3,%xmm5
  subsd  %xmm5,%xmm1
  movapd %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  subsd  D44(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D30(%rip),%xmm0
  add    $0x18,%rsp
  mulsd  %xmm2,%xmm0
  addsd  %xmm4,%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D38
type_guessed: byte[8]
name: unpack_data
arguments: data_tag: D54
type_guessed: f64
name: unpack_data
arguments: data_tag: D66
type_guessed: byte[8]
name: unpack_data
arguments: data_tag: D1
type_guessed: byte[8]
name: unpack_data
arguments: data_tag: D67
type_guessed: byte[8]
name: unpack_data
arguments: data_tag: D44
type_guessed: byte[8]
name: unpack_data
arguments: data_tag: D30
type_guessed: byte[8]

tool: {"D38": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D54: 1

tool: {"D66": [0x19,0xb6,0x6f,0xfc,0x8c,0x78,0xe2,0xbf]}

tool: {"D1": [0x10,0x04,0x41,0x10,0x04,0x41,0x70,0x3f]}

tool: {"D67": [0x11,0x11,0x11,0x11,0x11,0x11,0x81,0x3f]}

tool: {"D44": [0x55,0x55,0x55,0x55,0x55,0x55,0xb5,0x3f]}

tool: {"D30": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
double psi(double z) {
  double u, u2;
  if (z < 10) {
    u = -0.57721566490153286061;
    for (u2 = 1; u2 < z; u2++) {
      u += 1 / u2;
    }
    return u;
  } else {
    u = 1.0 / z;
    u2 = u * u;
    return log(z) + (-1.0 / 2 + (-1.0 / 12 + (1.0 / 120 - 1.0 / 252 * u2) * u2) * u) * u;
  }
}
```