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

```asm
<gf8mul_11001001>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  pxor   %xmm7,%xmm6
  pxor   %xmm7,%xmm4
  pxor   %xmm7,%xmm3
  pxor   %xmm7,%xmm2
  pxor   %xmm7,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm6,%xmm3
  pxor   %xmm6,%xmm1
  pxor   %xmm6,%xmm0
  pxor   %xmm5,%xmm7
  pxor   %xmm5,%xmm6
  pxor   %xmm5,%xmm4
  pxor   %xmm5,%xmm3
  pxor   %xmm5,%xmm2
  pxor   %xmm5,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm4,%xmm7
  pxor   %xmm4,%xmm2
  pxor   %xmm4,%xmm1
  pxor   %xmm7,%xmm4
  pxor   %xmm3,%xmm6
  pxor   %xmm3,%xmm1
  pxor   %xmm3,%xmm0
  pxor   %xmm6,%xmm3
  pxor   %xmm2,%xmm7
  pxor   %xmm2,%xmm3
  pxor   %xmm2,%xmm1
  pxor   %xmm1,%xmm6
  pxor   %xmm1,%xmm2
  pxor   %xmm1,%xmm0
  pxor   %xmm0,%xmm7
  pxor   %xmm0,%xmm6
  pxor   %xmm0,%xmm3
  nop
  pop    %rbp
  ret
```

assistant: ```c
void gf8mul_11001001(void) {
  __asm__ __volatile__("\tpxor    %xmm7, %xmm6\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm7, %xmm3\n"
                       "\tpxor    %xmm7, %xmm2\n"
                       "\tpxor    %xmm7, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm6, %xmm1\n"
                       "\tpxor    %xmm6, %xmm0\n"
                       "\tpxor    %xmm5, %xmm7\n"
                       "\tpxor    %xmm5, %xmm6\n"
                       "\tpxor    %xmm5, %xmm4\n"
                       "\tpxor    %xmm5, %xmm3\n"
                       "\tpxor    %xmm5, %xmm2\n"
                       "\tpxor    %xmm5, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm4, %xmm7\n"
                       "\tpxor    %xmm4, %xmm2\n"
                       "\tpxor    %xmm4, %xmm1\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm3, %xmm6\n"
                       "\tpxor    %xmm3, %xmm1\n"
                       "\tpxor    %xmm3, %xmm0\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm2, %xmm7\n"
                       "\tpxor    %xmm2, %xmm3\n"
                       "\tpxor    %xmm2, %xmm1\n"
                       "\tpxor    %xmm1, %xmm6\n"
                       "\tpxor    %xmm1, %xmm2\n"
                       "\tpxor    %xmm1, %xmm0\n"
                       "\tpxor    %xmm0, %xmm7\n"
                       "\tpxor    %xmm0, %xmm6\n"
                       "\tpxor    %xmm0, %xmm3\n");
}
```
user: What is the c source code of the assembly code below:

```asm
<gf8mul_11001001>:
  endbr64
  pxor   %xmm7,%xmm6
  pxor   %xmm7,%xmm4
  pxor   %xmm7,%xmm3
  pxor   %xmm7,%xmm2
  pxor   %xmm7,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm6,%xmm3
  pxor   %xmm6,%xmm1
  pxor   %xmm6,%xmm0
  pxor   %xmm5,%xmm7
  pxor   %xmm5,%xmm6
  pxor   %xmm5,%xmm4
  pxor   %xmm5,%xmm3
  pxor   %xmm5,%xmm2
  pxor   %xmm5,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm4,%xmm7
  pxor   %xmm4,%xmm2
  pxor   %xmm4,%xmm1
  pxor   %xmm7,%xmm4
  pxor   %xmm3,%xmm6
  pxor   %xmm3,%xmm1
  pxor   %xmm3,%xmm0
  pxor   %xmm6,%xmm3
  pxor   %xmm2,%xmm7
  pxor   %xmm2,%xmm3
  pxor   %xmm2,%xmm1
  pxor   %xmm1,%xmm6
  pxor   %xmm1,%xmm2
  pxor   %xmm1,%xmm0
  pxor   %xmm0,%xmm7
  pxor   %xmm0,%xmm6
  pxor   %xmm0,%xmm3
  ret
```

