ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What is the c source code of the assembly code below:

```asm
<irc_kick>:
  endbr64
  mov    %rcx,%r8
  mov    %rdx,%rcx
  mov    %rsi,%rdx
  test   %r8,%r8
  je     L2
  lea    D4(%rip),%rsi
  xor    %eax,%eax
  jmp    1050 <do_send@plt>
L2:
  lea    D10(%rip),%rsi
  xor    %eax,%eax
  jmp    1050 <do_send@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D4
type: string
name: disassemble_data
arguments: tag: D10
type: string

tool: D4: KICK %s %s :%s

tool: D10: KICK %s %s

assistant: ```c
int irc_kick(int fd, const char *channel, const char *nick, const char *comment) {
  if (comment)
    return do_send(fd, "KICK %s %s :%s", channel, nick, comment);
  else
    return do_send(fd, "KICK %s %s", channel, nick);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<int_pow>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  movsd  %xmm0,-0x18(%rbp)
  mov    %edi,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jg     L23
  movsd  D10(%rip),%xmm0
  jmp    L15
L23:
  movsd  D10(%rip),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  jmp    L10
L41:
  mov    -0x1c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L38
  movsd  -0x18(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x1c(%rbp)
  jmp    L10
L38:
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x18(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x1c(%rbp)
L10:
  cmpl   $0x1,-0x1c(%rbp)
  jg     L41
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
L15:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D10
type_infered: f64

tool: D10: 1

assistant: ```c
double int_pow(double base, int exponent) {
  if (exponent <= 0)
    return 1;
  double y = 1;
  while (exponent > 1) {
    if (exponent % 2 == 0) {
      base *= base;
      exponent /= 2;
    } else {
      y *= base;
      base *= base;
      exponent = (exponent - 1) / 2;
    }
  }
  return base * y;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<int_pow>:
  endbr64
  test   %edi,%edi
  jle    L18
  cmp    $0x1,%edi
  jle    L26
  movsd  D1(%rip),%xmm1
  jmp    L30
L15:
  mulsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm0
  sub    $0x1,%edi
  mov    %edi,%eax
  shr    $0x1f,%eax
  add    %eax,%edi
  sar    %edi
L57:
  cmp    $0x1,%edi
  jle    L29
L30:
  test   $0x1,%dil
  jne    L15
  mulsd  %xmm0,%xmm0
  mov    %edi,%eax
  shr    $0x1f,%eax
  add    %eax,%edi
  sar    %edi
  jmp    L57
L26:
  movsd  D1(%rip),%xmm1
L29:
  mulsd  %xmm1,%xmm0
  ret
L18:
  movsd  D1(%rip),%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D1
datatype: f64

tool: D1: 1

assistant: ```c
double int_pow(double base, int exponent) {
  if (exponent <= 0)
    return 1;
  double y = 1;
  while (exponent > 1) {
    if (exponent % 2 == 0) {
      base *= base;
      exponent /= 2;
    } else {
      y *= base;
      base *= base;
      exponent = (exponent - 1) / 2;
    }
  }
  return base * y;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<int_pow>:
  endbr64
  test   %edi,%edi
  jle    L34
  cmp    $0x1,%edi
  je     L32
  movsd  D11(%rip),%xmm1
  nopl   (%rax)
L24:
  movapd %xmm0,%xmm2
  mulsd  %xmm0,%xmm0
  test   $0x1,%dil
  je     L10
  mulsd  %xmm2,%xmm1
  sub    $0x1,%edi
L10:
  sar    %edi
  cmp    $0x1,%edi
  jg     L24
  mulsd  %xmm1,%xmm0
  ret
  nopl   0x0(%rax)
L34:
  movsd  D11(%rip),%xmm0
L32:
  ret
```

tool_calls: name: read_data
arguments: data_label: D11
type_infered: f64

tool: D11: 1

assistant: ```c
double int_pow(double base, int exponent) {
  if (exponent <= 0)
    return 1;
  double y = 1;
  while (exponent > 1) {
    if (exponent % 2 == 0) {
      base *= base;
      exponent /= 2;
    } else {
      y *= base;
      base *= base;
      exponent = (exponent - 1) / 2;
    }
  }
  return base * y;
}
```
user: Translate the below assembly code into C programming language:

```asm
<int_pow>:
  endbr64
  test   %edi,%edi
  jle    L16
  cmp    $0x1,%edi
  je     L18
  movsd  D0(%rip),%xmm2
  jmp    L27
  nopw   0x0(%rax,%rax,1)
L58:
  sar    %edi
  cmp    $0x1,%edi
  je     L39
L47:
  movapd %xmm1,%xmm0
L27:
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  test   $0x1,%dil
  je     L58
  lea    -0x1(%rdi),%eax
  mulsd  %xmm0,%xmm2
  mov    %eax,%edi
  sar    %edi
  cmp    $0x3,%eax
  jg     L47
L39:
  mulsd  %xmm1,%xmm2
  movapd %xmm2,%xmm0
  ret
  nopw   0x0(%rax,%rax,1)
L16:
  movsd  D0(%rip),%xmm0
L18:
  ret
```

tool_calls: name: parse_data
arguments: tag: D0
type: f64

tool: D0: 1

assistant: ```c
double int_pow(double base, int exponent) {
  if (exponent <= 0)
    return 1;
  double y = 1;
  while (exponent > 1) {
    if (exponent % 2 == 0) {
      base *= base;
      exponent /= 2;
    } else {
      y *= base;
      base *= base;
      exponent = (exponent - 1) / 2;
    }
  }
  return base * y;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<url_decode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x18(%rbp)
  jne    L31
  mov    -0x18(%rbp),%rax
  jmp    L33
L49:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x25,%al
  jne    L29
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L88
  mov    -0x28(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L88
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <from_hex@plt>
  shl    $0x4,%eax
  mov    %eax,%ebx
  mov    -0x28(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <from_hex@plt>
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  or     %ecx,%ebx
  mov    %ebx,%edx
  mov    %dl,(%rax)
  addq   $0x2,-0x28(%rbp)
  jmp    L88
L29:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L69
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movb   $0x20,(%rax)
  jmp    L88
L69:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  mov    -0x28(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L88:
  addq   $0x1,-0x28(%rbp)
L31:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L49
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
L33:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
char *url_decode(const char *str) {
  char *pstr = (char *)str, *buf = (char *)malloc(strlen(str) + 1), *pbuf = buf;
  assert(str != NULL);
  if (buf == NULL) {
    return buf;
  }
  while (*pstr) {
    if (*pstr == '%') {
      if (pstr[1] && pstr[2]) {
        *pbuf++ = from_hex(pstr[1]) << 4 | from_hex(pstr[2]);
        pstr += 2;
      }
    } else if (*pstr == '+') {
      *pbuf++ = ' ';
    } else {
      *pbuf++ = *pstr;
    }
    pstr++;
  }
  *pbuf = '\0';
  return buf;
}
```
user: Translate the below assembly code into C programming language:

```asm
<url_decode>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  call   <strlen@plt>
  lea    0x1(%rax),%rdi
  call   <malloc@plt>
  mov    %rax,%r12
  mov    $0x1,%edi
  call   <assert@plt>
  test   %r12,%r12
  je     L30
  movzbl (%rbx),%eax
  test   %al,%al
  je     L96
  mov    %r12,%rbp
  jmp    L12
L82:
  movzbl 0x1(%rbx),%edi
  test   %dil,%dil
  je     L64
  cmpb   $0x0,0x2(%rbx)
  jne    L53
  movzbl 0x1(%rbx),%eax
  lea    0x1(%rbx),%rbx
  jmp    L12
L53:
  movsbl %dil,%edi
  call   <from_hex@plt>
  mov    %eax,%r13d
  movsbl 0x2(%rbx),%edi
  call   <from_hex@plt>
  shl    $0x4,%r13d
  or     %eax,%r13d
  mov    %r13b,0x0(%rbp)
  lea    0x2(%rbx),%rax
  lea    0x1(%rbp),%rbp
  jmp    L51
L44:
  movb   $0x20,0x0(%rbp)
  lea    0x1(%rbp),%rbp
  mov    %rbx,%rax
L51:
  lea    0x1(%rax),%rbx
  movzbl 0x1(%rax),%eax
  test   %al,%al
  je     L64
L12:
  cmp    $0x25,%al
  je     L82
  cmp    $0x2b,%al
  je     L44
  mov    %al,0x0(%rbp)
  lea    0x1(%rbp),%rbp
  mov    %rbx,%rax
  jmp    L51
L96:
  mov    %r12,%rbp
L64:
  movb   $0x0,0x0(%rbp)
L30:
  mov    %r12,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
char *url_decode(const char *str) {
  char *pstr = (char *)str, *buf = (char *)malloc(strlen(str) + 1), *pbuf = buf;
  assert(str != NULL);
  if (buf == NULL) {
    return buf;
  }
  while (*pstr) {
    if (*pstr == '%') {
      if (pstr[1] && pstr[2]) {
        *pbuf++ = from_hex(pstr[1]) << 4 | from_hex(pstr[2]);
        pstr += 2;
      }
    } else if (*pstr == '+') {
      *pbuf++ = ' ';
    } else {
      *pbuf++ = *pstr;
    }
    pstr++;
  }
  *pbuf = '\0';
  return buf;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<url_decode>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  lea    0x1(%rax),%rdi
  call   <malloc@plt>
  mov    $0x1,%edi
  mov    %rax,%r12
  call   <assert@plt>
  test   %r12,%r12
  je     L76
  movzbl (%rbx),%edi
  mov    %r12,%rbp
  test   %dil,%dil
  je     L70
L39:
  cmp    $0x25,%dil
  je     L54
L78:
  lea    0x1(%rbp),%rdx
  cmp    $0x2b,%dil
  je     L11
  mov    %dil,0x0(%rbp)
  movzbl 0x1(%rbx),%edi
  mov    %rdx,%rbp
L7:
  add    $0x1,%rbx
  test   %dil,%dil
  je     L70
  cmp    $0x25,%dil
  jne    L78
L54:
  movsbl 0x1(%rbx),%edi
  test   %dil,%dil
  jne    L105
L70:
  movb   $0x0,0x0(%rbp)
L76:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L11:
  movb   $0x20,0x0(%rbp)
  mov    %rdx,%rbp
  movzbl 0x1(%rbx),%edi
  jmp    L7
  nopl   (%rax)
L105:
  cmpb   $0x0,0x2(%rbx)
  jne    L15
  add    $0x1,%rbx
  jmp    L39
  nopl   0x0(%rax)
L15:
  call   <from_hex@plt>
  movsbl 0x2(%rbx),%edi
  add    $0x1,%rbp
  add    $0x2,%rbx
  mov    %eax,%r13d
  call   <from_hex@plt>
  shl    $0x4,%r13d
  or     %eax,%r13d
  mov    %r13b,-0x1(%rbp)
  movzbl 0x1(%rbx),%edi
  jmp    L7
```

assistant: ```c
char *url_decode(const char *str) {
  char *pstr = (char *)str, *buf = (char *)malloc(strlen(str) + 1), *pbuf = buf;
  assert(str != NULL);
  if (buf == NULL) {
    return buf;
  }
  while (*pstr) {
    if (*pstr == '%') {
      if (pstr[1] && pstr[2]) {
        *pbuf++ = from_hex(pstr[1]) << 4 | from_hex(pstr[2]);
        pstr += 2;
      }
    } else if (*pstr == '+') {
      *pbuf++ = ' ';
    } else {
      *pbuf++ = *pstr;
    }
    pstr++;
  }
  *pbuf = '\0';
  return buf;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<url_decode>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  lea    0x1(%rax),%rdi
  call   <malloc@plt>
  mov    $0x1,%edi
  mov    %rax,%r12
  call   <assert@plt>
  test   %r12,%r12
  je     L30
  movzbl (%rbx),%edi
  mov    %r12,%rbp
  test   %dil,%dil
  je     L41
L98:
  cmp    $0x25,%dil
  je     L5
L70:
  lea    0x1(%rbp),%rdx
  cmp    $0x2b,%dil
  je     L25
  mov    %dil,0x0(%rbp)
  movzbl 0x1(%rbx),%edi
  mov    %rdx,%rbp
L80:
  add    $0x1,%rbx
  test   %dil,%dil
  je     L41
  cmp    $0x25,%dil
  jne    L70
L5:
  movsbl 0x1(%rbx),%edi
  test   %dil,%dil
  jne    L54
L41:
  movb   $0x0,0x0(%rbp)
L30:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L25:
  movb   $0x20,0x0(%rbp)
  mov    %rdx,%rbp
  movzbl 0x1(%rbx),%edi
  jmp    L80
  nopl   (%rax)
L54:
  cmpb   $0x0,0x2(%rbx)
  jne    L16
  add    $0x1,%rbx
  jmp    L98
  nopl   0x0(%rax)
L16:
  call   <from_hex@plt>
  movsbl 0x2(%rbx),%edi
  add    $0x1,%rbp
  add    $0x2,%rbx
  mov    %eax,%r13d
  call   <from_hex@plt>
  shl    $0x4,%r13d
  or     %eax,%r13d
  mov    %r13b,-0x1(%rbp)
  movzbl 0x1(%rbx),%edi
  jmp    L80
```

assistant: ```c
char *url_decode(const char *str) {
  char *pstr = (char *)str, *buf = (char *)malloc(strlen(str) + 1), *pbuf = buf;
  assert(str != NULL);
  if (buf == NULL) {
    return buf;
  }
  while (*pstr) {
    if (*pstr == '%') {
      if (pstr[1] && pstr[2]) {
        *pbuf++ = from_hex(pstr[1]) << 4 | from_hex(pstr[2]);
        pstr += 2;
      }
    } else if (*pstr == '+') {
      *pbuf++ = ' ';
    } else {
      *pbuf++ = *pstr;
    }
    pstr++;
  }
  *pbuf = '\0';
  return buf;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<McSrv_WriteSPI>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    $0x0,%eax
  call   <McSrv_DisableIrq@plt>
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <machdep_WriteSPI@plt>
  mov    $0x0,%eax
  call   <McSrv_EnableIrq@plt>
  nop
  leave
  ret
```

assistant: ```c
void McSrv_WriteSPI(unsigned char *pbData, unsigned long dSize) {
  McSrv_DisableIrq();
  machdep_WriteSPI(pbData, dSize);
  McSrv_EnableIrq();
}
```
user: What is the c source code of the assembly code below:

```asm
<McSrv_WriteSPI>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    $0x0,%eax
  call   <McSrv_DisableIrq@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <machdep_WriteSPI@plt>
  mov    $0x0,%eax
  call   <McSrv_EnableIrq@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void McSrv_WriteSPI(unsigned char *pbData, unsigned long dSize) {
  McSrv_DisableIrq();
  machdep_WriteSPI(pbData, dSize);
  McSrv_EnableIrq();
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<McSrv_WriteSPI>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  sub    $0x8,%rsp
  call   <McSrv_DisableIrq@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <machdep_WriteSPI@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  jmp    1070 <McSrv_EnableIrq@plt>
```

assistant: ```c
void McSrv_WriteSPI(unsigned char *pbData, unsigned long dSize) {
  McSrv_DisableIrq();
  machdep_WriteSPI(pbData, dSize);
  McSrv_EnableIrq();
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<McSrv_WriteSPI>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  sub    $0x8,%rsp
  call   <McSrv_DisableIrq@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <machdep_WriteSPI@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  jmp    1070 <McSrv_EnableIrq@plt>
```

assistant: ```c
void McSrv_WriteSPI(unsigned char *pbData, unsigned long dSize) {
  McSrv_DisableIrq();
  machdep_WriteSPI(pbData, dSize);
  McSrv_EnableIrq();
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<isAnagram>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rbx
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,%rbx
  je     L61
  mov    $0x0,%eax
  jmp    L44
L61:
  movl   $0x1,-0x3c(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x20(%rbp)
  movq   $0x0,-0x38(%rbp)
  jmp    L19
L16:
  mov    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x28(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %al,(%rbx)
  mov    -0x20(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x20(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %al,(%rbx)
  addq   $0x1,-0x38(%rbp)
L19:
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,-0x38(%rbp)
  jb     L16
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L8
  movl   $0x0,-0x3c(%rbp)
L8:
  movq   $0x0,-0x30(%rbp)
  jmp    L98
L74:
  cmpl   $0x0,-0x3c(%rbp)
  je     L64
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L70
  mov    -0x18(%rbp),%rax
  movb   $0x20,(%rax)
  jmp    L92
L70:
  movl   $0x0,-0x3c(%rbp)
L92:
  addq   $0x1,-0x30(%rbp)
L98:
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,-0x30(%rbp)
  jb     L74
  jmp    L100
L64:
  nop
L100:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x3c(%rbp),%eax
L44:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
bool isAnagram(const char *a, const char *b) {
  if (strlen(a) != strlen(b))
    return false;
  bool result = true;
  char *temp_a = strdup(a);
  char *temp_b = strdup(b);
  for (size_t i = 0; i < strlen(a); ++i) {
    temp_a[i] = tolower(temp_a[i]);
    temp_b[i] = tolower(temp_b[i]);
  }
  if (!strcmp(temp_a, temp_b))
    result = false;
  for (size_t i = 0; i < strlen(a); ++i) {
    if (!result)
      break;
    char *ch = strchr(temp_b, temp_a[i]);
    if (ch)
      *ch = ' ';
    else
      result = false;
  }
  free(temp_a);
  free(temp_b);
  return result;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<isAnagram>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  call   <strlen@plt>
  mov    %rax,%r12
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    $0x0,%r14d
  cmp    %rax,%r12
  je     L70
L41:
  mov    %r14d,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  mov    %rbp,%rdi
  call   <strdup@plt>
  mov    %rax,%r13
  mov    %rbx,%rdi
  call   <strdup@plt>
  mov    %rax,%r12
  mov    $0x0,%ebx
  jmp    L44
L69:
  movsbl 0x0(%r13,%rbx,1),%edi
  call   <tolower@plt>
  mov    %al,0x0(%r13,%rbx,1)
  movsbl (%r12,%rbx,1),%edi
  call   <tolower@plt>
  mov    %al,(%r12,%rbx,1)
  add    $0x1,%rbx
L44:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %rbx,%rax
  ja     L69
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  setne  %r14b
  movzbl %r14b,%r14d
  mov    $0x0,%ebx
  mov    $0x0,%r15d
  jmp    L49
L57:
  mov    %r15d,%r14d
L52:
  add    $0x1,%rbx
L49:
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %r14d,%r14d
  je     L47
  cmp    %rbx,%rax
  jbe    L47
  movsbl 0x0(%r13,%rbx,1),%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L57
  movb   $0x20,(%rax)
  jmp    L52
L47:
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  jmp    L41
```

assistant: ```c
bool isAnagram(const char *a, const char *b) {
  if (strlen(a) != strlen(b))
    return false;
  bool result = true;
  char *temp_a = strdup(a);
  char *temp_b = strdup(b);
  for (size_t i = 0; i < strlen(a); ++i) {
    temp_a[i] = tolower(temp_a[i]);
    temp_b[i] = tolower(temp_b[i]);
  }
  if (!strcmp(temp_a, temp_b))
    result = false;
  for (size_t i = 0; i < strlen(a); ++i) {
    if (!result)
      break;
    char *ch = strchr(temp_b, temp_a[i]);
    if (ch)
      *ch = ' ';
    else
      result = false;
  }
  free(temp_a);
  free(temp_b);
  return result;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<isAnagram>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %rax,%rbx
  call   <strlen@plt>
  cmp    %rax,%rbx
  je     L59
L77:
  add    $0x8,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L59:
  mov    %r13,%rdi
  xor    %ebx,%ebx
  call   <strdup@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <strdup@plt>
  mov    %rax,%rbp
  jmp    L4
  nopw   0x0(%rax,%rax,1)
L26:
  movsbl (%r12,%rbx,1),%edi
  call   <tolower@plt>
  movsbl 0x0(%rbp,%rbx,1),%edi
  mov    %al,(%r12,%rbx,1)
  call   <tolower@plt>
  mov    %al,0x0(%rbp,%rbx,1)
  add    $0x1,%rbx
L4:
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %rax,%r14
  cmp    %rbx,%rax
  ja     L26
  mov    %rbp,%rsi
  mov    %r12,%rdi
  xor    %r15d,%r15d
  call   <strcmp@plt>
  test   %eax,%eax
  setne  %r15b
  test   %r14,%r14
  je     L38
  xor    %ebx,%ebx
  test   %eax,%eax
  je     L34
  nopw   0x0(%rax,%rax,1)
L58:
  movsbl (%r12,%rbx,1),%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L34
  movb   $0x20,(%rax)
  mov    %r13,%rdi
  add    $0x1,%rbx
  call   <strlen@plt>
  cmp    %rax,%rbx
  jb     L58
  mov    $0x1,%r15d
  jmp    L38
  xchg   %ax,%ax
L34:
  xor    %r15d,%r15d
L38:
  mov    %r12,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  jmp    L77
```

assistant: ```c
bool isAnagram(const char *a, const char *b) {
  if (strlen(a) != strlen(b))
    return false;
  bool result = true;
  char *temp_a = strdup(a);
  char *temp_b = strdup(b);
  for (size_t i = 0; i < strlen(a); ++i) {
    temp_a[i] = tolower(temp_a[i]);
    temp_b[i] = tolower(temp_b[i]);
  }
  if (!strcmp(temp_a, temp_b))
    result = false;
  for (size_t i = 0; i < strlen(a); ++i) {
    if (!result)
      break;
    char *ch = strchr(temp_b, temp_a[i]);
    if (ch)
      *ch = ' ';
    else
      result = false;
  }
  free(temp_a);
  free(temp_b);
  return result;
}
```