ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 下面的汇编指令对应的C源代码是什么：

```asm
<send_action>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %rdi,-0xc8(%rbp)
  mov    %rsi,-0xd0(%rbp)
  mov    %rdx,-0xd8(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L8
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L8:
  mov    -0xd8(%rbp),%rdx
  mov    -0xb4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0xb4(%rbp),%edx
  mov    -0xd8(%rbp),%rax
  mov    %edx,%ecx
  mov    %rax,%rdx
  mov    $0x3e8,%esi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <vsnprintf@plt>
  mov    -0xb4(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  mov    -0xd0(%rbp),%rsi
  mov    -0xc8(%rbp),%rax
  mov    $0x1,%r9d
  lea    D29(%rip),%r8
  mov    $0x1,%ecx
  lea    D2(%rip),%rdx
  mov    %rax,%rdi
  call   <privmsg@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D2
type_guessed: string

tool: D2: %cACTION %s%c

assistant: ```c
void send_action(struct socket_info *sinfo, const char *sendto, const char *format, ...) {
  static char output[1000];
  va_list args;
  va_start(args, format);
  vsnprintf(output, 1000, format, args);
  va_end(args);
  privmsg(sinfo, sendto, "%cACTION %s%c", '\001', output, '\001');
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<send_action>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rdx,%rbx
  mov    %rdx,%rsi
  mov    $0x0,%r13d
  mov    %r13d,%edi
  call   <va_start@plt>
  mov    %r13d,%ecx
  mov    %rbx,%rdx
  mov    $0x3e8,%esi
  lea    D13(%rip),%rbx
  mov    %rbx,%rdi
  call   <vsnprintf@plt>
  mov    %r13d,%edi
  call   <va_end@plt>
  mov    $0x1,%r9d
  mov    %rbx,%r8
  mov    $0x1,%ecx
  lea    D4(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <privmsg@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D4
type: string

tool: D4: %cACTION %s%c

assistant: ```c
void send_action(struct socket_info *sinfo, const char *sendto, const char *format, ...) {
  static char output[1000];
  va_list args;
  va_start(args, format);
  vsnprintf(output, 1000, format, args);
  va_end(args);
  privmsg(sinfo, sendto, "%cACTION %s%c", '\001', output, '\001');
}
```
user: Translate the below assembly code into C programming language:

```asm
<send_action>:
  endbr64
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  mov    %rsi,%r13
  mov    %rdx,%rsi
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %r14d,%edi
  sub    $0x8,%rsp
  call   <va_start@plt>
  mov    %r12,%rdx
  mov    %r14d,%ecx
  mov    $0x3e8,%esi
  lea    D3(%rip),%r12
  mov    %r12,%rdi
  call   <vsnprintf@plt>
  mov    %r14d,%edi
  call   <va_end@plt>
  mov    %r12,%r8
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r9d
  mov    $0x1,%ecx
  lea    D2(%rip),%rdx
  call   <privmsg@plt>
  add    $0x8,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

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

tool: D2: %cACTION %s%c

assistant: ```c
void send_action(struct socket_info *sinfo, const char *sendto, const char *format, ...) {
  static char output[1000];
  va_list args;
  va_start(args, format);
  vsnprintf(output, 1000, format, args);
  va_end(args);
  privmsg(sinfo, sendto, "%cACTION %s%c", '\001', output, '\001');
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<send_action>:
  endbr64
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  mov    %rsi,%r13
  mov    %rdx,%rsi
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %r14d,%edi
  sub    $0x8,%rsp
  call   <va_start@plt>
  mov    %r12,%rdx
  mov    %r14d,%ecx
  mov    $0x3e8,%esi
  lea    D5(%rip),%r12
  mov    %r12,%rdi
  call   <vsnprintf@plt>
  mov    %r14d,%edi
  call   <va_end@plt>
  mov    %r12,%r8
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r9d
  mov    $0x1,%ecx
  lea    D8(%rip),%rdx
  call   <privmsg@plt>
  add    $0x8,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D8
datatype: string

tool: D8: %cACTION %s%c

assistant: ```c
void send_action(struct socket_info *sinfo, const char *sendto, const char *format, ...) {
  static char output[1000];
  va_list args;
  va_start(args, format);
  vsnprintf(output, 1000, format, args);
  va_end(args);
  privmsg(sinfo, sendto, "%cACTION %s%c", '\001', output, '\001');
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<reverse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  cmpq   $0x1,-0x30(%rbp)
  jbe    L6
  movq   $0x0,-0x10(%rbp)
  jmp    L3
L29:
  mov    -0x30(%rbp),%rax
  sub    -0x10(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x8(%rbp),%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  addq   $0x1,-0x10(%rbp)
L3:
  mov    -0x30(%rbp),%rax
  shr    %rax
  cmp    %rax,-0x10(%rbp)
  jb     L29
  jmp    L8
L6:
  nop
L8:
  pop    %rbp
  ret
```

assistant: ```c
void reverse(off_t *offsets, long long unsigned int n) {
  long long unsigned int i;
  if (n <= 1)
    return;
  for (i = 0; i < n / 2; i++) {
    long long unsigned int j = n - 1 - i;
    off_t t = offsets[j];
    offsets[j] = offsets[i];
    offsets[i] = t;
  }
}
```
user: What is the c source code of the assembly code below?

```asm
<reverse>:
  endbr64
  cmp    $0x1,%rsi
  jbe    L12
  lea    -0x4(%rdi,%rsi,4),%rdx
  mov    %rdi,%rax
  shr    %rsi
  lea    (%rdi,%rsi,4),%rdi
L13:
  mov    (%rdx),%ecx
  mov    (%rax),%esi
  mov    %esi,(%rdx)
  mov    %ecx,(%rax)
  sub    $0x4,%rdx
  add    $0x4,%rax
  cmp    %rdi,%rax
  jne    L13
L12:
  ret
```

assistant: ```c
void reverse(off_t *offsets, long long unsigned int n) {
  long long unsigned int i;
  if (n <= 1)
    return;
  for (i = 0; i < n / 2; i++) {
    long long unsigned int j = n - 1 - i;
    off_t t = offsets[j];
    offsets[j] = offsets[i];
    offsets[i] = t;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<reverse>:
  endbr64
  cmp    $0x1,%rsi
  jbe    L9
  lea    -0x4(%rdi,%rsi,4),%rax
  shr    %rsi
  lea    (%rdi,%rsi,4),%rsi
  cs nopw 0x0(%rax,%rax,1)
L6:
  mov    (%rax),%edx
  mov    (%rdi),%ecx
  add    $0x4,%rdi
  sub    $0x4,%rax
  mov    %ecx,0x4(%rax)
  mov    %edx,-0x4(%rdi)
  cmp    %rsi,%rdi
  jne    L6
L9:
  ret
```

assistant: ```c
void reverse(off_t *offsets, long long unsigned int n) {
  long long unsigned int i;
  if (n <= 1)
    return;
  for (i = 0; i < n / 2; i++) {
    long long unsigned int j = n - 1 - i;
    off_t t = offsets[j];
    offsets[j] = offsets[i];
    offsets[i] = t;
  }
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<reverse>:
  endbr64
  cmp    $0x1,%rsi
  jbe    L64
  mov    %rsi,%r9
  lea    0x0(,%rsi,4),%r10
  lea    -0x1(%rsi),%r8
  shr    %r9
  mov    %r10,%rax
  lea    0x0(,%r9,4),%rcx
  sub    %rcx,%rax
  cmp    %rcx,%rax
  setge  %al
  test   %r10,%r10
  setle  %dl
  or     %dl,%al
  je     L80
  cmp    $0x1,%r9
  je     L80
  lea    -0x1(%r9),%rax
  cmp    $0x2,%rax
  jbe    L81
  shr    $0x3,%rsi
  lea    -0x10(%rdi,%r10,1),%rdx
  mov    %rdi,%rcx
  mov    %rsi,%r11
  mov    %rdx,%rax
  shl    $0x4,%r11
  sub    %r11,%rax
  nopl   0x0(%rax,%rax,1)
L94:
  movdqu (%rcx),%xmm2
  movdqu (%rdx),%xmm0
  sub    $0x10,%rdx
  add    $0x10,%rcx
  pshufd $0x1b,%xmm2,%xmm1
  pshufd $0x1b,%xmm0,%xmm0
  movups %xmm1,0x10(%rdx)
  movups %xmm0,-0x10(%rcx)
  cmp    %rdx,%rax
  jne    L94
  lea    0x0(,%rsi,4),%rax
  cmp    %rax,%r9
  je     L64
  sub    %rax,%r9
  cmp    $0x1,%r9
  je     L24
L17:
  mov    %rax,%rcx
  mov    %rdi,%rsi
  neg    %rcx
  shl    $0x2,%rcx
  sub    %rcx,%rsi
  lea    -0x8(%r10,%rcx,1),%rdx
  movq   (%rsi),%xmm1
  add    %rdi,%rdx
  movq   (%rdx),%xmm0
  pshufd $0xe1,%xmm1,%xmm1
  movq   %xmm1,(%rdx)
  mov    %r9,%rdx
  pshufd $0xe1,%xmm0,%xmm0
  and    $0xfffffffffffffffe,%rdx
  movq   %xmm0,(%rsi)
  add    %rdx,%rax
  cmp    %r9,%rdx
  je     L64
L24:
  mov    %r8,%rdx
  sub    %rax,%rdx
  lea    (%rdi,%rax,4),%rax
  lea    (%rdi,%rdx,4),%rdx
  mov    (%rax),%esi
  mov    (%rdx),%ecx
  mov    %esi,(%rdx)
  mov    %ecx,(%rax)
  ret
  nopl   0x0(%rax)
L80:
  lea    (%rdi,%r8,4),%rdx
  mov    %rdi,%rax
  add    %rdi,%rcx
  nopw   0x0(%rax,%rax,1)
L88:
  mov    (%rdx),%esi
  mov    (%rax),%edi
  add    $0x4,%rax
  sub    $0x4,%rdx
  mov    %edi,0x4(%rdx)
  mov    %esi,-0x4(%rax)
  cmp    %rcx,%rax
  jne    L88
L64:
  ret
L81:
  xor    %eax,%eax
  jmp    L17
```

assistant: ```c
void reverse(off_t *offsets, long long unsigned int n) {
  long long unsigned int i;
  if (n <= 1)
    return;
  for (i = 0; i < n / 2; i++) {
    long long unsigned int j = n - 1 - i;
    off_t t = offsets[j];
    offsets[j] = offsets[i];
    offsets[i] = t;
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<seek>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x10(%rbp)
  mov    $0x13,%rax
  mov    -0x18(%rbp),%rbx
  mov    -0x20(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  int    $0x80
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

assistant: ```c
long seek(long fd, long offset, long mode) {
  long ret = 0;
  asm("movq $19,%%rax  \n\t"
      "movq %1,%%rbx \n\t"
      "movq %2,%%rcx  \n\t"
      "movq %3,%%rdx \n\t"
      "int $0x80  \n\t"
      "movq %%rax,%0 \n\t"
      : "=m"(ret)
      : "m"(fd), "m"(offset), "m"(mode));
  return ret;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<seek>:
  endbr64
  sub    $0x38,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    $0x13,%rax
  mov    0x18(%rsp),%rbx
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  int    $0x80
  mov    %rax,0x20(%rsp)
  mov    0x20(%rsp),%rax
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L2
  add    $0x38,%rsp
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
long seek(long fd, long offset, long mode) {
  long ret = 0;
  asm("movq $19,%%rax  \n\t"
      "movq %1,%%rbx \n\t"
      "movq %2,%%rcx  \n\t"
      "movq %3,%%rdx \n\t"
      "int $0x80  \n\t"
      "movq %%rax,%0 \n\t"
      : "=m"(ret)
      : "m"(fd), "m"(offset), "m"(mode));
  return ret;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<seek>:
  endbr64
  sub    $0x38,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    $0x13,%rax
  mov    0x18(%rsp),%rbx
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  int    $0x80
  mov    %rax,0x20(%rsp)
  mov    0x20(%rsp),%rax
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L4
  add    $0x38,%rsp
  ret
L4:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
long seek(long fd, long offset, long mode) {
  long ret = 0;
  asm("movq $19,%%rax  \n\t"
      "movq %1,%%rbx \n\t"
      "movq %2,%%rcx  \n\t"
      "movq %3,%%rdx \n\t"
      "int $0x80  \n\t"
      "movq %%rax,%0 \n\t"
      : "=m"(ret)
      : "m"(fd), "m"(offset), "m"(mode));
  return ret;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<seek>:
  endbr64
  sub    $0x38,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    $0x13,%rax
  mov    0x18(%rsp),%rbx
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  int    $0x80
  mov    %rax,0x20(%rsp)
  mov    0x20(%rsp),%rax
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L2
  add    $0x38,%rsp
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
long seek(long fd, long offset, long mode) {
  long ret = 0;
  asm("movq $19,%%rax  \n\t"
      "movq %1,%%rbx \n\t"
      "movq %2,%%rcx  \n\t"
      "movq %3,%%rdx \n\t"
      "int $0x80  \n\t"
      "movq %%rax,%0 \n\t"
      : "=m"(ret)
      : "m"(fd), "m"(offset), "m"(mode));
  return ret;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<ypit_nweeks>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <fast_mod7@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x4,-0x4(%rbp)
  jne    L29
  movl   $0x1,-0x8(%rbp)
  jmp    L7
L29:
  cmpl   $0x3,-0x4(%rbp)
  jne    L7
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <ypit_year@plt>
  mov    %eax,%edi
  call   <is_leap@plt>
  mov    %eax,-0x8(%rbp)
L7:
  mov    -0x8(%rbp),%eax
  add    $0x34,%eax
  leave
  ret
```

assistant: ```c
int __attribute__((no)) ypit_nweeks(int j1) {
  int j1dow, islong = 0;
  j1dow = fast_mod7(j1);
  if (j1dow == 4)
    islong = 1;
  else if (j1dow == 3)
    islong = is_leap(ypit_year(j1));
  return 52 + islong;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<ypit_nweeks>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  call   <fast_mod7@plt>
  mov    $0x1,%edx
  cmp    $0x4,%eax
  je     L13
  mov    $0x0,%edx
  cmp    $0x3,%eax
  je     L5
L13:
  lea    0x34(%rdx),%eax
  pop    %rbx
  ret
L5:
  mov    %ebx,%edi
  call   <ypit_year@plt>
  mov    %eax,%edi
  call   <is_leap@plt>
  mov    %eax,%edx
  jmp    L13
```

assistant: ```c
int __attribute__((no)) ypit_nweeks(int j1) {
  int j1dow, islong = 0;
  j1dow = fast_mod7(j1);
  if (j1dow == 4)
    islong = 1;
  else if (j1dow == 3)
    islong = is_leap(ypit_year(j1));
  return 52 + islong;
}
```
user: Translate the below assembly code into C programming language:

```asm
<ypit_nweeks>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  call   <fast_mod7@plt>
  mov    $0x35,%r8d
  cmp    $0x4,%eax
  je     L5
  mov    $0x34,%r8d
  cmp    $0x3,%eax
  je     L1
L5:
  mov    %r8d,%eax
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L1:
  mov    %ebp,%edi
  call   <ypit_year@plt>
  mov    %eax,%edi
  call   <is_leap@plt>
  pop    %rbp
  lea    0x34(%rax),%r8d
  mov    %r8d,%eax
  ret
```

assistant: ```c
int __attribute__((no)) ypit_nweeks(int j1) {
  int j1dow, islong = 0;
  j1dow = fast_mod7(j1);
  if (j1dow == 4)
    islong = 1;
  else if (j1dow == 3)
    islong = is_leap(ypit_year(j1));
  return 52 + islong;
}
```
user: Translate the below assembly code into C programming language:

```asm
<ypit_nweeks>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  call   <fast_mod7@plt>
  mov    $0x35,%r8d
  cmp    $0x4,%eax
  je     L4
  mov    $0x34,%r8d
  cmp    $0x3,%eax
  je     L1
L4:
  mov    %r8d,%eax
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L1:
  mov    %ebp,%edi
  call   <ypit_year@plt>
  mov    %eax,%edi
  call   <is_leap@plt>
  pop    %rbp
  lea    0x34(%rax),%r8d
  mov    %r8d,%eax
  ret
```

assistant: ```c
int __attribute__((no)) ypit_nweeks(int j1) {
  int j1dow, islong = 0;
  j1dow = fast_mod7(j1);
  if (j1dow == 4)
    islong = 1;
  else if (j1dow == 3)
    islong = is_leap(ypit_year(j1));
  return 52 + islong;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<__mulsf3>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  movss  %xmm0,0xc(%rsp)
  mov    0xc(%rsp),%rdx
  pxor   %xmm0,%xmm0
  test   $0x7fffffff,%edx
  je     L27
  movss  %xmm1,0xc(%rsp)
  mov    0xc(%rsp),%rcx
  pxor   %xmm0,%xmm0
  test   $0x7fffffff,%ecx
  je     L27
  mov    %rdx,%rsi
  sar    $0x8,%rsi
  movzwl %si,%esi
  or     $0x8000,%rsi
  mov    %rcx,%rax
  sar    $0x8,%rax
  movzwl %ax,%eax
  or     $0x80,%ah
  mov    %rsi,%r8
  imul   %rax,%r8
  movzbl %dl,%edi
  imul   %rdi,%rax
  mov    %rcx,%r9
  and    $0xff,%r9d
  je     L38
  imul   %r9,%rsi
  add    %rsi,%rax
  test   %rdi,%rdi
  je     L38
  imul   %r9,%rdi
  sar    $0x8,%rdi
  add    %rdi,%rax
L38:
  sar    $0x8,%rax
  add    %r8,%rax
  mov    %rdx,%rbx
  xor    %rcx,%rbx
  and    $0x80000000,%ebx
  and    $0x7f800000,%edx
  and    $0x7f800000,%ecx
  add    %rcx,%rdx
  lea    -0x3f000000(%rdx),%rcx
  cmp    $0x7fffffff,%rax
  jg     L28
  lea    -0x3f800000(%rdx),%rcx
  add    %rax,%rax
L28:
  cmp    $0x7fffff,%rcx
  jle    L19
  cmp    $0x7f000000,%rcx
  jle    L40
  mov    D1(%rip),%rax
  mov    (%rax),%edi
  call   <raise@plt>
  add    $0x7f800000,%rbx
  jmp    L19
L40:
  sar    $0x7,%rax
  add    $0x1,%rax
  add    %rbx,%rcx
  sar    %rax
  lea    -0x800000(%rcx,%rax,1),%rbx
L19:
  movd   %ebx,%xmm0
L27:
  add    $0x10,%rsp
  pop    %rbx
  ret
```

assistant: ```c
float __mulsf3(float a, float b) {
  uint au, al, bu, bl, cu, cl, sign;
  long lc;
  uint expt;
  if (!((*(const long *)&a) & 0x7fffffff) || !((*(const long *)&b) & 0x7fffffff))
    return 0;
  au = (((*(const long *)&a) >> 8) & 0x7fff) | 0x8000;
  bu = (((*(const long *)&b) >> 8) & 0x7fff) | 0x8000;
  cu = au * bu;
  if ((al = (*(const long *)&a) & 0xff) != 0) {
    cl = bu * al;
  } else
    cl = 0;
  if ((bl = (*(const long *)&b) & 0xff) != 0) {
    cl += au * bl;
    if (al)
      cl += (al * bl) >> 8;
  }
  cu += cl >> 8;
  sign = ((*(const long *)&a) ^ (*(const long *)&b)) & 0x80000000;
  expt = ((*(const long *)&a) & 0x7f800000) + ((*(const long *)&b) & 0x7f800000) - (127 << 23);
  if (cu <= 0x7fffffff)
    cu <<= 1;
  else
    expt += 1 << 23;
  cu = ((cu >> 7) + 1) >> 1;
  if (expt < 1 << 23)
    lc = sign;
  else if (expt > (uint)(254 << 23)) {
    if (expt <= 0xc0000000) {
      raise(SIGFPE);
      lc = sign + 0x7f800000;
    } else {
      lc = sign;
    }
  } else
    lc = sign + expt + cu - 0x800000;
  return (*(const float *)&lc);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<__mulsf3>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  movss  %xmm0,0xc(%rsp)
  mov    0xc(%rsp),%rdx
  pxor   %xmm0,%xmm0
  test   $0x7fffffff,%edx
  je     L53
  movss  %xmm1,0xc(%rsp)
  mov    0xc(%rsp),%rcx
  pxor   %xmm0,%xmm0
  test   $0x7fffffff,%ecx
  je     L53
  mov    %rdx,%rsi
  mov    %rcx,%rax
  mov    %rdx,%r9
  movzbl %cl,%edi
  sar    $0x8,%rsi
  sar    $0x8,%rax
  movzwl %si,%esi
  movzwl %ax,%eax
  or     $0x8000,%rsi
  or     $0x80,%ah
  mov    %rsi,%r8
  imul   %rax,%r8
  and    $0xff,%r9d
  je     L74
  imul   %r9,%rax
  test   %rdi,%rdi
  jne    L91
L23:
  mov    %rdx,%rbx
  sar    $0x8,%rax
  and    $0x7f800000,%edx
  xor    %rcx,%rbx
  and    $0x7f800000,%ecx
  add    %r8,%rax
  add    %rcx,%rdx
  and    $0x80000000,%ebx
  lea    -0x3f000000(%rdx),%rcx
  cmp    $0x7fffffff,%rax
  jg     L85
  lea    -0x3f800000(%rdx),%rcx
  add    %rax,%rax
L85:
  cmp    $0x7fffff,%rcx
  jle    L98
  cmp    $0x7f000000,%rcx
  jg     L48
  sar    $0x7,%rax
  add    %rbx,%rcx
  add    $0x1,%rax
  sar    %rax
  lea    -0x800000(%rcx,%rax,1),%rbx
L98:
  movd   %ebx,%xmm0
L53:
  add    $0x10,%rsp
  pop    %rbx
  ret
  nopl   (%rax)
L74:
  mov    %rdi,%rax
  imul   %rsi,%rax
  jmp    L23
  nopl   0x0(%rax)
L91:
  imul   %rdi,%rsi
  imul   %r9,%rdi
  add    %rsi,%rax
  sar    $0x8,%rdi
  add    %rdi,%rax
  jmp    L23
  nopw   0x0(%rax,%rax,1)
L48:
  mov    D7(%rip),%rax
  add    $0x7f800000,%rbx
  mov    (%rax),%edi
  call   <raise@plt>
  jmp    L98
```

assistant: ```c
float __mulsf3(float a, float b) {
  uint au, al, bu, bl, cu, cl, sign;
  long lc;
  uint expt;
  if (!((*(const long *)&a) & 0x7fffffff) || !((*(const long *)&b) & 0x7fffffff))
    return 0;
  au = (((*(const long *)&a) >> 8) & 0x7fff) | 0x8000;
  bu = (((*(const long *)&b) >> 8) & 0x7fff) | 0x8000;
  cu = au * bu;
  if ((al = (*(const long *)&a) & 0xff) != 0) {
    cl = bu * al;
  } else
    cl = 0;
  if ((bl = (*(const long *)&b) & 0xff) != 0) {
    cl += au * bl;
    if (al)
      cl += (al * bl) >> 8;
  }
  cu += cl >> 8;
  sign = ((*(const long *)&a) ^ (*(const long *)&b)) & 0x80000000;
  expt = ((*(const long *)&a) & 0x7f800000) + ((*(const long *)&b) & 0x7f800000) - (127 << 23);
  if (cu <= 0x7fffffff)
    cu <<= 1;
  else
    expt += 1 << 23;
  cu = ((cu >> 7) + 1) >> 1;
  if (expt < 1 << 23)
    lc = sign;
  else if (expt > (uint)(254 << 23)) {
    if (expt <= 0xc0000000) {
      raise(SIGFPE);
      lc = sign + 0x7f800000;
    } else {
      lc = sign;
    }
  } else
    lc = sign + expt + cu - 0x800000;
  return (*(const float *)&lc);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<__mulsf3>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  movss  %xmm0,0xc(%rsp)
  mov    0xc(%rsp),%rdx
  pxor   %xmm0,%xmm0
  test   $0x7fffffff,%edx
  je     L57
  movss  %xmm1,0xc(%rsp)
  mov    0xc(%rsp),%rcx
  pxor   %xmm0,%xmm0
  test   $0x7fffffff,%ecx
  je     L57
  mov    %rdx,%rsi
  mov    %rcx,%rax
  mov    %rdx,%rdi
  movzbl %cl,%r8d
  sar    $0x8,%rsi
  sar    $0x8,%rax
  movzwl %si,%esi
  movzwl %ax,%eax
  or     $0x8000,%rsi
  or     $0x80,%ah
  mov    %rsi,%r9
  imul   %rax,%r9
  and    $0xff,%edi
  je     L64
  imul   %rdi,%rax
  test   %r8,%r8
  jne    L92
L54:
  mov    %rdx,%rbx
  sar    $0x8,%rax
  and    $0x7f800000,%edx
  xor    %rcx,%rbx
  and    $0x7f800000,%ecx
  add    %r9,%rax
  add    %rcx,%rdx
  and    $0x80000000,%ebx
  lea    -0x3f000000(%rdx),%rcx
  cmp    $0x7fffffff,%rax
  jg     L72
  lea    -0x3f800000(%rdx),%rcx
  add    %rax,%rax
L72:
  cmp    $0x7fffff,%rcx
  jle    L7
  cmp    $0x7f000000,%rcx
  jg     L19
  sar    $0x7,%rax
  add    %rbx,%rcx
  add    $0x1,%rax
  sar    %rax
  lea    -0x800000(%rcx,%rax,1),%rbx
L7:
  movd   %ebx,%xmm0
L57:
  add    $0x10,%rsp
  pop    %rbx
  ret
  nopl   (%rax)
L64:
  mov    %rsi,%rax
  imul   %r8,%rax
  jmp    L54
  nopl   0x0(%rax)
L92:
  imul   %r8,%rsi
  imul   %r8,%rdi
  add    %rsi,%rax
  sar    $0x8,%rdi
  add    %rdi,%rax
  jmp    L54
  nopw   0x0(%rax,%rax,1)
L19:
  mov    D0(%rip),%rax
  add    $0x7f800000,%rbx
  mov    (%rax),%edi
  call   <raise@plt>
  jmp    L7
```

assistant: ```c
float __mulsf3(float a, float b) {
  uint au, al, bu, bl, cu, cl, sign;
  long lc;
  uint expt;
  if (!((*(const long *)&a) & 0x7fffffff) || !((*(const long *)&b) & 0x7fffffff))
    return 0;
  au = (((*(const long *)&a) >> 8) & 0x7fff) | 0x8000;
  bu = (((*(const long *)&b) >> 8) & 0x7fff) | 0x8000;
  cu = au * bu;
  if ((al = (*(const long *)&a) & 0xff) != 0) {
    cl = bu * al;
  } else
    cl = 0;
  if ((bl = (*(const long *)&b) & 0xff) != 0) {
    cl += au * bl;
    if (al)
      cl += (al * bl) >> 8;
  }
  cu += cl >> 8;
  sign = ((*(const long *)&a) ^ (*(const long *)&b)) & 0x80000000;
  expt = ((*(const long *)&a) & 0x7f800000) + ((*(const long *)&b) & 0x7f800000) - (127 << 23);
  if (cu <= 0x7fffffff)
    cu <<= 1;
  else
    expt += 1 << 23;
  cu = ((cu >> 7) + 1) >> 1;
  if (expt < 1 << 23)
    lc = sign;
  else if (expt > (uint)(254 << 23)) {
    if (expt <= 0xc0000000) {
      raise(SIGFPE);
      lc = sign + 0x7f800000;
    } else {
      lc = sign;
    }
  } else
    lc = sign + expt + cu - 0x800000;
  return (*(const float *)&lc);
}
```