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

```asm
<read_bytes_tun>:
  endbr64
  push   %r15
  lea    D12(%rip),%r15
  push   %r14
  push   %r13
  lea    D10(%rip),%r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0xbc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xbb8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  nop
L8:
  mov    $0xbb8,%edx
  mov    %r14,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jns    L3
  mov    %r15,%rdi
  call   <raise_error@plt>
L3:
  mov    (%rbx),%rdx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L8
```

tool_calls: name: retrieve_data
arguments: data_tag: D12
datatype: string
name: retrieve_data
arguments: data_tag: D10
datatype: string

tool: D12: read() failed

tool: D10: Read %d bytes from tun device %s from: 


assistant: ```c
void read_bytes_tun(int tun_fd, struct ifreq *ifr) {
  int stat;
  char buff[3000];
  int buff_size = 3000;
  while (1) {
    stat = read(tun_fd, buff, buff_size);
    if (stat < 0)
      raise_error("read() failed");
    printf("Read %d bytes from tun device %s from: \n", stat, ifr->ifr_name);
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<read_bytes_tun>:
  endbr64
  push   %r15
  lea    D10(%rip),%r15
  push   %r14
  push   %r13
  lea    D7(%rip),%r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0xbc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xbb8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  nop
L2:
  mov    $0xbb8,%edx
  mov    %r14,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jns    L17
  mov    %r15,%rdi
  call   <raise_error@plt>
L17:
  mov    (%rbx),%rdx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L2
```

tool_calls: name: read_data
arguments: data_tag: D10
datatype: string
name: read_data
arguments: data_tag: D7
datatype: string

tool: D10: read() failed

tool: D7: Read %d bytes from tun device %s from: 


assistant: ```c
void read_bytes_tun(int tun_fd, struct ifreq *ifr) {
  int stat;
  char buff[3000];
  int buff_size = 3000;
  while (1) {
    stat = read(tun_fd, buff, buff_size);
    if (stat < 0)
      raise_error("read() failed");
    printf("Read %d bytes from tun device %s from: \n", stat, ifr->ifr_name);
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<strcpy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  nop
L0:
  mov    -0x20(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  movzbl (%rax),%eax
  test   %al,%al
  jne    L0
  mov    -0x8(%rbp),%rax
  pop    %rbp
  ret
```

assistant: ```c
char *strcpy(char *dest, const char *src) {
  char *point = dest;
  while ((*dest++ = *src++) != '\0')
    ;
  return point;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<strcpy>:
  endbr64
  mov    %rdi,%rax
  mov    $0x0,%edx
L1:
  movzbl (%rsi,%rdx,1),%ecx
  mov    %cl,(%rax,%rdx,1)
  add    $0x1,%rdx
  test   %cl,%cl
  jne    L1
  ret
```

assistant: ```c
char *strcpy(char *dest, const char *src) {
  char *point = dest;
  while ((*dest++ = *src++) != '\0')
    ;
  return point;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<strcpy>:
  endbr64
  mov    %rdi,%rax
  xor    %edx,%edx
  nopl   0x0(%rax)
L7:
  movzbl (%rsi,%rdx,1),%ecx
  mov    %cl,(%rax,%rdx,1)
  add    $0x1,%rdx
  test   %cl,%cl
  jne    L7
  ret
```

assistant: ```c
char *strcpy(char *dest, const char *src) {
  char *point = dest;
  while ((*dest++ = *src++) != '\0')
    ;
  return point;
}
```
user: What is the c source code of the assembly code below:

```asm
<strcpy>:
  endbr64
  mov    %rdi,%rax
  xor    %edx,%edx
  nopl   0x0(%rax)
L8:
  movzbl (%rsi,%rdx,1),%ecx
  mov    %cl,(%rax,%rdx,1)
  add    $0x1,%rdx
  test   %cl,%cl
  jne    L8
  ret
```

assistant: ```c
char *strcpy(char *dest, const char *src) {
  char *point = dest;
  while ((*dest++ = *src++) != '\0')
    ;
  return point;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<eeprom_delay>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <polled_delay@plt>
  nop
  leave
  ret
```

