ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<parse_line>:
  endbr64
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  test   %eax,%eax
  jle    L211
  mov    %eax,%r8d
  mov    %rbp,%rsi
  xor    %eax,%eax
  xor    %r11d,%r11d
  xor    %r10d,%r10d
L70:
  movslq %eax,%rdx
  add    $0x1,%eax
  add    %rbx,%rdx
L49:
  movzbl (%rdx),%edi
  lea    -0x1(%rax),%ecx
  cmp    $0x20,%dil
  je     L80
  cmp    $0x9,%dil
  je     L80
  cmp    $0xa,%dil
  je     L46
  mov    %rdx,(%rsi)
  movslq %ecx,%rdx
  lea    0x1(%r10),%r9d
  add    %rbx,%rdx
  jmp    L137
  nopw   0x0(%rax,%rax,1)
L63:
  cmp    $0x22,%al
  je     L100
  cmp    $0x20,%al
  je     L133
  cmp    $0x9,%al
  jne    L111
L133:
  test   %r11d,%r11d
  je     L48
L111:
  add    $0x1,%ecx
  add    $0x1,%rdx
  cmp    %ecx,%r8d
  jle    L17
L137:
  movzbl (%rdx),%eax
  cmp    $0x23,%al
  je     L56
  cmp    $0x3d,%al
  je     L48
  cmp    $0x2c,%al
  je     L48
  cmp    $0xa,%al
  jne    L63
  add    $0x1,%ecx
  movb   $0x0,(%rdx)
  add    $0x1,%rdx
  cmp    %ecx,%r8d
  jg     L137
L17:
  add    $0x8,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L48:
  lea    0x1(%rcx),%eax
  movb   $0x0,(%rdx)
  cmp    %eax,%r8d
  jle    L17
  add    $0x8,%rsi
  mov    %r9d,%r10d
  jmp    L70
  nopw   0x0(%rax,%rax,1)
L80:
  cmp    %eax,%r8d
  jle    L46
  add    $0x1,%rdx
  add    $0x1,%eax
  jmp    L49
  nopl   0x0(%rax)
L100:
  xor    $0x1,%r11d
  jmp    L111
  xchg   %ax,%ax
L46:
  add    $0x8,%rsp
  mov    %r10d,%r9d
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L56:
  test   %r11d,%r11d
  jne    L17
  movb   $0x0,(%rdx)
  mov    %r10d,%r9d
  add    $0x8,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  ret
L211:
  xor    %r9d,%r9d
  jmp    L17
```

assistant: ```c
int parse_line(char *line, char *args[]) {
  int arg_num = 0;
  int is_start = 0;
  int is_quote = 0;
  int length = 0;
  int i = 0;
  arg_num = 0;
  length = strlen(line);
  is_start = 0;
  is_quote = 0;
  for (i = 0; i < length; i++) {
    if (is_start == 0) {
      if (line[i] == ' ') {
        continue;
      } else if (line[i] == '\t') {
        continue;
      } else if (line[i] == '\n') {
        break;
      } else {
        is_start = 1;
        args[arg_num] = &line[i];
        arg_num++;
      }
    }
    if (is_start == 1) {
      if (line[i] == '#') {
        if (is_quote == 0) {
          line[i] = '\0';
          arg_num--;
        }
        break;
      }
      if (line[i] == '=') {
        line[i] = '\0';
        is_start = 0;
        continue;
      }
      if (line[i] == ',') {
        line[i] = '\0';
        is_start = 0;
        continue;
      }
      if ((line[i] == ',') && (is_quote == 0)) {
        line[i] = ' ';
        continue;
      }
    }
    if (line[i] == '\n') {
      line[i] = '\0';
    }
    if (line[i] == '"') {
      is_quote = (is_quote == 1) ? 0 : 1;
      continue;
    }
    if (((line[i] == ' ') || (line[i] == '\t')) && (is_quote == 0)) {
      line[i] = '\0';
      is_start = 0;
      continue;
    }
  }
  return arg_num;
}
```
user: What is the c source code of the assembly code below?

```asm
<parse_line>:
  endbr64
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  test   %eax,%eax
  jle    L10
  mov    %eax,%r8d
  mov    %rbp,%rsi
  xor    %eax,%eax
  xor    %r11d,%r11d
  xor    %r10d,%r10d
