ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<pp_sin>:
  endbr64
  movsd  D177(%rip),%xmm2
  movsd  D136(%rip),%xmm1
  comisd %xmm0,%xmm2
  jbe    L0
  nopw   0x0(%rax,%rax,1)
L14:
  addsd  %xmm1,%xmm0
  comisd %xmm0,%xmm2
  ja     L14
L0:
  movsd  D143(%rip),%xmm2
  movsd  D136(%rip),%xmm1
  comisd %xmm2,%xmm0
  jbe    L3
L8:
  subsd  %xmm1,%xmm0
  comisd %xmm2,%xmm0
  ja     L8
L3:
  comisd D102(%rip),%xmm0
  jbe    L15
  subsd  D95(%rip),%xmm0
  divsd  D26(%rip),%xmm0
  movapd %xmm0,%xmm2
  movsd  D150(%rip),%xmm1
  mulsd  %xmm0,%xmm2
  mulsd  %xmm2,%xmm1
  subsd  D64(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D51(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  D109(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D67(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  xorpd  D125(%rip),%xmm0
  ret
  nopl   0x0(%rax)
L15:
  divsd  D26(%rip),%xmm0
  movapd %xmm0,%xmm2
  movsd  D150(%rip),%xmm1
  mulsd  %xmm0,%xmm2
  mulsd  %xmm2,%xmm1
  subsd  D64(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D51(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  D109(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D67(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  ret
```

tool_calls: name: parse_data
arguments: label: D177
type_guessed: byte[8]
name: parse_data
arguments: label: D136
type_guessed: f64
name: parse_data
arguments: label: D143
type_guessed: f64
name: parse_data
arguments: label: D102
type_guessed: f64[2]
name: parse_data
arguments: label: D95
type_guessed: f64
name: parse_data
arguments: label: D26
type_guessed: f64
name: parse_data
arguments: label: D150
type_guessed: byte[8]
name: parse_data
arguments: label: D64
type_guessed: byte[8]
name: parse_data
arguments: label: D51
type_guessed: byte[8]
name: parse_data
arguments: label: D109
type_guessed: byte[8]
name: parse_data
arguments: label: D67
type_guessed: f64
name: parse_data
arguments: label: D125
type_guessed: byte[16]

tool: {"D177": [0x18,0x2d,0x44,0x54,0xfb,0x21,0xf9,0xbf]}

tool: D136: 6.283185307179586

tool: D143: 4.71238898038469

tool: {"D102": [1.5707963267948966,3.141592653589793]}

tool: D95: 3.141592653589793

tool: D26: 1.57079632679

tool: {"D150": [0xaf,0x90,0xa8,0x48,0xf7,0xda,0x23,0x3f]}

tool: {"D64": [0x0e,0x6d,0x5b,0x64,0xcc,0x24,0x73,0x3f]}

tool: {"D51": [0xa5,0x19,0x56,0xf6,0x8a,0x66,0xb4,0x3f]}

tool: {"D109": [0xcd,0xf9,0xac,0x16,0xbc,0xab,0xe4,0x3f]}

tool: D67: 1.57079631847

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

assistant: ```c
double pp_sin(double x) {
  double xi, y, q, q2;
  int sign;
  xi = x;
  sign = 1;
  while (xi < -1.57079632679489661923)
    xi += 6.28318530717958647692;
  while (xi > 4.71238898038468985769)
    xi -= 6.28318530717958647692;
  if (xi > 1.57079632679489661923) {
    xi -= 3.141592653589793238462643;
    sign = -1;
  }
  q = xi / 1.57079632679;
  q2 = q * q;
  y = ((((.00015148419 * q2 - .00467376557) * q2 + .07968967928) * q2 - .64596371106) * q2 + 1.57079631847) * q;
  return (sign < 0 ? -y : y);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<pp_sin>:
  endbr64
  movsd  D186(%rip),%xmm2
  movsd  D56(%rip),%xmm1
  comisd %xmm0,%xmm2
  jbe    L33
  nopw   0x0(%rax,%rax,1)
L31:
  addsd  %xmm1,%xmm0
  comisd %xmm0,%xmm2
  ja     L31
L33:
  movsd  D179(%rip),%xmm2
  movsd  D56(%rip),%xmm1
  comisd %xmm2,%xmm0
  jbe    L16
L9:
  subsd  %xmm1,%xmm0
  comisd %xmm2,%xmm0
  ja     L9
L16:
  comisd D98(%rip),%xmm0
  jbe    L43
  subsd  D125(%rip),%xmm0
  divsd  D174(%rip),%xmm0
  movapd %xmm0,%xmm2
  movsd  D184(%rip),%xmm1
  mulsd  %xmm0,%xmm2
  mulsd  %xmm2,%xmm1
  subsd  D43(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D163(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  D181(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D168(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  xorpd  D115(%rip),%xmm0
  ret
  nopl   0x0(%rax)
L43:
  divsd  D174(%rip),%xmm0
  movapd %xmm0,%xmm2
  movsd  D184(%rip),%xmm1
  mulsd  %xmm0,%xmm2
  mulsd  %xmm2,%xmm1
  subsd  D43(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D163(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  D181(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D168(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D186
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D56
type_infered: f64
name: retrieve_data
arguments: data_label: D179
type_infered: f64
name: retrieve_data
arguments: data_label: D98
type_infered: f64[2]
name: retrieve_data
arguments: data_label: D125
type_infered: f64
name: retrieve_data
arguments: data_label: D174
type_infered: f64
name: retrieve_data
arguments: data_label: D184
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D43
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D163
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D181
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D168
type_infered: f64
name: retrieve_data
arguments: data_label: D115
type_infered: byte[16]

tool: {"D186": [0x18,0x2d,0x44,0x54,0xfb,0x21,0xf9,0xbf]}

tool: D56: 6.283185307179586

tool: D179: 4.71238898038469

tool: {"D98": [1.5707963267948966,3.141592653589793]}

tool: D125: 3.141592653589793

tool: D174: 1.57079632679

tool: {"D184": [0xaf,0x90,0xa8,0x48,0xf7,0xda,0x23,0x3f]}

tool: {"D43": [0x0e,0x6d,0x5b,0x64,0xcc,0x24,0x73,0x3f]}

tool: {"D163": [0xa5,0x19,0x56,0xf6,0x8a,0x66,0xb4,0x3f]}

tool: {"D181": [0xcd,0xf9,0xac,0x16,0xbc,0xab,0xe4,0x3f]}

tool: D168: 1.57079631847

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

assistant: ```c
double pp_sin(double x) {
  double xi, y, q, q2;
  int sign;
  xi = x;
  sign = 1;
  while (xi < -1.57079632679489661923)
    xi += 6.28318530717958647692;
  while (xi > 4.71238898038468985769)
    xi -= 6.28318530717958647692;
  if (xi > 1.57079632679489661923) {
    xi -= 3.141592653589793238462643;
    sign = -1;
  }
  q = xi / 1.57079632679;
  q2 = q * q;
  y = ((((.00015148419 * q2 - .00467376557) * q2 + .07968967928) * q2 - .64596371106) * q2 + 1.57079631847) * q;
  return (sign < 0 ? -y : y);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    $0x0,%eax
  call   <ksft_print_header@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_syscall_support@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_simple_success@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_exited_fail@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_recycled_pid_fail@plt>
  mov    $0x0,%eax
  call   <ksft_exit_pass@plt>
  leave
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  ksft_print_header();
  test_pidfd_send_signal_syscall_support();
  test_pidfd_send_signal_simple_success();
  test_pidfd_send_signal_exited_fail();
  test_pidfd_send_signal_recycled_pid_fail();
  return ksft_exit_pass();
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <ksft_print_header@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_syscall_support@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_simple_success@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_exited_fail@plt>
  mov    $0x0,%eax
  call   <test_pidfd_send_signal_recycled_pid_fail@plt>
  mov    $0x0,%eax
  call   <ksft_exit_pass@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  ksft_print_header();
  test_pidfd_send_signal_syscall_support();
  test_pidfd_send_signal_simple_success();
  test_pidfd_send_signal_exited_fail();
  test_pidfd_send_signal_recycled_pid_fail();
  return ksft_exit_pass();
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <ksft_print_header@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_syscall_support@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_simple_success@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_exited_fail@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_recycled_pid_fail@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    10f0 <ksft_exit_pass@plt>
```

assistant: ```c
int main(int argc, char **argv) {
  ksft_print_header();
  test_pidfd_send_signal_syscall_support();
  test_pidfd_send_signal_simple_success();
  test_pidfd_send_signal_exited_fail();
  test_pidfd_send_signal_recycled_pid_fail();
  return ksft_exit_pass();
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <ksft_print_header@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_syscall_support@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_simple_success@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_exited_fail@plt>
  xor    %eax,%eax
  call   <test_pidfd_send_signal_recycled_pid_fail@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    10f0 <ksft_exit_pass@plt>
```

assistant: ```c
int main(int argc, char **argv) {
  ksft_print_header();
  test_pidfd_send_signal_syscall_support();
  test_pidfd_send_signal_simple_success();
  test_pidfd_send_signal_exited_fail();
  test_pidfd_send_signal_recycled_pid_fail();
  return ksft_exit_pass();
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    $0x0,%eax
  call   <test_parse_file_size@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L9
  mov    D0(%rip),%rax
  mov    (%rax),%eax
  jmp    L19
L9:
  mov    D17(%rip),%rax
  mov    (%rax),%eax
L19:
  leave
  ret
```

assistant: ```c
int main(void) {
  int ret;
  ret = test_parse_file_size();
  if (ret) {
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <test_parse_file_size@plt>
  test   %eax,%eax
  jne    L0
  mov    D17(%rip),%rax
  mov    (%rax),%eax
L7:
  add    $0x8,%rsp
  ret
L0:
  mov    D8(%rip),%rax
  mov    (%rax),%eax
  jmp    L7
```

assistant: ```c
int main(void) {
  int ret;
  ret = test_parse_file_size();
  if (ret) {
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <test_parse_file_size@plt>
  test   %eax,%eax
  jne    L17
  mov    D3(%rip),%rax
  mov    (%rax),%eax
L10:
  add    $0x8,%rsp
  ret
L17:
  mov    D6(%rip),%rax
  mov    (%rax),%eax
  jmp    L10
```

assistant: ```c
int main(void) {
  int ret;
  ret = test_parse_file_size();
  if (ret) {
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <test_parse_file_size@plt>
  test   %eax,%eax
  jne    L3
  mov    D19(%rip),%rax
  mov    (%rax),%eax
L6:
  add    $0x8,%rsp
  ret
L3:
  mov    D14(%rip),%rax
  mov    (%rax),%eax
  jmp    L6
```

assistant: ```c
int main(void) {
  int ret;
  ret = test_parse_file_size();
  if (ret) {
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<strlen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  movq   $0x0,-0x8(%rbp)
  jmp    L13
L16:
  addq   $0x1,-0x8(%rbp)
L13:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  test   %al,%al
  jne    L16
  mov    -0x8(%rbp),%rax
  pop    %rbp
  ret
```

assistant: ```c
size_t strlen(const char *src) {
  size_t i = 0;
  while (*src++)
    i++;
  return i;
}
```
user: What is the c source code of the assembly code below:

```asm
<strlen>:
  endbr64
  cmpb   $0x0,(%rdi)
  je     L3
  mov    $0x0,%eax
L2:
  add    $0x1,%rax
  cmpb   $0x0,(%rdi,%rax,1)
  jne    L2
  ret
L3:
  mov    $0x0,%eax
  ret
```

assistant: ```c
size_t strlen(const char *src) {
  size_t i = 0;
  while (*src++)
    i++;
  return i;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<strlen>:
  endbr64
  xor    %eax,%eax
  cmpb   $0x0,(%rdi)
  je     L13
  nopl   0x0(%rax,%rax,1)
L3:
  add    $0x1,%rax
  cmpb   $0x0,(%rdi,%rax,1)
  jne    L3
  ret
  nopl   0x0(%rax,%rax,1)
L13:
  ret
```

assistant: ```c
size_t strlen(const char *src) {
  size_t i = 0;
  while (*src++)
    i++;
  return i;
}
```
user: Translate the below assembly code into C programming language:

```asm
<strlen>:
  endbr64
  xor    %eax,%eax
  cmpb   $0x0,(%rdi)
  je     L18
  nopl   0x0(%rax,%rax,1)
L7:
  add    $0x1,%rax
  cmpb   $0x0,(%rdi,%rax,1)
  jne    L7
  ret
  nopl   0x0(%rax,%rax,1)
L18:
  ret
```

assistant: ```c
size_t strlen(const char *src) {
  size_t i = 0;
  while (*src++)
    i++;
  return i;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  lea    D20(%rip),%rax
  mov    %rax,-0x10(%rbp)
  lea    D16(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <CalculatedLast@plt>
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <BooyerMoor@plt>
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D20
type_guessed: string
name: retrieve_data
arguments: label: D16
type_guessed: string
name: retrieve_data
arguments: label: D5
type_guessed: string

tool: D20: dcabcdabc

tool: D16: abcdabc

tool: D5: %d


assistant: ```c
void main() {
  char *text = "dcabcdabc";
  char *pattern = "abcdabc";
  CalculatedLast(pattern);
  printf("%d\n", BooyerMoor(text, pattern));
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbx
  lea    D17(%rip),%rbx
  mov    %rbx,%rdi
  call   <CalculatedLast@plt>
  mov    %rbx,%rsi
  lea    D11(%rip),%rdi
  call   <BooyerMoor@plt>
  mov    %eax,%esi
  lea    D1(%rip),%rdi
  call   <printf@plt>
  pop    %rbx
  ret
```

tool_calls: name: parse_data
arguments: label: D17
datatype: string
name: parse_data
arguments: label: D11
datatype: string
name: parse_data
arguments: label: D1
datatype: string

tool: D17: abcdabc

tool: D11: dcabcdabc

tool: D1: %d


assistant: ```c
void main() {
  char *text = "dcabcdabc";
  char *pattern = "abcdabc";
  CalculatedLast(pattern);
  printf("%d\n", BooyerMoor(text, pattern));
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<main>:
  endbr64
  push   %rbp
  lea    D4(%rip),%rbp
  mov    %rbp,%rdi
  call   <CalculatedLast@plt>
  mov    %rbp,%rsi
  lea    D26(%rip),%rdi
  call   <BooyerMoor@plt>
  lea    D1(%rip),%rdi
  pop    %rbp
  mov    %eax,%esi
  jmp    1080 <printf@plt>
```

tool_calls: name: parse_data
arguments: data_label: D4
type_guessed: string
name: parse_data
arguments: data_label: D26
type_guessed: string
name: parse_data
arguments: data_label: D1
type_guessed: string

tool: D4: abcdabc

tool: D26: dcabcdabc

tool: D1: %d


assistant: ```c
void main() {
  char *text = "dcabcdabc";
  char *pattern = "abcdabc";
  CalculatedLast(pattern);
  printf("%d\n", BooyerMoor(text, pattern));
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D20(%rip),%rbp
  mov    %rbp,%rdi
  call   <CalculatedLast@plt>
  mov    %rbp,%rsi
  lea    D4(%rip),%rdi
  call   <BooyerMoor@plt>
  lea    D29(%rip),%rdi
  pop    %rbp
  mov    %eax,%esi
  jmp    1080 <printf@plt>
```

tool_calls: name: read_data
arguments: label: D20
type_infered: string
name: read_data
arguments: label: D4
type_infered: string
name: read_data
arguments: label: D29
type_infered: string

tool: D20: abcdabc

tool: D4: dcabcdabc

tool: D29: %d


assistant: ```c
void main() {
  char *text = "dcabcdabc";
  char *pattern = "abcdabc";
  CalculatedLast(pattern);
  printf("%d\n", BooyerMoor(text, pattern));
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<Sys_In_Restart_f>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <IN_Shutdown@plt>
  mov    $0x0,%eax
  call   <IN_Init@plt>
  nop
  pop    %rbp
  ret
```

assistant: ```c
void Sys_In_Restart_f(void) {
  IN_Shutdown();
  IN_Init();
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<Sys_In_Restart_f>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <IN_Shutdown@plt>
  mov    $0x0,%eax
  call   <IN_Init@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void Sys_In_Restart_f(void) {
  IN_Shutdown();
  IN_Init();
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<Sys_In_Restart_f>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <IN_Shutdown@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1060 <IN_Init@plt>
```

assistant: ```c
void Sys_In_Restart_f(void) {
  IN_Shutdown();
  IN_Init();
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<Sys_In_Restart_f>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <IN_Shutdown@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1060 <IN_Init@plt>
```

assistant: ```c
void Sys_In_Restart_f(void) {
  IN_Shutdown();
  IN_Init();
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<ProcExtsFromExtString>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %rdi,-0x148(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x148(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x120(%rbp)
  mov    -0x148(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x118(%rbp)
  mov    -0x148(%rbp),%rax
  mov    %rax,-0x130(%rbp)
  jmp    L55
L34:
  movl   $0x0,-0x134(%rbp)
  mov    -0x130(%rbp),%rax
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x128(%rbp)
  movl   $0x0,-0x138(%rbp)
  cmpq   $0x0,-0x128(%rbp)
  jne    L36
  mov    -0x118(%rbp),%rax
  mov    %rax,-0x128(%rbp)
  movl   $0x1,-0x138(%rbp)
L36:
  mov    -0x128(%rbp),%rax
  mov    -0x130(%rbp),%rdx
  sub    %rdx,%rax
  mov    %eax,-0x134(%rbp)
  cmpl   $0xff,-0x134(%rbp)
  jg     L49
  mov    -0x134(%rbp),%edx
  mov    -0x130(%rbp),%rcx
  lea    -0x110(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x134(%rbp),%eax
  cltq
  movb   $0x0,-0x110(%rbp,%rax,1)
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <LoadExtByName@plt>
  mov    -0x128(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x130(%rbp)
  cmpl   $0x0,-0x138(%rbp)
  jne    L60
L55:
  mov    -0x130(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L34
  jmp    L68
L49:
  nop
  jmp    L68
L60:
  nop
L68:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L66
  call   <__stack_chk_fail@plt>
L66:
  leave
  ret
```

assistant: ```c
void ProcExtsFromExtString(const char *strExtList) {
  size_t iExtListLen = strlen(strExtList);
  const char *strExtListEnd = strExtList + iExtListLen;
  const char *strCurrPos = strExtList;
  char strWorkBuff[256];
  while (*strCurrPos) {
    int iStrLen = 0;
    const char *strEndStr = strchr(strCurrPos, ' ');
    int iStop = 0;
    if (strEndStr == NULL) {
      strEndStr = strExtListEnd;
      iStop = 1;
    }
    iStrLen = (int)((ptrdiff_t)strEndStr - (ptrdiff_t)strCurrPos);
    if (iStrLen > 255)
      return;
    strncpy(strWorkBuff, strCurrPos, iStrLen);
    strWorkBuff[iStrLen] = '\0';
    LoadExtByName(strWorkBuff);
    strCurrPos = strEndStr + 1;
    if (iStop)
      break;
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<ProcExtsFromExtString>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x118,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  mov    %rax,%r13
  mov    %rbx,%rbp
  mov    %rsp,%r14
L34:
  cmpb   $0x0,0x0(%rbp)
  jne    L37
L53:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L37:
  mov    $0x20,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L10
  mov    %rax,%r15
  sub    %rbp,%r15
  mov    %r15d,%edx
  cmp    $0xff,%r15d
  jg     L53
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strncpy@plt>
  movslq %r15d,%r15
  movb   $0x0,(%rsp,%r15,1)
  mov    %r14,%rdi
  call   <LoadExtByName@plt>
  lea    0x1(%r12),%rbp
  jmp    L34
L10:
  add    %r13,%rbx
  sub    %rbp,%rbx
  mov    %ebx,%edx
  cmp    $0xff,%ebx
  jg     L53
  mov    %rsp,%r12
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  movslq %ebx,%rbx
  movb   $0x0,(%rsp,%rbx,1)
  mov    %r12,%rdi
  call   <LoadExtByName@plt>
  jmp    L53
L54:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void ProcExtsFromExtString(const char *strExtList) {
  size_t iExtListLen = strlen(strExtList);
  const char *strExtListEnd = strExtList + iExtListLen;
  const char *strCurrPos = strExtList;
  char strWorkBuff[256];
  while (*strCurrPos) {
    int iStrLen = 0;
    const char *strEndStr = strchr(strCurrPos, ' ');
    int iStop = 0;
    if (strEndStr == NULL) {
      strEndStr = strExtListEnd;
      iStop = 1;
    }
    iStrLen = (int)((ptrdiff_t)strEndStr - (ptrdiff_t)strCurrPos);
    if (iStrLen > 255)
      return;
    strncpy(strWorkBuff, strCurrPos, iStrLen);
    strWorkBuff[iStrLen] = '\0';
    LoadExtByName(strWorkBuff);
    strCurrPos = strEndStr + 1;
    if (iStop)
      break;
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ProcExtsFromExtString>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmpb   $0x0,(%rbx)
  jne    L6
L71:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L6:
  mov    %rax,%rbp
  mov    %rbx,%r15
  mov    %rsp,%r14
L68:
  mov    $0x20,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L58
  mov    %rax,%r13
  sub    %r15,%r13
  mov    %r13d,%edx
  cmp    $0xff,%r13d
  jg     L71
  mov    %r15,%rsi
  mov    %r14,%rdi
  lea    0x1(%r12),%r15
  movslq %r13d,%r13
  call   <strncpy@plt>
  mov    %r14,%rdi
  movb   $0x0,(%rsp,%r13,1)
  call   <LoadExtByName@plt>
  cmpb   $0x0,0x1(%r12)
  je     L71
  jmp    L68
  xchg   %ax,%ax
L58:
  add    %rbp,%rbx
  sub    %r15,%rbx
  mov    %ebx,%edx
  cmp    $0xff,%ebx
  jg     L71
  mov    %rsp,%rbp
  mov    %r15,%rsi
  movslq %ebx,%rbx
  mov    %rbp,%rdi
  call   <strncpy@plt>
  mov    %rbp,%rdi
  movb   $0x0,(%rsp,%rbx,1)
  call   <LoadExtByName@plt>
  jmp    L71
L14:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void ProcExtsFromExtString(const char *strExtList) {
  size_t iExtListLen = strlen(strExtList);
  const char *strExtListEnd = strExtList + iExtListLen;
  const char *strCurrPos = strExtList;
  char strWorkBuff[256];
  while (*strCurrPos) {
    int iStrLen = 0;
    const char *strEndStr = strchr(strCurrPos, ' ');
    int iStop = 0;
    if (strEndStr == NULL) {
      strEndStr = strExtListEnd;
      iStop = 1;
    }
    iStrLen = (int)((ptrdiff_t)strEndStr - (ptrdiff_t)strCurrPos);
    if (iStrLen > 255)
      return;
    strncpy(strWorkBuff, strCurrPos, iStrLen);
    strWorkBuff[iStrLen] = '\0';
    LoadExtByName(strWorkBuff);
    strCurrPos = strEndStr + 1;
    if (iStop)
      break;
  }
}
```