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

```asm
<readn_block>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x8(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L32
L37:
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rcx
  mov    -0x24(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jg     L21
  cmpq   $0x0,-0x8(%rbp)
  jns    L57
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  jmp    L57
L21:
  mov    -0x8(%rbp),%rax
  sub    %rax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    %rax,-0x10(%rbp)
L32:
  cmpq   $0x0,-0x18(%rbp)
  jne    L37
  jmp    L11
L57:
  nop
L11:
  mov    -0x38(%rbp),%rax
  sub    -0x18(%rbp),%rax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D3
type: string

tool: D3: read

assistant: ```c
ssize_t readn_block(int fd, void *vptr, size_t n) {
  size_t nleft = 0;
  ssize_t nread = 0;
  char *ptr = vptr;
  nleft = n;
  while (nleft > 0) {
    if ((nread = read(fd, ptr, nleft)) <= 0) {
      if (nread < 0) {
        perror("read");
      }
      break;
    }
    nleft -= nread;
    ptr += nread;
  }
  return (n - nleft);
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<readn_block>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdx,%r13
  test   %rdx,%rdx
  je     L43
  mov    %edi,%r12d
  mov    %rsi,%rbp
  mov    %rdx,%rbx
L1:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  test   %rax,%rax
  jle    L53
  add    %rax,%rbp
  sub    %rax,%rbx
  jne    L1
L44:
  mov    %r13,%rax
  sub    %rbx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L53:
  jns    L44
  lea    D1(%rip),%rdi
  call   <perror@plt>
  jmp    L44
L43:
  mov    %rdx,%rbx
  jmp    L44
```

tool_calls: name: disassemble_data
arguments: tag: D1
type: string

tool: D1: read

assistant: ```c
ssize_t readn_block(int fd, void *vptr, size_t n) {
  size_t nleft = 0;
  ssize_t nread = 0;
  char *ptr = vptr;
  nleft = n;
  while (nleft > 0) {
    if ((nread = read(fd, ptr, nleft)) <= 0) {
      if (nread < 0) {
        perror("read");
      }
      break;
    }
    nleft -= nread;
    ptr += nread;
  }
  return (n - nleft);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<readn_block>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  test   %rdx,%rdx
  je     L8
  mov    %edi,%r12d
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  jmp    L3
  nopl   0x0(%rax)
L28:
  add    %rax,%rbp
  sub    %rax,%rbx
  je     L8
L3:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L28
  sub    %rbx,%r13
  test   %rax,%rax
  jne    L22
L8:
  add    $0x8,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L22:
  lea    D5(%rip),%rdi
  call   <perror@plt>
  add    $0x8,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D5
type: string

tool: D5: read

assistant: ```c
ssize_t readn_block(int fd, void *vptr, size_t n) {
  size_t nleft = 0;
  ssize_t nread = 0;
  char *ptr = vptr;
  nleft = n;
  while (nleft > 0) {
    if ((nread = read(fd, ptr, nleft)) <= 0) {
      if (nread < 0) {
        perror("read");
      }
      break;
    }
    nleft -= nread;
    ptr += nread;
  }
  return (n - nleft);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<readn_block>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  test   %rdx,%rdx
  je     L8
  mov    %edi,%r12d
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  jmp    L45
  nopl   0x0(%rax)
L29:
  add    %rax,%rbp
  sub    %rax,%rbx
  je     L8
L45:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L29
  sub    %rbx,%r13
  test   %rax,%rax
  jne    L16
L8:
  add    $0x8,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L16:
  lea    D9(%rip),%rdi
  call   <perror@plt>
  add    $0x8,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: parse_data
arguments: label: D9
data_type: string

tool: D9: read

assistant: ```c
ssize_t readn_block(int fd, void *vptr, size_t n) {
  size_t nleft = 0;
  ssize_t nread = 0;
  char *ptr = vptr;
  nleft = n;
  while (nleft > 0) {
    if ((nread = read(fd, ptr, nleft)) <= 0) {
      if (nread < 0) {
        perror("read");
      }
      break;
    }
    nleft -= nread;
    ptr += nread;
  }
  return (n - nleft);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  lea    D19(%rip),%rax
  mov    %rax,-0x18(%rbp)
  lea    D35(%rip),%rax
  mov    %rax,-0x10(%rbp)
  lea    D38(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <HammingDistance@plt>
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <HammingDistance@plt>
  mov    %eax,%esi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x8(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <HammingDistance@plt>
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D19
type_infered: string
name: parse_data
arguments: data_tag: D35
type_infered: string
name: parse_data
arguments: data_tag: D38
type_infered: string
name: parse_data
arguments: data_tag: D54
type_infered: string
name: parse_data
arguments: data_tag: D51
type_infered: string
name: parse_data
arguments: data_tag: D0
type_infered: string

tool: D19: 110110

tool: D35: 111110

tool: D38: 110000

tool: D54: Test1 distance=%d


tool: D51: Test2 distance=%d


tool: D0: Test3 distance=%d


assistant: ```c
int main(void) {
  char *seq1 = "110110";
  char *seq2 = "111110";
  char *seq3 = "110000";
  printf("Test1 distance=%d\n", HammingDistance(seq1, seq1));
  printf("Test2 distance=%d\n", HammingDistance(seq1, seq2));
  printf("Test3 distance=%d\n", HammingDistance(seq1, seq3));
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %rbx
  lea    D50(%rip),%rbx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <HammingDistance@plt>
  mov    %eax,%esi
  lea    D44(%rip),%rdi
  call   <printf@plt>
  lea    D2(%rip),%rsi
  mov    %rbx,%rdi
  call   <HammingDistance@plt>
  mov    %eax,%esi
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    D59(%rip),%rsi
  mov    %rbx,%rdi
  call   <HammingDistance@plt>
  mov    %eax,%esi
  lea    D16(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  pop    %rbx
  ret
```

tool_calls: name: parse_data
arguments: label: D50
type: string
name: parse_data
arguments: label: D44
type: string
name: parse_data
arguments: label: D2
type: string
name: parse_data
arguments: label: D1
type: string
name: parse_data
arguments: label: D59
type: string
name: parse_data
arguments: label: D16
type: string

tool: D50: 110110

tool: D44: Test1 distance=%d


tool: D2: 111110

tool: D1: Test2 distance=%d


tool: D59: 110000

tool: D16: Test3 distance=%d


assistant: ```c
int main(void) {
  char *seq1 = "110110";
  char *seq2 = "111110";
  char *seq3 = "110000";
  printf("Test1 distance=%d\n", HammingDistance(seq1, seq1));
  printf("Test2 distance=%d\n", HammingDistance(seq1, seq2));
  printf("Test3 distance=%d\n", HammingDistance(seq1, seq3));
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D21(%rip),%rbp
  mov    %rbp,%rsi
  mov    %rbp,%rdi
  call   <HammingDistance@plt>
  lea    D7(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    D18(%rip),%rsi
  call   <HammingDistance@plt>
  lea    D2(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    D20(%rip),%rsi
  call   <HammingDistance@plt>
  lea    D45(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D21
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D7
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D18
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D20
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D45
type_guessed: string

tool: D21: 110110

tool: D7: Test1 distance=%d


tool: D18: 111110

tool: D2: Test2 distance=%d


tool: D20: 110000

tool: D45: Test3 distance=%d


assistant: ```c
int main(void) {
  char *seq1 = "110110";
  char *seq2 = "111110";
  char *seq3 = "110000";
  printf("Test1 distance=%d\n", HammingDistance(seq1, seq1));
  printf("Test2 distance=%d\n", HammingDistance(seq1, seq2));
  printf("Test3 distance=%d\n", HammingDistance(seq1, seq3));
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D39(%rip),%rbp
  mov    %rbp,%rsi
  mov    %rbp,%rdi
  call   <HammingDistance@plt>
  lea    D57(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    D42(%rip),%rsi
  call   <HammingDistance@plt>
  lea    D28(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    D12(%rip),%rsi
  call   <HammingDistance@plt>
  lea    D30(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D39
data_type: string
name: retrieve_data
arguments: tag: D57
data_type: string
name: retrieve_data
arguments: tag: D42
data_type: string
name: retrieve_data
arguments: tag: D28
data_type: string
name: retrieve_data
arguments: tag: D12
data_type: string
name: retrieve_data
arguments: tag: D30
data_type: string

tool: D39: 110110

tool: D57: Test1 distance=%d


tool: D42: 111110

tool: D28: Test2 distance=%d


tool: D12: 110000

tool: D30: Test3 distance=%d


assistant: ```c
int main(void) {
  char *seq1 = "110110";
  char *seq2 = "111110";
  char *seq3 = "110000";
  printf("Test1 distance=%d\n", HammingDistance(seq1, seq1));
  printf("Test2 distance=%d\n", HammingDistance(seq1, seq2));
  printf("Test3 distance=%d\n", HammingDistance(seq1, seq3));
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<getDayOfWeek>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <getMonthAnchorDay@plt>
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <getDoomsday@plt>
  mov    -0x4(%rbp),%edx
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffff92492493,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x2,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0x8(%rbp)
  mov    -0x8(%rbp),%ecx
  mov    %ecx,%edx
  shl    $0x3,%edx
  sub    %ecx,%edx
  sub    %edx,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jns    L8
  addl   $0x7,-0x8(%rbp)
L8:
  mov    -0x8(%rbp),%eax
  leave
  ret
```

assistant: ```c
int getDayOfWeek(int day, int month, int year) {
  int difference = day - getMonthAnchorDay(month, year);
  int dayOfWeek = (getDoomsday(year) + difference) % 7;
  if (dayOfWeek < 0)
    dayOfWeek += 7;
  return dayOfWeek;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<getDayOfWeek>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  mov    %esi,%edi
  mov    %edx,%ebp
  mov    %edx,%esi
  call   <getMonthAnchorDay@plt>
  sub    %eax,%ebx
  mov    %ebp,%edi
  call   <getDoomsday@plt>
  lea    (%rax,%rbx,1),%edi
  movslq %edi,%rax
  imul   $0xffffffff92492493,%rax,%rax
  shr    $0x20,%rax
  add    %edi,%eax
  sar    $0x2,%eax
  mov    %edi,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    0x0(,%rax,8),%edx
  sub    %eax,%edx
  mov    %edi,%eax
  sub    %edx,%eax
  lea    0x7(%rax),%edx
  cmovs  %edx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int getDayOfWeek(int day, int month, int year) {
  int difference = day - getMonthAnchorDay(month, year);
  int dayOfWeek = (getDoomsday(year) + difference) % 7;
  if (dayOfWeek < 0)
    dayOfWeek += 7;
  return dayOfWeek;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<getDayOfWeek>:
  endbr64
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %edi,%ebx
  mov    %esi,%edi
  mov    %edx,%esi
  sub    $0x8,%rsp
  call   <getMonthAnchorDay@plt>
  mov    %ebp,%edi
  sub    %eax,%ebx
  call   <getDoomsday@plt>
  lea    (%rax,%rbx,1),%edi
  movslq %edi,%rax
  mov    %edi,%edx
  imul   $0xffffffff92492493,%rax,%rax
  sar    $0x1f,%edx
  shr    $0x20,%rax
  add    %edi,%eax
  sar    $0x2,%eax
  sub    %edx,%eax
  lea    0x0(,%rax,8),%edx
  sub    %eax,%edx
  mov    %edi,%eax
  sub    %edx,%eax
  lea    0x7(%rax),%edx
  cmovs  %edx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int getDayOfWeek(int day, int month, int year) {
  int difference = day - getMonthAnchorDay(month, year);
  int dayOfWeek = (getDoomsday(year) + difference) % 7;
  if (dayOfWeek < 0)
    dayOfWeek += 7;
  return dayOfWeek;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<getDayOfWeek>:
  endbr64
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %edi,%ebx
  mov    %esi,%edi
  mov    %edx,%esi
  sub    $0x8,%rsp
  call   <getMonthAnchorDay@plt>
  mov    %ebp,%edi
  sub    %eax,%ebx
  call   <getDoomsday@plt>
  lea    (%rax,%rbx,1),%edi
  movslq %edi,%rax
  mov    %edi,%edx
  imul   $0xffffffff92492493,%rax,%rax
  sar    $0x1f,%edx
  shr    $0x20,%rax
  add    %edi,%eax
  sar    $0x2,%eax
  sub    %edx,%eax
  lea    0x0(,%rax,8),%edx
  sub    %eax,%edx
  mov    %edi,%eax
  sub    %edx,%eax
  lea    0x7(%rax),%edx
  cmovs  %edx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int getDayOfWeek(int day, int month, int year) {
  int difference = day - getMonthAnchorDay(month, year);
  int dayOfWeek = (getDoomsday(year) + difference) % 7;
  if (dayOfWeek < 0)
    dayOfWeek += 7;
  return dayOfWeek;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<proto_unescape>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L48
L2:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x5c,%eax
  cmp    $0x18,%eax
  ja     L90
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D5(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D5(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x10(%rbp),%rax
  movb   $0x20,(%rax)
  jmp    L63
  mov    -0x10(%rbp),%rax
  movb   $0x9,(%rax)
  jmp    L63
  mov    -0x10(%rbp),%rax
  movb   $0xd,(%rax)
  jmp    L63
  mov    -0x10(%rbp),%rax
  movb   $0xa,(%rax)
  jmp    L63
  mov    -0x10(%rbp),%rax
  movb   $0x5c,(%rax)
  jmp    L63
L90:
  mov    -0x10(%rbp),%rax
  movzbl 0x1(%rax),%edx
  mov    -0x10(%rbp),%rax
  mov    %dl,(%rax)
L63:
  addq   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L7
L25:
  mov    -0x8(%rbp),%rax
  movzbl 0x1(%rax),%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x8(%rbp)
L7:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L25
L48:
  mov    -0x10(%rbp),%rax
  mov    $0x5c,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L2
  nop
  nop
  leave
  ret
```

assistant: ```c
void proto_unescape(char *s) {
  char *cp, *cp2;
  cp = s;
  while ((cp = strchr(cp, '\\')) != NULL) {
    switch (cp[1]) {
    case '_':
      *cp = ' ';
      break;
    case 't':
      *cp = '\t';
      break;
    case 'r':
      *cp = '\r';
      break;
    case 'n':
      *cp = '\n';
      break;
    case '\\':
      *cp = '\\';
      break;
    default:
      *cp = *(cp + 1);
    }
    cp2 = ++cp;
    while (*cp2 != '\0') {
      *cp2 = *(cp2 + 1);
      cp2++;
    }
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<proto_unescape>:
  endbr64
  push   %rbx
  lea    D1(%rip),%rbx
  jmp    L82
  mov    $0x20,%ecx
  jmp    L22
  mov    $0xa,%edx
L41:
  mov    %dl,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
L17:
  movzbl 0x1(%rax),%edx
  mov    %dl,(%rax)
  add    $0x1,%rax
  test   %dl,%dl
  jne    L17
L82:
  mov    $0x5c,%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L55
  movzbl 0x1(%rax),%edx
  lea    -0x5c(%rdx),%ecx
  cmp    $0x18,%cl
  ja     L85
  movzbl %cl,%ecx
  movslq (%rbx,%rcx,4),%rcx
  add    %rbx,%rcx
  notrack jmp *%rcx
L85:
  mov    %edx,%ecx
L22:
  mov    %cl,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  test   %dl,%dl
  jne    L17
  jmp    L82
  mov    $0x9,%edx
  jmp    L41
  mov    $0xd,%edx
  jmp    L41
L55:
  pop    %rbx
  ret
```

assistant: ```c
void proto_unescape(char *s) {
  char *cp, *cp2;
  cp = s;
  while ((cp = strchr(cp, '\\')) != NULL) {
    switch (cp[1]) {
    case '_':
      *cp = ' ';
      break;
    case 't':
      *cp = '\t';
      break;
    case 'r':
      *cp = '\r';
      break;
    case 'n':
      *cp = '\n';
      break;
    case '\\':
      *cp = '\\';
      break;
    default:
      *cp = *(cp + 1);
    }
    cp2 = ++cp;
    while (*cp2 != '\0') {
      *cp2 = *(cp2 + 1);
      cp2++;
    }
  }
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<proto_unescape>:
  endbr64
  push   %rbx
  lea    D3(%rip),%rbx
L68:
  mov    $0x5c,%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L70
L14:
  movzbl 0x1(%rax),%ecx
  lea    -0x5c(%rcx),%edx
  cmp    $0x18,%dl
  ja     L31
  movzbl %dl,%edx
  movslq (%rbx,%rdx,4),%rdx
  add    %rbx,%rdx
  notrack jmp *%rdx
  nopl   0x0(%rax)
L31:
  mov    %cl,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  test   %cl,%cl
  je     L68
  nopl   (%rax)
L38:
  movzbl 0x1(%rax),%edx
  add    $0x1,%rax
  mov    %dl,-0x1(%rax)
  test   %dl,%dl
  jne    L38
  mov    $0x5c,%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L14
L70:
  pop    %rbx
  ret
  mov    $0xa,%ecx
  mov    %cl,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  jmp    L38
  mov    $0xd,%ecx
  add    $0x1,%rax
  mov    %cl,-0x1(%rax)
  mov    %rax,%rdi
  jmp    L38
  mov    $0x9,%ecx
  add    $0x1,%rax
  mov    %cl,-0x1(%rax)
  mov    %rax,%rdi
  jmp    L38
  movb   $0x20,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  jmp    L38
```

assistant: ```c
void proto_unescape(char *s) {
  char *cp, *cp2;
  cp = s;
  while ((cp = strchr(cp, '\\')) != NULL) {
    switch (cp[1]) {
    case '_':
      *cp = ' ';
      break;
    case 't':
      *cp = '\t';
      break;
    case 'r':
      *cp = '\r';
      break;
    case 'n':
      *cp = '\n';
      break;
    case '\\':
      *cp = '\\';
      break;
    default:
      *cp = *(cp + 1);
    }
    cp2 = ++cp;
    while (*cp2 != '\0') {
      *cp2 = *(cp2 + 1);
      cp2++;
    }
  }
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<proto_unescape>:
  endbr64
  push   %rbx
  lea    D3(%rip),%rbx
L87:
  mov    $0x5c,%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L83
L10:
  movzbl 0x1(%rax),%ecx
  lea    -0x5c(%rcx),%edx
  cmp    $0x18,%dl
  ja     L20
  movzbl %dl,%edx
  movslq (%rbx,%rdx,4),%rdx
  add    %rbx,%rdx
  notrack jmp *%rdx
  nopl   0x0(%rax)
L20:
  mov    %cl,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  test   %cl,%cl
  je     L87
  nopl   (%rax)
L69:
  movzbl 0x1(%rax),%edx
  add    $0x1,%rax
  mov    %dl,-0x1(%rax)
  test   %dl,%dl
  jne    L69
  mov    $0x5c,%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L10
L83:
  pop    %rbx
  ret
  mov    $0xa,%ecx
  mov    %cl,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  jmp    L69
  mov    $0xd,%ecx
  add    $0x1,%rax
  mov    %cl,-0x1(%rax)
  mov    %rax,%rdi
  jmp    L69
  mov    $0x9,%ecx
  add    $0x1,%rax
  mov    %cl,-0x1(%rax)
  mov    %rax,%rdi
  jmp    L69
  movb   $0x20,(%rax)
  add    $0x1,%rax
  mov    %rax,%rdi
  jmp    L69
```

assistant: ```c
void proto_unescape(char *s) {
  char *cp, *cp2;
  cp = s;
  while ((cp = strchr(cp, '\\')) != NULL) {
    switch (cp[1]) {
    case '_':
      *cp = ' ';
      break;
    case 't':
      *cp = '\t';
      break;
    case 'r':
      *cp = '\r';
      break;
    case 'n':
      *cp = '\n';
      break;
    case '\\':
      *cp = '\\';
      break;
    default:
      *cp = *(cp + 1);
    }
    cp2 = ++cp;
    while (*cp2 != '\0') {
      *cp2 = *(cp2 + 1);
      cp2++;
    }
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<swoole_hash_austin>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L65
L17:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x8,%eax
  or     %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x10,%eax
  or     %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x18,%eax
  or     %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  imul   $0x5bd1e995,%eax,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  shr    $0x18,%eax
  xor    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  imul   $0x5bd1e995,%eax,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  imul   $0x5bd1e995,%eax,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  xor    %eax,-0x8(%rbp)
  addq   $0x4,-0x18(%rbp)
  subl   $0x4,-0x1c(%rbp)
L65:
  cmpl   $0x3,-0x1c(%rbp)
  ja     L17
  cmpl   $0x3,-0x1c(%rbp)
  je     L51
  cmpl   $0x3,-0x1c(%rbp)
  ja     L9
  cmpl   $0x1,-0x1c(%rbp)
  je     L40
  cmpl   $0x2,-0x1c(%rbp)
  je     L60
  jmp    L9
L51:
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x10,%eax
  xor    %eax,-0x8(%rbp)
L60:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x8,%eax
  xor    %eax,-0x8(%rbp)
L40:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  imul   $0x5bd1e995,%eax,%eax
  mov    %eax,-0x8(%rbp)
L9:
  mov    -0x8(%rbp),%eax
  shr    $0xd,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  imul   $0x5bd1e995,%eax,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0xf,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
uint32_t swoole_hash_austin(char *key, unsigned int keylen) {
  unsigned int h, k;
  h = 0 ^ keylen;
  while (keylen >= 4) {
    k = key[0];
    k |= key[1] << 8;
    k |= key[2] << 16;
    k |= key[3] << 24;
    k *= 0x5bd1e995;
    k ^= k >> 24;
    k *= 0x5bd1e995;
    h *= 0x5bd1e995;
    h ^= k;
    key += 4;
    keylen -= 4;
  }
  switch (keylen) {
  case 3:
    h ^= key[2] << 16;
  case 2:
    h ^= key[1] << 8;
  case 1:
    h ^= key[0];
    h *= 0x5bd1e995;
  }
  h ^= h >> 13;
  h *= 0x5bd1e995;
  h ^= h >> 15;
  return h;
}
```