ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 下面的汇编指令对应的C源代码是什么:

```asm
<ft_putnbr>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  movslq %edi,%rbx
  test   %rbx,%rbx
  js     L76
L26:
  cmp    $0x9,%rbx
  jg     L28
L45:
  movabs $0xcccccccccccccccd,%rdx
  mov    %rbx,%rax
  mul    %rdx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rbx
  lea    0x30(%rbx),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  jmp    1050 <ft_putchar@plt>
  nopl   (%rax)
L28:
  movabs $0xcccccccccccccccd,%rcx
  mov    %rbx,%rax
  mul    %rcx
  shr    $0x3,%rdx
  mov    %rdx,%rbp
  cmp    $0x63,%rbx
  jg     L18
L68:
  movabs $0xcccccccccccccccd,%rdx
  mov    %rbp,%rax
  mul    %rdx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rbp
  lea    0x30(%rbp),%rdi
  call   <ft_putchar@plt>
  jmp    L45
  xchg   %ax,%ax
L76:
  mov    $0x2d,%edi
  neg    %rbx
  call   <ft_putchar@plt>
  jmp    L26
  nopw   0x0(%rax,%rax,1)
L18:
  mov    %rbp,%rax
  mul    %rcx
  shr    $0x3,%rdx
  mov    %rdx,%r12
  cmp    $0x3e7,%rbx
  jg     L72
L14:
  movabs $0xcccccccccccccccd,%rdx
  mov    %r12,%rax
  mul    %rdx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%r12
  lea    0x30(%r12),%rdi
  call   <ft_putchar@plt>
  jmp    L68
  nopl   0x0(%rax,%rax,1)
L72:
  mov    %r12,%rax
  mul    %rcx
  mov    %rdx,%rcx
  shr    $0x3,%rcx
  mov    %ecx,%edi
  call   <ft_putnbr>
  jmp    L14
```

assistant: ```c
void ft_putnbr(int n) {
  long l;
  l = n;
  if (l < 0) {
    ft_putchar('-');
    l *= -1;
  }
  if (l > 9) {
    ft_putnbr((int)(l / 10));
  }
  ft_putchar((l % 10) + 48);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<fdgets>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L35
L30:
  lea    -0xd(%rbp),%rcx
  mov    -0x20(%rbp),%eax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L55
  cmpl   $0x1,-0xc(%rbp)
  jle    L69
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0xa,(%rax)
L69:
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L75
L55:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl -0xd(%rbp),%edx
  mov    %dl,(%rax)
  movzbl -0xd(%rbp),%eax
  cmp    $0xa,%al
  je     L44
  subl   $0x1,-0xc(%rbp)
L35:
  cmpl   $0x0,-0xc(%rbp)
  jg     L30
  jmp    L20
L44:
  nop
L20:
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x1,%eax
L75:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L39
  call   <__stack_chk_fail@plt>
L39:
  leave
  ret
```