assistant: ```c
void gf8mul_11001001(void) {
  __asm__ __volatile__("\tpxor    %xmm7, %xmm6\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm7, %xmm3\n"
                       "\tpxor    %xmm7, %xmm2\n"
                       "\tpxor    %xmm7, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm6, %xmm1\n"
                       "\tpxor    %xmm6, %xmm0\n"
                       "\tpxor    %xmm5, %xmm7\n"
                       "\tpxor    %xmm5, %xmm6\n"
                       "\tpxor    %xmm5, %xmm4\n"
                       "\tpxor    %xmm5, %xmm3\n"
                       "\tpxor    %xmm5, %xmm2\n"
                       "\tpxor    %xmm5, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm4, %xmm7\n"
                       "\tpxor    %xmm4, %xmm2\n"
                       "\tpxor    %xmm4, %xmm1\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm3, %xmm6\n"
                       "\tpxor    %xmm3, %xmm1\n"
                       "\tpxor    %xmm3, %xmm0\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm2, %xmm7\n"
                       "\tpxor    %xmm2, %xmm3\n"
                       "\tpxor    %xmm2, %xmm1\n"
                       "\tpxor    %xmm1, %xmm6\n"
                       "\tpxor    %xmm1, %xmm2\n"
                       "\tpxor    %xmm1, %xmm0\n"
                       "\tpxor    %xmm0, %xmm7\n"
                       "\tpxor    %xmm0, %xmm6\n"
                       "\tpxor    %xmm0, %xmm3\n");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<gf8mul_11001001>:
  endbr64
  pxor   %xmm7,%xmm6
  pxor   %xmm7,%xmm4
  pxor   %xmm7,%xmm3
  pxor   %xmm7,%xmm2
  pxor   %xmm7,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm6,%xmm3
  pxor   %xmm6,%xmm1
  pxor   %xmm6,%xmm0
  pxor   %xmm5,%xmm7
  pxor   %xmm5,%xmm6
  pxor   %xmm5,%xmm4
  pxor   %xmm5,%xmm3
  pxor   %xmm5,%xmm2
  pxor   %xmm5,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm4,%xmm7
  pxor   %xmm4,%xmm2
  pxor   %xmm4,%xmm1
  pxor   %xmm7,%xmm4
  pxor   %xmm3,%xmm6
  pxor   %xmm3,%xmm1
  pxor   %xmm3,%xmm0
  pxor   %xmm6,%xmm3
  pxor   %xmm2,%xmm7
  pxor   %xmm2,%xmm3
  pxor   %xmm2,%xmm1
  pxor   %xmm1,%xmm6
  pxor   %xmm1,%xmm2
  pxor   %xmm1,%xmm0
  pxor   %xmm0,%xmm7
  pxor   %xmm0,%xmm6
  pxor   %xmm0,%xmm3
  ret
```

assistant: ```c
void gf8mul_11001001(void) {
  __asm__ __volatile__("\tpxor    %xmm7, %xmm6\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm7, %xmm3\n"
                       "\tpxor    %xmm7, %xmm2\n"
                       "\tpxor    %xmm7, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm6, %xmm1\n"
                       "\tpxor    %xmm6, %xmm0\n"
                       "\tpxor    %xmm5, %xmm7\n"
                       "\tpxor    %xmm5, %xmm6\n"
                       "\tpxor    %xmm5, %xmm4\n"
                       "\tpxor    %xmm5, %xmm3\n"
                       "\tpxor    %xmm5, %xmm2\n"
                       "\tpxor    %xmm5, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm4, %xmm7\n"
                       "\tpxor    %xmm4, %xmm2\n"
                       "\tpxor    %xmm4, %xmm1\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm3, %xmm6\n"
                       "\tpxor    %xmm3, %xmm1\n"
                       "\tpxor    %xmm3, %xmm0\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm2, %xmm7\n"
                       "\tpxor    %xmm2, %xmm3\n"
                       "\tpxor    %xmm2, %xmm1\n"
                       "\tpxor    %xmm1, %xmm6\n"
                       "\tpxor    %xmm1, %xmm2\n"
                       "\tpxor    %xmm1, %xmm0\n"
                       "\tpxor    %xmm0, %xmm7\n"
                       "\tpxor    %xmm0, %xmm6\n"
                       "\tpxor    %xmm0, %xmm3\n");
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<gf8mul_11001001>:
  endbr64
  pxor   %xmm7,%xmm6
  pxor   %xmm7,%xmm4
  pxor   %xmm7,%xmm3
  pxor   %xmm7,%xmm2
  pxor   %xmm7,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm6,%xmm3
  pxor   %xmm6,%xmm1
  pxor   %xmm6,%xmm0
  pxor   %xmm5,%xmm7
  pxor   %xmm5,%xmm6
  pxor   %xmm5,%xmm4
  pxor   %xmm5,%xmm3
  pxor   %xmm5,%xmm2
  pxor   %xmm5,%xmm0
  pxor   %xmm6,%xmm5
  pxor   %xmm4,%xmm7
  pxor   %xmm4,%xmm2
  pxor   %xmm4,%xmm1
  pxor   %xmm7,%xmm4
  pxor   %xmm3,%xmm6
  pxor   %xmm3,%xmm1
  pxor   %xmm3,%xmm0
  pxor   %xmm6,%xmm3
  pxor   %xmm2,%xmm7
  pxor   %xmm2,%xmm3
  pxor   %xmm2,%xmm1
  pxor   %xmm1,%xmm6
  pxor   %xmm1,%xmm2
  pxor   %xmm1,%xmm0
  pxor   %xmm0,%xmm7
  pxor   %xmm0,%xmm6
  pxor   %xmm0,%xmm3
  ret
```