assistant: ```c
void eeprom_delay(int nsec) {
  extern void polled_delay(int usec);
  polled_delay(nsec);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<eeprom_delay>:
  endbr64
  sub    $0x8,%rsp
  call   <polled_delay@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void eeprom_delay(int nsec) {
  extern void polled_delay(int usec);
  polled_delay(nsec);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<eeprom_delay>:
  endbr64
  jmp    1050 <polled_delay@plt>
```

assistant: ```c
void eeprom_delay(int nsec) {
  extern void polled_delay(int usec);
  polled_delay(nsec);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<eeprom_delay>:
  endbr64
  jmp    1050 <polled_delay@plt>
```

assistant: ```c
void eeprom_delay(int nsec) {
  extern void polled_delay(int usec);
  polled_delay(nsec);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<QuickSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  je     L32
  mov    -0x24(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <partition@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jle    L25
  mov    -0x4(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <QuickSort>
L25:
  mov    -0x4(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jge    L33
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %rax,%rdi
  call   <QuickSort>
  jmp    L33
L32:
  nop
L33:
  leave
  ret
```

assistant: ```c
void QuickSort(int data[], int length, int start, int end) {
  if (start == end) {
    return;
  }
  int index = partition(data, length, start, end);
  if (index > start) {
    QuickSort(data, length, start, index - 1);
  }
  if (index < end) {
    QuickSort(data, length, index + 1, end);
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<QuickSort>:
  endbr64
  cmp    %ecx,%edx
  je     L30
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r13
  mov    %esi,%r14d
  mov    %edx,%ebp
  mov    %ecx,%ebx
  call   <partition@plt>
  mov    %eax,%r12d
  cmp    %eax,%ebp
  jl     L9
L43:
  cmp    %r12d,%ebx
  jg     L17
L22:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L9:
  lea    -0x1(%rax),%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <QuickSort>
  jmp    L43
L17:
  lea    0x1(%r12),%edx
  mov    %ebx,%ecx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <QuickSort>
  jmp    L22
L30:
  ret
```

assistant: ```c
void QuickSort(int data[], int length, int start, int end) {
  if (start == end) {
    return;
  }
  int index = partition(data, length, start, end);
  if (index > start) {
    QuickSort(data, length, start, index - 1);
  }
  if (index < end) {
    QuickSort(data, length, index + 1, end);
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<vt_color_bg_set_8>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  cmpl   $0xd7,-0x4(%rbp)
  jg     L12
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    $0x30,%edi
  call   <_color_set_8@plt>
  jmp    L18
L12:
  nop
L18:
  leave
  ret
```

assistant: ```c
void vt_color_bg_set_8(uint8_t color) {
  if (color > 215) {
    return;
  }
  _color_set_8(48, color);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<vt_color_bg_set_8>:
  endbr64
  cmp    $0xd7,%edi
  jle    L6
  ret
L6:
  sub    $0x8,%rsp
  mov    %edi,%esi
  mov    $0x30,%edi
  call   <_color_set_8@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void vt_color_bg_set_8(uint8_t color) {
  if (color > 215) {
    return;
  }
  _color_set_8(48, color);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<vt_color_bg_set_8>:
  endbr64
  mov    %edi,%esi
  cmp    $0xd7,%edi
  jle    L1
  ret
  nop
L1:
  mov    $0x30,%edi
  jmp    1050 <_color_set_8@plt>
```

assistant: ```c
void vt_color_bg_set_8(uint8_t color) {
  if (color > 215) {
    return;
  }
  _color_set_8(48, color);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<vt_color_bg_set_8>:
  endbr64
  mov    %edi,%esi
  cmp    $0xd7,%edi
  jle    L8
  ret
  nop
L8:
  mov    $0x30,%edi
  jmp    1050 <_color_set_8@plt>
```

assistant: ```c
void vt_color_bg_set_8(uint8_t color) {
  if (color > 215) {
    return;
  }
  _color_set_8(48, color);
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <bus_init@plt>
L2:
  mov    $0x0,%eax
  call   <do_menu@plt>
  test   %rax,%rax
  jne    L11
  jmp    L2
L11:
  nop
  mov    $0x0,%eax
  call   <dump_registers@plt>
  mov    $0x0,%esi
  mov    $0x78,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%esi
  mov    $0x7a,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%esi
  mov    $0xbc,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%esi
  mov    $0xbe,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%eax
  call   <bus_shutdown@plt>
  mov    $0x0,%eax
  pop    %rbp
  ret
```

