ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请从给定的汇编指令推导出C源代码:

```asm
<log_warn>:
  endbr64
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  xor    %ebp,%ebp
  mov    %ebp,%edi
  call   <va_start@plt>
  mov    %ebp,%ecx
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    D0(%rip),%rax
  mov    (%rax),%edi
  call   <_log_tag@plt>
  mov    %ebp,%edi
  call   <va_end@plt>
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
void log_warn(const char *src, const char *format, ...) {
  va_list args;
  va_start(args, format);
  _log_tag(LOG_WARNING, src, format, args);
  va_end(args);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movq   $0x0,-0x8(%rbp)
  movq   $0x0,-0x10(%rbp)
  jmp    L8
L29:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <is_prime@plt>
  test   %rax,%rax
  je     L19
  movabs $0x8be589eac7,%rax
  cqto
  idivq  -0x10(%rbp)
  mov    %rdx,%rax
  test   %rax,%rax
  jne    L19
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
L19:
  addq   $0x1,-0x10(%rbp)
L8:
  mov    -0x10(%rbp),%rax
  imul   %rax,%rax
  movabs $0x8be589eac7,%rdx
  cmp    %rdx,%rax
  jle    L29
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D8
type_guessed: string

tool: D8: The largest prime factor of 600851475143 is: %lu


assistant: ```c
int main(int argc, char *argv[]) {
  long int i;
  long int largest = 0;
  for (i = 0; i * i <= 600851475143; i++) {
    if (is_prime(i) && (600851475143 % i == 0)) {
      largest = i;
    }
  }
  printf("The largest prime factor of 600851475143 is: %lu\n", largest);
  return 0;
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  movabs $0x8be589eac7,%rbp
  jmp    L9
L23:
  add    $0x1,%rbx
  mov    %rbx,%rax
  imul   %rbx,%rax
  cmp    %rbp,%rax
  jg     L27
L9:
  mov    %rbx,%rdi
  call   <is_prime@plt>
  test   %rax,%rax
  je     L23
  mov    %rbp,%rax
  cqto
  idiv   %rbx
  test   %rdx,%rdx
  cmove  %rbx,%r12
  jmp    L23
L27:
  mov    %r12,%rsi
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: read_data
arguments: label: D5
data_type: string

tool: D5: The largest prime factor of 600851475143 is: %lu


assistant: ```c
int main(int argc, char *argv[]) {
  long int i;
  long int largest = 0;
  for (i = 0; i * i <= 600851475143; i++) {
    if (is_prime(i) && (600851475143 % i == 0)) {
      largest = i;
    }
  }
  printf("The largest prime factor of 600851475143 is: %lu\n", largest);
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  movabs $0x8be589eac7,%rbp
  push   %rbx
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L18:
  mov    %rbx,%rdi
  call   <is_prime@plt>
  test   %rax,%rax
  je     L4
  mov    %rbp,%rax
  cqto
  idiv   %rbx
  test   %rdx,%rdx
  cmove  %rbx,%r12
L4:
  add    $0x1,%rbx
  mov    %rbx,%rax
  imul   %rbx,%rax
  cmp    %rbp,%rax
  jle    L18
  mov    %r12,%rsi
  lea    D3(%rip),%rdi
  call   <printf@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: disassemble_data
arguments: label: D3
data_type: string

tool: D3: The largest prime factor of 600851475143 is: %lu


assistant: ```c
int main(int argc, char *argv[]) {
  long int i;
  long int largest = 0;
  for (i = 0; i * i <= 600851475143; i++) {
    if (is_prime(i) && (600851475143 % i == 0)) {
      largest = i;
    }
  }
  printf("The largest prime factor of 600851475143 is: %lu\n", largest);
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  movabs $0x8be589eac7,%rbp
  push   %rbx
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L6:
  mov    %rbx,%rdi
  call   <is_prime@plt>
  test   %rax,%rax
  je     L4
  mov    %rbp,%rax
  cqto
  idiv   %rbx
  test   %rdx,%rdx
  cmove  %rbx,%r12
L4:
  add    $0x1,%rbx
  mov    %rbx,%rax
  imul   %rbx,%rax
  cmp    %rbp,%rax
  jle    L6
  mov    %r12,%rsi
  lea    D0(%rip),%rdi
  call   <printf@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: disassemble_data
arguments: label: D0
type: string

tool: D0: The largest prime factor of 600851475143 is: %lu


assistant: ```c
int main(int argc, char *argv[]) {
  long int i;
  long int largest = 0;
  for (i = 0; i * i <= 600851475143; i++) {
    if (is_prime(i) && (600851475143 % i == 0)) {
      largest = i;
    }
  }
  printf("The largest prime factor of 600851475143 is: %lu\n", largest);
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<parsecmd>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rbx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  add    %rbx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rdx
  lea    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <parseline@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rcx
  lea    -0x28(%rbp),%rax
  lea    D23(%rip),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <peek@plt>
  mov    -0x28(%rbp),%rax
  cmp    %rax,-0x20(%rbp)
  je     L8
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <panic@plt>
L8:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <nulterminate@plt>
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D23
data_type: string
name: unpack_data
arguments: label: D17
data_type: string
name: unpack_data
arguments: label: D20
data_type: string

tool: 

tool: D17: leftovers: %s


tool: D20: syntax

assistant: ```c
struct cmd *parsecmd(char *s) {
  char *es;
  struct cmd *cmd;
  es = s + strlen(s);
  cmd = parseline(&s, es);
  peek(&s, es, "");
  if (s != es) {
    printf("leftovers: %s\n", s);
    panic("syntax");
  }
  nulterminate(cmd);
  return cmd;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<parsecmd>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbx
  mov    %rdi,0x8(%rsp)
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  lea    0x8(%rsp),%r12
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <parseline@plt>
  mov    %rax,%rbp
  lea    D22(%rip),%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <peek@plt>
  mov    0x8(%rsp),%rsi
  cmp    %rbx,%rsi
  je     L2
  lea    D29(%rip),%rdi
  call   <printf@plt>
  lea    D3(%rip),%rdi
  call   <panic@plt>
L2:
  mov    %rbp,%rdi
  call   <nulterminate@plt>
  mov    %rbp,%rax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: read_data
arguments: data_tag: D22
type: string
name: read_data
arguments: data_tag: D29
type: string
name: read_data
arguments: data_tag: D3
type: string

tool: 

tool: D29: leftovers: %s


tool: D3: syntax

assistant: ```c
struct cmd *parsecmd(char *s) {
  char *es;
  struct cmd *cmd;
  es = s + strlen(s);
  cmd = parseline(&s, es);
  peek(&s, es, "");
  if (s != es) {
    printf("leftovers: %s\n", s);
    panic("syntax");
  }
  nulterminate(cmd);
  return cmd;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<parsecmd>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x10,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rbp
  call   <strlen@plt>
  mov    %rbp,%rdi
  cltq
  add    %rax,%rbx
  mov    %rbx,%rsi
  call   <parseline@plt>
  mov    %rbx,%rsi
  lea    D2(%rip),%rdx
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <peek@plt>
  mov    0x8(%rsp),%rsi
  cmp    %rbx,%rsi
  je     L2
  lea    D6(%rip),%rdi
  call   <printf@plt>
  lea    D19(%rip),%rdi
  call   <panic@plt>
L2:
  mov    %r12,%rdi
  call   <nulterminate@plt>
  add    $0x10,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D2
data_type: string
name: retrieve_data
arguments: data_label: D6
data_type: string
name: retrieve_data
arguments: data_label: D19
data_type: string

tool: 

tool: D6: leftovers: %s


tool: D19: syntax

assistant: ```c
struct cmd *parsecmd(char *s) {
  char *es;
  struct cmd *cmd;
  es = s + strlen(s);
  cmd = parseline(&s, es);
  peek(&s, es, "");
  if (s != es) {
    printf("leftovers: %s\n", s);
    panic("syntax");
  }
  nulterminate(cmd);
  return cmd;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<parsecmd>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x10,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rbp
  call   <strlen@plt>
  mov    %rbp,%rdi
  cltq
  add    %rax,%rbx
  mov    %rbx,%rsi
  call   <parseline@plt>
  mov    %rbx,%rsi
  lea    D26(%rip),%rdx
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <peek@plt>
  mov    0x8(%rsp),%rsi
  cmp    %rbx,%rsi
  je     L2
  lea    D11(%rip),%rdi
  call   <printf@plt>
  lea    D2(%rip),%rdi
  call   <panic@plt>
L2:
  mov    %r12,%rdi
  call   <nulterminate@plt>
  add    $0x10,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D26
datatype: string
name: parse_data
arguments: data_tag: D11
datatype: string
name: parse_data
arguments: data_tag: D2
datatype: string

tool: 

tool: D11: leftovers: %s


tool: D2: syntax

assistant: ```c
struct cmd *parsecmd(char *s) {
  char *es;
  struct cmd *cmd;
  es = s + strlen(s);
  cmd = parseline(&s, es);
  peek(&s, es, "");
  if (s != es) {
    printf("leftovers: %s\n", s);
    panic("syntax");
  }
  nulterminate(cmd);
  return cmd;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<iw_filter_box>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x8(%rbp)
  movsd  %xmm0,-0x10(%rbp)
  movsd  D8(%rip),%xmm0
  comisd -0x10(%rbp),%xmm0
  jb     L5
  movsd  D15(%rip),%xmm0
  jmp    L15
L5:
  pxor   %xmm0,%xmm0
L15:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D8
data_type: f64
name: unpack_data
arguments: data_tag: D15
data_type: f64

tool: D8: 0.5

tool: D15: 1

assistant: ```c
double iw_filter_box(struct iw_rr_ctx *rrctx, double x) {
  if (x <= 0.5)
    return 1.0;
  return 0.0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<iw_filter_box>:
  endbr64
  movsd  D7(%rip),%xmm1
  comisd %xmm0,%xmm1
  jae    L5
  pxor   %xmm0,%xmm0
  ret
L5:
  movsd  D1(%rip),%xmm0
  ret
```

tool_calls: name: read_data
arguments: tag: D7
type_infered: f64
name: read_data
arguments: tag: D1
type_infered: f64

tool: D7: 0.5

tool: D1: 1

assistant: ```c
double iw_filter_box(struct iw_rr_ctx *rrctx, double x) {
  if (x <= 0.5)
    return 1.0;
  return 0.0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<iw_filter_box>:
  endbr64
  movsd  D6(%rip),%xmm1
  comisd %xmm0,%xmm1
  jae    L1
  pxor   %xmm0,%xmm0
  ret
  nopw   0x0(%rax,%rax,1)
L1:
  movsd  D12(%rip),%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D6
datatype: f64
name: unpack_data
arguments: data_label: D12
datatype: f64

tool: D6: 0.5

tool: D12: 1

assistant: ```c
double iw_filter_box(struct iw_rr_ctx *rrctx, double x) {
  if (x <= 0.5)
    return 1.0;
  return 0.0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<iw_filter_box>:
  endbr64
  movsd  D14(%rip),%xmm1
  comisd %xmm0,%xmm1
  jae    L9
  pxor   %xmm0,%xmm0
  ret
  nopw   0x0(%rax,%rax,1)
L9:
  movsd  D0(%rip),%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: label: D14
type_guessed: f64
name: unpack_data
arguments: label: D0
type_guessed: f64

tool: D14: 0.5

tool: D0: 1

assistant: ```c
double iw_filter_box(struct iw_rr_ctx *rrctx, double x) {
  if (x <= 0.5)
    return 1.0;
  return 0.0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<EMACTxDisable>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  movslq %edx,%rdx
  and    $0xfffffff7,%eax
  mov    %eax,(%rdx)
  mov    -0x4(%rbp),%eax
  add    $0xc18,%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  add    $0xc18,%edx
  movslq %edx,%rdx
  and    $0xdf,%ah
  mov    %eax,(%rdx)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void EMACTxDisable(uint32_t ui32Base) {
  (*((volatile uint32_t *)(ui32Base + 0x00000000))) &= ~0x00000008;
  (*((volatile uint32_t *)(ui32Base + 0x00000C18))) &= ~0x00002000;
}
```
user: Translate the below assembly code into C programming language:

```asm
<EMACTxDisable>:
  endbr64
  movslq %edi,%rdx
  mov    (%rdx),%eax
  and    $0xfffffff7,%eax
  mov    %eax,(%rdx)
  add    $0xc18,%edi
  movslq %edi,%rdi
  mov    (%rdi),%eax
  and    $0xdf,%ah
  mov    %eax,(%rdi)
  ret
```

assistant: ```c
void EMACTxDisable(uint32_t ui32Base) {
  (*((volatile uint32_t *)(ui32Base + 0x00000000))) &= ~0x00000008;
  (*((volatile uint32_t *)(ui32Base + 0x00000C18))) &= ~0x00002000;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<EMACTxDisable>:
  endbr64
  movslq %edi,%rdx
  add    $0xc18,%edi
  mov    (%rdx),%eax
  movslq %edi,%rdi
  and    $0xfffffff7,%eax
  mov    %eax,(%rdx)
  mov    (%rdi),%eax
  and    $0xdf,%ah
  mov    %eax,(%rdi)
  ret
```

assistant: ```c
void EMACTxDisable(uint32_t ui32Base) {
  (*((volatile uint32_t *)(ui32Base + 0x00000000))) &= ~0x00000008;
  (*((volatile uint32_t *)(ui32Base + 0x00000C18))) &= ~0x00002000;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<EMACTxDisable>:
  endbr64
  movslq %edi,%rdx
  add    $0xc18,%edi
  mov    (%rdx),%eax
  movslq %edi,%rdi
  and    $0xfffffff7,%eax
  mov    %eax,(%rdx)
  mov    (%rdi),%eax
  and    $0xdf,%ah
  mov    %eax,(%rdi)
  ret
```

assistant: ```c
void EMACTxDisable(uint32_t ui32Base) {
  (*((volatile uint32_t *)(ui32Base + 0x00000000))) &= ~0x00000008;
  (*((volatile uint32_t *)(ui32Base + 0x00000C18))) &= ~0x00002000;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<__ieee754_scalb>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  movsd  %xmm0,-0x8(%rbp)
  movsd  %xmm1,-0x10(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  call   <fd_isnan@plt>
  test   %rax,%rax
  jne    L139
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  call   <fd_isnan@plt>
  test   %rax,%rax
  je     L36
L139:
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movq   %xmm0,%rax
  jmp    L106
L36:
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  call   <fd_finite@plt>
  test   %eax,%eax
  jne    L44
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L95
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movq   %xmm0,%rax
  jmp    L106
L95:
  movsd  -0x8(%rbp),%xmm0
  movq   D14(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x10(%rbp),%xmm0
  movq   %xmm0,%rax
  jmp    L106
L44:
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  call   <fd_rint@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm2
  ucomisd -0x10(%rbp),%xmm2
  jp     L32
  movq   %rax,%xmm3
  ucomisd -0x10(%rbp),%xmm3
  je     L35
L32:
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm0,%xmm1
  movsd  -0x10(%rbp),%xmm0
  subsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  jmp    L106
L35:
  movsd  -0x10(%rbp),%xmm0
  comisd D7(%rip),%xmm0
  jbe    L51
  mov    -0x8(%rbp),%rax
  mov    $0xfde8,%edi
  movq   %rax,%xmm0
  call   <fd_scalbn@plt>
  movq   %xmm0,%rax
  jmp    L106
L51:
  movsd  D24(%rip),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L93
  mov    -0x8(%rbp),%rax
  mov    $0xffff0218,%edi
  movq   %rax,%xmm0
  call   <fd_scalbn@plt>
  movq   %xmm0,%rax
  jmp    L106
L93:
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <fd_scalbn@plt>
  movq   %xmm0,%rax
L106:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D14
type: f32[2]
name: extract_symbolic_data
arguments: data_label: D7
type: f64[2]
name: extract_symbolic_data
arguments: data_label: D24
type: f32[2]

tool: {"D14": [0.0,-0.0]}

tool: {"D7": [65000.0,-65000.0]}

tool: {"D24": [0.0,-7.4918212890625]}

assistant: ```c
double __ieee754_scalb(double x, double fn) {
  if (fd_isnan(x) || fd_isnan(fn))
    return x * fn;
  if (!fd_finite(fn)) {
    if (fn > 0.0)
      return x * fn;
    else
      return x / (-fn);
  }
  if (fd_rint(fn) != fn)
    return (fn - fn) / (fn - fn);
  if (fn > 65000.0)
    return fd_scalbn(x, 65000);
  if (-fn > 65000.0)
    return fd_scalbn(x, -65000);
  return fd_scalbn(x, (int)fn);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<__ieee754_scalb>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  movq   %xmm0,%rbx
  movsd  %xmm1,0x8(%rsp)
  call   <fd_isnan@plt>
  test   %rax,%rax
  je     L72
L138:
  movq   %rbx,%xmm0
  mulsd  0x8(%rsp),%xmm0
L20:
  add    $0x10,%rsp
  pop    %rbx
  ret
L72:
  movsd  0x8(%rsp),%xmm0
  call   <fd_isnan@plt>
  test   %rax,%rax
  jne    L138
  movsd  0x8(%rsp),%xmm0
  call   <fd_finite@plt>
  test   %eax,%eax
  jne    L23
  movsd  0x8(%rsp),%xmm3
  comisd D34(%rip),%xmm3
  jbe    L41
  movq   %rbx,%xmm0
  mulsd  %xmm3,%xmm0
  jmp    L20
L41:
  movq   %rbx,%xmm0
  xorpd  D12(%rip),%xmm0
  divsd  0x8(%rsp),%xmm0
  jmp    L20
L23:
  movsd  0x8(%rsp),%xmm0
  call   <fd_rint@plt>
  movsd  0x8(%rsp),%xmm4
  ucomisd %xmm4,%xmm0
  jp     L111
  jne    L111
  movsd  0x8(%rsp),%xmm6
  comisd D24(%rip),%xmm6
  ja     L29
  movsd  D28(%rip),%xmm0
  comisd 0x8(%rsp),%xmm0
  ja     L108
  cvttsd2si 0x8(%rsp),%edi
  movq   %rbx,%xmm0
  call   <fd_scalbn@plt>
  jmp    L20
L111:
  movsd  0x8(%rsp),%xmm0
  subsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm0
  jmp    L20
L29:
  mov    $0xfde8,%edi
  movq   %rbx,%xmm0
  call   <fd_scalbn@plt>
  jmp    L20
L108:
  mov    $0xffff0218,%edi
  movq   %rbx,%xmm0
  call   <fd_scalbn@plt>
  jmp    L20
```

tool_calls: name: disassemble_data
arguments: data_label: D34
type: f64[2]
name: disassemble_data
arguments: data_label: D12
type: byte[16]
name: disassemble_data
arguments: data_label: D24
type: f64[2]
name: disassemble_data
arguments: data_label: D28
type: byte[8]

tool: {"D34": [0.0,65000.0]}

tool: {"D12": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D24": [65000.0,-65000.0]}

tool: {"D28": [0x00,0x00,0x00,0x00,0x00,0xbd,0xef,0xc0]}

assistant: ```c
double __ieee754_scalb(double x, double fn) {
  if (fd_isnan(x) || fd_isnan(fn))
    return x * fn;
  if (!fd_finite(fn)) {
    if (fn > 0.0)
      return x * fn;
    else
      return x / (-fn);
  }
  if (fd_rint(fn) != fn)
    return (fn - fn) / (fn - fn);
  if (fn > 65000.0)
    return fd_scalbn(x, 65000);
  if (-fn > 65000.0)
    return fd_scalbn(x, -65000);
  return fd_scalbn(x, (int)fn);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<__ieee754_scalb>:
  endbr64
  sub    $0x18,%rsp
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,(%rsp)
  call   <fd_isnan@plt>
  test   %rax,%rax
  je     L92
L17:
  movsd  0x8(%rsp),%xmm0
  mulsd  (%rsp),%xmm0
L87:
  add    $0x18,%rsp
  ret
  nopl   (%rax)
L92:
  movsd  (%rsp),%xmm0
  call   <fd_isnan@plt>
  test   %rax,%rax
  jne    L17
  movsd  (%rsp),%xmm0
  call   <fd_finite@plt>
  test   %eax,%eax
  jne    L53
  movsd  (%rsp),%xmm3
  comisd D0(%rip),%xmm3
  ja     L17
  movsd  0x8(%rsp),%xmm0
  xorpd  D26(%rip),%xmm0
  divsd  %xmm3,%xmm0
  jmp    L87
L53:
  movsd  (%rsp),%xmm0
  call   <fd_rint@plt>
  ucomisd (%rsp),%xmm0
  jp     L59
  jne    L59
  movsd  (%rsp),%xmm5
  comisd D5(%rip),%xmm5
  ja     L7
  movsd  D36(%rip),%xmm0
  comisd (%rsp),%xmm0
  ja     L52
  cvttsd2si (%rsp),%edi
  movsd  0x8(%rsp),%xmm0
  add    $0x18,%rsp
  jmp    10a0 <fd_scalbn@plt>
  nopl   (%rax)
L7:
  movsd  0x8(%rsp),%xmm0
  mov    $0xfde8,%edi
  add    $0x18,%rsp
  jmp    10a0 <fd_scalbn@plt>
  nopl   0x0(%rax)
L59:
  movsd  (%rsp),%xmm0
  subsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm0
  jmp    L87
  nopw   0x0(%rax,%rax,1)
L52:
  movsd  0x8(%rsp),%xmm0
  mov    $0xffff0218,%edi
  add    $0x18,%rsp
  jmp    10a0 <fd_scalbn@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
type_guessed: f64[2]
name: disassemble_data
arguments: data_tag: D26
type_guessed: byte[16]
name: disassemble_data
arguments: data_tag: D5
type_guessed: f64[2]
name: disassemble_data
arguments: data_tag: D36
type_guessed: byte[8]

tool: {"D0": [0.0,65000.0]}

tool: {"D26": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D5": [65000.0,-65000.0]}

tool: {"D36": [0x00,0x00,0x00,0x00,0x00,0xbd,0xef,0xc0]}

assistant: ```c
double __ieee754_scalb(double x, double fn) {
  if (fd_isnan(x) || fd_isnan(fn))
    return x * fn;
  if (!fd_finite(fn)) {
    if (fn > 0.0)
      return x * fn;
    else
      return x / (-fn);
  }
  if (fd_rint(fn) != fn)
    return (fn - fn) / (fn - fn);
  if (fn > 65000.0)
    return fd_scalbn(x, 65000);
  if (-fn > 65000.0)
    return fd_scalbn(x, -65000);
  return fd_scalbn(x, (int)fn);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<__ieee754_scalb>:
  endbr64
  sub    $0x18,%rsp
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,(%rsp)
  call   <fd_isnan@plt>
  test   %rax,%rax
  je     L97
L29:
  movsd  0x8(%rsp),%xmm0
  mulsd  (%rsp),%xmm0
L60:
  add    $0x18,%rsp
  ret
  nopl   (%rax)
L97:
  movsd  (%rsp),%xmm0
  call   <fd_isnan@plt>
  test   %rax,%rax
  jne    L29
  movsd  (%rsp),%xmm0
  call   <fd_finite@plt>
  test   %eax,%eax
  jne    L16
  movsd  (%rsp),%xmm3
  comisd D15(%rip),%xmm3
  ja     L29
  movsd  0x8(%rsp),%xmm0
  xorpd  D17(%rip),%xmm0
  divsd  %xmm3,%xmm0
  jmp    L60
L16:
  movsd  (%rsp),%xmm0
  call   <fd_rint@plt>
  ucomisd (%rsp),%xmm0
  jp     L75
  jne    L75
  movsd  (%rsp),%xmm5
  comisd D12(%rip),%xmm5
  ja     L43
  movsd  D35(%rip),%xmm0
  comisd (%rsp),%xmm0
  ja     L30
  cvttsd2si (%rsp),%edi
  movsd  0x8(%rsp),%xmm0
  add    $0x18,%rsp
  jmp    10a0 <fd_scalbn@plt>
  nopl   (%rax)
L43:
  movsd  0x8(%rsp),%xmm0
  mov    $0xfde8,%edi
  add    $0x18,%rsp
  jmp    10a0 <fd_scalbn@plt>
  nopl   0x0(%rax)
L75:
  movsd  (%rsp),%xmm0
  subsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm0
  jmp    L60
  nopw   0x0(%rax,%rax,1)
L30:
  movsd  0x8(%rsp),%xmm0
  mov    $0xffff0218,%edi
  add    $0x18,%rsp
  jmp    10a0 <fd_scalbn@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D15
type: f64[2]
name: extract_symbolic_data
arguments: data_label: D17
type: byte[16]
name: extract_symbolic_data
arguments: data_label: D12
type: f64[2]
name: extract_symbolic_data
arguments: data_label: D35
type: byte[8]

tool: {"D15": [0.0,65000.0]}

tool: {"D17": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D12": [65000.0,-65000.0]}

tool: {"D35": [0x00,0x00,0x00,0x00,0x00,0xbd,0xef,0xc0]}

assistant: ```c
double __ieee754_scalb(double x, double fn) {
  if (fd_isnan(x) || fd_isnan(fn))
    return x * fn;
  if (!fd_finite(fn)) {
    if (fn > 0.0)
      return x * fn;
    else
      return x / (-fn);
  }
  if (fd_rint(fn) != fn)
    return (fn - fn) / (fn - fn);
  if (fn > 65000.0)
    return fd_scalbn(x, 65000);
  if (-fn > 65000.0)
    return fd_scalbn(x, -65000);
  return fd_scalbn(x, (int)fn);
}
```