ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Converte this assembly snippet into its equivalent C code:

```asm
<fprint_orl_not_bit>:
  endbr64
  mov    %esi,%edx
  test   $0x80,%sil
  je     L1
  mov    %esi,%ecx
  and    $0xf8,%edx
  lea    D14(%rip),%rsi
  xor    %eax,%eax
  and    $0x7,%ecx
  jmp    1050 <fprintf@plt>
  nopl   (%rax)
L1:
  lea    D17(%rip),%rsi
  xor    %eax,%eax
  jmp    1050 <fprintf@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D14
type: string
name: disassemble_data
arguments: tag: D17
type: string

tool: D14: ORL   C, /0x%02X.%X                

tool: D17: ORL   C, /0x%02X                  

assistant: ```c
void fprint_orl_not_bit(FILE *stream, uint8_t bit) {
  if (bit & 0x80)
    fprintf(stream,
            "ORL   C, /"
            "0x%02X"
            ".%X                ",
            bit & 0xF8, bit & 0x07);
  else
    fprintf(stream,
            "ORL   C, /"
            "0x%02X"
            "                  ",
            bit);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<fprint_orl_not_bit>:
  endbr64
  mov    %esi,%edx
  test   $0x80,%sil
  je     L3
  mov    %esi,%ecx
  and    $0xf8,%edx
  lea    D19(%rip),%rsi
  xor    %eax,%eax
  and    $0x7,%ecx
  jmp    1050 <fprintf@plt>
  nopl   (%rax)
L3:
  lea    D15(%rip),%rsi
  xor    %eax,%eax
  jmp    1050 <fprintf@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D19
data_type: string
name: unpack_data
arguments: data_label: D15
data_type: string

tool: D19: ORL   C, /0x%02X.%X                

tool: D15: ORL   C, /0x%02X                  

assistant: ```c
void fprint_orl_not_bit(FILE *stream, uint8_t bit) {
  if (bit & 0x80)
    fprintf(stream,
            "ORL   C, /"
            "0x%02X"
            ".%X                ",
            bit & 0xF8, bit & 0x07);
  else
    fprintf(stream,
            "ORL   C, /"
            "0x%02X"
            "                  ",
            bit);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<klicks>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L6
  mov    %rbx,%rdx
  lea    -0x1(%rax),%eax
  lea    0x1(%rbx,%rax,1),%r8
  mov    $0x0,%esi
  mov    $0x12249,%edi
  jmp    L158
L169:
  add    $0x1,%esi
L121:
  cmp    $0x62,%al
  je     L29
  cmp    $0x65,%al
  jne    L10
L29:
  add    $0x2,%esi
L0:
  cmp    $0x63,%al
  je     L21
  cmp    $0x66,%al
  jne    L28
L21:
  add    $0x3,%esi
L80:
  cmp    $0x73,%al
  je     L188
  cmp    $0x7a,%al
  jne    L152
L188:
  add    $0x4,%esi
L152:
  add    $0x1,%rdx
  cmp    %r8,%rdx
  je     L184
L158:
  movzbl (%rdx),%eax
  cmp    $0x61,%al
  je     L169
  cmp    $0x64,%al
  je     L169
  cmp    $0x20,%al
  je     L169
  lea    -0x67(%rax),%ecx
  cmp    $0x10,%cl
  ja     L121
  bt     %rcx,%rdi
  jb     L169
L10:
  lea    -0x68(%rax),%ecx
  cmp    $0x10,%cl
  ja     L0
  bt     %rcx,%rdi
  jb     L29
L28:
  lea    -0x69(%rax),%ecx
  cmp    $0x10,%cl
  ja     L80
  bt     %rcx,%rdi
  jae    L80
  jmp    L21
L6:
  mov    $0x0,%esi
L184:
  lea    D7(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  pop    %rbx
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D7
type_guessed: string

tool: D7: %d

assistant: ```c
int klicks(char sentence[160]) {
  int l, i, klick = 0;
  l = strlen(sentence);
  for (i = 0; i < l; i++) {
    if (sentence[i] == 'a' || sentence[i] == 'd' || sentence[i] == 'g' || sentence[i] == 'j' || sentence[i] == 'm' || sentence[i] == 'p' || sentence[i] == 't' || sentence[i] == 'w' || sentence[i] == ' ')
      klick += 1;
    if (sentence[i] == 'b' || sentence[i] == 'e' || sentence[i] == 'h' || sentence[i] == 'k' || sentence[i] == 'n' || sentence[i] == 'q' || sentence[i] == 'u' || sentence[i] == 'x')
      klick += 2;
    if (sentence[i] == 'c' || sentence[i] == 'f' || sentence[i] == 'i' || sentence[i] == 'l' || sentence[i] == 'o' || sentence[i] == 'r' || sentence[i] == 'v' || sentence[i] == 'y')
      klick += 3;
    if (sentence[i] == 's' || sentence[i] == 'z')
      klick += 4;
  }
  printf("%d", klick);
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<klicks>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L89
  sub    $0x1,%eax
  mov    %rbx,%rdi
  xor    %esi,%esi
  mov    $0x12249,%ecx
  lea    0x1(%rbx,%rax,1),%r8
  jmp    L94
  nopl   0x0(%rax)
L99:
  cmp    $0x20,%al
  je     L63
  lea    -0x67(%rax),%edx
  cmp    $0x10,%dl
  ja     L77
  bt     %rdx,%rcx
  jb     L63
L141:
  lea    -0x68(%rax),%edx
  cmp    $0x10,%dl
  ja     L135
  bt     %rdx,%rcx
  jb     L158
L65:
  lea    -0x69(%rax),%edx
  cmp    $0x10,%dl
  ja     L41
  bt     %rdx,%rcx
  jb     L183
L41:
  cmp    $0x73,%al
  je     L172
L52:
  cmp    $0x7a,%al
  je     L172
  add    $0x1,%rdi
  cmp    %rdi,%r8
  je     L180
L94:
  movzbl (%rdi),%eax
  cmp    $0x61,%al
  je     L63
  cmp    $0x64,%al
  jne    L99
L63:
  add    $0x1,%esi
L77:
  cmp    $0x62,%al
  je     L158
  cmp    $0x65,%al
  jne    L141
L158:
  add    $0x2,%esi
L135:
  cmp    $0x63,%al
  je     L183
  cmp    $0x66,%al
  jne    L65
L183:
  add    $0x3,%esi
  cmp    $0x73,%al
  jne    L52
L172:
  add    $0x1,%rdi
  add    $0x4,%esi
  cmp    %rdi,%r8
  jne    L94
L180:
  lea    D11(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L89:
  xor    %esi,%esi
  lea    D11(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  pop    %rbx
  ret
```

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

tool: D11: %d

assistant: ```c
int klicks(char sentence[160]) {
  int l, i, klick = 0;
  l = strlen(sentence);
  for (i = 0; i < l; i++) {
    if (sentence[i] == 'a' || sentence[i] == 'd' || sentence[i] == 'g' || sentence[i] == 'j' || sentence[i] == 'm' || sentence[i] == 'p' || sentence[i] == 't' || sentence[i] == 'w' || sentence[i] == ' ')
      klick += 1;
    if (sentence[i] == 'b' || sentence[i] == 'e' || sentence[i] == 'h' || sentence[i] == 'k' || sentence[i] == 'n' || sentence[i] == 'q' || sentence[i] == 'u' || sentence[i] == 'x')
      klick += 2;
    if (sentence[i] == 'c' || sentence[i] == 'f' || sentence[i] == 'i' || sentence[i] == 'l' || sentence[i] == 'o' || sentence[i] == 'r' || sentence[i] == 'v' || sentence[i] == 'y')
      klick += 3;
    if (sentence[i] == 's' || sentence[i] == 'z')
      klick += 4;
  }
  printf("%d", klick);
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<klicks>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L161
  sub    $0x1,%eax
  mov    %rbx,%rdi
  xor    %esi,%esi
  mov    $0x12249,%ecx
  lea    0x1(%rbx,%rax,1),%r8
  jmp    L71
  nopl   0x0(%rax)
L131:
  cmp    $0x20,%al
  je     L14
  lea    -0x67(%rax),%edx
  cmp    $0x10,%dl
  ja     L48
  bt     %rdx,%rcx
  jb     L14
L70:
  lea    -0x68(%rax),%edx
  cmp    $0x10,%dl
  ja     L139
  bt     %rdx,%rcx
  jb     L138
L116:
  lea    -0x69(%rax),%edx
  cmp    $0x10,%dl
  ja     L40
  bt     %rdx,%rcx
  jb     L41
L40:
  cmp    $0x73,%al
  je     L126
L175:
  cmp    $0x7a,%al
  je     L126
  add    $0x1,%rdi
  cmp    %rdi,%r8
  je     L98
L71:
  movzbl (%rdi),%eax
  cmp    $0x61,%al
  je     L14
  cmp    $0x64,%al
  jne    L131
L14:
  add    $0x1,%esi
L48:
  cmp    $0x62,%al
  je     L138
  cmp    $0x65,%al
  jne    L70
L138:
  add    $0x2,%esi
L139:
  cmp    $0x63,%al
  je     L41
  cmp    $0x66,%al
  jne    L116
L41:
  add    $0x3,%esi
  cmp    $0x73,%al
  jne    L175
L126:
  add    $0x1,%rdi
  add    $0x4,%esi
  cmp    %rdi,%r8
  jne    L71
L98:
  lea    D19(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L161:
  xor    %esi,%esi
  lea    D19(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  pop    %rbx
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D19
type_guessed: string

tool: D19: %d

assistant: ```c
int klicks(char sentence[160]) {
  int l, i, klick = 0;
  l = strlen(sentence);
  for (i = 0; i < l; i++) {
    if (sentence[i] == 'a' || sentence[i] == 'd' || sentence[i] == 'g' || sentence[i] == 'j' || sentence[i] == 'm' || sentence[i] == 'p' || sentence[i] == 't' || sentence[i] == 'w' || sentence[i] == ' ')
      klick += 1;
    if (sentence[i] == 'b' || sentence[i] == 'e' || sentence[i] == 'h' || sentence[i] == 'k' || sentence[i] == 'n' || sentence[i] == 'q' || sentence[i] == 'u' || sentence[i] == 'x')
      klick += 2;
    if (sentence[i] == 'c' || sentence[i] == 'f' || sentence[i] == 'i' || sentence[i] == 'l' || sentence[i] == 'o' || sentence[i] == 'r' || sentence[i] == 'v' || sentence[i] == 'y')
      klick += 3;
    if (sentence[i] == 's' || sentence[i] == 'z')
      klick += 4;
  }
  printf("%d", klick);
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<rotr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  jmp    L6
L10:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    -0x4(%rbp),%edx
  mov    %edx,(%rax)
  subl   $0x1,-0x14(%rbp)
L6:
  cmpl   $0x0,-0x14(%rbp)
  jg     L10
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void rotr(int num, int *a, int *b, int *c) {
  int swap;
  for (; num > 0; num--) {
    swap = *b;
    *b = *a;
    *a = *c;
    *c = swap;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<rotr>:
  endbr64
  test   %edi,%edi
  jle    L17
L8:
  mov    (%rdx),%eax
  mov    (%rsi),%r8d
  mov    %r8d,(%rdx)
  mov    (%rcx),%r8d
  mov    %r8d,(%rsi)
  mov    %eax,(%rcx)
  sub    $0x1,%edi
  jne    L8
L17:
  ret
```

assistant: ```c
void rotr(int num, int *a, int *b, int *c) {
  int swap;
  for (; num > 0; num--) {
    swap = *b;
    *b = *a;
    *a = *c;
    *c = swap;
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<rotr>:
  endbr64
  test   %edi,%edi
  jle    L19
  nopl   0x0(%rax,%rax,1)
L5:
  mov    (%rsi),%r8d
  mov    (%rdx),%eax
  mov    %r8d,(%rdx)
  mov    (%rcx),%r8d
  mov    %r8d,(%rsi)
  mov    %eax,(%rcx)
  sub    $0x1,%edi
  jne    L5
L19:
  ret
```

assistant: ```c
void rotr(int num, int *a, int *b, int *c) {
  int swap;
  for (; num > 0; num--) {
    swap = *b;
    *b = *a;
    *a = *c;
    *c = swap;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<rotr>:
  endbr64
  test   %edi,%edi
  jle    L0
  nopl   0x0(%rax,%rax,1)
L7:
  mov    (%rsi),%r8d
  mov    (%rdx),%eax
  mov    %r8d,(%rdx)
  mov    (%rcx),%r8d
  mov    %r8d,(%rsi)
  mov    %eax,(%rcx)
  sub    $0x1,%edi
  jne    L7
L0:
  ret
```

assistant: ```c
void rotr(int num, int *a, int *b, int *c) {
  int swap;
  for (; num > 0; num--) {
    swap = *b;
    *b = *a;
    *a = *c;
    *c = swap;
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<maximum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  cmpl   $0x1,-0x1c(%rbp)
  jne    L24
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm0
  jmp    L30
L24:
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <maximum>
  movd   %xmm0,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <maximum>
  movd   %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  movss  -0x8(%rbp),%xmm0
  comiss -0x4(%rbp),%xmm0
  jbe    L37
  movss  -0x8(%rbp),%xmm0
  jmp    L30
L37:
  movss  -0x4(%rbp),%xmm0
L30:
  leave
  ret
```

assistant: ```c
float maximum(float *buf, int n) {
  float left, right;
  float max;
  if (n == 1) {
    return buf[0];
  } else {
    left = maximum(buf, n / 2);
    right = maximum(&buf[n / 2], n - n / 2);
  }
  return (left > right) ? left : right;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<maximum>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  cmp    $0x1,%esi
  je     L15
  mov    %esi,%ebx
  mov    %esi,%ebp
  shr    $0x1f,%ebp
  add    %esi,%ebp
  sar    %ebp
  mov    %ebp,%esi
  call   <maximum>
  movd   %xmm0,%r13d
  sub    %ebp,%ebx
  mov    %ebx,%esi
  movslq %ebp,%rbp
  lea    (%r12,%rbp,4),%rdi
  call   <maximum>
  movd   %r13d,%xmm1
  maxss  %xmm0,%xmm1
  movd   %xmm1,%r13d
L12:
  movd   %r13d,%xmm0
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L15:
  mov    (%rdi),%r13d
  jmp    L12
```

assistant: ```c
float maximum(float *buf, int n) {
  float left, right;
  float max;
  if (n == 1) {
    return buf[0];
  } else {
    left = maximum(buf, n / 2);
    right = maximum(&buf[n / 2], n - n / 2);
  }
  return (left > right) ? left : right;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<le32dec>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  shl    $0x8,%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  shl    $0x10,%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  shl    $0x18,%eax
  add    %edx,%eax
  pop    %rbp
  ret
```

assistant: ```c
uint32_t le32dec(const void *pp) {
  const uint8_t *p = (uint8_t const *)pp;
  return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) + ((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<le32dec>:
  endbr64
  mov    0x8(%rdi),%eax
  shl    $0x8,%eax
  add    (%rdi),%eax
  mov    0x10(%rdi),%edx
  shl    $0x10,%edx
  add    %edx,%eax
  mov    0x18(%rdi),%rdx
  shl    $0x18,%edx
  add    %edx,%eax
  ret
```

assistant: ```c
uint32_t le32dec(const void *pp) {
  const uint8_t *p = (uint8_t const *)pp;
  return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) + ((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<le32dec>:
  endbr64
  mov    0x8(%rdi),%eax
  mov    0x10(%rdi),%edx
  shl    $0x8,%eax
  shl    $0x10,%edx
  add    (%rdi),%eax
  add    %edx,%eax
  mov    0x18(%rdi),%rdx
  shl    $0x18,%edx
  add    %edx,%eax
  ret
```

assistant: ```c
uint32_t le32dec(const void *pp) {
  const uint8_t *p = (uint8_t const *)pp;
  return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) + ((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
}
```
user: Translate the below assembly code into C programming language:

```asm
<le32dec>:
  endbr64
  mov    0x8(%rdi),%eax
  mov    0x10(%rdi),%edx
  shl    $0x8,%eax
  shl    $0x10,%edx
  add    (%rdi),%eax
  add    %edx,%eax
  mov    0x18(%rdi),%rdx
  shl    $0x18,%edx
  add    %edx,%eax
  ret
```

assistant: ```c
uint32_t le32dec(const void *pp) {
  const uint8_t *p = (uint8_t const *)pp;
  return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) + ((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<BrzFalseVariable_ackup>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    $0x0,%edi
  call   <SEND_ACKUP@plt>
  nop
  leave
  ret
```

assistant: ```c
void BrzFalseVariable_ackup(struct comp *comp, int port) {
  struct BrzFalseVariable_ *c = (struct BrzFalseVariable_ *)comp;
  SEND_ACKUP(0);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<BrzFalseVariable_ackup>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%edi
  call   <SEND_ACKUP@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void BrzFalseVariable_ackup(struct comp *comp, int port) {
  struct BrzFalseVariable_ *c = (struct BrzFalseVariable_ *)comp;
  SEND_ACKUP(0);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<BrzFalseVariable_ackup>:
  endbr64
  xor    %edi,%edi
  jmp    1050 <SEND_ACKUP@plt>
```

assistant: ```c
void BrzFalseVariable_ackup(struct comp *comp, int port) {
  struct BrzFalseVariable_ *c = (struct BrzFalseVariable_ *)comp;
  SEND_ACKUP(0);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<BrzFalseVariable_ackup>:
  endbr64
  xor    %edi,%edi
  jmp    1050 <SEND_ACKUP@plt>
```

assistant: ```c
void BrzFalseVariable_ackup(struct comp *comp, int port) {
  struct BrzFalseVariable_ *c = (struct BrzFalseVariable_ *)comp;
  SEND_ACKUP(0);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<Gmatch>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    $0x7fff,%r9d
L136:
  movzbl 0x0(%rbp),%ecx
  mov    %ecx,%r8d
  and    $0x7f,%r8d
  mov    %ecx,%eax
  and    $0x7f,%eax
  lea    0x1(%rsi),%rbx
  movzbl (%rsi),%edx
  cmp    $0x3f,%dl
  je     L257
  jg     L292
  test   %dl,%dl
  je     L188
  cmp    $0x2a,%dl
  jne    L181
  mov    $0x1,%eax
  cmpb   $0x0,0x1(%rsi)
  je     L271
  test   %cl,%cl
  je     L202
L14:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <Gmatch>
  test   %eax,%eax
  jne    L62
  add    $0x1,%rbp
  cmpb   $0x0,0x0(%rbp)
  jne    L14
  jmp    L271
L292:
  cmp    $0x5b,%dl
  jne    L181
  lea    0x2(%rsi),%rcx
  movsbl 0x1(%rsi),%edx
  test   %edx,%edx
  je     L307
  mov    %r9d,%esi
  mov    $0x0,%edi
  jmp    L192
L285:
  test   %edi,%edi
  je     L329
  mov    %rcx,%rbx
  jmp    L10
L329:
  mov    %edi,%eax
  jmp    L271
L246:
  cmp    %esi,%eax
  jl     L165
  lea    0x2(%rbx),%rdx
  cmp    %r8b,0x1(%rbx)
  jl     L158
  add    $0x1,%edi
  mov    %rdx,%rbx
  jmp    L4
L165:
  mov    %rcx,%rbx
L4:
  lea    0x1(%rbx),%rcx
  movsbl (%rbx),%edx
  test   %edx,%edx
  je     L232
L192:
  cmp    $0x5d,%edx
  je     L285
  cmp    $0x2d,%edx
  je     L246
  mov    %edx,%esi
  mov    %rcx,%rbx
  cmp    %edx,%eax
  jne    L4
  add    $0x1,%edi
  jmp    L4
L158:
  mov    %rdx,%rbx
  jmp    L4
L188:
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
L271:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L181:
  and    $0x7f,%edx
  cmp    %dl,%r8b
  je     L10
  mov    $0x0,%eax
  jmp    L271
L257:
  test   %eax,%eax
  je     L271
L10:
  add    $0x1,%rbp
  mov    %rbx,%rsi
  jmp    L136
L307:
  mov    %edx,%eax
  jmp    L271
L202:
  mov    $0x0,%eax
  jmp    L271
L62:
  mov    $0x1,%eax
  jmp    L271
L232:
  test   %edi,%edi
  jne    L10
  mov    %edi,%eax
  jmp    L271
```

assistant: ```c
int Gmatch(s, p)
register char *s, *p;
{
  register int scc;
  int ok, lc;
  int c, cc;
  for (;;) {
    scc = *s++ & 0177;
    switch (c = *p++) {
    case '[':
      ok = 0;
      lc = 077777;
      while ((cc = *p++) != 0) {
        if (cc == ']') {
          if (ok)
            break;
          return (0);
        }
        if (cc == '-') {
          if (lc <= scc && scc <= *p++)
            ok++;
        } else if (scc == (lc = cc))
          ok++;
      }
      if (cc == 0) {
        if (ok)
          p--;
        else
          return 0;
      }
      continue;
    case '*':
      if (!*p)
        return (1);
      for (s--; *s; s++)
        if (Gmatch(s, p))
          return (1);
      return (0);
    case 0:
      return (scc == 0);
    default:
      if ((c & 0177) != scc)
        return (0);
      continue;
    case '?':
      if (scc == 0)
        return (0);
      continue;
    }
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<Gmatch>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x8,%rsp
L119:
  movzbl 0x0(%rbp),%edx
  movzbl (%rsi),%eax
  lea    0x1(%rsi),%rbx
  mov    %edx,%r9d
  mov    %edx,%edi
  and    $0x7f,%r9d
  and    $0x7f,%edi
  cmp    $0x3f,%al
  je     L81
  jg     L133
  test   %al,%al
  je     L15
  cmp    $0x2a,%al
  jne    L196
  cmpb   $0x0,0x1(%rsi)
  mov    $0x1,%eax
  je     L237
  test   %dl,%dl
  je     L160
L150:
  xor    %eax,%eax
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <Gmatch>
  test   %eax,%eax
  jne    L226
  add    $0x1,%rbp
  cmpb   $0x0,0x0(%rbp)
  jne    L150
L237:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L133:
  cmp    $0x5b,%al
  jne    L196
  movsbl 0x1(%rsi),%edx
  lea    0x2(%rsi),%r8
  test   %edx,%edx
  je     L160
  mov    $0x7fff,%ecx
  xor    %eax,%eax
  jmp    L39
  nopl   (%rax)
L105:
  mov    %edx,%ecx
  xor    %edx,%edx
  mov    %r8,%rbx
  cmp    %ecx,%edi
  sete   %dl
  add    %edx,%eax
L34:
  movsbl (%rbx),%edx
  lea    0x1(%rbx),%r8
  test   %edx,%edx
  je     L269
L39:
  cmp    $0x5d,%edx
  je     L260
  cmp    $0x2d,%edx
  jne    L105
  cmp    %ecx,%edi
  jl     L204
  lea    0x2(%rbx),%rdx
  cmp    %r9b,0x1(%rbx)
  jl     L111
  mov    %rdx,%rbx
  add    $0x1,%eax
  movsbl (%rbx),%edx
  lea    0x1(%rbx),%r8
  test   %edx,%edx
  jne    L39
  cs nopw 0x0(%rax,%rax,1)
L269:
  test   %eax,%eax
  je     L237
L84:
  add    $0x1,%rbp
  mov    %rbx,%rsi
  jmp    L119
  nopl   0x0(%rax)
L196:
  and    $0x7f,%eax
  cmp    %al,%r9b
  je     L84
L160:
  xor    %eax,%eax
L245:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L204:
  mov    %r8,%rbx
  jmp    L34
  nopl   (%rax)
L15:
  xor    %eax,%eax
  test   %edi,%edi
  sete   %al
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  cs nopw 0x0(%rax,%rax,1)
L81:
  test   %r9b,%r9b
  jne    L84
  xor    %eax,%eax
  jmp    L245
  nopl   0x0(%rax)
L111:
  mov    %rdx,%rbx
  jmp    L34
  nopl   0x0(%rax,%rax,1)
L260:
  test   %eax,%eax
  je     L237
  mov    %r8,%rbx
  add    $0x1,%rbp
  mov    %rbx,%rsi
  jmp    L119
  nopw   0x0(%rax,%rax,1)
L226:
  mov    $0x1,%eax
  jmp    L237
```

assistant: ```c
int Gmatch(s, p)
register char *s, *p;
{
  register int scc;
  int ok, lc;
  int c, cc;
  for (;;) {
    scc = *s++ & 0177;
    switch (c = *p++) {
    case '[':
      ok = 0;
      lc = 077777;
      while ((cc = *p++) != 0) {
        if (cc == ']') {
          if (ok)
            break;
          return (0);
        }
        if (cc == '-') {
          if (lc <= scc && scc <= *p++)
            ok++;
        } else if (scc == (lc = cc))
          ok++;
      }
      if (cc == 0) {
        if (ok)
          p--;
        else
          return 0;
      }
      continue;
    case '*':
      if (!*p)
        return (1);
      for (s--; *s; s++)
        if (Gmatch(s, p))
          return (1);
      return (0);
    case 0:
      return (scc == 0);
    default:
      if ((c & 0177) != scc)
        return (0);
      continue;
    case '?':
      if (scc == 0)
        return (0);
      continue;
    }
  }
}
```