assistant: ```c
int fdgets(char *s, int count, int f) {
  int i;
  char ch;
  for (i = count - 1; i > 0; i--) {
    if (read(f, &ch, sizeof(char)) <= 0) {
      if (i > 1)
        *s++ = '\n';
      *s = '\0';
      return 0;
    }
    *s++ = (char)ch;
    if (ch == '\n')
      break;
  }
  *s = '\0';
  return 1;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<fdgets>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    -0x1(%rsi),%ebp
  test   %ebp,%ebp
  jle    L68
  mov    %edx,%r12d
  lea    0x7(%rsp),%r13
L52:
  mov    $0x1,%edx
  mov    %r13,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  test   %rax,%rax
  jle    L43
  add    $0x1,%rbx
  movzbl 0x7(%rsp),%eax
  mov    %al,-0x1(%rbx)
  cmp    $0xa,%al
  je     L68
  sub    $0x1,%ebp
  jne    L52
L68:
  movb   $0x0,(%rbx)
  mov    $0x1,%eax
L25:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L15
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L43:
  cmp    $0x1,%ebp
  jle    L56
  movb   $0xa,(%rbx)
  lea    0x1(%rbx),%rbx
L56:
  movb   $0x0,(%rbx)
  mov    $0x0,%eax
  jmp    L25
L15:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fdgets(char *s, int count, int f) {
  int i;
  char ch;
  for (i = count - 1; i > 0; i--) {
    if (read(f, &ch, sizeof(char)) <= 0) {
      if (i > 1)
        *s++ = '\n';
      *s = '\0';
      return 0;
    }
    *s++ = (char)ch;
    if (ch == '\n')
      break;
  }
  *s = '\0';
  return 1;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fdgets>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  lea    -0x1(%rsi),%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  test   %ebp,%ebp
  jle    L65
  mov    %edx,%r12d
  lea    0x7(%rsp),%r13
  jmp    L52
  nopw   0x0(%rax,%rax,1)
L69:
  movzbl 0x7(%rsp),%eax
  add    $0x1,%rbx
  mov    %al,-0x1(%rbx)
  cmp    $0xa,%al
  je     L65
  sub    $0x1,%ebp
  je     L65
L52:
  mov    $0x1,%edx
  mov    %r13,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L69
  cmp    $0x1,%ebp
  je     L64
  movb   $0xa,(%rbx)
  add    $0x1,%rbx
L64:
  movb   $0x0,(%rbx)
  xor    %eax,%eax
  jmp    L58
  nopl   (%rax)
L65:
  movb   $0x0,(%rbx)
  mov    $0x1,%eax
L58:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L20
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L20:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fdgets(char *s, int count, int f) {
  int i;
  char ch;
  for (i = count - 1; i > 0; i--) {
    if (read(f, &ch, sizeof(char)) <= 0) {
      if (i > 1)
        *s++ = '\n';
      *s = '\0';
      return 0;
    }
    *s++ = (char)ch;
    if (ch == '\n')
      break;
  }
  *s = '\0';
  return 1;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<fdgets>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  lea    -0x1(%rsi),%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  test   %ebp,%ebp
  jle    L12
  mov    %edx,%r12d
  lea    0x7(%rsp),%r13
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L52:
  movzbl 0x7(%rsp),%eax
  add    $0x1,%rbx
  mov    %al,-0x1(%rbx)
  cmp    $0xa,%al
  je     L12
  sub    $0x1,%ebp
  je     L12
L3:
  mov    $0x1,%edx
  mov    %r13,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L52
  cmp    $0x1,%ebp
  je     L35
  movb   $0xa,(%rbx)
  add    $0x1,%rbx
L35:
  movb   $0x0,(%rbx)
  xor    %eax,%eax
  jmp    L21
  nopl   (%rax)
L12:
  movb   $0x0,(%rbx)
  mov    $0x1,%eax
L21:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L16
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L16:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fdgets(char *s, int count, int f) {
  int i;
  char ch;
  for (i = count - 1; i > 0; i--) {
    if (read(f, &ch, sizeof(char)) <= 0) {
      if (i > 1)
        *s++ = '\n';
      *s = '\0';
      return 0;
    }
    *s++ = (char)ch;
    if (ch == '\n')
      break;
  }
  *s = '\0';
  return 1;
}
```
user: Translate the below assembly code into C programming language:

```asm
<pet_to_asc_str>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  movq   $0x0,-0x8(%rbp)
  jmp    L21
L1:
  mov    -0x20(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <pet_to_asc@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x7f,-0xc(%rbp)
  jg     L37
  mov    -0xc(%rbp),%eax
  mov    %eax,%edx
  jmp    L29
L37:
  mov    $0x5f,%edx
L29:
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x8(%rbp)
L21:
  mov    -0x8(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jae    L39
  mov    -0x20(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L1
L39:
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void pet_to_asc_str(char *asc, const uint8_t *pet, size_t n) {
  size_t i = 0;
  while (i < n && pet[i] != '\0') {
    int b = pet_to_asc(pet[i]);
    asc[i] = b < 0x80 ? (char)b : '_';
    i++;
  }
  asc[i] = '\0';
}
```
user: Translate the below assembly code into C programming language:

