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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x58,%rsp
  lea    D25(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x1048(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  mov    $0x20,%eax
  mov    %ax,0x8e(%rsp)
  call   <scanf@plt>
  lea    0x870(%rsp),%rdi
  call   <gets@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  je     L47
  lea    0x90(%rsp),%r12
  lea    0x8e(%rsp),%rbx
  lea    0x10(%rsp),%r13
  lea    D16(%rip),%r15
  lea    D22(%rip),%r14
  nopl   0x0(%rax,%rax,1)
L35:
  mov    %r12,%rdi
  xor    %ebp,%ebp
  call   <gets@plt>
  mov    %r12,%rdi
  mov    %rbx,%rsi
  call   <strtok@plt>
  mov    %rax,%rdi
  nopl   0x0(%rax,%rax,1)
L32:
  test   %rdi,%rdi
  jne    L25
  xor    %edi,%edi
  mov    %rbx,%rsi
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L65
L25:
  call   <atoi@plt>
  xor    %edi,%edi
  mov    %rbx,%rsi
  mov    %eax,%r8d
  movslq %ebp,%rax
  add    $0x1,%ebp
  mov    %r8d,0x10(%rsp,%rax,4)
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L32
L65:
  mov    %r13,%rdi
  mov    %ebp,%esi
  call   <existEqualTwoPartition@plt>
  mov    %r14,%rdi
  test   %rax,%rax
  jne    L10
  mov    %r15,%rdi
L10:
  call   <printf@plt>
  subl   $0x1,0xc(%rsp)
  jne    L35
L47:
  mov    0x1048(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  add    $0x1058,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D25
type: string
name: extract_symbolic_data
arguments: label: D16
type: string
name: extract_symbolic_data
arguments: label: D22
type: string

tool: D25: %d

tool: D16: NO


tool: D22: YES


assistant: ```c
int main(void) {
  int T, weightArr[30], numLuggage;
  char line[2000 + 1], trash[2000 + 1], delim[] = " ", *ptrNumStr;
  scanf("%d", &T);
  gets(trash);
  while (T) {
    numLuggage = 0;
    gets(line);
    ptrNumStr = strtok(line, delim);
    do {
      if (ptrNumStr != NULL) {
        weightArr[numLuggage] = atoi(ptrNumStr);
        numLuggage++;
      }
      ptrNumStr = strtok(NULL, delim);
    } while (ptrNumStr != NULL);
    if (existEqualTwoPartition(weightArr, numLuggage))
      printf("YES\n");
    else
      printf("NO\n");
    T--;
  }
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<pathconf>:
  endbr64
  sub    $0x8,%rsp
  cmpb   $0x0,(%rdi)
  je     L28
  cmp    $0x90,%esi
  je     L74
  jg     L52
  cmp    $0x8e,%esi
  jg     L27
  mov    $0xffffffffffffffff,%rax
  cmp    $0x7f,%esi
  jg     L6
L69:
  mov    D2(%rip),%rax
  mov    (%rax),%edi
  call   <__set_errno@plt>
  mov    $0xffffffffffffffff,%rax
  jmp    L6
L28:
  mov    D13(%rip),%rax
  mov    (%rax),%edi
  call   <__set_errno@plt>
  mov    $0xffffffffffffffff,%rax
  jmp    L6
L52:
  sub    $0x91,%esi
  mov    $0xffffffffffffffff,%rax
  cmp    $0x2,%esi
  ja     L69
L6:
  add    $0x8,%rsp
  ret
L74:
  mov    $0x20,%eax
  jmp    L6
L27:
  mov    $0x7f,%eax
  jmp    L6
```

assistant: ```c
long int pathconf(const char *path, int name) {
  if (path[0] == '\0') {
    __set_errno(ENOENT);
    return -1;
  }
  switch (name) {
  default:
    __set_errno(EINVAL);
    return -1;
  case _PC_LINK_MAX:
    return 127;
  case _PC_MAX_CANON:
    return -1;
  case _PC_MAX_INPUT:
    return -1;
  case _PC_NAME_MAX:
    return -1;
  case _PC_PATH_MAX:
    return -1;
  case _PC_PIPE_BUF:
    return -1;
  case _PC_CHOWN_RESTRICTED:
    return -1;
  case _PC_NO_TRUNC:
    return -1;
  case _PC_VDISABLE:
    return -1;
  case _PC_SYNC_IO:
    return -1;
  case _PC_ASYNC_IO:
    return -1;
  case _PC_PRIO_IO:
    return -1;
  case _PC_SOCK_MAXBUF:
    return -1;
  case _PC_FILESIZEBITS:
    return 32;
  case _PC_REC_INCR_XFER_SIZE:
  case _PC_REC_MAX_XFER_SIZE:
  case _PC_REC_MIN_XFER_SIZE:
  case _PC_REC_XFER_ALIGN:
  case _PC_ALLOC_SIZE_MIN:
  case _PC_SYMLINK_MAX:
    return -1;
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D93(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x20(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x10(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  D107(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0xc(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L2
  call   <__stack_chk_fail@plt>
L2:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D6
type: string
name: parse_data
arguments: data_label: D48
type: string
name: parse_data
arguments: data_label: D88
type: string
name: parse_data
arguments: data_label: D59
type: string
name: parse_data
arguments: data_label: D93
type: string
name: parse_data
arguments: data_label: D3
type: string
name: parse_data
arguments: data_label: D107
type: byte[4]
name: parse_data
arguments: data_label: D14
type: string

tool: D6:  What is the value1 ? 

tool: D48: %f

tool: D88:  what is the value2 ? 

tool: D59:  what is the value3 ? 

tool: D93:  what is the value4 ? 

tool: D3:  what is the value5 ? 

tool: {"D107": [0x00,0x00,0xa0,0x40]}

tool: D14: average is %f 


assistant: ```c
int main() {
  float value1;
  float value2;
  float value3;
  float value4;
  float value5;
  float average;
  printf(" What is the value1 ? \n");
  scanf("%f", &value1);
  printf(" what is the value2 ? \n");
  scanf("%f", &value2);
  printf(" what is the value3 ? \n");
  scanf("%f", &value3);
  printf(" what is the value4 ? \n");
  scanf("%f", &value4);
  printf(" what is the value5 ? \n");
  scanf("%f", &value5);
  average = (value1 + value2 + value3 + value4 + value5) / 5;
  printf("average is %f \n", average);
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D73(%rip),%rdi
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  lea    D19(%rip),%rbx
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D63(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D57(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D31(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D58(%rip),%rdi
  call   <puts@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movss  0x4(%rsp),%xmm0
  addss  0x8(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  addss  0x10(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  divss  D14(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  lea    D46(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D73
datatype: string
name: parse_data
arguments: data_tag: D19
datatype: string
name: parse_data
arguments: data_tag: D63
datatype: string
name: parse_data
arguments: data_tag: D57
datatype: string
name: parse_data
arguments: data_tag: D31
datatype: string
name: parse_data
arguments: data_tag: D58
datatype: string
name: parse_data
arguments: data_tag: D14
datatype: byte[4]
name: parse_data
arguments: data_tag: D46
datatype: string

tool: D73:  What is the value1 ? 

tool: D19: %f

tool: D63:  what is the value2 ? 

tool: D57:  what is the value3 ? 

tool: D31:  what is the value4 ? 

tool: D58:  what is the value5 ? 

tool: {"D14": [0x00,0x00,0xa0,0x40]}

tool: D46: average is %f 


assistant: ```c
int main() {
  float value1;
  float value2;
  float value3;
  float value4;
  float value5;
  float average;
  printf(" What is the value1 ? \n");
  scanf("%f", &value1);
  printf(" what is the value2 ? \n");
  scanf("%f", &value2);
  printf(" what is the value3 ? \n");
  scanf("%f", &value3);
  printf(" what is the value4 ? \n");
  scanf("%f", &value4);
  printf(" what is the value5 ? \n");
  scanf("%f", &value5);
  average = (value1 + value2 + value3 + value4 + value5) / 5;
  printf("average is %f \n", average);
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D49(%rip),%rdi
  lea    D21(%rip),%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D45(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D22(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D75(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    $0x1,%eax
  lea    D63(%rip),%rdi
  movss  0x4(%rsp),%xmm0
  addss  0x8(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  addss  0x10(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  divss  D65(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x20,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D49
datatype: string
name: parse_data
arguments: data_tag: D21
datatype: string
name: parse_data
arguments: data_tag: D45
datatype: string
name: parse_data
arguments: data_tag: D7
datatype: string
name: parse_data
arguments: data_tag: D22
datatype: string
name: parse_data
arguments: data_tag: D75
datatype: string
name: parse_data
arguments: data_tag: D63
datatype: string
name: parse_data
arguments: data_tag: D65
datatype: byte[4]

tool: D49:  What is the value1 ? 

tool: D21: %f

tool: D45:  what is the value2 ? 

tool: D7:  what is the value3 ? 

tool: D22:  what is the value4 ? 

tool: D75:  what is the value5 ? 

tool: D63: average is %f 


tool: {"D65": [0x00,0x00,0xa0,0x40]}

assistant: ```c
int main() {
  float value1;
  float value2;
  float value3;
  float value4;
  float value5;
  float average;
  printf(" What is the value1 ? \n");
  scanf("%f", &value1);
  printf(" what is the value2 ? \n");
  scanf("%f", &value2);
  printf(" what is the value3 ? \n");
  scanf("%f", &value3);
  printf(" what is the value4 ? \n");
  scanf("%f", &value4);
  printf(" what is the value5 ? \n");
  scanf("%f", &value5);
  average = (value1 + value2 + value3 + value4 + value5) / 5;
  printf("average is %f \n", average);
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbp
  lea    D69(%rip),%rdi
  lea    D8(%rip),%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D72(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D31(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    $0x1,%eax
  lea    D2(%rip),%rdi
  movss  0x4(%rsp),%xmm0
  addss  0x8(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  addss  0x10(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  divss  D63(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x20,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D69
data_type: string
name: disassemble_data
arguments: label: D8
data_type: string
name: disassemble_data
arguments: label: D72
data_type: string
name: disassemble_data
arguments: label: D7
data_type: string
name: disassemble_data
arguments: label: D5
data_type: string
name: disassemble_data
arguments: label: D31
data_type: string
name: disassemble_data
arguments: label: D2
data_type: string
name: disassemble_data
arguments: label: D63
data_type: byte[4]

tool: D69:  What is the value1 ? 

tool: D8: %f

tool: D72:  what is the value2 ? 

tool: D7:  what is the value3 ? 

tool: D5:  what is the value4 ? 

tool: D31:  what is the value5 ? 

tool: D2: average is %f 


tool: {"D63": [0x00,0x00,0xa0,0x40]}

assistant: ```c
int main() {
  float value1;
  float value2;
  float value3;
  float value4;
  float value5;
  float average;
  printf(" What is the value1 ? \n");
  scanf("%f", &value1);
  printf(" what is the value2 ? \n");
  scanf("%f", &value2);
  printf(" what is the value3 ? \n");
  scanf("%f", &value3);
  printf(" what is the value4 ? \n");
  scanf("%f", &value4);
  printf(" what is the value5 ? \n");
  scanf("%f", &value5);
  average = (value1 + value2 + value3 + value4 + value5) / 5;
  printf("average is %f \n", average);
  return 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<fors_pk_from_sig>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2e8,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,0x8(%rsp)
  mov    %r8,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x2d8(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  lea    0x20(%rsp),%r14
  mov    %r8,%rsi
  mov    %r14,%rdi
  call   <copy_keypair_addr@plt>
  lea    0x40(%rsp),%r13
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <copy_keypair_addr@plt>
  mov    $0x3,%esi
  mov    %r14,%rdi
  call   <set_type@plt>
  mov    $0x4,%esi
  mov    %r13,%rdi
  call   <set_type@plt>
  lea    0x60(%rsp),%rbx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <message_to_indices@plt>
  lea    0xf0(%rsp),%r14
  lea    0xd8(%rsp),%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r13d
  lea    0x20(%rsp),%r12
L11:
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <set_tree_height@plt>
  mov    %r13d,%esi
  add    (%rbx),%esi
  mov    %r12,%rdi
  call   <set_tree_index@plt>
  lea    0xe0(%rsp),%r15
  mov    %r12,%rcx
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <fors_sk_to_leaf@plt>
  push   %r12
  push   0x10(%rsp)
  mov    $0x9,%r9d
  lea    0x10(%rbp),%r8
  mov    %r13d,%ecx
  mov    (%rbx),%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <compute_root@plt>
  add    $0xa0,%rbp
  add    $0x4,%rbx
  add    $0x200,%r13d
  add    $0x10,%r14
  add    $0x10,%rsp
  cmp    0x10(%rsp),%rbx
  jne    L11
  lea    0xf0(%rsp),%rsi
  lea    0x40(%rsp),%r8
  mov    0x8(%rsp),%rcx
  mov    $0x1e,%edx
  mov    0x18(%rsp),%rdi
  call   <thash@plt>
  mov    0x2d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x2e8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L12:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void fors_pk_from_sig(unsigned char *pk, const unsigned char *sig, const unsigned char *m, const unsigned char *pub_seed, const uint32_t fors_addr[8]) {
  uint32_t indices[30];
  unsigned char roots[30 * 16];
  unsigned char leaf[16];
  uint32_t fors_tree_addr[8] = {0};
  uint32_t fors_pk_addr[8] = {0};
  uint32_t idx_offset;
  unsigned int i;
  copy_keypair_addr(fors_tree_addr, fors_addr);
  copy_keypair_addr(fors_pk_addr, fors_addr);
  set_type(fors_tree_addr, 3);
  set_type(fors_pk_addr, 4);
  message_to_indices(indices, m);
  for (i = 0; i < 30; i++) {
    idx_offset = i * (1 << 9);
    set_tree_height(fors_tree_addr, 0);
    set_tree_index(fors_tree_addr, indices[i] + idx_offset);
    fors_sk_to_leaf(leaf, sig, pub_seed, fors_tree_addr);
    sig += 16;
    compute_root(roots + i * 16, leaf, indices[i], idx_offset, sig, 9, pub_seed, fors_tree_addr);
    sig += 16 * 9;
  }
  thash(pk, roots, 30, pub_seed, fors_pk_addr);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<fors_pk_from_sig>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rsi,%r12
  mov    %r8,%rsi
  push   %rbp
  push   %rbx
  sub    $0x2f8,%rsp
  mov    %rcx,0x8(%rsp)
  lea    0x30(%rsp),%rbp
  lea    0xf0(%rsp),%r15
  mov    %rdi,0x18(%rsp)
  mov    %rbp,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x2e8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  call   <copy_keypair_addr@plt>
  lea    0x50(%rsp),%rax
  mov    %r13,%rsi
  xor    %r13d,%r13d
  mov    %rax,%rdi
  mov    %rax,%rbx
  mov    %rax,0x20(%rsp)
  call   <copy_keypair_addr@plt>
  mov    $0x3,%esi
  mov    %rbp,%rdi
  call   <set_type@plt>
  mov    %rbx,%rdi
  mov    $0x4,%esi
  lea    0x70(%rsp),%rbx
  call   <set_type@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <message_to_indices@plt>
  lea    0x100(%rsp),%rax
  mov    %rax,0x28(%rsp)
  mov    %rax,%r14
  lea    0xe8(%rsp),%rax
  mov    %rax,0x10(%rsp)
  nopl   (%rax)
L15:
  xor    %esi,%esi
  mov    %rbp,%rdi
  add    $0x4,%rbx
  call   <set_tree_height@plt>
  mov    -0x4(%rbx),%esi
  mov    %rbp,%rdi
  add    %r13d,%esi
  call   <set_tree_index@plt>
  mov    0x8(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rcx
  mov    %r15,%rdi
  call   <fors_sk_to_leaf@plt>
  push   %rbp
  mov    -0x4(%rbx),%edx
  lea    0x10(%r12),%r8
  push   0x10(%rsp)
  mov    %r13d,%ecx
  mov    %r14,%rdi
  mov    $0x9,%r9d
  mov    %r15,%rsi
  add    $0xa0,%r12
  add    $0x200,%r13d
  add    $0x10,%r14
  call   <compute_root@plt>
  pop    %rax
  pop    %rdx
  cmp    0x10(%rsp),%rbx
  jne    L15
  mov    0x20(%rsp),%r8
  mov    0x8(%rsp),%rcx
  mov    $0x1e,%edx
  mov    0x28(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  call   <thash@plt>
  mov    0x2e8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x2f8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void fors_pk_from_sig(unsigned char *pk, const unsigned char *sig, const unsigned char *m, const unsigned char *pub_seed, const uint32_t fors_addr[8]) {
  uint32_t indices[30];
  unsigned char roots[30 * 16];
  unsigned char leaf[16];
  uint32_t fors_tree_addr[8] = {0};
  uint32_t fors_pk_addr[8] = {0};
  uint32_t idx_offset;
  unsigned int i;
  copy_keypair_addr(fors_tree_addr, fors_addr);
  copy_keypair_addr(fors_pk_addr, fors_addr);
  set_type(fors_tree_addr, 3);
  set_type(fors_pk_addr, 4);
  message_to_indices(indices, m);
  for (i = 0; i < 30; i++) {
    idx_offset = i * (1 << 9);
    set_tree_height(fors_tree_addr, 0);
    set_tree_index(fors_tree_addr, indices[i] + idx_offset);
    fors_sk_to_leaf(leaf, sig, pub_seed, fors_tree_addr);
    sig += 16;
    compute_root(roots + i * 16, leaf, indices[i], idx_offset, sig, 9, pub_seed, fors_tree_addr);
    sig += 16 * 9;
  }
  thash(pk, roots, 30, pub_seed, fors_pk_addr);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<fors_pk_from_sig>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rsi,%r12
  mov    %r8,%rsi
  push   %rbp
  push   %rbx
  sub    $0x2f8,%rsp
  mov    %rcx,0x8(%rsp)
  lea    0x30(%rsp),%rbp
  lea    0xf0(%rsp),%r15
  mov    %rdi,0x18(%rsp)
  mov    %rbp,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x2e8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  call   <copy_keypair_addr@plt>
  lea    0x50(%rsp),%rax
  mov    %r13,%rsi
  xor    %r13d,%r13d
  mov    %rax,%rdi
  mov    %rax,%rbx
  mov    %rax,0x20(%rsp)
  call   <copy_keypair_addr@plt>
  mov    $0x3,%esi
  mov    %rbp,%rdi
  call   <set_type@plt>
  mov    %rbx,%rdi
  mov    $0x4,%esi
  lea    0x70(%rsp),%rbx
  call   <set_type@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <message_to_indices@plt>
  lea    0x100(%rsp),%rax
  mov    %rax,0x28(%rsp)
  mov    %rax,%r14
  lea    0xe8(%rsp),%rax
  mov    %rax,0x10(%rsp)
  nopl   (%rax)
L19:
  xor    %esi,%esi
  mov    %rbp,%rdi
  add    $0x4,%rbx
  call   <set_tree_height@plt>
  mov    -0x4(%rbx),%esi
  mov    %rbp,%rdi
  add    %r13d,%esi
  call   <set_tree_index@plt>
  mov    0x8(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rcx
  mov    %r15,%rdi
  call   <fors_sk_to_leaf@plt>
  push   %rbp
  mov    -0x4(%rbx),%edx
  lea    0x10(%r12),%r8
  push   0x10(%rsp)
  mov    %r13d,%ecx
  mov    %r14,%rdi
  mov    $0x9,%r9d
  mov    %r15,%rsi
  add    $0xa0,%r12
  add    $0x200,%r13d
  add    $0x10,%r14
  call   <compute_root@plt>
  pop    %rax
  pop    %rdx
  cmp    0x10(%rsp),%rbx
  jne    L19
  mov    0x20(%rsp),%r8
  mov    0x8(%rsp),%rcx
  mov    $0x1e,%edx
  mov    0x28(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  call   <thash@plt>
  mov    0x2e8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x2f8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void fors_pk_from_sig(unsigned char *pk, const unsigned char *sig, const unsigned char *m, const unsigned char *pub_seed, const uint32_t fors_addr[8]) {
  uint32_t indices[30];
  unsigned char roots[30 * 16];
  unsigned char leaf[16];
  uint32_t fors_tree_addr[8] = {0};
  uint32_t fors_pk_addr[8] = {0};
  uint32_t idx_offset;
  unsigned int i;
  copy_keypair_addr(fors_tree_addr, fors_addr);
  copy_keypair_addr(fors_pk_addr, fors_addr);
  set_type(fors_tree_addr, 3);
  set_type(fors_pk_addr, 4);
  message_to_indices(indices, m);
  for (i = 0; i < 30; i++) {
    idx_offset = i * (1 << 9);
    set_tree_height(fors_tree_addr, 0);
    set_tree_index(fors_tree_addr, indices[i] + idx_offset);
    fors_sk_to_leaf(leaf, sig, pub_seed, fors_tree_addr);
    sig += 16;
    compute_root(roots + i * 16, leaf, indices[i], idx_offset, sig, 9, pub_seed, fors_tree_addr);
    sig += 16 * 9;
  }
  thash(pk, roots, 30, pub_seed, fors_pk_addr);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<GPIOPinTypeKBRow>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  mov    -0x8(%rbp),%ecx
  mov    -0x4(%rbp),%eax
  mov    $0x2,%edx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <GPIODirModeSet@plt>
  mov    -0x8(%rbp),%esi
  mov    -0x4(%rbp),%eax
  mov    $0x8,%ecx
  mov    $0x1,%edx
  mov    %eax,%edi
  call   <GPIOPadConfigSet@plt>
  nop
  leave
  ret
```

assistant: ```c
void GPIOPinTypeKBRow(uint32_t ui32Port, uint8_t ui8Pins) {
  ;
  GPIODirModeSet(ui32Port, ui8Pins, 0x00000002);
  GPIOPadConfigSet(ui32Port, ui8Pins, 0x00000001, 0x00000008);
}
```