L29:
  movslq %eax,%rdx
  add    $0x1,%eax
  add    %rbx,%rdx
L119:
  movzbl (%rdx),%edi
  lea    -0x1(%rax),%ecx
  cmp    $0x20,%dil
  je     L18
  cmp    $0x9,%dil
  je     L18
  cmp    $0xa,%dil
  je     L138
  mov    %rdx,(%rsi)
  movslq %ecx,%rdx
  lea    0x1(%r10),%r9d
  add    %rbx,%rdx
  jmp    L122
  nopw   0x0(%rax,%rax,1)
L112:
  cmp    $0x22,%al
  je     L176
  cmp    $0x20,%al
  je     L179
  cmp    $0x9,%al
  jne    L147
L179:
  test   %r11d,%r11d
  je     L204
L147:
  add    $0x1,%ecx
  add    $0x1,%rdx
  cmp    %ecx,%r8d
  jle    L58
L122:
  movzbl (%rdx),%eax
  cmp    $0x23,%al
  je     L133
  cmp    $0x3d,%al
  je     L204
  cmp    $0x2c,%al
  je     L204
  cmp    $0xa,%al
  jne    L112
  add    $0x1,%ecx
  movb   $0x0,(%rdx)
  add    $0x1,%rdx
  cmp    %ecx,%r8d
  jg     L122
L58:
  add    $0x8,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L204:
  lea    0x1(%rcx),%eax
  movb   $0x0,(%rdx)
  cmp    %eax,%r8d
  jle    L58
  add    $0x8,%rsi
  mov    %r9d,%r10d
  jmp    L29
  nopw   0x0(%rax,%rax,1)
L18:
  cmp    %eax,%r8d
  jle    L138
  add    $0x1,%rdx
  add    $0x1,%eax
  jmp    L119
  nopl   0x0(%rax)
L176:
  xor    $0x1,%r11d
  jmp    L147
  xchg   %ax,%ax
L138:
  add    $0x8,%rsp
  mov    %r10d,%r9d
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L133:
  test   %r11d,%r11d
  jne    L58
  movb   $0x0,(%rdx)
  mov    %r10d,%r9d
  add    $0x8,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  ret
L10:
  xor    %r9d,%r9d
  jmp    L58