```asm
<pet_to_asc_str>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    %rdx,%rbp
  mov    $0x0,%ebx
  mov    $0x5f,%r14d
  test   %rdx,%rdx
  je     L16
L28:
  movzbl 0x0(%r13,%rbx,1),%edi
  test   %dil,%dil
  je     L6
  movsbl %dil,%edi
  call   <pet_to_asc@plt>
  cmp    $0x80,%eax
  cmovge %r14d,%eax
  mov    %al,(%r12,%rbx,1)
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L28
  jmp    L16
L6:
  mov    %rbx,%rbp
L16:
  movb   $0x0,(%r12,%rbp,1)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void pet_to_asc_str(char *asc, const uint8_t *pet, size_t n) {
  size_t i = 0;
  while (i < n && pet[i] != '\0') {
    int b = pet_to_asc(pet[i]);
    asc[i] = b < 0x80 ? (char)b : '_';
    i++;
  }
  asc[i] = '\0';
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<pet_to_asc_str>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  test   %rdx,%rdx
  je     L16
  mov    %rsi,%r12
  mov    %rdx,%rbp
  xor    %r14d,%r14d
  mov    $0x5f,%r13d
  jmp    L11
  nopl   (%rax)
L38:
  call   <pet_to_asc@plt>
  cmp    $0x80,%eax
  cmovge %r13d,%eax
  mov    %al,(%rbx,%r14,1)
  add    $0x1,%r14
  cmp    %r14,%rbp
  je     L36
L11:
  movsbl (%r12,%r14,1),%edi
  test   %dil,%dil
  jne    L38
  add    %r14,%rbx
L16:
  movb   $0x0,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L36:
  add    %rbp,%rbx
  movb   $0x0,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void pet_to_asc_str(char *asc, const uint8_t *pet, size_t n) {
  size_t i = 0;
  while (i < n && pet[i] != '\0') {
    int b = pet_to_asc(pet[i]);
    asc[i] = b < 0x80 ? (char)b : '_';
    i++;
  }
  asc[i] = '\0';
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<pet_to_asc_str>:
  endbr64
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x8,%rsp
  test   %rdx,%rdx
  je     L9
  xchg   %ax,%ax
L25:
  movsbl 0x0(%r13,%rbx,1),%edi
  test   %dil,%dil
  je     L58
L2:
  call   <pet_to_asc@plt>
  cmp    $0x7f,%eax
  jg     L34
  mov    %al,0x0(%rbp,%rbx,1)
  add    $0x1,%rbx
  cmp    %r12,%rbx
  jne    L25
L47:
  add    %r12,%rbp
L9:
  movb   $0x0,0x0(%rbp)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L34:
  movb   $0x5f,0x0(%rbp,%rbx,1)
  add    $0x1,%rbx
  cmp    %rbx,%r12
  je     L47
  movsbl 0x0(%r13,%rbx,1),%edi
  test   %dil,%dil
  jne    L2
L58:
  add    %rbx,%rbp
  movb   $0x0,0x0(%rbp)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
void pet_to_asc_str(char *asc, const uint8_t *pet, size_t n) {
  size_t i = 0;
  while (i < n && pet[i] != '\0') {
    int b = pet_to_asc(pet[i]);
    asc[i] = b < 0x80 ? (char)b : '_';
    i++;
  }
  asc[i] = '\0';
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<evil_epoll_create>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    $0x0,%eax
  call   <make_licensed_prog@plt>
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <real_epoll_create@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  leave
  ret
```