assistant: ```c
void gf8mul_11001001(void) {
  __asm__ __volatile__("\tpxor    %xmm7, %xmm6\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm7, %xmm3\n"
                       "\tpxor    %xmm7, %xmm2\n"
                       "\tpxor    %xmm7, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm6, %xmm1\n"
                       "\tpxor    %xmm6, %xmm0\n"
                       "\tpxor    %xmm5, %xmm7\n"
                       "\tpxor    %xmm5, %xmm6\n"
                       "\tpxor    %xmm5, %xmm4\n"
                       "\tpxor    %xmm5, %xmm3\n"
                       "\tpxor    %xmm5, %xmm2\n"
                       "\tpxor    %xmm5, %xmm0\n"
                       "\tpxor    %xmm6, %xmm5\n"
                       "\tpxor    %xmm4, %xmm7\n"
                       "\tpxor    %xmm4, %xmm2\n"
                       "\tpxor    %xmm4, %xmm1\n"
                       "\tpxor    %xmm7, %xmm4\n"
                       "\tpxor    %xmm3, %xmm6\n"
                       "\tpxor    %xmm3, %xmm1\n"
                       "\tpxor    %xmm3, %xmm0\n"
                       "\tpxor    %xmm6, %xmm3\n"
                       "\tpxor    %xmm2, %xmm7\n"
                       "\tpxor    %xmm2, %xmm3\n"
                       "\tpxor    %xmm2, %xmm1\n"
                       "\tpxor    %xmm1, %xmm6\n"
                       "\tpxor    %xmm1, %xmm2\n"
                       "\tpxor    %xmm1, %xmm0\n"
                       "\tpxor    %xmm0, %xmm7\n"
                       "\tpxor    %xmm0, %xmm6\n"
                       "\tpxor    %xmm0, %xmm3\n");
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L4
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L27
L4:
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L27:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L29
  call   <__stack_chk_fail@plt>
L29:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D19
type_infered: string
name: parse_data
arguments: data_tag: D24
type_infered: string
name: parse_data
arguments: data_tag: D32
type_infered: string
name: parse_data
arguments: data_tag: D38
type_infered: string

tool: D19: Enter a Number: 

tool: D24: %d

tool: D32: The Number %d is Odd 


tool: D38: The Number %d is Even 


assistant: ```c
int main() {
  int n;
  printf("Enter a Number: ");
  scanf("%d", &n);
  if (n % 2)
    printf("The Number %d is Odd \n", n);
  else
    printf("The Number %d is Even \n", n);
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D22(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D11(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%esi
  test   $0x1,%sil
  je     L18
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L14:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  mov    $0x0,%eax
  add    $0x18,%rsp
  ret
L18:
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L14
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D22
type_guessed: string
name: disassemble_data
arguments: data_label: D11
type_guessed: string
name: disassemble_data
arguments: data_label: D19
type_guessed: string
name: disassemble_data
arguments: data_label: D4
type_guessed: string

tool: D22: Enter a Number: 

tool: D11: %d

tool: D19: The Number %d is Odd 


tool: D4: The Number %d is Even 


assistant: ```c
int main() {
  int n;
  printf("Enter a Number: ");
  scanf("%d", &n);
  if (n % 2)
    printf("The Number %d is Odd \n", n);
  else
    printf("The Number %d is Even \n", n);
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D36(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D12(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%esi
  test   $0x1,%sil
  je     L23
  lea    D22(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L20:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L23:
  lea    D38(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L20
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D36
type_guessed: string
name: disassemble_data
arguments: tag: D12
type_guessed: string
name: disassemble_data
arguments: tag: D22
type_guessed: string
name: disassemble_data
arguments: tag: D38
type_guessed: string

tool: D36: Enter a Number: 

tool: D12: %d

tool: D22: The Number %d is Odd 


tool: D38: The Number %d is Even 


assistant: ```c
int main() {
  int n;
  printf("Enter a Number: ");
  scanf("%d", &n);
  if (n % 2)
    printf("The Number %d is Odd \n", n);
  else
    printf("The Number %d is Even \n", n);
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D7(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D27(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%esi
  test   $0x1,%sil
  je     L7
  lea    D18(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L8:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L7:
  lea    D9(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L8
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D7
type: string
name: disassemble_data
arguments: tag: D27
type: string
name: disassemble_data
arguments: tag: D18
type: string
name: disassemble_data
arguments: tag: D9
type: string

tool: D7: Enter a Number: 

tool: D27: %d

tool: D18: The Number %d is Odd 


tool: D9: The Number %d is Even 


assistant: ```c
int main() {
  int n;
  printf("Enter a Number: ");
  scanf("%d", &n);
  if (n % 2)
    printf("The Number %d is Odd \n", n);
  else
    printf("The Number %d is Even \n", n);
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<mallocFreeMalloc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    $0xc,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0xc,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

assistant: ```c
void mallocFreeMalloc() {
  int *p = malloc(12);
  free(p);
  p = malloc(12);
  free(p);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<mallocFreeMalloc>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xc,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0xc,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  call   <free@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void mallocFreeMalloc() {
  int *p = malloc(12);
  free(p);
  p = malloc(12);
  free(p);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<mallocFreeMalloc>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xc,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0xc,%edi
  call   <malloc@plt>
  add    $0x8,%rsp
  mov    %rax,%rdi
  jmp    1060 <free@plt>
```

assistant: ```c
void mallocFreeMalloc() {
  int *p = malloc(12);
  free(p);
  p = malloc(12);
  free(p);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<mallocFreeMalloc>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xc,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0xc,%edi
  call   <malloc@plt>
  add    $0x8,%rsp
  mov    %rax,%rdi
  jmp    1060 <free@plt>
```

assistant: ```c
void mallocFreeMalloc() {
  int *p = malloc(12);
  free(p);
  p = malloc(12);
  free(p);
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<wcsutil_double2str>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x28(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  movq   %rcx,%xmm0
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <wcsutil_locale_to_dot@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L129
L36:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L35
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L74
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x65,%al
  je     L113
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x45,%al
  je     L39
L35:
  addq   $0x1,-0x10(%rbp)
L129:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L36
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L31
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L76
  addq   $0x1,-0x8(%rbp)
  jmp    L76
L33:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x10(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x10(%rbp)
  addq   $0x1,-0x8(%rbp)
L76:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L33
  mov    -0x10(%rbp),%rax
  movb   $0x2e,(%rax)
  addq   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jae    L31
  mov    -0x10(%rbp),%rax
  movb   $0x30,(%rax)
  jmp    L31
L74:
  nop
  jmp    L31
L113:
  nop
  jmp    L31
L39:
  nop
L31:
  leave
  ret
```

assistant: ```c
void wcsutil_double2str(char *buf, const char *format, double value) {
  sprintf(buf, format, value);
  wcsutil_locale_to_dot(buf);
  char *bp = buf;
  while (*bp) {
    if (*bp != ' ') {
      if (*bp == '.')
        return;
      if (*bp == 'e')
        return;
      if (*bp == 'E')
        return;
    }
    bp++;
  }
  bp = buf;
  if (*bp == ' ') {
    char *cp = buf + 1;
    if (*cp == ' ')
      cp++;
    while (*cp) {
      *bp = *cp;
      bp++;
      cp++;
    }
    *bp = '.';
    bp++;
    if (bp < cp)
      *bp = '0';
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<wcsutil_double2str>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <wcsutil_locale_to_dot@plt>
  movzbl (%rbx),%esi
  test   %sil,%sil
  je     L73
  mov    %rbx,%rdx
  mov    %esi,%eax
  jmp    L139
L23:
  add    $0x1,%rdx
  movzbl (%rdx),%eax
  test   %al,%al
  je     L97
L139:
  cmp    $0x20,%al
  je     L23
  mov    %eax,%ecx
  and    $0xffffffdf,%ecx
  cmp    $0x45,%cl
  je     L73
  cmp    $0x2e,%al
  jne    L23
L73:
  pop    %rbx
  ret
L97:
  cmp    $0x20,%sil
  jne    L73
  movzbl 0x1(%rbx),%eax
  cmp    $0x20,%al
  je     L69
  test   %al,%al
  je     L128
  lea    0x1(%rbx),%rdx
L123:
  mov    %al,(%rbx)
  add    $0x1,%rbx
  add    $0x1,%rdx
  movzbl (%rdx),%eax
  test   %al,%al
  jne    L123
L64:
  movb   $0x2e,(%rbx)
  lea    0x1(%rbx),%rax
  cmp    %rax,%rdx
  jbe    L73
  movb   $0x30,0x1(%rbx)
  jmp    L73
L69:
  lea    0x2(%rbx),%rdx
  movzbl 0x2(%rbx),%eax
  test   %al,%al
  jne    L123
  jmp    L64
L128:
  movb   $0x2e,(%rbx)
  jmp    L73
```

assistant: ```c
void wcsutil_double2str(char *buf, const char *format, double value) {
  sprintf(buf, format, value);
  wcsutil_locale_to_dot(buf);
  char *bp = buf;
  while (*bp) {
    if (*bp != ' ') {
      if (*bp == '.')
        return;
      if (*bp == 'e')
        return;
      if (*bp == 'E')
        return;
    }
    bp++;
  }
  bp = buf;
  if (*bp == ' ') {
    char *cp = buf + 1;
    if (*cp == ' ')
      cp++;
    while (*cp) {
      *bp = *cp;
      bp++;
      cp++;
    }
    *bp = '.';
    bp++;
    if (bp < cp)
      *bp = '0';
  }
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<wcsutil_double2str>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <wcsutil_locale_to_dot@plt>
  movzbl (%rbx),%esi
  test   %sil,%sil
  je     L132
  mov    %rbx,%rdx
  mov    %esi,%eax
  jmp    L133
  nopl   0x0(%rax)
L53:
  cmp    $0x2e,%al
  je     L132
L112:
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rdx
  test   %al,%al
  je     L24
L133:
  cmp    $0x20,%al
  je     L112
  mov    %eax,%ecx
  and    $0xffffffdf,%ecx
  cmp    $0x45,%cl
  jne    L53
L132:
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L24:
  cmp    $0x20,%sil
  jne    L132
  movzbl 0x1(%rbx),%eax
  lea    0x1(%rbx),%rcx
  mov    %rcx,%rdx
  cmp    $0x20,%al
  je     L109
  test   %al,%al
  jne    L19
  jmp    L102
  nopl   0x0(%rax,%rax,1)
L97:
  add    $0x1,%rcx
L19:
  add    $0x1,%rdx
  mov    %al,(%rbx)
  mov    %rbx,%rsi
  mov    %rcx,%rbx
  movzbl (%rdx),%eax
  test   %al,%al
  jne    L97
  add    $0x2,%rsi
L128:
  movb   $0x2e,(%rbx)
  cmp    %rdx,%rsi
  jae    L132
  movb   $0x30,0x1(%rbx)
  pop    %rbx
  ret
L109:
  movzbl 0x2(%rbx),%eax
  lea    0x2(%rbx),%rdi
  test   %al,%al
  je     L71
  mov    %rdi,%rdx
  jmp    L19
L102:
  movb   $0x2e,(%rbx)
  pop    %rbx
  ret
L71:
  mov    %rcx,%rsi
  mov    %rdi,%rdx
  jmp    L128
```

assistant: ```c
void wcsutil_double2str(char *buf, const char *format, double value) {
  sprintf(buf, format, value);
  wcsutil_locale_to_dot(buf);
  char *bp = buf;
  while (*bp) {
    if (*bp != ' ') {
      if (*bp == '.')
        return;
      if (*bp == 'e')
        return;
      if (*bp == 'E')
        return;
    }
    bp++;
  }
  bp = buf;
  if (*bp == ' ') {
    char *cp = buf + 1;
    if (*cp == ' ')
      cp++;
    while (*cp) {
      *bp = *cp;
      bp++;
      cp++;
    }
    *bp = '.';
    bp++;
    if (bp < cp)
      *bp = '0';
  }
}
```