ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What would the C source look like for the assembly code provided here?

```asm
<fb_hSetDate>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movl   $0x28de80,0x10(%rsp)
  movl   $0x24ea00,0x14(%rsp)
  movl   $0x28de80,0x18(%rsp)
  movl   $0x278d00,0x1c(%rsp)
  movl   $0x28de80,0x20(%rsp)
  movl   $0x278d00,0x24(%rsp)
  movl   $0x28de80,0x28(%rsp)
  movl   $0x28de80,0x2c(%rsp)
  movl   $0x278d00,0x30(%rsp)
  movl   $0x28de80,0x34(%rsp)
  movl   $0x278d00,0x38(%rsp)
  movl   $0x28de80,0x3c(%rsp)
  cmp    $0x7b1,%edi
  jle    L52
  mov    %edi,%ebp
  mov    %esi,%r12d
  mov    %edx,%ebx
  lea    0xc(%rsp),%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  mov    0xc(%rsp),%eax
  movslq %eax,%rcx
  imul   $0xffffffffc22e4507,%rcx,%rcx
  shr    $0x20,%rcx
  add    %eax,%ecx
  sar    $0x10,%ecx
  cltd
  sub    %edx,%ecx
  imul   $0x15180,%ecx,%edx
  sub    %edx,%eax
  mov    %eax,%ecx
  movl   $0x0,0xc(%rsp)
  cmp    $0x7b2,%ebp
  jle    L2
  mov    $0x0,%edx
  mov    $0x7b2,%eax
  jmp    L71
L51:
  add    $0x1,%ebx
L42:
  add    $0x1,%eax
  cmp    %eax,%ebp
  je     L1
L71:
  add    $0x1e13380,%edx
  test   $0x3,%al
  je     L51
  lea    0x18f(%rax),%esi
  cmp    $0x31e,%esi
  ja     L42
  jmp    L51
L1:
  mov    %edx,0xc(%rsp)
L2:
  lea    -0x1(%r12),%eax
  cltq
  imul   0x10(%rsp,%rax,4),%r12d
  and    $0x3,%ebp
  cmp    $0x1,%ebp
  adc    $0x0,%ebx
  imul   $0x15180,%ebx,%ebx
  add    %ecx,%ebx
  lea    (%r12,%rbx,1),%eax
  add    %eax,0xc(%rsp)
  lea    0xc(%rsp),%rdi
  mov    $0x0,%esi
  call   <settimeofday@plt>
  neg    %rax
  sbb    %eax,%eax
L72:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L15
  add    $0x50,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L52:
  mov    $0xffffffff,%eax
  jmp    L72
L15:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fb_hSetDate(int y, int m, int d) {
  const int month_len[12] = {2678400, 2419200, 2678400, 2592000, 2678400, 2592000, 2678400, 2678400, 2592000, 2678400, 2592000, 2678400};
  struct timeval tv;
  time_t secs;
  int i;
  if (y < 1970)
    return -1;
  gettimeofday(&tv, 0);
  secs = tv.tv_sec % 86400;
  tv.tv_sec = 0;
  for (i = 1970; i < y; i++) {
    tv.tv_sec += 31536000;
    if (((i % 4) == 0) || ((i / 400) == 0))
      d++;
  }
  tv.tv_sec += (m * month_len[m - 1]);
  if (((y % 4) == 0) || ((y / 400) == 0))
    d++;
  tv.tv_sec += (d * 86400) + secs;
  if (settimeofday(&tv, 0))
    return -1;
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<fb_hSetDate>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  movabs $0x24ea000028de80,%rax
  mov    %rax,0x10(%rsp)
  movabs $0x278d000028de80,%rax
  mov    %rax,0x18(%rsp)
  mov    %rax,0x20(%rsp)
  movabs $0x28de800028de80,%rax
  mov    %rax,0x28(%rsp)
  sub    $0x15180,%rax
  mov    %rax,0x30(%rsp)
  mov    %rax,0x38(%rsp)
  cmp    $0x7b1,%edi
  jle    L23
  lea    0xc(%rsp),%r12
  mov    %edi,%ebp
  mov    %esi,%r13d
  xor    %esi,%esi
  mov    %r12,%rdi
  mov    %edx,%ebx
  call   <gettimeofday@plt>
  movslq 0xc(%rsp),%rcx
  mov    %rcx,%rax
  imul   $0xffffffffc22e4507,%rcx,%rcx
  cltd
  shr    $0x20,%rcx
  add    %eax,%ecx
  sar    $0x10,%ecx
  sub    %edx,%ecx
  imul   $0x15180,%ecx,%edx
  sub    %edx,%eax
  xor    %edx,%edx
  mov    %eax,%ecx
  mov    $0x7b2,%eax
  cmp    $0x7b2,%ebp
  jne    L44
  jmp    L11
  nopl   0x0(%rax)
L45:
  mov    %eax,%edx
  and    $0x3,%edx
  cmp    $0x1,%edx
  mov    $0x1,%edx
  adc    $0x0,%ebx
L44:
  add    $0x1,%eax
  cmp    %eax,%ebp
  jne    L45
  imul   $0x1e13380,%ebp,%eax
  sub    $0x76fe4f00,%eax
  test   %dl,%dl
  mov    $0x1e13380,%edx
  cmove  %edx,%eax
  lea    -0x1(%r13),%edx
  and    $0x3,%ebp
  movslq %edx,%rdx
  imul   0x10(%rsp,%rdx,4),%r13d
  add    %eax,%r13d
  cmp    $0x1,%ebp
  adc    $0x0,%ebx
L40:
  imul   $0x15180,%ebx,%ebx
  xor    %esi,%esi
  mov    %r12,%rdi
  add    %ecx,%ebx
  add    %r13d,%ebx
  mov    %ebx,0xc(%rsp)
  call   <settimeofday@plt>
  neg    %rax
  sbb    %eax,%eax
L4:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L11:
  lea    -0x1(%r13),%eax
  cltq
  imul   0x10(%rsp,%rax,4),%r13d
  jmp    L40
L23:
  mov    $0xffffffff,%eax
  jmp    L4
L54:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fb_hSetDate(int y, int m, int d) {
  const int month_len[12] = {2678400, 2419200, 2678400, 2592000, 2678400, 2592000, 2678400, 2678400, 2592000, 2678400, 2592000, 2678400};
  struct timeval tv;
  time_t secs;
  int i;
  if (y < 1970)
    return -1;
  gettimeofday(&tv, 0);
  secs = tv.tv_sec % 86400;
  tv.tv_sec = 0;
  for (i = 1970; i < y; i++) {
    tv.tv_sec += 31536000;
    if (((i % 4) == 0) || ((i / 400) == 0))
      d++;
  }
  tv.tv_sec += (m * month_len[m - 1]);
  if (((y % 4) == 0) || ((y / 400) == 0))
    d++;
  tv.tv_sec += (d * 86400) + secs;
  if (settimeofday(&tv, 0))
    return -1;
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<snofFindFirstStartingWith>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x10(%rbp),%rdi
  lea    -0x14(%rbp),%rcx
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rdi,%r9
  mov    %rcx,%r8
  mov    $0x1,%ecx
  mov    %rax,%rdi
  call   <snofSearch@plt>
  test   %eax,%eax
  jne    L51
  mov    -0x14(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L10
L35:
  mov    -0x14(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <snofNameAtIx@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rsi
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    $0x1,%ecx
  mov    %rax,%rdi
  call   <snofCmp@plt>
  test   %rax,%rax
  jne    L27
L51:
  mov    -0x14(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  test   %eax,%eax
  jns    L35
  jmp    L42
L27:
  nop
L42:
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x1,%eax
L10:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L11
  call   <__stack_chk_fail@plt>
L11:
  leave
  ret
```