```

assistant: ```c
int parse_line(char *line, char *args[]) {
  int arg_num = 0;
  int is_start = 0;
  int is_quote = 0;
  int length = 0;
  int i = 0;
  arg_num = 0;
  length = strlen(line);
  is_start = 0;
  is_quote = 0;
  for (i = 0; i < length; i++) {
    if (is_start == 0) {
      if (line[i] == ' ') {
        continue;
      } else if (line[i] == '\t') {
        continue;
      } else if (line[i] == '\n') {
        break;
      } else {
        is_start = 1;
        args[arg_num] = &line[i];
        arg_num++;
      }
    }
    if (is_start == 1) {
      if (line[i] == '#') {
        if (is_quote == 0) {
          line[i] = '\0';
          arg_num--;
        }
        break;
      }
      if (line[i] == '=') {
        line[i] = '\0';
        is_start = 0;
        continue;
      }
      if (line[i] == ',') {
        line[i] = '\0';
        is_start = 0;
        continue;
      }
      if ((line[i] == ',') && (is_quote == 0)) {
        line[i] = ' ';
        continue;
      }
    }
    if (line[i] == '\n') {
      line[i] = '\0';
    }
    if (line[i] == '"') {
      is_quote = (is_quote == 1) ? 0 : 1;
      continue;
    }
    if (((line[i] == ' ') || (line[i] == '\t')) && (is_quote == 0)) {
      line[i] = '\0';
      is_start = 0;
      continue;
    }
  }
  return arg_num;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<FS_CreatePath>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L3
L0:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L29
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <Sys_Mkdir@plt>
  mov    -0x8(%rbp),%rax
  movb   $0x2f,(%rax)
L29:
  addq   $0x1,-0x8(%rbp)
L3:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L0
  nop
  nop
  leave
  ret
```

assistant: ```c
void FS_CreatePath(char *path) {
  char *ofs;
  for (ofs = path + 1; *ofs; ofs++) {
    if (*ofs == '/') {
      *ofs = '\0';
      Sys_Mkdir(path);
      *ofs = '/';
    }
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<FS_CreatePath>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  lea    0x1(%rdi),%rbx
  movzbl 0x1(%rdi),%eax
  test   %al,%al
  jne    L17
L32:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L24:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L32
L17:
  cmp    $0x2f,%al
  jne    L24
  movb   $0x0,(%rbx)
  mov    %rbp,%rdi
  call   <Sys_Mkdir@plt>
  movb   $0x2f,(%rbx)
  jmp    L24
```

assistant: ```c
void FS_CreatePath(char *path) {
  char *ofs;
  for (ofs = path + 1; *ofs; ofs++) {
    if (*ofs == '/') {
      *ofs = '\0';
      Sys_Mkdir(path);
      *ofs = '/';
    }
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<FS_CreatePath>:
  endbr64
  movzbl 0x1(%rdi),%eax
  test   %al,%al
  je     L36
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  lea    0x1(%rdi),%rbx
  sub    $0x8,%rsp
  jmp    L20
  nopl   0x0(%rax,%rax,1)
L9:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  test   %al,%al
  je     L13
L20:
  cmp    $0x2f,%al
  jne    L9
  movb   $0x0,(%rbx)
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <Sys_Mkdir@plt>
  movb   $0x2f,-0x1(%rbx)
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L20
L13:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L36:
  ret
```

assistant: ```c
void FS_CreatePath(char *path) {
  char *ofs;
  for (ofs = path + 1; *ofs; ofs++) {
    if (*ofs == '/') {
      *ofs = '\0';
      Sys_Mkdir(path);
      *ofs = '/';
    }
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<FS_CreatePath>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  lea    0x1(%rdi),%rbx
  sub    $0x8,%rsp
  movzbl 0x1(%rdi),%eax
  test   %al,%al
  je     L39
  nopl   0x0(%rax)
L2:
  cmp    $0x2f,%al
  je     L7
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  test   %al,%al
  jne    L2
L39:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L7:
  movb   $0x0,(%rbx)
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <Sys_Mkdir@plt>
  movb   $0x2f,-0x1(%rbx)
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L2
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void FS_CreatePath(char *path) {
  char *ofs;
  for (ofs = path + 1; *ofs; ofs++) {
    if (*ofs == '/') {
      *ofs = '\0';
      Sys_Mkdir(path);
      *ofs = '/';
    }
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%ecx
  shr    $0x3,%ecx
  mov    %ecx,%eax
  or     $0x61bab5,%eax
  test   $0x8,%cl
  je     L0
  and    $0x6,%ecx
  or     $0x5,%ecx
  shr    %cl,%eax
  mov    %eax,%ecx
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%eax
L0:
  shl    $0x3,%eax
  mov    %eax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  char copy11;
  unsigned short copy12;
  unsigned short copy13;
  unsigned short copy15;
  unsigned short copy16;
  {
    state[0UL] = (input[0UL] | 51238316UL) >> 3U;
    if ((state[0UL] >> 3U) & 1U) {
      if ((state[0UL] >> 4U) & 1U) {
        if (state[0UL] & 1U) {
          state[0UL] >>= (state[0UL] & 7U) | 1UL;
          state[0UL] <<= (state[0UL] & 7U) | 1UL;
        } else {
          copy11 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy11;
          state[0UL] <<= (state[0UL] & 7U) | 1UL;
        }
      } else if (state[0UL] & 1U) {
        copy12 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = copy12;
        copy13 = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = copy13;
        copy13 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = copy13;
      } else {
        state[0UL] >>= ((state[0UL] >> 1U) & 7U) | 1UL;
      }
    } else {
      copy15 = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = copy15;
      copy16 = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = copy16;
    }
    output[0UL] = state[0UL] << 3U;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%ecx
  shr    $0x3,%ecx
  mov    %ecx,%eax
  or     $0x61bab5,%eax
  test   $0x8,%cl
  je     L2
  and    $0x6,%ecx
  or     $0x5,%ecx
  shr    %cl,%eax
  mov    %eax,%ecx
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%eax
L2:
  shl    $0x3,%eax
  mov    %eax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  char copy11;
  unsigned short copy12;
  unsigned short copy13;
  unsigned short copy15;
  unsigned short copy16;
  {
    state[0UL] = (input[0UL] | 51238316UL) >> 3U;
    if ((state[0UL] >> 3U) & 1U) {
      if ((state[0UL] >> 4U) & 1U) {
        if (state[0UL] & 1U) {
          state[0UL] >>= (state[0UL] & 7U) | 1UL;
          state[0UL] <<= (state[0UL] & 7U) | 1UL;
        } else {
          copy11 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy11;
          state[0UL] <<= (state[0UL] & 7U) | 1UL;
        }
      } else if (state[0UL] & 1U) {
        copy12 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = copy12;
        copy13 = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = copy13;
        copy13 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = copy13;
      } else {
        state[0UL] >>= ((state[0UL] >> 1U) & 7U) | 1UL;
      }
    } else {
      copy15 = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = copy15;
      copy16 = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = copy16;
    }
    output[0UL] = state[0UL] << 3U;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%ecx
  shr    $0x3,%ecx
  mov    %ecx,%eax
  or     $0x61bab5,%eax
  test   $0x8,%cl
  je     L1
  and    $0x6,%ecx
  or     $0x5,%ecx
  shr    %cl,%eax
  mov    %eax,%ecx
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%eax
L1:
  shl    $0x3,%eax
  mov    %eax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  char copy11;
  unsigned short copy12;
  unsigned short copy13;
  unsigned short copy15;
  unsigned short copy16;
  {
    state[0UL] = (input[0UL] | 51238316UL) >> 3U;
    if ((state[0UL] >> 3U) & 1U) {
      if ((state[0UL] >> 4U) & 1U) {
        if (state[0UL] & 1U) {
          state[0UL] >>= (state[0UL] & 7U) | 1UL;
          state[0UL] <<= (state[0UL] & 7U) | 1UL;
        } else {
          copy11 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy11;
          state[0UL] <<= (state[0UL] & 7U) | 1UL;
        }
      } else if (state[0UL] & 1U) {
        copy12 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = copy12;
        copy13 = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = copy13;
        copy13 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = copy13;
      } else {
        state[0UL] >>= ((state[0UL] >> 1U) & 7U) | 1UL;
      }
    } else {
      copy15 = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = copy15;
      copy16 = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = copy16;
    }
    output[0UL] = state[0UL] << 3U;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<find_block_tag>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %esi,%ebx
  cmp    $0xa,%ebx
  ja     L11
  test   %ebx,%ebx
  je     L11
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <hash_block_tag@plt>
  mov    %eax,-0x24(%rbp)
  cmpl   $0x48,-0x24(%rbp)
  ja     L11
  mov    -0x24(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  lea    D0(%rip),%rax
  mov    (%rdx,%rax,1),%r13
  movzbl (%r12),%eax
  mov    %eax,%edx
  movzbl 0x0(%r13),%eax
  xor    %edx,%eax
  movzbl %al,%eax
  and    $0xffffffdf,%eax
  test   %eax,%eax
  jne    L11
  mov    %ebx,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <gperf_case_strncmp@plt>
  test   %eax,%eax
  jne    L11
  mov    %ebx,%eax
  add    %r13,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L11
  mov    %r13,%rax
  jmp    L31
L11:
  mov    $0x0,%eax
L31:
  add    $0x18,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

assistant: ```c
const char *find_block_tag(str, len)
register const char *str;
register unsigned int len;
{
  enum { TOTAL_KEYWORDS = 43, MIN_WORD_LENGTH = 1, MAX_WORD_LENGTH = 10, MIN_HASH_VALUE = 1, MAX_HASH_VALUE = 72 };
  static const char *const wordlist[] = {"", "p", "dl", "del", "form", "", "footer", "details", "div", "", "", "figure", "ul", "fieldset", "", "figcaption", "header", "ol", "pre", "math", "video", "script", "section", "noscript", "", "blockquote", "hgroup", "hr", "ins", "", "style", "output", "summary", "nav", "", "audio", "canvas", "dd", "h1", "abbr", "table", "iframe", "article", "", "", "aside", "", "h6", "", "", "tfoot", "", "h5", "", "", "", "", "h4", "", "", "", "", "address", "", "", "", "", "h3", "", "", "", "", "h2"};
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
    unsigned int key = hash_block_tag(str, len);
    if (key <= MAX_HASH_VALUE) {
      register const char *s = wordlist[key];
      if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strncmp(str, s, len) && s[len] == '\0')
        return s;
    }
  }
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<find_block_tag>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x1(%rsi),%eax
  mov    $0x0,%ebp
  cmp    $0x9,%eax
  ja     L51
  mov    %rdi,%r12
  mov    %esi,%ebx
  mov    $0x0,%eax
  call   <hash_block_tag@plt>
  cmp    $0x48,%eax
  ja     L51
  mov    %eax,%eax
  lea    D5(%rip),%rdx
  mov    (%rdx,%rax,8),%rbp
  movzbl (%r12),%eax
  xor    0x0(%rbp),%al
  test   $0xdf,%al
  jne    L31
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <gperf_case_strncmp@plt>
  test   %eax,%eax
  jne    L54
  mov    %ebx,%ebx
  cmpb   $0x0,0x0(%rbp,%rbx,1)
  mov    $0x0,%eax
  cmovne %rax,%rbp
  jmp    L51
L31:
  mov    $0x0,%ebp
L51:
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L54:
  mov    $0x0,%ebp
  jmp    L51
```

assistant: ```c
const char *find_block_tag(str, len)
register const char *str;
register unsigned int len;
{
  enum { TOTAL_KEYWORDS = 43, MIN_WORD_LENGTH = 1, MAX_WORD_LENGTH = 10, MIN_HASH_VALUE = 1, MAX_HASH_VALUE = 72 };
  static const char *const wordlist[] = {"", "p", "dl", "del", "form", "", "footer", "details", "div", "", "", "figure", "ul", "fieldset", "", "figcaption", "header", "ol", "pre", "math", "video", "script", "section", "noscript", "", "blockquote", "hgroup", "hr", "ins", "", "style", "output", "summary", "nav", "", "audio", "canvas", "dd", "h1", "abbr", "table", "iframe", "article", "", "", "aside", "", "h6", "", "", "tfoot", "", "h5", "", "", "", "", "h4", "", "", "", "", "address", "", "", "", "", "h3", "", "", "", "", "h2"};
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
    unsigned int key = hash_block_tag(str, len);
    if (key <= MAX_HASH_VALUE) {
      register const char *s = wordlist[key];
      if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strncmp(str, s, len) && s[len] == '\0')
        return s;
    }
  }
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<find_block_tag>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  lea    -0x1(%rbx),%eax
  cmp    $0x9,%eax
  ja     L11
  xor    %eax,%eax
  mov    %ebx,%esi
  mov    %rdi,%rbp
  call   <hash_block_tag@plt>
  cmp    $0x48,%eax
  ja     L11
  mov    %eax,%eax
  lea    D7(%rip),%rdx
  mov    (%rdx,%rax,8),%r12
  movzbl 0x0(%rbp),%eax
  xor    (%r12),%al
  test   $0xdf,%al
  jne    L11
  xor    %eax,%eax
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <gperf_case_strncmp@plt>
  test   %eax,%eax
  jne    L11
  cmpb   $0x0,(%r12,%rbx,1)
  je     L3
  cs nopw 0x0(%rax,%rax,1)
L11:
  xor    %r12d,%r12d
L3:
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
const char *find_block_tag(str, len)
register const char *str;
register unsigned int len;
{
  enum { TOTAL_KEYWORDS = 43, MIN_WORD_LENGTH = 1, MAX_WORD_LENGTH = 10, MIN_HASH_VALUE = 1, MAX_HASH_VALUE = 72 };
  static const char *const wordlist[] = {"", "p", "dl", "del", "form", "", "footer", "details", "div", "", "", "figure", "ul", "fieldset", "", "figcaption", "header", "ol", "pre", "math", "video", "script", "section", "noscript", "", "blockquote", "hgroup", "hr", "ins", "", "style", "output", "summary", "nav", "", "audio", "canvas", "dd", "h1", "abbr", "table", "iframe", "article", "", "", "aside", "", "h6", "", "", "tfoot", "", "h5", "", "", "", "", "h4", "", "", "", "", "address", "", "", "", "", "h3", "", "", "", "", "h2"};
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
    unsigned int key = hash_block_tag(str, len);
    if (key <= MAX_HASH_VALUE) {
      register const char *s = wordlist[key];
      if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strncmp(str, s, len) && s[len] == '\0')
        return s;
    }
  }
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<find_block_tag>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  lea    -0x1(%rbx),%eax
  cmp    $0x9,%eax
  ja     L8
  xor    %eax,%eax
  mov    %ebx,%esi
  mov    %rdi,%rbp
  call   <hash_block_tag@plt>
  cmp    $0x48,%eax
  ja     L8
  mov    %eax,%eax
  lea    D6(%rip),%rdx
  mov    (%rdx,%rax,8),%r12
  movzbl 0x0(%rbp),%eax
  xor    (%r12),%al
  test   $0xdf,%al
  jne    L8
  xor    %eax,%eax
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <gperf_case_strncmp@plt>
  test   %eax,%eax
  jne    L8
  cmpb   $0x0,(%r12,%rbx,1)
  je     L6
  cs nopw 0x0(%rax,%rax,1)
L8:
  xor    %r12d,%r12d
L6:
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
const char *find_block_tag(str, len)
register const char *str;
register unsigned int len;
{
  enum { TOTAL_KEYWORDS = 43, MIN_WORD_LENGTH = 1, MAX_WORD_LENGTH = 10, MIN_HASH_VALUE = 1, MAX_HASH_VALUE = 72 };
  static const char *const wordlist[] = {"", "p", "dl", "del", "form", "", "footer", "details", "div", "", "", "figure", "ul", "fieldset", "", "figcaption", "header", "ol", "pre", "math", "video", "script", "section", "noscript", "", "blockquote", "hgroup", "hr", "ins", "", "style", "output", "summary", "nav", "", "audio", "canvas", "dd", "h1", "abbr", "table", "iframe", "article", "", "", "aside", "", "h6", "", "", "tfoot", "", "h5", "", "", "", "", "h4", "", "", "", "", "address", "", "", "", "", "h3", "", "", "", "", "h2"};
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
    unsigned int key = hash_block_tag(str, len);
    if (key <= MAX_HASH_VALUE) {
      register const char *s = wordlist[key];
      if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strncmp(str, s, len) && s[len] == '\0')
        return s;
    }
  }
  return 0;
}
```