ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Translate the below assembly code into C programming language:

```asm
<is_bad_id>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  lea    D0(%rip),%rsi
  lea    D3(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  lea    D42(%rip),%r12
  test   %rax,%rax
  je     L45
L117:
  mov    %rsp,%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  test   %rax,%rax
  je     L77
  lea    0x50(%rsp),%rdx
  mov    %rsp,%rdi
  mov    %r12,%rsi
  call   <sscanf@plt>
  mov    %eax,%ebx
  cmp    $0x1,%eax
  jne    L117
  lea    0x50(%rsp),%rsi
  mov    %r13,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L117
  mov    %rbp,%rdi
  call   <fclose@plt>
  jmp    L31
L77:
  mov    %rbp,%rdi
  call   <fclose@plt>
L45:
  lea    D0(%rip),%rsi
  lea    D12(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  lea    D42(%rip),%r12
  test   %rax,%rax
  je     L47
L67:
  mov    %rsp,%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  test   %rax,%rax
  je     L99
  lea    0x50(%rsp),%rdx
  mov    %rsp,%rdi
  mov    %r12,%rsi
  call   <sscanf@plt>
  mov    %eax,%ebx
  cmp    $0x1,%eax
  jne    L67
  lea    0x50(%rsp),%rsi
  mov    %r13,%rdi
  call   <strcasestr@plt>
  test   %rax,%rax
  je     L67
  mov    %rbp,%rdi
  call   <fclose@plt>
  jmp    L31
L99:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0x0,%ebx
L31:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  mov    %ebx,%eax
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L47:
  mov    $0x0,%ebx
  jmp    L31
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D0
datatype: string
name: unpack_data
arguments: data_label: D3
datatype: string
name: unpack_data
arguments: data_label: D42
datatype: string
name: unpack_data
arguments: data_label: D12
datatype: string

tool: D0: r

tool: D3: /home/bbs/etc/badname0

tool: D42: %s

tool: D12: /home/bbs/etc/badname

assistant: ```c
bool is_bad_id(const char *s) {
  FILE *fp;
  char buf[80], buf2[80];
  fp = fopen("/home/bbs"
             "/etc/badname0",
             "r");
  if (fp) {
    while (fgets(buf, sizeof(buf), fp) != NULL) {
      if (sscanf(buf, "%s", buf2) != 1)
        continue;
      if (!strcasecmp(s, buf2)) {
        fclose(fp);
        return true;
      }
    }
    fclose(fp);
  }
  fp = fopen("/home/bbs"
             "/etc/badname",
             "r");
  if (fp == 0)
    return false;
  while (fgets(buf, sizeof(buf), fp)) {
    if (sscanf(buf, "%s", buf2) != 1)
      continue;
    if (strcasestr(s, buf2)) {
      fclose(fp);
      return true;
    }
  }
  fclose(fp);
  return false;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<is_bad_id>:
  endbr64
  push   %r15
  lea    D29(%rip),%rsi
  push   %r14
  mov    %rdi,%r14
  lea    D17(%rip),%rdi
  push   %r13
  lea    D27(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L91
  nopl   0x0(%rax)
L79:
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L37
  lea    0x50(%rsp),%r15
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    %r15,%rdx
  call   <sscanf@plt>
  mov    %eax,%r12d
  cmp    $0x1,%eax
  jne    L79
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L79
L31:
  mov    %rbp,%rdi
  call   <fclose@plt>
L12:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  add    $0xb8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L37:
  mov    %rbp,%rdi
  call   <fclose@plt>
L91:
  lea    D29(%rip),%rsi
  lea    D55(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L75
  mov    %rsp,%rbx
  lea    D27(%rip),%r13
  nopl   (%rax)
L73:
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L119
  lea    0x50(%rsp),%r15
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    %r15,%rdx
  call   <sscanf@plt>
  mov    %eax,%r12d
  cmp    $0x1,%eax
  jne    L73
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcasestr@plt>
  test   %rax,%rax
  je     L73
  jmp    L31
  nopl   (%rax)
L119:
  mov    %rbp,%rdi
  xor    %r12d,%r12d
  call   <fclose@plt>
  jmp    L12
  nopl   0x0(%rax,%rax,1)
L75:
  xor    %r12d,%r12d
  jmp    L12
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D29
type_guessed: string
name: unpack_data
arguments: label: D17
type_guessed: string
name: unpack_data
arguments: label: D27
type_guessed: string
name: unpack_data
arguments: label: D55
type_guessed: string

tool: D29: r

tool: D17: /home/bbs/etc/badname0

tool: D27: %s

tool: D55: /home/bbs/etc/badname

assistant: ```c
bool is_bad_id(const char *s) {
  FILE *fp;
  char buf[80], buf2[80];
  fp = fopen("/home/bbs"
             "/etc/badname0",
             "r");
  if (fp) {
    while (fgets(buf, sizeof(buf), fp) != NULL) {
      if (sscanf(buf, "%s", buf2) != 1)
        continue;
      if (!strcasecmp(s, buf2)) {
        fclose(fp);
        return true;
      }
    }
    fclose(fp);
  }
  fp = fopen("/home/bbs"
             "/etc/badname",
             "r");
  if (fp == 0)
    return false;
  while (fgets(buf, sizeof(buf), fp)) {
    if (sscanf(buf, "%s", buf2) != 1)
      continue;
    if (strcasestr(s, buf2)) {
      fclose(fp);
      return true;
    }
  }
  fclose(fp);
  return false;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<is_bad_id>:
  endbr64
  push   %r15
  lea    D48(%rip),%rsi
  push   %r14
  mov    %rdi,%r14
  lea    D50(%rip),%rdi
  push   %r13
  lea    D25(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L111
  nopl   0x0(%rax)
L102:
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L108
  lea    0x50(%rsp),%r15
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    %r15,%rdx
  call   <sscanf@plt>
  mov    %eax,%r12d
  cmp    $0x1,%eax
  jne    L102
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L102
L90:
  mov    %rbp,%rdi
  call   <fclose@plt>
L91:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0xb8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L108:
  mov    %rbp,%rdi
  call   <fclose@plt>
L111:
  lea    D48(%rip),%rsi
  lea    D10(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L101
  mov    %rsp,%rbx
  lea    D25(%rip),%r13
  nopl   (%rax)
L80:
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L28
  lea    0x50(%rsp),%r15
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    %r15,%rdx
  call   <sscanf@plt>
  mov    %eax,%r12d
  cmp    $0x1,%eax
  jne    L80
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcasestr@plt>
  test   %rax,%rax
  je     L80
  jmp    L90
  nopl   (%rax)
L28:
  mov    %rbp,%rdi
  xor    %r12d,%r12d
  call   <fclose@plt>
  jmp    L91
  nopl   0x0(%rax,%rax,1)
L101:
  xor    %r12d,%r12d
  jmp    L91
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D48
type: string
name: parse_data
arguments: label: D50
type: string
name: parse_data
arguments: label: D25
type: string
name: parse_data
arguments: label: D10
type: string

tool: D48: r

tool: D50: /home/bbs/etc/badname0

tool: D25: %s

tool: D10: /home/bbs/etc/badname

assistant: ```c
bool is_bad_id(const char *s) {
  FILE *fp;
  char buf[80], buf2[80];
  fp = fopen("/home/bbs"
             "/etc/badname0",
             "r");
  if (fp) {
    while (fgets(buf, sizeof(buf), fp) != NULL) {
      if (sscanf(buf, "%s", buf2) != 1)
        continue;
      if (!strcasecmp(s, buf2)) {
        fclose(fp);
        return true;
      }
    }
    fclose(fp);
  }
  fp = fopen("/home/bbs"
             "/etc/badname",
             "r");
  if (fp == 0)
    return false;
  while (fgets(buf, sizeof(buf), fp)) {
    if (sscanf(buf, "%s", buf2) != 1)
      continue;
    if (strcasestr(s, buf2)) {
      fclose(fp);
      return true;
    }
  }
  fclose(fp);
  return false;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<write>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  movq   $0xb8000,-0x8(%rbp)
  jmp    L1
L11:
  mov    -0x18(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x8(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movb   $0xf,(%rax)
L1:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L11
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void write(const char *s) {
  volatile char *video = (volatile char *)0xb8000;
  while (*s) {
    *video++ = *s++;
    *video++ = 0x0f;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<write>:
  endbr64
  movzbl (%rdi),%edx
  test   %dl,%dl
  je     L12
  mov    $0xb8000,%eax
L11:
  add    $0x1,%rdi
  mov    %dl,(%rax)
  mov    %rax,%rdx
  add    $0x2,%rax
  movb   $0xf,0x1(%rdx)
  movzbl (%rdi),%edx
  test   %dl,%dl
  jne    L11
L12:
  ret
```

assistant: ```c
void write(const char *s) {
  volatile char *video = (volatile char *)0xb8000;
  while (*s) {
    *video++ = *s++;
    *video++ = 0x0f;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<write>:
  endbr64
  movzbl (%rdi),%edx
  test   %dl,%dl
  je     L0
  mov    $0xb8000,%eax
L16:
  mov    %dl,(%rax)
  add    $0x1,%rdi
  mov    %rax,%rdx
  add    $0x2,%rax
  movb   $0xf,0x1(%rdx)
  movzbl (%rdi),%edx
  test   %dl,%dl
  jne    L16
L0:
  ret
```

assistant: ```c
void write(const char *s) {
  volatile char *video = (volatile char *)0xb8000;
  while (*s) {
    *video++ = *s++;
    *video++ = 0x0f;
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<write>:
  endbr64
  movzbl (%rdi),%edx
  test   %dl,%dl
  je     L16
  mov    $0xb8000,%eax
L13:
  mov    %dl,(%rax)
  add    $0x1,%rdi
  mov    %rax,%rdx
  add    $0x2,%rax
  movb   $0xf,0x1(%rdx)
  movzbl (%rdi),%edx
  test   %dl,%dl
  jne    L13
L16:
  ret
```

assistant: ```c
void write(const char *s) {
  volatile char *video = (volatile char *)0xb8000;
  while (*s) {
    *video++ = *s++;
    *video++ = 0x0f;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<CpCharVal>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <ot@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <outdec@plt>
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <outstr@plt>
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D4
type: string
name: extract_symbolic_data
arguments: tag: D14
type: string

tool: D4: cp	#(

tool: D14: % 256)


assistant: ```c
void CpCharVal(int val) {
  ot("cp\t#(");
  outdec(val);
  outstr("% 256)\n");
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<CpCharVal>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  lea    D10(%rip),%rdi
  call   <ot@plt>
  mov    %ebx,%edi
  call   <outdec@plt>
  lea    D17(%rip),%rdi
  call   <outstr@plt>
  pop    %rbx
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D10
type: string
name: extract_symbolic_data
arguments: label: D17
type: string

tool: D10: cp	#(

tool: D17: % 256)


assistant: ```c
void CpCharVal(int val) {
  ot("cp\t#(");
  outdec(val);
  outstr("% 256)\n");
}
```
user: What is the c source code of the assembly code below:

```asm
<CpCharVal>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  lea    D19(%rip),%rdi
  call   <ot@plt>
  mov    %ebp,%edi
  call   <outdec@plt>
  lea    D12(%rip),%rdi
  pop    %rbp
  jmp    1070 <outstr@plt>
```

tool_calls: name: unpack_data
arguments: label: D19
datatype: string
name: unpack_data
arguments: label: D12
datatype: string

tool: D19: cp	#(

tool: D12: % 256)


assistant: ```c
void CpCharVal(int val) {
  ot("cp\t#(");
  outdec(val);
  outstr("% 256)\n");
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<CpCharVal>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  lea    D18(%rip),%rdi
  call   <ot@plt>
  mov    %ebp,%edi
  call   <outdec@plt>
  lea    D8(%rip),%rdi
  pop    %rbp
  jmp    1070 <outstr@plt>
```

tool_calls: name: read_data
arguments: data_tag: D18
datatype: string
name: read_data
arguments: data_tag: D8
datatype: string

tool: D18: cp	#(

tool: D8: % 256)


assistant: ```c
void CpCharVal(int val) {
  ot("cp\t#(");
  outdec(val);
  outstr("% 256)\n");
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <suggest@plt>
  mov    $0x0,%eax
  pop    %rbp
  ret
```

assistant: ```c
int main() {
  suggest();
  return 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <suggest@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main() {
  suggest();
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <suggest@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main() {
  suggest();
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <suggest@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main() {
  suggest();
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<v_strlcpy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L30
  mov    $0x0,%eax
  jmp    L6
L30:
  subq   $0x1,-0x28(%rbp)
  jmp    L14
L31:
  mov    -0x20(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  subq   $0x1,-0x28(%rbp)
L14:
  cmpq   $0x0,-0x28(%rbp)
  je     L27
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L31
L27:
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
L6:
  pop    %rbp
  ret
```

assistant: ```c
char *v_strlcpy(char *dst, const char *src, size_t size) {
  char *base = dst;
  if (size == 0)
    return NULL;
  for (size--; size > 0 && *src != '\0'; size--)
    *dst++ = *src++;
  *dst = '\0';
  return base;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<v_strlcpy>:
  endbr64
  test   %rdx,%rdx
  je     L7
  mov    %rdi,%rcx
  sub    $0x1,%rdx
  je     L9
  lea    (%rdi,%rdx,1),%r8
L13:
  movzbl (%rsi),%edx
  test   %dl,%dl
  je     L9
  add    $0x1,%rsi
  add    $0x1,%rcx
  mov    %dl,-0x1(%rcx)
  cmp    %r8,%rcx
  jne    L13
L9:
  movb   $0x0,(%rcx)
  mov    %rdi,%rax
  ret
L7:
  mov    $0x0,%eax
  ret
```

assistant: ```c
char *v_strlcpy(char *dst, const char *src, size_t size) {
  char *base = dst;
  if (size == 0)
    return NULL;
  for (size--; size > 0 && *src != '\0'; size--)
    *dst++ = *src++;
  *dst = '\0';
  return base;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<v_strlcpy>:
  endbr64
  test   %rdx,%rdx
  je     L27
  mov    %rdi,%rcx
  sub    $0x1,%rdx
  je     L0
  lea    (%rdi,%rdx,1),%r8
  jmp    L20
  nopl   0x0(%rax,%rax,1)
L9:
  add    $0x1,%rcx
  add    $0x1,%rsi
  mov    %dl,-0x1(%rcx)
  cmp    %r8,%rcx
  je     L0
L20:
  movzbl (%rsi),%edx
  test   %dl,%dl
  jne    L9
L0:
  movb   $0x0,(%rcx)
  mov    %rdi,%rax
  ret
  xchg   %ax,%ax
L27:
  xor    %eax,%eax
  ret
```

assistant: ```c
char *v_strlcpy(char *dst, const char *src, size_t size) {
  char *base = dst;
  if (size == 0)
    return NULL;
  for (size--; size > 0 && *src != '\0'; size--)
    *dst++ = *src++;
  *dst = '\0';
  return base;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<v_strlcpy>:
  endbr64
  test   %rdx,%rdx
  je     L36
  mov    %rdi,%rcx
  sub    $0x1,%rdx
  je     L26
  lea    (%rdi,%rdx,1),%r8
  jmp    L10
  nopl   0x0(%rax,%rax,1)
L24:
  add    $0x1,%rcx
  add    $0x1,%rsi
  mov    %dl,-0x1(%rcx)
  cmp    %r8,%rcx
  je     L26
L10:
  movzbl (%rsi),%edx
  test   %dl,%dl
  jne    L24
L26:
  movb   $0x0,(%rcx)
  mov    %rdi,%rax
  ret
  xchg   %ax,%ax
L36:
  xor    %eax,%eax
  ret
```

assistant: ```c
char *v_strlcpy(char *dst, const char *src, size_t size) {
  char *base = dst;
  if (size == 0)
    return NULL;
  for (size--; size > 0 && *src != '\0'; size--)
    *dst++ = *src++;
  *dst = '\0';
  return base;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<decrypt_caesar_cipher>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L29
L24:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L34
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7a,%al
  jg     L34
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x64(%rax),%edx
  movslq %edx,%rax
  imul   $0x4ec4ec4f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x1a,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  add    $0x1a,%eax
  movslq %eax,%rdx
  imul   $0x4ec4ec4f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x3,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x1a,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  lea    0x61(%rax),%ecx
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L27
L34:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L27
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jg     L27
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x44(%rax),%edx
  movslq %edx,%rax
  imul   $0x4ec4ec4f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x1a,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  add    $0x1a,%eax
  movslq %eax,%rdx
  imul   $0x4ec4ec4f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x3,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x1a,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  lea    0x41(%rax),%ecx
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
L27:
  addl   $0x1,-0x8(%rbp)
L29:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L24
  nop
  nop
  leave
  ret
```

assistant: ```c
void decrypt_caesar_cipher(char *string) {
  int i, size_str;
  size_str = strlen(string);
  for (i = 0; i < size_str; i++) {
    if (string[i] >= 97 && string[i] <= 122)
      string[i] = 97 + ((string[i] - 97 - 3) % 26 + 26) % 26;
    else if (string[i] >= 65 && string[i] <= 90)
      string[i] = 65 + ((string[i] - 65 - 3) % 26 + 26) % 26;
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<decrypt_caesar_cipher>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L18
  mov    %rbx,%rdx
  lea    -0x1(%rax),%eax
  lea    0x1(%rbx,%rax,1),%rcx
  jmp    L52
L48:
  lea    -0x41(%rax),%esi
  cmp    $0x19,%sil
  ja     L12
  movsbl %al,%eax
  sub    $0x44,%eax
  movslq %eax,%rsi
  imul   $0x4ec4ec4f,%rsi,%rsi
  sar    $0x23,%rsi
  mov    %eax,%r8d
  sar    $0x1f,%r8d
  sub    %r8d,%esi
  imul   $0x1a,%esi,%esi
  sub    %esi,%eax
  add    $0x1a,%eax
  movslq %eax,%rsi
  imul   $0x4ec4ec4f,%rsi,%rsi
  sar    $0x23,%rsi
  mov    %eax,%r8d
  sar    $0x1f,%r8d
  sub    %r8d,%esi
  imul   $0x1a,%esi,%esi
  sub    %esi,%eax
  add    $0x41,%eax
  mov    %al,(%rdx)
L12:
  add    $0x1,%rdx
  cmp    %rcx,%rdx
  je     L18
L52:
  movzbl (%rdx),%eax
  lea    -0x61(%rax),%esi
  cmp    $0x19,%sil
  ja     L48
  movsbl %al,%eax
  sub    $0x64,%eax
  movslq %eax,%rsi
  imul   $0x4ec4ec4f,%rsi,%rsi
  sar    $0x23,%rsi
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%esi
  imul   $0x1a,%esi,%esi
  sub    %esi,%eax
  add    $0x1a,%eax
  movslq %eax,%rsi
  imul   $0x4ec4ec4f,%rsi,%rsi
  sar    $0x23,%rsi
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%esi
  imul   $0x1a,%esi,%esi
  sub    %esi,%eax
  add    $0x61,%eax
  mov    %al,(%rdx)
  jmp    L12
L18:
  pop    %rbx
  ret
```

assistant: ```c
void decrypt_caesar_cipher(char *string) {
  int i, size_str;
  size_str = strlen(string);
  for (i = 0; i < size_str; i++) {
    if (string[i] >= 97 && string[i] <= 122)
      string[i] = 97 + ((string[i] - 97 - 3) % 26 + 26) % 26;
    else if (string[i] >= 65 && string[i] <= 90)
      string[i] = 65 + ((string[i] - 65 - 3) % 26 + 26) % 26;
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<decrypt_caesar_cipher>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L41
  sub    $0x1,%eax
  mov    %rbx,%rdi
  lea    0x1(%rbx,%rax,1),%rcx
  jmp    L27
  xchg   %ax,%ax
L2:
  sub    $0x4a,%eax
  movsbl %al,%edx
  mov    %rdx,%rax
  imul   $0x4ec4ec4f,%rdx,%rdx
  shr    $0x23,%rdx
  imul   $0x1a,%edx,%edx
  sub    %edx,%eax
  add    $0x61,%eax
  mov    %al,(%rdi)
L6:
  add    $0x1,%rdi
  cmp    %rcx,%rdi
  je     L41
L27:
  movzbl (%rdi),%eax
  lea    -0x61(%rax),%edx
  cmp    $0x19,%dl
  jbe    L2
  lea    -0x41(%rax),%edx
  cmp    $0x19,%dl
  ja     L6
  sub    $0x2a,%eax
  add    $0x1,%rdi
  movsbl %al,%edx
  mov    %rdx,%rax
  imul   $0x4ec4ec4f,%rdx,%rdx
  shr    $0x23,%rdx
  imul   $0x1a,%edx,%edx
  sub    %edx,%eax
  add    $0x41,%eax
  mov    %al,-0x1(%rdi)
  cmp    %rcx,%rdi
  jne    L27
L41:
  pop    %rbx
  ret
```

assistant: ```c
void decrypt_caesar_cipher(char *string) {
  int i, size_str;
  size_str = strlen(string);
  for (i = 0; i < size_str; i++) {
    if (string[i] >= 97 && string[i] <= 122)
      string[i] = 97 + ((string[i] - 97 - 3) % 26 + 26) % 26;
    else if (string[i] >= 65 && string[i] <= 90)
      string[i] = 65 + ((string[i] - 65 - 3) % 26 + 26) % 26;
  }
}
```