assistant: ```c
int snofFindFirstStartingWith(struct snof *snof, char *prefix, int prefixSize, int *pSnofIx) {
  char *nameOffset;
  int matchIx;
  if (!snofSearch(snof, prefix, prefixSize, 1, &matchIx, &nameOffset)) {
    *pSnofIx = matchIx;
    return 0;
  }
  while (--matchIx >= 0) {
    nameOffset = snofNameAtIx(snof, matchIx);
    if (snofCmp(prefix, nameOffset, prefixSize, 1) != 0)
      break;
  }
  ++matchIx;
  *pSnofIx = matchIx;
  return 1;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<snofFindFirstStartingWith>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %edx,%r12d
  mov    %rcx,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r9
  lea    0xc(%rsp),%r8
  mov    $0x1,%ecx
  call   <snofSearch@plt>
  mov    0xc(%rsp),%edx
  test   %eax,%eax
  je     L5
L30:
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%esi
  mov    %esi,0xc(%rsp)
  test   %esi,%esi
  js     L14
  mov    %rbx,%rdi
  call   <snofNameAtIx@plt>
  mov    %rax,%rsi
  mov    %rax,0x10(%rsp)
  mov    $0x1,%ecx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <snofCmp@plt>
  test   %rax,%rax
  je     L30
L14:
  mov    0xc(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    $0x1,%eax
L5:
  mov    %edx,0x0(%r13)
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L18
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L18:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int snofFindFirstStartingWith(struct snof *snof, char *prefix, int prefixSize, int *pSnofIx) {
  char *nameOffset;
  int matchIx;
  if (!snofSearch(snof, prefix, prefixSize, 1, &matchIx, &nameOffset)) {
    *pSnofIx = matchIx;
    return 0;
  }
  while (--matchIx >= 0) {
    nameOffset = snofNameAtIx(snof, matchIx);
    if (snofCmp(prefix, nameOffset, prefixSize, 1) != 0)
      break;
  }
  ++matchIx;
  *pSnofIx = matchIx;
  return 1;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<snofFindFirstStartingWith>:
  endbr64
  push   %r13
  mov    %rcx,%r13
  mov    $0x1,%ecx
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r9
  lea    0xc(%rsp),%r8
  call   <snofSearch@plt>
  mov    0xc(%rsp),%edx
  test   %eax,%eax
  jne    L22
  jmp    L59
  nopl   0x0(%rax,%rax,1)
L26:
  mov    %rbx,%rdi
  call   <snofNameAtIx@plt>
  mov    $0x1,%ecx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  mov    %rax,%rsi
  mov    %rax,0x10(%rsp)
  call   <snofCmp@plt>
  test   %rax,%rax
  jne    L56
L22:
  mov    0xc(%rsp),%edx
  lea    -0x1(%rdx),%esi
  mov    %esi,0xc(%rsp)
  test   %esi,%esi
  jns    L26
L23:
  mov    $0x1,%eax
L59:
  mov    %edx,0x0(%r13)
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L48
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L56:
  mov    0xc(%rsp),%eax
  lea    0x1(%rax),%edx
  jmp    L23
L48:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int snofFindFirstStartingWith(struct snof *snof, char *prefix, int prefixSize, int *pSnofIx) {
  char *nameOffset;
  int matchIx;
  if (!snofSearch(snof, prefix, prefixSize, 1, &matchIx, &nameOffset)) {
    *pSnofIx = matchIx;
    return 0;
  }
  while (--matchIx >= 0) {
    nameOffset = snofNameAtIx(snof, matchIx);
    if (snofCmp(prefix, nameOffset, prefixSize, 1) != 0)
      break;
  }
  ++matchIx;
  *pSnofIx = matchIx;
  return 1;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<snofFindFirstStartingWith>:
  endbr64
  push   %r13
  mov    %rcx,%r13
  mov    $0x1,%ecx
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r9
  lea    0xc(%rsp),%r8
  call   <snofSearch@plt>
  mov    0xc(%rsp),%edx
  test   %eax,%eax
  jne    L36
  jmp    L21
  nopl   0x0(%rax,%rax,1)
L26:
  mov    %rbx,%rdi
  call   <snofNameAtIx@plt>
  mov    $0x1,%ecx
  mov    %r12d,%edx
  mov    %rbp,%rdi
  mov    %rax,%rsi
  mov    %rax,0x10(%rsp)
  call   <snofCmp@plt>
  test   %rax,%rax
  jne    L12
L36:
  mov    0xc(%rsp),%edx
  lea    -0x1(%rdx),%esi
  mov    %esi,0xc(%rsp)
  test   %esi,%esi
  jns    L26
L51:
  mov    $0x1,%eax
L21:
  mov    %edx,0x0(%r13)
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L31
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L12:
  mov    0xc(%rsp),%eax
  lea    0x1(%rax),%edx
  jmp    L51
L31:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int snofFindFirstStartingWith(struct snof *snof, char *prefix, int prefixSize, int *pSnofIx) {
  char *nameOffset;
  int matchIx;
  if (!snofSearch(snof, prefix, prefixSize, 1, &matchIx, &nameOffset)) {
    *pSnofIx = matchIx;
    return 0;
  }
  while (--matchIx >= 0) {
    nameOffset = snofNameAtIx(snof, matchIx);
    if (snofCmp(prefix, nameOffset, prefixSize, 1) != 0)
      break;
  }
  ++matchIx;
  *pSnofIx = matchIx;
  return 1;
}
```
user: Translate the below assembly code into C programming language:

```asm
<IsEleven>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L80
L13:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jle    L48
  mov    -0x8(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L51
L3:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L43
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x39,(%rax)
  jmp    L84
L43:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  sub    $0x1,%edx
  mov    %dl,(%rax)
  jmp    L16
L84:
  subl   $0x1,-0x4(%rbp)
L51:
  cmpl   $0x0,-0x4(%rbp)
  jns    L3
L16:
  mov    -0x8(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  lea    0x3a(%rax),%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  jmp    L11
L48:
  mov    -0x8(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  lea    0x30(%rax),%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L11:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  subl   $0x1,-0x8(%rbp)
L80:
  cmpl   $0x0,-0x8(%rbp)
  jg     L13
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  sete   %al
  movzbl %al,%eax
  leave
  ret
```

assistant: ```c
bool IsEleven(char *number) {
  for (int i = strlen(number) - 1; i > 0; i--) {
    if (number[i] > number[i - 1]) {
      for (int j = i - 2; j >= 0; j--) {
        if (number[j] == '0')
          number[j] = '9';
        else {
          number[j]--;
          break;
        }
      }
      number[i - 1] = number[i - 1] + 10 - (number[i] - 0x30);
    } else
      number[i - 1] = number[i - 1] - number[i] + 0x30;
    number[i] = 0;
  }
  return (number[0] == '0');
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<IsEleven>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  lea    -0x1(%rax),%edx
  test   %edx,%edx
  jle    L7
  movslq %edx,%rdx
  add    %rbx,%rdx
  lea    -0x3(%rax),%esi
  jmp    L73
L2:
  sub    $0x1,%ecx
  mov    %cl,(%rax)
L78:
  movzbl -0x1(%rdi),%eax
  add    $0x3a,%eax
  sub    (%rdi),%al
L41:
  mov    %al,-0x1(%rdi)
  movb   $0x0,(%rdi)
  sub    $0x1,%rdx
  sub    $0x1,%esi
  cmp    $0xfffffffe,%esi
  je     L7
L73:
  mov    %rdx,%rdi
  movzbl (%rdx),%r8d
  movzbl -0x1(%rdx),%ecx
  lea    0x30(%rcx),%eax
  sub    %r8d,%eax
  cmp    %cl,%r8b
  jle    L41
  test   %esi,%esi
  js     L78
  movslq %esi,%rax
  add    %rbx,%rax
  lea    -0x3(%rdx),%r8
  mov    %esi,%ecx
  sub    %rcx,%r8
L9:
  movzbl (%rax),%ecx
  cmp    $0x30,%cl
  jne    L2
  movb   $0x39,(%rax)
  sub    $0x1,%rax
  cmp    %r8,%rax
  jne    L9
  jmp    L78
L7:
  cmpb   $0x30,(%rbx)
  sete   %al
  movzbl %al,%eax
  pop    %rbx
  ret
```