assistant: ```c
int evil_epoll_create(int flags) {
  int ret = 0;
  make_licensed_prog();
  ret = real_epoll_create(flags);
  return ret;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<evil_epoll_create>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  mov    $0x0,%eax
  call   <make_licensed_prog@plt>
  mov    %ebx,%edi
  call   <real_epoll_create@plt>
  pop    %rbx
  ret
```

assistant: ```c
int evil_epoll_create(int flags) {
  int ret = 0;
  make_licensed_prog();
  ret = real_epoll_create(flags);
  return ret;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<evil_epoll_create>:
  endbr64
  push   %rbp
  xor    %eax,%eax
  mov    %edi,%ebp
  call   <make_licensed_prog@plt>
  mov    %ebp,%edi
  pop    %rbp
  jmp    1070 <real_epoll_create@plt>
```

assistant: ```c
int evil_epoll_create(int flags) {
  int ret = 0;
  make_licensed_prog();
  ret = real_epoll_create(flags);
  return ret;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<__iswctype_l>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %edx,-0x8(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L4
  mov    $0x0,%eax
  jmp    L5
L4:
  mov    -0x10(%rbp),%rax
  mov    -0x4(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <wctype_table_lookup@plt>
L5:
  leave
  ret
```

assistant: ```c
int __iswctype_l(wint_t wc, wctype_t desc, __locale_t locale) {
  if (desc == (wctype_t)0)
    return 0;
  return wctype_table_lookup((const char *)desc, wc);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<__iswctype_l>:
  endbr64
  mov    $0x0,%eax
  test   %rsi,%rsi
  jne    L2
  ret
L2:
  sub    $0x8,%rsp
  mov    %edi,%edx
  mov    %rsi,%rdi
  mov    %edx,%esi
  call   <wctype_table_lookup@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
int __iswctype_l(wint_t wc, wctype_t desc, __locale_t locale) {
  if (desc == (wctype_t)0)
    return 0;
  return wctype_table_lookup((const char *)desc, wc);
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<__iswctype_l>:
  endbr64
  mov    %edi,%r8d
  mov    %rsi,%rdi
  test   %rsi,%rsi
  jne    L2
  xor    %eax,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L2:
  mov    %r8d,%esi
  jmp    1050 <wctype_table_lookup@plt>
```

assistant: ```c
int __iswctype_l(wint_t wc, wctype_t desc, __locale_t locale) {
  if (desc == (wctype_t)0)
    return 0;
  return wctype_table_lookup((const char *)desc, wc);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<__iswctype_l>:
  endbr64
  mov    %edi,%r8d
  mov    %rsi,%rdi
  test   %rsi,%rsi
  jne    L6
  xor    %eax,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L6:
  mov    %r8d,%esi
  jmp    1050 <wctype_table_lookup@plt>
```