assistant: ```c
int main() {
  bus_init();
  while (1) {
    if (do_menu())
      break;
  }
  dump_registers();
  bus_writebyte(0x78, 0x0);
  bus_writebyte(0x7A, 0x0);
  bus_writebyte(0xBC, 0x0);
  bus_writebyte(0xBE, 0x0);
  bus_shutdown();
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <bus_init@plt>
L7:
  mov    $0x0,%eax
  call   <do_menu@plt>
  test   %rax,%rax
  je     L7
  mov    $0x0,%eax
  call   <dump_registers@plt>
  mov    $0x0,%esi
  mov    $0x78,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%esi
  mov    $0x7a,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%esi
  mov    $0xbc,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%esi
  mov    $0xbe,%edi
  call   <bus_writebyte@plt>
  mov    $0x0,%eax
  call   <bus_shutdown@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main() {
  bus_init();
  while (1) {
    if (do_menu())
      break;
  }
  dump_registers();
  bus_writebyte(0x78, 0x0);
  bus_writebyte(0x7A, 0x0);
  bus_writebyte(0xBC, 0x0);
  bus_writebyte(0xBE, 0x0);
  bus_shutdown();
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <bus_init@plt>
  nop
L8:
  xor    %eax,%eax
  call   <do_menu@plt>
  test   %rax,%rax
  je     L8
  xor    %eax,%eax
  call   <dump_registers@plt>
  xor    %esi,%esi
  mov    $0x78,%edi
  call   <bus_writebyte@plt>
  xor    %esi,%esi
  mov    $0x7a,%edi
  call   <bus_writebyte@plt>
  xor    %esi,%esi
  mov    $0xbc,%edi
  call   <bus_writebyte@plt>
  xor    %esi,%esi
  mov    $0xbe,%edi
  call   <bus_writebyte@plt>
  xor    %eax,%eax
  call   <bus_shutdown@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main() {
  bus_init();
  while (1) {
    if (do_menu())
      break;
  }
  dump_registers();
  bus_writebyte(0x78, 0x0);
  bus_writebyte(0x7A, 0x0);
  bus_writebyte(0xBC, 0x0);
  bus_writebyte(0xBE, 0x0);
  bus_shutdown();
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <bus_init@plt>
  nop
L9:
  xor    %eax,%eax
  call   <do_menu@plt>
  test   %rax,%rax
  je     L9
  xor    %eax,%eax
  call   <dump_registers@plt>
  xor    %esi,%esi
  mov    $0x78,%edi
  call   <bus_writebyte@plt>
  xor    %esi,%esi
  mov    $0x7a,%edi
  call   <bus_writebyte@plt>
  xor    %esi,%esi
  mov    $0xbc,%edi
  call   <bus_writebyte@plt>
  xor    %esi,%esi
  mov    $0xbe,%edi
  call   <bus_writebyte@plt>
  xor    %eax,%eax
  call   <bus_shutdown@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main() {
  bus_init();
  while (1) {
    if (do_menu())
      break;
  }
  dump_registers();
  bus_writebyte(0x78, 0x0);
  bus_writebyte(0x7A, 0x0);
  bus_writebyte(0xBC, 0x0);
  bus_writebyte(0xBE, 0x0);
  bus_shutdown();
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<spatial_init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <ptcoords_init@plt>
  mov    $0x0,%eax
  call   <pthashes_init@plt>
  nop
  pop    %rbp
  ret
```

assistant: ```c
void __attribute__((constructor)) spatial_init(void) {
  ptcoords_init();
  pthashes_init();
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<spatial_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <ptcoords_init@plt>
  mov    $0x0,%eax
  call   <pthashes_init@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void __attribute__((constructor)) spatial_init(void) {
  ptcoords_init();
  pthashes_init();
}
```
user: What is the c source code of the assembly code below?

```asm
<spatial_init>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <ptcoords_init@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1060 <pthashes_init@plt>
```

assistant: ```c
void __attribute__((constructor)) spatial_init(void) {
  ptcoords_init();
  pthashes_init();
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<spatial_init>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <ptcoords_init@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1060 <pthashes_init@plt>
```