assistant: ```c
bool IsEleven(char *number) {
  for (int i = strlen(number) - 1; i > 0; i--) {
    if (number[i] > number[i - 1]) {
      for (int j = i - 2; j >= 0; j--) {
        if (number[j] == '0')
          number[j] = '9';
        else {
          number[j]--;
          break;
        }
      }
      number[i - 1] = number[i - 1] + 10 - (number[i] - 0x30);
    } else
      number[i - 1] = number[i - 1] - number[i] + 0x30;
    number[i] = 0;
  }
  return (number[0] == '0');
}
```
user: What is the c source code of the assembly code below?

```asm
<IsEleven>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  lea    -0x1(%rax),%ecx
  movslq %ecx,%rdx
  add    %rbx,%rdx
  test   %ecx,%ecx
  jle    L0
  lea    -0x3(%rax),%esi
  jmp    L32
  nop
L73:
  sub    $0x1,%esi
  mov    %al,-0x1(%rdx)
  sub    $0x1,%rdx
  movb   $0x0,0x1(%rdx)
  cmp    $0xfffffffe,%esi
  je     L0
L32:
  movzbl -0x1(%rdx),%edi
  movzbl (%rdx),%ecx
  lea    0x30(%rdi),%eax
  sub    %ecx,%eax
  cmp    %dil,%cl
  jle    L73
  cmp    $0xffffffff,%esi
  je     L54
  movslq %esi,%rax
  lea    -0x3(%rdx),%rdi
  mov    %esi,%ecx
  add    %rbx,%rax
  sub    %rcx,%rdi
  jmp    L75
  nopw   0x0(%rax,%rax,1)
L53:
  movb   $0x39,(%rax)
  sub    $0x1,%rax
  cmp    %rax,%rdi
  je     L27
L75:
  movzbl (%rax),%ecx
  cmp    $0x30,%cl
  je     L53
  sub    $0x1,%ecx
  mov    %cl,(%rax)
L27:
  movzbl -0x1(%rdx),%edi
  movzbl (%rdx),%ecx
L54:
  lea    0x3a(%rdi),%eax
  sub    %ecx,%eax
  jmp    L73
  nopw   0x0(%rax,%rax,1)
L0:
  xor    %eax,%eax
  cmpb   $0x30,(%rbx)
  pop    %rbx
  sete   %al
  ret
```