assistant: ```c
int __iswctype_l(wint_t wc, wctype_t desc, __locale_t locale) {
  if (desc == (wctype_t)0)
    return 0;
  return wctype_table_lookup((const char *)desc, wc);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<Decrypt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movl   $0x8,-0x30(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L22
L80:
  mov    -0x34(%rbp),%eax
  cltq
  add    $0x4,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <READ_ROUND_KEY_BYTE@plt>
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%ecx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x48(%rbp),%rax
  add    %rsi,%rax
  xor    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x34(%rbp)
L22:
  cmpl   $0x3,-0x34(%rbp)
  jle    L80
  movl   $0x1,-0x34(%rbp)
  jmp    L98
L65:
  lea    -0x30(%rbp),%rcx
  mov    -0x34(%rbp),%edx
  mov    -0x50(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    $0x1,%r8d
  mov    %rax,%rdi
  call   <rrr_enc_dec_round@plt>
  addl   $0x1,-0x34(%rbp)
L98:
  cmpl   $0xc,-0x34(%rbp)
  jle    L65
  movl   $0x0,-0x34(%rbp)
  jmp    L9
L78:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x34(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x34(%rbp)
L9:
  cmpl   $0x3,-0x34(%rbp)
  jle    L78
  movl   $0x0,-0x34(%rbp)
  jmp    L82
L74:
  mov    -0x34(%rbp),%eax
  cltq
  add    $0x4,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ebx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <READ_ROUND_KEY_BYTE@plt>
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  xor    %ebx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x34(%rbp)
L82:
  cmpl   $0x3,-0x34(%rbp)
  jle    L74
  movl   $0x0,-0x34(%rbp)
  jmp    L19
L79:
  mov    -0x34(%rbp),%eax
  cltq
  add    $0x4,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x34(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x34(%rbp)
L19:
  cmpl   $0x3,-0x34(%rbp)
  jle    L79
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L34
  call   <__stack_chk_fail@plt>
L34:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void Decrypt(uint8_t *block, uint8_t *roundKeys) {
  uint8_t i, temp[4] = {0};
  temp[0] = 8;
  for (i = 0; i < 4; i++)
    block[i] ^= READ_ROUND_KEY_BYTE(roundKeys[i + 4]);
  for (i = 1; i <= 12; i++) {
    rrr_enc_dec_round(block, roundKeys, i, temp, 1);
  }
  for (i = 0; i < 4; i++)
    temp[i] = block[i];
  for (i = 0; i < 4; i++)
    block[i] = block[i + 4] ^ READ_ROUND_KEY_BYTE(roundKeys[i]);
  for (i = 0; i < 4; i++)
    block[i + 4] = temp[i];
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<Decrypt>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  movq   $0x0,0x8(%rsp)
  movl   $0x8,(%rsp)
  mov    $0x0,%ebx
L7:
  mov    0x10(%r12,%rbx,1),%edi
  call   <READ_ROUND_KEY_BYTE@plt>
  xor    %eax,0x0(%rbp,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x10,%rbx
  jne    L7
  mov    $0x1,%ebx
  mov    %rsp,%r13
L38:
  mov    $0x1,%r8d
  mov    %r13,%rcx
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <rrr_enc_dec_round@plt>
  add    $0x1,%ebx
  cmp    $0xd,%ebx
  jne    L38
  mov    0x0(%rbp),%eax
  mov    %eax,(%rsp)
  mov    0x4(%rbp),%eax
  mov    %eax,0x4(%rsp)
  mov    0x8(%rbp),%eax
  mov    %eax,0x8(%rsp)
  mov    0xc(%rbp),%eax
  mov    %eax,0xc(%rsp)
  mov    $0x0,%ebx
L6:
  mov    0x10(%rbp,%rbx,1),%r13d
  mov    (%r12,%rbx,1),%edi
  call   <READ_ROUND_KEY_BYTE@plt>
  xor    %eax,%r13d
  mov    %r13d,0x0(%rbp,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x10,%rbx
  jne    L6
  mov    (%rsp),%eax
  mov    %eax,0x10(%rbp)
  mov    0x4(%rsp),%eax
  mov    %eax,0x14(%rbp)
  mov    0x8(%rsp),%eax
  mov    %eax,0x18(%rbp)
  mov    0xc(%rsp),%eax
  mov    %eax,0x1c(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L12:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Decrypt(uint8_t *block, uint8_t *roundKeys) {
  uint8_t i, temp[4] = {0};
  temp[0] = 8;
  for (i = 0; i < 4; i++)
    block[i] ^= READ_ROUND_KEY_BYTE(roundKeys[i + 4]);
  for (i = 1; i <= 12; i++) {
    rrr_enc_dec_round(block, roundKeys, i, temp, 1);
  }
  for (i = 0; i < 4; i++)
    temp[i] = block[i];
  for (i = 0; i < 4; i++)
    block[i] = block[i + 4] ^ READ_ROUND_KEY_BYTE(roundKeys[i]);
  for (i = 0; i < 4; i++)
    block[i + 4] = temp[i];
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<Decrypt>:
  endbr64
  push   %r13
  pxor   %xmm0,%xmm0
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movl   $0x8,(%rsp)
L13:
  mov    0x10(%r12,%rbx,1),%edi
  call   <READ_ROUND_KEY_BYTE@plt>
  xor    %eax,0x0(%rbp,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x10,%rbx
  jne    L13
  mov    $0x1,%ebx
  mov    %rsp,%r13
  nopl   (%rax)
L35:
  mov    %ebx,%edx
  mov    $0x1,%r8d
  mov    %r13,%rcx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  add    $0x1,%ebx
  call   <rrr_enc_dec_round@plt>
  cmp    $0xd,%ebx
  jne    L35
  movdqu 0x0(%rbp),%xmm1
  xor    %ebx,%ebx
  movaps %xmm1,(%rsp)
L1:
  mov    (%r12,%rbx,1),%edi
  mov    0x10(%rbp,%rbx,1),%r13d
  call   <READ_ROUND_KEY_BYTE@plt>
  xor    %eax,%r13d
  mov    %r13d,0x0(%rbp,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x10,%rbx
  jne    L1
  mov    (%rsp),%rax
  mov    %rax,0x10(%rbp)
  mov    0x8(%rsp),%rax
  mov    %rax,0x18(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L10:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Decrypt(uint8_t *block, uint8_t *roundKeys) {
  uint8_t i, temp[4] = {0};
  temp[0] = 8;
  for (i = 0; i < 4; i++)
    block[i] ^= READ_ROUND_KEY_BYTE(roundKeys[i + 4]);
  for (i = 1; i <= 12; i++) {
    rrr_enc_dec_round(block, roundKeys, i, temp, 1);
  }
  for (i = 0; i < 4; i++)
    temp[i] = block[i];
  for (i = 0; i < 4; i++)
    block[i] = block[i + 4] ^ READ_ROUND_KEY_BYTE(roundKeys[i]);
  for (i = 0; i < 4; i++)
    block[i + 4] = temp[i];
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<Decrypt>:
  endbr64
  push   %r13
  pxor   %xmm0,%xmm0
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movl   $0x8,(%rsp)
L2:
  mov    0x10(%r12,%rbx,1),%edi
  call   <READ_ROUND_KEY_BYTE@plt>
  xor    %eax,0x0(%rbp,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x10,%rbx
  jne    L2
  mov    $0x1,%ebx
  mov    %rsp,%r13
  nopl   (%rax)
L13:
  mov    %ebx,%edx
  mov    $0x1,%r8d
  mov    %r13,%rcx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  add    $0x1,%ebx
  call   <rrr_enc_dec_round@plt>
  cmp    $0xd,%ebx
  jne    L13
  movdqu 0x0(%rbp),%xmm1
  xor    %ebx,%ebx
  movaps %xmm1,(%rsp)
L32:
  mov    (%r12,%rbx,1),%edi
  mov    0x10(%rbp,%rbx,1),%r13d
  call   <READ_ROUND_KEY_BYTE@plt>
  xor    %eax,%r13d
  mov    %r13d,0x0(%rbp,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x10,%rbx
  jne    L32
  movdqa (%rsp),%xmm2
  movups %xmm2,0x10(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L16:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Decrypt(uint8_t *block, uint8_t *roundKeys) {
  uint8_t i, temp[4] = {0};
  temp[0] = 8;
  for (i = 0; i < 4; i++)
    block[i] ^= READ_ROUND_KEY_BYTE(roundKeys[i + 4]);
  for (i = 1; i <= 12; i++) {
    rrr_enc_dec_round(block, roundKeys, i, temp, 1);
  }
  for (i = 0; i < 4; i++)
    temp[i] = block[i];
  for (i = 0; i < 4; i++)
    block[i] = block[i + 4] ^ READ_ROUND_KEY_BYTE(roundKeys[i]);
  for (i = 0; i < 4; i++)
    block[i + 4] = temp[i];
}
```