assistant: ```c
void __attribute__((constructor)) spatial_init(void) {
  ptcoords_init();
  pthashes_init();
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<yyerror>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D6
type: string

tool: D6: 
ERROR!!


assistant: ```c
int yyerror() {
  printf("\nERROR!!\n");
  return (1);
}
```
user: What is the c source code of the assembly code below:

```asm
<yyerror>:
  endbr64
  sub    $0x8,%rsp
  lea    D8(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: read_data
arguments: data_label: D8
type_infered: string

tool: D8: 
ERROR!!


assistant: ```c
int yyerror() {
  printf("\nERROR!!\n");
  return (1);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<yyerror>:
  endbr64
  sub    $0x8,%rsp
  lea    D9(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D9
type: string

tool: D9: 
ERROR!!


assistant: ```c
int yyerror() {
  printf("\nERROR!!\n");
  return (1);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<yyerror>:
  endbr64
  sub    $0x8,%rsp
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D5
datatype: string

tool: D5: 
ERROR!!


assistant: ```c
int yyerror() {
  printf("\nERROR!!\n");
  return (1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<kc_go_next_word>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x4(%rbp)
  movb   $0x0,-0x5(%rbp)
  jmp    L182
L60:
  addq   $0x1,-0x18(%rbp)
  cmpb   $0xb,-0x5(%rbp)
  je     L160
  cmpb   $0xd,-0x5(%rbp)
  je     L160
  cmpb   $0xa,-0x5(%rbp)
  je     L160
  cmpb   $0x9,-0x5(%rbp)
  je     L160
  movsbl -0x5(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L160
  cmpb   $0x2c,-0x5(%rbp)
  je     L160
  cmpb   $0x21,-0x5(%rbp)
  je     L160
  cmpb   $0x28,-0x5(%rbp)
  je     L160
  cmpb   $0x29,-0x5(%rbp)
  je     L160
  cmpb   $0x7b,-0x5(%rbp)
  je     L160
  cmpb   $0x7d,-0x5(%rbp)
  je     L160
  cmpb   $0x5b,-0x5(%rbp)
  je     L160
  cmpb   $0x5d,-0x5(%rbp)
  jne    L140
L160:
  cmpl   $0x0,-0x4(%rbp)
  jne    L182
  movl   $0x1,-0x4(%rbp)
  jmp    L182
L140:
  cmpl   $0x1,-0x4(%rbp)
  jne    L182
  movl   $0x2,-0x4(%rbp)
L182:
  cmpl   $0x1,-0x4(%rbp)
  jg     L209
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x5(%rbp)
  cmpb   $0x0,-0x5(%rbp)
  jne    L60
L209:
  cmpb   $0x0,-0x5(%rbp)
  je     L143
  subq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  jmp    L97
L143:
  mov    $0x0,%eax
L97:
  leave
  ret
```

assistant: ```c
char *kc_go_next_word(char *fp) {
  int flag = 0;
  char ch = 0;
  while ((flag < 2) && ((ch = *(fp)) != '\0')) {
    fp++;
    if ((ch == '\v') || (ch == '\r') || (ch == '\n') || (ch == '\t') || isspace(ch) || (ch == ',') || (ch == '!') || (ch == '(') || (ch == ')') || (ch == '{') || (ch == '}') || (ch == '[') || (ch == ']')) {
      if (flag == 0)
        flag = 1;
    } else if (flag == 1)
      flag = 2;
  }
  if (ch != '\0') {
    --fp;
    return fp;
  } else
    return NULL;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<kc_go_next_word>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    $0x0,%r12d
  mov    $0x1,%r14d
  movabs $0x500000005,%r15
  jmp    L17
L37:
  cmp    $0x20,%bl
  jle    L49
  movabs $0x130200000000,%rax
  bt     %rbx,%rax
  jae    L49
L54:
  test   %r12d,%r12d
  cmove  %r14d,%r12d
L119:
  mov    %r13,%rbp
L17:
  movzbl 0x0(%rbp),%ebx
  test   %bl,%bl
  je     L5
  lea    0x1(%rbp),%r13
  cmp    $0xd,%bl
  je     L54
  lea    -0x9(%rbx),%eax
  cmp    $0x2,%al
  jbe    L54
  movsbl %bl,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L54
  cmp    $0x2c,%bl
  jle    L37
  sub    $0x5b,%ebx
  cmp    $0x22,%bl
  ja     L49
  bt     %rbx,%r15
  jb     L54
L49:
  cmp    $0x1,%r12d
  jne    L119
  mov    %rbp,%rax
  jmp    L50
L5:
  mov    $0x0,%eax
L50:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
char *kc_go_next_word(char *fp) {
  int flag = 0;
  char ch = 0;
  while ((flag < 2) && ((ch = *(fp)) != '\0')) {
    fp++;
    if ((ch == '\v') || (ch == '\r') || (ch == '\n') || (ch == '\t') || isspace(ch) || (ch == ',') || (ch == '!') || (ch == '(') || (ch == ')') || (ch == '{') || (ch == '}') || (ch == '[') || (ch == ']')) {
      if (flag == 0)
        flag = 1;
    } else if (flag == 1)
      flag = 2;
  }
  if (ch != '\0') {
    --fp;
    return fp;
  } else
    return NULL;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<kc_go_next_word>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  movabs $0x500000005,%r14
  push   %r13
  movabs $0x130200000000,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  jmp    L117
  xchg   %ax,%ax
L46:
  test   %r15d,%r15d
  jne    L14
  mov    $0x1,%r15d
L14:
  mov    %r12,%rbp
L117:
  movzbl 0x0(%rbp),%ebx
  test   %bl,%bl
  je     L17
  lea    0x1(%rbp),%r12
  cmp    $0xd,%bl
  je     L46
  lea    -0x9(%rbx),%eax
  cmp    $0x2,%al
  jbe    L46
  movsbl %bl,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L46
  cmp    $0x2c,%bl
  jle    L103
  sub    $0x5b,%ebx
  cmp    $0x22,%bl
  ja     L93
  bt     %rbx,%r14
  jb     L46
L93:
  cmp    $0x1,%r15d
  jne    L14
  add    $0x8,%rsp
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L103:
  cmp    $0x20,%bl
  jle    L93
  bt     %rbx,%r13
  jae    L93
  jmp    L46
  nopl   (%rax)
L17:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
char *kc_go_next_word(char *fp) {
  int flag = 0;
  char ch = 0;
  while ((flag < 2) && ((ch = *(fp)) != '\0')) {
    fp++;
    if ((ch == '\v') || (ch == '\r') || (ch == '\n') || (ch == '\t') || isspace(ch) || (ch == ',') || (ch == '!') || (ch == '(') || (ch == ')') || (ch == '{') || (ch == '}') || (ch == '[') || (ch == ']')) {
      if (flag == 0)
        flag = 1;
    } else if (flag == 1)
      flag = 2;
  }
  if (ch != '\0') {
    --fp;
    return fp;
  } else
    return NULL;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<kc_go_next_word>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  movabs $0x500000005,%r14
  push   %r13
  movabs $0x130200000000,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  jmp    L71
  xchg   %ax,%ax
L65:
  test   %r15d,%r15d
  jne    L113
  mov    $0x1,%r15d
L113:
  mov    %r12,%rbp
L71:
  movzbl 0x0(%rbp),%ebx
  test   %bl,%bl
  je     L78
  lea    0x1(%rbp),%r12
  cmp    $0xd,%bl
  je     L65
  lea    -0x9(%rbx),%eax
  cmp    $0x2,%al
  jbe    L65
  movsbl %bl,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L65
  cmp    $0x2c,%bl
  jle    L85
  sub    $0x5b,%ebx
  cmp    $0x22,%bl
  ja     L99
  bt     %rbx,%r14
  jb     L65
L99:
  cmp    $0x1,%r15d
  jne    L113
  add    $0x8,%rsp
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L85:
  cmp    $0x20,%bl
  jle    L99
  bt     %rbx,%r13
  jae    L99
  jmp    L65
  nopl   (%rax)
L78:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
char *kc_go_next_word(char *fp) {
  int flag = 0;
  char ch = 0;
  while ((flag < 2) && ((ch = *(fp)) != '\0')) {
    fp++;
    if ((ch == '\v') || (ch == '\r') || (ch == '\n') || (ch == '\t') || isspace(ch) || (ch == ',') || (ch == '!') || (ch == '(') || (ch == ')') || (ch == '{') || (ch == '}') || (ch == '[') || (ch == ']')) {
      if (flag == 0)
        flag = 1;
    } else if (flag == 1)
      flag = 2;
  }
  if (ch != '\0') {
    --fp;
    return fp;
  } else
    return NULL;
}
```