assistant: ```c
bool IsEleven(char *number) {
  for (int i = strlen(number) - 1; i > 0; i--) {
    if (number[i] > number[i - 1]) {
      for (int j = i - 2; j >= 0; j--) {
        if (number[j] == '0')
          number[j] = '9';
        else {
          number[j]--;
          break;
        }
      }
      number[i - 1] = number[i - 1] + 10 - (number[i] - 0x30);
    } else
      number[i - 1] = number[i - 1] - number[i] + 0x30;
    number[i] = 0;
  }
  return (number[0] == '0');
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<IsEleven>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  lea    -0x1(%rax),%ecx
  movslq %ecx,%rdx
  add    %rbx,%rdx
  test   %ecx,%ecx
  jle    L19
  lea    -0x3(%rax),%esi
  jmp    L24
  nop
L61:
  sub    $0x1,%esi
  mov    %al,-0x1(%rdx)
  sub    $0x1,%rdx
  movb   $0x0,0x1(%rdx)
  cmp    $0xfffffffe,%esi
  je     L19
L24:
  movzbl -0x1(%rdx),%edi
  movzbl (%rdx),%ecx
  lea    0x30(%rdi),%eax
  sub    %ecx,%eax
  cmp    %dil,%cl
  jle    L61
  cmp    $0xffffffff,%esi
  je     L12
  movslq %esi,%rax
  lea    -0x3(%rdx),%rdi
  mov    %esi,%ecx
  add    %rbx,%rax
  sub    %rcx,%rdi
  jmp    L59
  nopw   0x0(%rax,%rax,1)
L14:
  movb   $0x39,(%rax)
  sub    $0x1,%rax
  cmp    %rax,%rdi
  je     L20
L59:
  movzbl (%rax),%ecx
  cmp    $0x30,%cl
  je     L14
  sub    $0x1,%ecx
  mov    %cl,(%rax)
L20:
  movzbl -0x1(%rdx),%edi
  movzbl (%rdx),%ecx
L12:
  lea    0x3a(%rdi),%eax
  sub    %ecx,%eax
  jmp    L61
  nopw   0x0(%rax,%rax,1)
L19:
  xor    %eax,%eax
  cmpb   $0x30,(%rbx)
  pop    %rbx
  sete   %al
  ret
```

assistant: ```c
bool IsEleven(char *number) {
  for (int i = strlen(number) - 1; i > 0; i--) {
    if (number[i] > number[i - 1]) {
      for (int j = i - 2; j >= 0; j--) {
        if (number[j] == '0')
          number[j] = '9';
        else {
          number[j]--;
          break;
        }
      }
      number[i - 1] = number[i - 1] + 10 - (number[i] - 0x30);
    } else
      number[i - 1] = number[i - 1] - number[i] + 0x30;
    number[i] = 0;
  }
  return (number[0] == '0');
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<readlines>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x430,%rsp
  mov    %rdi,-0x418(%rbp)
  mov    %rsi,-0x420(%rbp)
  mov    %edx,-0x424(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x420(%rbp),%rax
  mov    %rax,-0x400(%rbp)
  mov    -0x420(%rbp),%rax
  add    $0x1388,%rax
  mov    %rax,-0x3f8(%rbp)
  movl   $0x0,-0x408(%rbp)
  jmp    L54
L51:
  mov    -0x408(%rbp),%eax
  cmp    -0x424(%rbp),%eax
  jge    L29
  mov    -0x404(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x400(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x3f8(%rbp)
  jae    L13
L29:
  mov    $0xffffffff,%eax
  jmp    L27
L13:
  mov    -0x404(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movb   $0x0,-0x3f0(%rbp,%rax,1)
  lea    -0x3f0(%rbp),%rdx
  mov    -0x400(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x408(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x408(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x418(%rbp),%rax
  add    %rax,%rdx
  mov    -0x400(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x404(%rbp),%eax
  cltq
  add    %rax,-0x400(%rbp)
L54:
  lea    -0x3f0(%rbp),%rax
  mov    $0x3e8,%esi
  mov    %rax,%rdi
  call   <mgetline@plt>
  mov    %eax,-0x404(%rbp)
  cmpl   $0x0,-0x404(%rbp)
  jg     L51
  mov    -0x408(%rbp),%eax
L27:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L52
  call   <__stack_chk_fail@plt>
L52:
  leave
  ret
```

