ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What is the c source code of the assembly code below?

```asm
<hash_plugin_detailed>:
  endbr64
  lea    D4(%rip),%rax
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D4
type_infered: string

tool: D4: wpa - WPA-PSK plugin
------------------------------------------------
Use this module to crack WPA-PSK keys
Input should be a pcap dump file specified with -f
Known software that uses this password hashing method:
Various 802.11 implementations.

Author: Milen Rangelov <gat3way@gat3way.eu>


assistant: ```c
char *hash_plugin_detailed(void) {
  return ("wpa - WPA-PSK plugin\n"
          "------------------------------------------------\n"
          "Use this module to crack WPA-PSK keys\n"
          "Input should be a pcap dump file specified with -f\n"
          "Known software that uses this password hashing method:\n"
          "Various 802.11 implementations.\n"
          "\nAuthor: Milen Rangelov <gat3way@gat3way.eu>\n");
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<hash_plugin_detailed>:
  endbr64
  lea    D9(%rip),%rax
  ret
```

tool_calls: name: unpack_data
arguments: label: D9
type: string

tool: D9: wpa - WPA-PSK plugin
------------------------------------------------
Use this module to crack WPA-PSK keys
Input should be a pcap dump file specified with -f
Known software that uses this password hashing method:
Various 802.11 implementations.

Author: Milen Rangelov <gat3way@gat3way.eu>


assistant: ```c
char *hash_plugin_detailed(void) {
  return ("wpa - WPA-PSK plugin\n"
          "------------------------------------------------\n"
          "Use this module to crack WPA-PSK keys\n"
          "Input should be a pcap dump file specified with -f\n"
          "Known software that uses this password hashing method:\n"
          "Various 802.11 implementations.\n"
          "\nAuthor: Milen Rangelov <gat3way@gat3way.eu>\n");
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<hash_plugin_detailed>:
  endbr64
  lea    D5(%rip),%rax
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D5
type_guessed: string

tool: D5: wpa - WPA-PSK plugin
------------------------------------------------
Use this module to crack WPA-PSK keys
Input should be a pcap dump file specified with -f
Known software that uses this password hashing method:
Various 802.11 implementations.

Author: Milen Rangelov <gat3way@gat3way.eu>


assistant: ```c
char *hash_plugin_detailed(void) {
  return ("wpa - WPA-PSK plugin\n"
          "------------------------------------------------\n"
          "Use this module to crack WPA-PSK keys\n"
          "Input should be a pcap dump file specified with -f\n"
          "Known software that uses this password hashing method:\n"
          "Various 802.11 implementations.\n"
          "\nAuthor: Milen Rangelov <gat3way@gat3way.eu>\n");
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<_ircprot_skip_spaces>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L15
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L15
  addq   $0x1,-0x8(%rbp)
L15:
  mov    -0x8(%rbp),%rax
  pop    %rbp
  ret
```

assistant: ```c
char *_ircprot_skip_spaces(char *ptr) {
  if (*ptr && (*ptr == ' '))
    ptr++;
  return ptr;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<_ircprot_skip_spaces>:
  endbr64
  mov    %rdi,%rax
  cmpb   $0x20,(%rdi)
  sete   %dl
  movzbl %dl,%edx
  add    %rdx,%rax
  ret
```

assistant: ```c
char *_ircprot_skip_spaces(char *ptr) {
  if (*ptr && (*ptr == ' '))
    ptr++;
  return ptr;
}
```
user: Translate the below assembly code into C programming language:

```asm
<_ircprot_skip_spaces>:
  endbr64
  xor    %edx,%edx
  cmpb   $0x20,(%rdi)
  mov    %rdi,%rax
  sete   %dl
  add    %rdx,%rax
  ret
```

assistant: ```c
char *_ircprot_skip_spaces(char *ptr) {
  if (*ptr && (*ptr == ' '))
    ptr++;
  return ptr;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<_ircprot_skip_spaces>:
  endbr64
  xor    %edx,%edx
  cmpb   $0x20,(%rdi)
  mov    %rdi,%rax
  sete   %dl
  add    %rdx,%rax
  ret
```

assistant: ```c
char *_ircprot_skip_spaces(char *ptr) {
  if (*ptr && (*ptr == ' '))
    ptr++;
  return ptr;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<rop3_233_0_1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,%ecx
  mov    %edx,%eax
  mov    %ecx,%edx
  mov    %dl,-0x1c(%rbp)
  mov    %al,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  and    -0x1c(%rbp),%al
  mov    %al,-0x4(%rbp)
  notb   -0x4(%rbp)
  movzbl -0x20(%rbp),%eax
  and    -0x4(%rbp),%al
  mov    %al,-0x3(%rbp)
  movzbl -0x1c(%rbp),%eax
  xor    -0x3(%rbp),%al
  mov    %al,-0x2(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  xor    -0x2(%rbp),%al
  mov    %al,-0x1(%rbp)
  notb   -0x1(%rbp)
  movzbl -0x1(%rbp),%eax
  and    -0x1c(%rbp),%al
  mov    %eax,%ecx
  movzbl -0x20(%rbp),%eax
  not    %eax
  mov    %eax,%edx
  movzbl -0x1(%rbp),%eax
  and    %edx,%eax
  or     %eax,%ecx
  mov    %ecx,%edx
  movzbl -0x1c(%rbp),%eax
  not    %eax
  mov    %eax,%ecx
  movzbl -0x20(%rbp),%eax
  and    %eax,%ecx
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  and    %ecx,%eax
  or     %edx,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void rop3_233_0_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  unsigned char stk4;
  stk4 = *D & S;
  stk4 = ~stk4;
  stk3 = T & stk4;
  stk2 = S ^ stk3;
  stk1 = *D ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & S) | (stk1 & (~T)) | (T & (~S) & *D);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<rop3_233_0_1>:
  endbr64
  mov    %rdi,%rcx
  mov    %esi,%eax
  and    (%rdi),%al
  not    %eax
  and    %edx,%eax
  mov    %esi,%edi
  xor    (%rcx),%dil
  xor    %edi,%eax
  mov    %eax,%edi
  not    %edi
  and    %esi,%edi
  or     %edx,%eax
  not    %eax
  or     %edi,%eax
  not    %esi
  and    %edx,%esi
  and    (%rcx),%sil
  or     %esi,%eax
  mov    %al,(%rcx)
  ret
```

assistant: ```c
void rop3_233_0_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  unsigned char stk4;
  stk4 = *D & S;
  stk4 = ~stk4;
  stk3 = T & stk4;
  stk2 = S ^ stk3;
  stk1 = *D ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & S) | (stk1 & (~T)) | (T & (~S) & *D);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<rop3_233_0_1>:
  endbr64
  movzbl (%rdi),%eax
  mov    %rdi,%rcx
  movzbl (%rdi),%edi
  and    %esi,%eax
  xor    %esi,%edi
  not    %eax
  and    %edx,%eax
  xor    %edi,%eax
  mov    %eax,%edi
  or     %edx,%eax
  not    %edi
  not    %eax
  and    %esi,%edi
  not    %esi
  or     %edi,%eax
  and    %edx,%esi
  and    (%rcx),%sil
  or     %esi,%eax
  mov    %al,(%rcx)
  ret
```

assistant: ```c
void rop3_233_0_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  unsigned char stk4;
  stk4 = *D & S;
  stk4 = ~stk4;
  stk3 = T & stk4;
  stk2 = S ^ stk3;
  stk1 = *D ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & S) | (stk1 & (~T)) | (T & (~S) & *D);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<rop3_233_0_1>:
  endbr64
  movzbl (%rdi),%eax
  mov    %rdi,%rcx
  movzbl (%rdi),%edi
  and    %esi,%eax
  xor    %esi,%edi
  not    %eax
  and    %edx,%eax
  xor    %edi,%eax
  mov    %eax,%edi
  or     %edx,%eax
  not    %edi
  not    %eax
  and    %esi,%edi
  not    %esi
  or     %edi,%eax
  and    %edx,%esi
  and    (%rcx),%sil
  or     %esi,%eax
  mov    %al,(%rcx)
  ret
```

assistant: ```c
void rop3_233_0_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  unsigned char stk4;
  stk4 = *D & S;
  stk4 = ~stk4;
  stk3 = T & stk4;
  stk2 = S ^ stk3;
  stk1 = *D ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & S) | (stk1 & (~T)) | (T & (~S) & *D);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<rbtree_dblcpy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    $0x8,%edi
  mov    $0x0,%eax
  call   <mm_malloc@plt>
  cltq
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x8(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
void *rbtree_dblcpy(void *p) {
  double *copy = (double *)mm_malloc(sizeof(double));
  *copy = *((double *)p);
  return copy;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<rbtree_dblcpy>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x8,%edi
  mov    $0x0,%eax
  call   <mm_malloc@plt>
  cltq
  movsd  (%rbx),%xmm0
  movsd  %xmm0,(%rax)
  pop    %rbx
  ret
```

assistant: ```c
void *rbtree_dblcpy(void *p) {
  double *copy = (double *)mm_malloc(sizeof(double));
  *copy = *((double *)p);
  return copy;
}
```
user: Translate the below assembly code into C programming language:

```asm
<rbtree_dblcpy>:
  endbr64
  push   %rbx
  xor    %eax,%eax
  mov    %rdi,%rbx
  mov    $0x8,%edi
  call   <mm_malloc@plt>
  movsd  (%rbx),%xmm0
  cltq
  movsd  %xmm0,(%rax)
  pop    %rbx
  ret
```

assistant: ```c
void *rbtree_dblcpy(void *p) {
  double *copy = (double *)mm_malloc(sizeof(double));
  *copy = *((double *)p);
  return copy;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<rbtree_dblcpy>:
  endbr64
  push   %rbx
  xor    %eax,%eax
  mov    %rdi,%rbx
  mov    $0x8,%edi
  call   <mm_malloc@plt>
  movsd  (%rbx),%xmm0
  cltq
  movsd  %xmm0,(%rax)
  pop    %rbx
  ret
```

assistant: ```c
void *rbtree_dblcpy(void *p) {
  double *copy = (double *)mm_malloc(sizeof(double));
  *copy = *((double *)p);
  return copy;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<reverse_buffer>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L9
L1:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x9(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl -0x9(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x18(%rbp)
  subq   $0x1,-0x8(%rbp)
L9:
  mov    -0x18(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jb     L1
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void reverse_buffer(char *start, int len) {
  char *end = start + len - 1;
  char tmp;
  while (start < end) {
    tmp = *start;
    *start = *end;
    *end = tmp;
    ++start;
    --end;
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<reverse_buffer>:
  endbr64
  movslq %esi,%rsi
  lea    -0x1(%rdi,%rsi,1),%rax
  cmp    %rax,%rdi
  jae    L15
L9:
  movzbl (%rdi),%edx
  movzbl (%rax),%ecx
  mov    %cl,(%rdi)
  mov    %dl,(%rax)
  add    $0x1,%rdi
  sub    $0x1,%rax
  cmp    %rax,%rdi
  jb     L9
L15:
  ret
```

assistant: ```c
void reverse_buffer(char *start, int len) {
  char *end = start + len - 1;
  char tmp;
  while (start < end) {
    tmp = *start;
    *start = *end;
    *end = tmp;
    ++start;
    --end;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<reverse_buffer>:
  endbr64
  movslq %esi,%rsi
  lea    -0x1(%rdi,%rsi,1),%rax
  cmp    %rax,%rdi
  jae    L4
  nopl   0x0(%rax)
L9:
  movzbl (%rdi),%edx
  movzbl (%rax),%ecx
  add    $0x1,%rdi
  sub    $0x1,%rax
  mov    %cl,-0x1(%rdi)
  mov    %dl,0x1(%rax)
  cmp    %rax,%rdi
  jb     L9
L4:
  ret
```

assistant: ```c
void reverse_buffer(char *start, int len) {
  char *end = start + len - 1;
  char tmp;
  while (start < end) {
    tmp = *start;
    *start = *end;
    *end = tmp;
    ++start;
    --end;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<reverse_buffer>:
  endbr64
  movslq %esi,%rsi
  lea    -0x1(%rdi,%rsi,1),%rax
  cmp    %rax,%rdi
  jae    L6
  nopl   0x0(%rax)
L9:
  movzbl (%rdi),%edx
  movzbl (%rax),%ecx
  add    $0x1,%rdi
  sub    $0x1,%rax
  mov    %cl,-0x1(%rdi)
  mov    %dl,0x1(%rax)
  cmp    %rax,%rdi
  jb     L9
L6:
  ret
```

assistant: ```c
void reverse_buffer(char *start, int len) {
  char *end = start + len - 1;
  char tmp;
  while (start < end) {
    tmp = *start;
    *start = *end;
    *end = tmp;
    ++start;
    --end;
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<fpconv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8d,-0x30(%rbp)
  mov    %r9,-0x48(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L0
L35:
  mov    -0x18(%rbp),%eax
  sub    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L0:
  mov    -0x2c(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  sub    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jl     L35
  movl   $0x0,-0x18(%rbp)
  jmp    L42
L27:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L31
L37:
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  sub    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  sub    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  addl   $0x1,-0x14(%rbp)
L31:
  mov    -0x14(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L37
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L42:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L27
  nop
  pop    %rbp
  ret
```

assistant: ```c
fpconv(double *x_in, int lx, double *h0, double *h1, int lh, double *x_outl, double *x_outh) {
  int i, j;
  double x0, x1;
  for (i = lx; i < lx + lh - 1; i++)
    x_in[i] = x_in[i - lx];
  for (i = 0; i < lx; i++) {
    x0 = 0;
    x1 = 0;
    for (j = 0; j < lh; j++) {
      x0 = x0 + x_in[j + i] * h0[lh - 1 - j];
      x1 = x1 + x_in[j + i] * h1[lh - 1 - j];
    }
    x_outl[i] = x0;
    x_outh[i] = x1;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<fpconv>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r11
  mov    %esi,%edi
  mov    %rdx,%rsi
  mov    %r8d,%ebx
  mov    0x20(%rsp),%rbp
  lea    -0x1(%rdi,%r8,1),%eax
  cmp    %eax,%edi
  jge    L7
  mov    %r11,%rax
  lea    -0x2(%r8),%edx
  lea    0x8(%r11,%rdx,8),%r8
  movslq %edi,%rdx
L41:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %r8,%rax
  jne    L41
L7:
  test   %edi,%edi
  jle    L54
  mov    %edi,%r8d
  movslq %ebx,%rax
  lea    -0x8(,%rax,8),%r12
  lea    -0x1(%rbx),%edx
  sub    %rdx,%rax
  lea    -0x10(,%rax,8),%rdi
  mov    $0x0,%r10d
  jmp    L77
L39:
  mov    %r12,%rax
  mov    %r11,%rdx
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm2
L36:
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm3
  mulsd  (%rsi,%rax,1),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  (%rcx,%rax,1),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rdx
  sub    $0x8,%rax
  cmp    %rdi,%rax
  jne    L36
L62:
  movsd  %xmm2,(%r9,%r10,8)
  movsd  %xmm1,0x0(%rbp,%r10,8)
  add    $0x1,%r10
  add    $0x8,%r11
  cmp    %r8,%r10
  je     L54
L77:
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm2
  test   %ebx,%ebx
  jg     L39
  jmp    L62
L54:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
fpconv(double *x_in, int lx, double *h0, double *h1, int lh, double *x_outl, double *x_outh) {
  int i, j;
  double x0, x1;
  for (i = lx; i < lx + lh - 1; i++)
    x_in[i] = x_in[i - lx];
  for (i = 0; i < lx; i++) {
    x0 = 0;
    x1 = 0;
    for (j = 0; j < lh; j++) {
      x0 = x0 + x_in[j + i] * h0[lh - 1 - j];
      x1 = x1 + x_in[j + i] * h1[lh - 1 - j];
    }
    x_outl[i] = x0;
    x_outh[i] = x1;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<fpconv>:
  endbr64
  mov    %esi,%r10d
  push   %r12
  mov    %rdi,%r11
  mov    %rdx,%rsi
  lea    -0x1(%r10,%r8,1),%eax
  push   %rbp
  push   %rbx
  mov    %r8d,%ebx
  mov    0x20(%rsp),%r12
  cmp    %eax,%r10d
  jge    L51
  lea    -0x2(%r8),%edx
  mov    %rdi,%rax
  lea    0x8(%rdi,%rdx,8),%rdi
  movslq %r10d,%rdx
  nopw   0x0(%rax,%rax,1)
L23:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L23
L51:
  test   %r10d,%r10d
  jle    L36
  lea    -0x1(%rbx),%edx
  movslq %ebx,%rax
  pxor   %xmm4,%xmm4
  movslq %r10d,%r8
  movslq %edx,%rbp
  mov    %edx,%edx
  xor    %r10d,%r10d
  sub    %rdx,%rax
  shl    $0x3,%rbp
  lea    -0x10(,%rax,8),%rdi
  nopw   0x0(%rax,%rax,1)
L30:
  movapd %xmm4,%xmm2
  movapd %xmm4,%xmm1
  test   %ebx,%ebx
  jle    L24
  mov    %rbp,%rax
  movapd %xmm4,%xmm2
  movapd %xmm4,%xmm1
  mov    %r11,%rdx
  nopw   0x0(%rax,%rax,1)
L46:
  movsd  (%rdx),%xmm0
  movsd  (%rsi,%rax,1),%xmm3
  add    $0x8,%rdx
  mulsd  %xmm0,%xmm3
  mulsd  (%rcx,%rax,1),%xmm0
  sub    $0x8,%rax
  addsd  %xmm3,%xmm1
  addsd  %xmm0,%xmm2
  cmp    %rax,%rdi
  jne    L46
L24:
  movsd  %xmm1,(%r9,%r10,8)
  add    $0x8,%r11
  movsd  %xmm2,(%r12,%r10,8)
  add    $0x1,%r10
  cmp    %r10,%r8
  jne    L30
L36:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
fpconv(double *x_in, int lx, double *h0, double *h1, int lh, double *x_outl, double *x_outh) {
  int i, j;
  double x0, x1;
  for (i = lx; i < lx + lh - 1; i++)
    x_in[i] = x_in[i - lx];
  for (i = 0; i < lx; i++) {
    x0 = 0;
    x1 = 0;
    for (j = 0; j < lh; j++) {
      x0 = x0 + x_in[j + i] * h0[lh - 1 - j];
      x1 = x1 + x_in[j + i] * h1[lh - 1 - j];
    }
    x_outl[i] = x0;
    x_outh[i] = x1;
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<fpconv>:
  endbr64
  lea    -0x1(%rsi,%r8,1),%eax
  push   %r15
  mov    %rdx,%r10
  mov    %rcx,%r11
  push   %r14
  mov    %r9,%r15
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  cmp    %eax,%esi
  jge    L126
  movslq %ebx,%rdx
  lea    -0x2(%r8),%esi
  lea    0x0(,%rdx,8),%rcx
  cmp    $0x2,%esi
  jbe    L11
  cmp    $0x8,%rcx
  je     L11
  lea    -0x1(%r8),%esi
  add    %rdi,%rcx
  xor    %eax,%eax
  mov    %esi,%edx
  shr    %edx
  shl    $0x4,%rdx
  nopl   0x0(%rax,%rax,1)
L82:
  movupd (%rdi,%rax,1),%xmm5
  movups %xmm5,(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L82
  mov    %esi,%eax
  and    $0xfffffffe,%eax
  lea    (%rbx,%rax,1),%edx
  cmp    %eax,%esi
  je     L126
  cltq
  movsd  (%rdi,%rax,8),%xmm0
  movslq %edx,%rax
  movsd  %xmm0,(%rdi,%rax,8)
L126:
  test   %ebx,%ebx
  jle    L48
  movslq %ebx,%rax
  mov    %r13d,%r14d
  mov    %rdi,%rsi
  xor    %r8d,%r8d
  mov    %rax,-0x10(%rsp)
  movslq %r13d,%rax
  and    $0xfffffffe,%r14d
  pxor   %xmm5,%xmm5
  lea    -0x10(,%rax,8),%rbp
  mov    %r13d,%eax
  lea    -0x1(%r13),%r9d
  shr    %eax
  lea    (%r10,%rbp,1),%r12
  add    %r11,%rbp
  lea    -0x1(%rax),%ebx
  not    %rbx
  shl    $0x4,%rbx
  nopl   0x0(%rax,%rax,1)
L53:
  mov    %r8d,%edx
  movapd %xmm5,%xmm3
  movapd %xmm5,%xmm1
  test   %r13d,%r13d
  jle    L10
  cmp    $0x1,%r13d
  je     L107
  xor    %eax,%eax
  movapd %xmm5,%xmm3
  movapd %xmm5,%xmm1
L92:
  mov    %rax,%rcx
  movupd (%r12,%rax,1),%xmm0
  neg    %rcx
  movupd (%rsi,%rcx,1),%xmm4
  shufpd $0x1,%xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  movupd 0x0(%rbp,%rax,1),%xmm0
  sub    $0x10,%rax
  shufpd $0x1,%xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  addsd  %xmm0,%xmm3
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm3
  cmp    %rbx,%rax
  jne    L92
  mov    %r14d,%eax
  cmp    %r13d,%r14d
  je     L10
L41:
  add    %eax,%edx
  movslq %edx,%rdx
  movsd  (%rdi,%rdx,8),%xmm0
  mov    %r9d,%edx
  sub    %eax,%edx
  movslq %edx,%rdx
  movsd  (%r10,%rdx,8),%xmm2
  mulsd  %xmm0,%xmm2
  mulsd  (%r11,%rdx,8),%xmm0
  addsd  %xmm2,%xmm1
  addsd  %xmm0,%xmm3
L10:
  mov    0x38(%rsp),%rax
  movsd  %xmm1,(%r15,%r8,8)
  add    $0x8,%rsi
  movsd  %xmm3,(%rax,%r8,8)
  add    $0x1,%r8
  cmp    %r8,-0x10(%rsp)
  jne    L53
L48:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L107:
  movapd %xmm5,%xmm3
  movapd %xmm5,%xmm1
  xor    %eax,%eax
  jmp    L41
L11:
  mov    %rdi,%rax
  lea    0x8(%rdi,%rsi,8),%rcx
  nop
L79:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L79
  jmp    L126
```

assistant: ```c
fpconv(double *x_in, int lx, double *h0, double *h1, int lh, double *x_outl, double *x_outh) {
  int i, j;
  double x0, x1;
  for (i = lx; i < lx + lh - 1; i++)
    x_in[i] = x_in[i - lx];
  for (i = 0; i < lx; i++) {
    x0 = 0;
    x1 = 0;
    for (j = 0; j < lh; j++) {
      x0 = x0 + x_in[j + i] * h0[lh - 1 - j];
      x1 = x1 + x_in[j + i] * h1[lh - 1 - j];
    }
    x_outl[i] = x0;
    x_outh[i] = x1;
  }
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<knapSack>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r13
  mov    %rsi,0x10(%rsp)
  mov    %rdx,%r15
  mov    %rcx,0x8(%rsp)
  lea    0x4(,%rdi,4),%rbx
  mov    %rbx,0x18(%rsp)
  mov    %rbx,%rdi
  call   <malloc@plt>
  mov    %rax,%r12
  mov    %rbx,%rdi
  call   <malloc@plt>
  mov    %rax,%r14
  mov    $0x0,%ebp
  cmpq   $0x0,0x10(%rsp)
  jns    L61
  mov    %r12,%r14
  mov    %rax,%r12
L93:
  mov    0x18(%rsp),%rax
  mov    -0x4(%r14,%rax,1),%ebx
  mov    %r14,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    %ebx,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  movl   $0x0,(%r12,%rbx,4)
L15:
  add    $0x1,%rbx
  cmp    %rbx,%r13
  jl     L84
L95:
  test   %rbp,%rbp
  je     L28
  test   %rbx,%rbx
  je     L28
  movslq -0x4(%r15,%rbp,4),%rax
  cmp    %rbx,%rax
  jle    L21
  mov    (%r14,%rbx,4),%eax
  mov    %eax,(%r12,%rbx,4)
  jmp    L15
L21:
  mov    (%r14,%rbx,4),%esi
  mov    %rbx,%rdx
  sub    %rax,%rdx
  mov    0x8(%rsp),%rax
  mov    -0x4(%rax,%rbp,4),%edi
  add    (%r14,%rdx,4),%edi
  call   <max@plt>
  mov    %eax,(%r12,%rbx,4)
  jmp    L15
L84:
  add    $0x1,%rbp
  cmp    %rbp,0x10(%rsp)
  jl     L93
  mov    %r12,%rax
  mov    %r14,%r12
  mov    %rax,%r14
L61:
  mov    $0x0,%ebx
  test   %r13,%r13
  jns    L95
  jmp    L84
```

assistant: ```c
int knapSack(long int W, long int N, int wt[], int val[]) {
  int *K = (int *)malloc((W + 1) * sizeof(int));
  int *Kp = (int *)malloc((W + 1) * sizeof(int));
  long int i, w;
  for (i = 0; i <= N; i++) {
    for (w = 0; w <= W; w++) {
      if (i == 0 || w == 0)
        K[w] = 0;
      else if (wt[i - 1] <= w)
        K[w] = max(val[i - 1] + Kp[w - wt[i - 1]], Kp[w]);
      else
        K[w] = Kp[w];
    }
    int *tmp = Kp;
    Kp = K;
    K = tmp;
  }
  int result = K[W];
  free(K);
  free(Kp);
  return result;
}
```