assistant: ```c
int readlines(char *lineptr[], char *linestor, int maxlines) {
  int len, nlines;
  char line[1000];
  char *p = linestor;
  char *linestop = linestor + 5000;
  nlines = 0;
  while ((len = mgetline(line, 1000)) > 0)
    if (nlines >= maxlines || p + len > linestop)
      return -1;
    else {
      line[len - 1] = '\0';
      strcpy(p, line);
      lineptr[nlines++] = p;
      p += len;
    }
  return nlines;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<readlines>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x408,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r12
  mov    %edx,0xc(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x3f8(%rsp)
  xor    %eax,%eax
  lea    0x1388(%rsi),%r15
  mov    $0x0,%ebx
  lea    0x10(%rsp),%r13
  jmp    L12
L57:
  sub    $0x1,%eax
  cltq
  movb   $0x0,0x10(%rsp,%rax,1)
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    %r12,(%r14,%rbx,8)
  add    $0x1,%rbx
  mov    %rbp,%r12
L12:
  mov    %ebx,%ebp
  mov    $0x3e8,%esi
  mov    %r13,%rdi
  call   <mgetline@plt>
  test   %eax,%eax
  jle    L53
  cmp    %ebx,0xc(%rsp)
  jle    L54
  movslq %eax,%rbp
  add    %r12,%rbp
  cmp    %r15,%rbp
  jbe    L57
  mov    $0xffffffff,%ebp
  jmp    L53
L54:
  mov    $0xffffffff,%ebp
L53:
  mov    0x3f8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  mov    %ebp,%eax
  add    $0x408,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L13:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int readlines(char *lineptr[], char *linestor, int maxlines) {
  int len, nlines;
  char line[1000];
  char *p = linestor;
  char *linestop = linestor + 5000;
  nlines = 0;
  while ((len = mgetline(line, 1000)) > 0)
    if (nlines >= maxlines || p + len > linestop)
      return -1;
    else {
      line[len - 1] = '\0';
      strcpy(p, line);
      lineptr[nlines++] = p;
      p += len;
    }
  return nlines;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<readlines>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  sub    $0x408,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x3f8(%rsp)
  xor    %eax,%eax
  lea    0x1388(%rsi),%rax
  lea    0x10(%rsp),%rbx
  mov    %rax,0x8(%rsp)
  jmp    L47
  cs nopw 0x0(%rax,%rax,1)
L43:
  cmp    %r15d,%ebp
  jle    L18
  movslq %eax,%r13
  add    %r14,%r13
  cmp    0x8(%rsp),%r13
  ja     L18
  sub    $0x1,%eax
  mov    %r14,%rdi
  mov    %rbx,%rsi
  cltq
  movb   $0x0,0x10(%rsp,%rax,1)
  call   <strcpy@plt>
  mov    %r14,(%r12,%r15,8)
  add    $0x1,%r15
  mov    %r13,%r14
L47:
  mov    $0x3e8,%esi
  mov    %rbx,%rdi
  mov    %r15d,%r13d
  call   <mgetline@plt>
  test   %eax,%eax
  jg     L43
L16:
  mov    0x3f8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x408,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L18:
  mov    $0xffffffff,%r13d
  jmp    L16
L49:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int readlines(char *lineptr[], char *linestor, int maxlines) {
  int len, nlines;
  char line[1000];
  char *p = linestor;
  char *linestop = linestor + 5000;
  nlines = 0;
  while ((len = mgetline(line, 1000)) > 0)
    if (nlines >= maxlines || p + len > linestop)
      return -1;
    else {
      line[len - 1] = '\0';
      strcpy(p, line);
      lineptr[nlines++] = p;
      p += len;
    }
  return nlines;
}
```