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

```asm
<print_optimal_parens>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  cmp    %ecx,%edx
  je     L4
  mov    %rdi,%r12
  mov    %esi,%r13d
  mov    %ecx,%ebp
  mov    $0x28,%edi
  call   <putchar@plt>
  mov    %ebx,%eax
  imul   %r13d,%eax
  add    %ebp,%eax
  cltq
  lea    (%r12,%rax,4),%r14
  mov    (%r14),%ecx
  mov    %ebx,%edx
  mov    %r13d,%esi
  mov    %r12,%rdi
  call   <print_optimal_parens>
  mov    (%r14),%edx
  add    $0x1,%edx
  mov    %ebp,%ecx
  mov    %r13d,%esi
  mov    %r12,%rdi
  call   <print_optimal_parens>
  mov    $0x29,%edi
  call   <putchar@plt>
L15:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L4:
  lea    0x1(%rdx),%esi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L15
```

tool_calls: name: disassemble_data
arguments: label: D9
data_type: string

tool: D9: A%i

assistant: ```c
void print_optimal_parens(int *splits, int s_length, int i, int j) {
  if (i == j) {
    printf("A%i", i + 1);
  } else {
    printf("(");
    print_optimal_parens(splits, s_length, i, splits[i * s_length + j]);
    print_optimal_parens(splits, s_length, splits[i * s_length + j] + 1, j);
    printf(")");
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<print_optimal_parens>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  cmp    %ecx,%edx
  je     L6
  mov    %rdi,%rbp
  mov    $0x28,%edi
  mov    %esi,%r14d
  mov    %ecx,%r13d
  call   <putchar@plt>
  mov    %r12d,%eax
  mov    %r12d,%edx
  mov    %r14d,%esi
  imul   %r14d,%eax
  mov    %rbp,%rdi
  add    %r13d,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rbx
  mov    (%rbx),%ecx
  call   <print_optimal_parens>
  mov    (%rbx),%edx
  mov    %rbp,%rdi
  mov    %r13d,%ecx
  mov    %r14d,%esi
  add    $0x1,%edx
  call   <print_optimal_parens>
  pop    %rbx
  mov    $0x29,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1060 <putchar@plt>
  nopl   0x0(%rax)
L6:
  pop    %rbx
  lea    0x1(%rdx),%esi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  lea    D5(%rip),%rdi
  pop    %r13
  pop    %r14
  jmp    1070 <printf@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D5
datatype: string

tool: D5: A%i

assistant: ```c
void print_optimal_parens(int *splits, int s_length, int i, int j) {
  if (i == j) {
    printf("A%i", i + 1);
  } else {
    printf("(");
    print_optimal_parens(splits, s_length, i, splits[i * s_length + j]);
    print_optimal_parens(splits, s_length, splits[i * s_length + j] + 1, j);
    printf(")");
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<SHA1_DigestToHex>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L20
L22:
  movl   $0x0,-0xc(%rbp)
  jmp    L0
L36:
  mov    -0x10(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  lea    D0(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  addq   $0x2,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L0:
  cmpl   $0x3,-0xc(%rbp)
  jle    L36
  addl   $0x1,-0x10(%rbp)
L20:
  cmpl   $0x4,-0x10(%rbp)
  jle    L22
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D0
datatype: string

tool: D0: %02X

assistant: ```c
void SHA1_DigestToHex(const unsigned char digest[20], char *output) {
  int i, j;
  char *c = output;
  for (i = 0; i < 20 / 4; i++) {
    for (j = 0; j < 4; j++) {
      sprintf(c, "%02X", digest[i * 4 + j]);
      c += 2;
    }
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<SHA1_DigestToHex>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    0x8(%rsi),%r12
  mov    %rdi,%r14
  lea    0x14(%rdi),%r15
  lea    D9(%rip),%r13
  jmp    L5
L31:
  add    $0x8,%r12
  add    $0x4,%r14
  cmp    %r15,%r14
  je     L39
L5:
  lea    -0x8(%r12),%rbx
  mov    %r14,%rbp
L7:
  movzbl 0x0(%rbp),%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  add    $0x2,%rbx
  add    $0x1,%rbp
  cmp    %r12,%rbx
  jne    L7
  jmp    L31
L39:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: label: D9
type_infered: string

tool: D9: %02X

assistant: ```c
void SHA1_DigestToHex(const unsigned char digest[20], char *output) {
  int i, j;
  char *c = output;
  for (i = 0; i < 20 / 4; i++) {
    for (j = 0; j < 4; j++) {
      sprintf(c, "%02X", digest[i * 4 + j]);
      c += 2;
    }
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<SHA1_DigestToHex>:
  endbr64
  push   %r15
  lea    0x14(%rdi),%r15
  push   %r14
  lea    D9(%rip),%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  lea    0x8(%rsi),%r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
L3:
  lea    -0x8(%r12),%rbx
  mov    %r13,%rbp
L11:
  movzbl 0x0(%rbp),%edx
  mov    %rbx,%rdi
  mov    %r14,%rsi
  add    $0x2,%rbx
  add    $0x1,%rbp
  call   <sprintf@plt>
  cmp    %r12,%rbx
  jne    L11
  add    $0x4,%r13
  lea    0x8(%rbx),%r12
  cmp    %r15,%r13
  jne    L3
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D9
type_infered: string

tool: D9: %02X

assistant: ```c
void SHA1_DigestToHex(const unsigned char digest[20], char *output) {
  int i, j;
  char *c = output;
  for (i = 0; i < 20 / 4; i++) {
    for (j = 0; j < 4; j++) {
      sprintf(c, "%02X", digest[i * 4 + j]);
      c += 2;
    }
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<SHA1_DigestToHex>:
  endbr64
  push   %r15
  lea    0x14(%rdi),%r15
  push   %r14
  lea    D8(%rip),%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  lea    0x8(%rsi),%r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
L5:
  lea    -0x8(%r12),%rbx
  mov    %r13,%rbp
L9:
  movzbl 0x0(%rbp),%edx
  mov    %rbx,%rdi
  mov    %r14,%rsi
  add    $0x2,%rbx
  add    $0x1,%rbp
  call   <sprintf@plt>
  cmp    %r12,%rbx
  jne    L9
  add    $0x4,%r13
  lea    0x8(%rbx),%r12
  cmp    %r15,%r13
  jne    L5
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D8
datatype: string

tool: D8: %02X

assistant: ```c
void SHA1_DigestToHex(const unsigned char digest[20], char *output) {
  int i, j;
  char *c = output;
  for (i = 0; i < 20 / 4; i++) {
    for (j = 0; j < 4; j++) {
      sprintf(c, "%02X", digest[i * 4 + j]);
      c += 2;
    }
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<hDigit2byte>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  sub    $0x30,%eax
  cmp    $0x16,%eax
  ja     L148
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D11(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D11(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x0,%eax
  jmp    L23
  mov    $0x1,%eax
  jmp    L23
  mov    $0x2,%eax
  jmp    L23
  mov    $0x3,%eax
  jmp    L23
  mov    $0x4,%eax
  jmp    L23
  mov    $0x5,%eax
  jmp    L23
  mov    $0x6,%eax
  jmp    L23
  mov    $0x7,%eax
  jmp    L23
  mov    $0x8,%eax
  jmp    L23
  mov    $0x9,%eax
  jmp    L23
  mov    $0xa,%eax
  jmp    L23
  mov    $0xb,%eax
  jmp    L23
  mov    $0xc,%eax
  jmp    L23
  mov    $0xd,%eax
  jmp    L23
  mov    $0xe,%eax
  jmp    L23
  mov    $0xf,%eax
  jmp    L23
L148:
  mov    $0x0,%eax
L23:
  pop    %rbp
  ret
```

assistant: ```c
unsigned char hDigit2byte(int hex) {
  switch (hex) {
  case '0':
    return (0x0);
  case '1':
    return (0x1);
  case '2':
    return (0x2);
  case '3':
    return (0x3);
  case '4':
    return (0x4);
  case '5':
    return (0x5);
  case '6':
    return (0x6);
  case '7':
    return (0x7);
  case '8':
    return (0x8);
  case '9':
    return (0x9);
  case 'A':
    return (0xA);
  case 'B':
    return (0xB);
  case 'C':
    return (0xC);
  case 'D':
    return (0xD);
  case 'E':
    return (0xE);
  case 'F':
    return (0xF);
  default:
    return (0);
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<hDigit2byte>:
  endbr64
  sub    $0x31,%edi
  cmp    $0x15,%edi
  ja     L8
  mov    %edi,%edi
  lea    D6(%rip),%rdx
  movslq (%rdx,%rdi,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x1,%eax
  ret
  mov    $0x2,%eax
  ret
  mov    $0x3,%eax
  ret
  mov    $0x4,%eax
  ret
  mov    $0x5,%eax
  ret
  mov    $0x6,%eax
  ret
  mov    $0x7,%eax
  ret
  mov    $0x8,%eax
  ret
  mov    $0x9,%eax
  ret
  mov    $0xa,%eax
  ret
  mov    $0xb,%eax
  ret
  mov    $0xc,%eax
  ret
  mov    $0xd,%eax
  ret
  mov    $0xe,%eax
  ret
  mov    $0xf,%eax
  ret
L8:
  mov    $0x0,%eax
  ret
```

assistant: ```c
unsigned char hDigit2byte(int hex) {
  switch (hex) {
  case '0':
    return (0x0);
  case '1':
    return (0x1);
  case '2':
    return (0x2);
  case '3':
    return (0x3);
  case '4':
    return (0x4);
  case '5':
    return (0x5);
  case '6':
    return (0x6);
  case '7':
    return (0x7);
  case '8':
    return (0x8);
  case '9':
    return (0x9);
  case 'A':
    return (0xA);
  case 'B':
    return (0xB);
  case 'C':
    return (0xC);
  case 'D':
    return (0xD);
  case 'E':
    return (0xE);
  case 'F':
    return (0xF);
  default:
    return (0);
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<hDigit2byte>:
  endbr64
  sub    $0x31,%edi
  xor    %eax,%eax
  cmp    $0x15,%edi
  ja     L6
  lea    D2(%rip),%rax
  movzbl (%rax,%rdi,1),%eax
L6:
  ret
```

tool_calls: name: parse_data
arguments: tag: D2
data_type: string

tool: D2: 	

assistant: ```c
unsigned char hDigit2byte(int hex) {
  switch (hex) {
  case '0':
    return (0x0);
  case '1':
    return (0x1);
  case '2':
    return (0x2);
  case '3':
    return (0x3);
  case '4':
    return (0x4);
  case '5':
    return (0x5);
  case '6':
    return (0x6);
  case '7':
    return (0x7);
  case '8':
    return (0x8);
  case '9':
    return (0x9);
  case 'A':
    return (0xA);
  case 'B':
    return (0xB);
  case 'C':
    return (0xC);
  case 'D':
    return (0xD);
  case 'E':
    return (0xE);
  case 'F':
    return (0xF);
  default:
    return (0);
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<hDigit2byte>:
  endbr64
  sub    $0x31,%edi
  xor    %eax,%eax
  cmp    $0x15,%edi
  ja     L7
  lea    D9(%rip),%rax
  movzbl (%rax,%rdi,1),%eax
L7:
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D9
type: string

tool: D9: 	

assistant: ```c
unsigned char hDigit2byte(int hex) {
  switch (hex) {
  case '0':
    return (0x0);
  case '1':
    return (0x1);
  case '2':
    return (0x2);
  case '3':
    return (0x3);
  case '4':
    return (0x4);
  case '5':
    return (0x5);
  case '6':
    return (0x6);
  case '7':
    return (0x7);
  case '8':
    return (0x8);
  case '9':
    return (0x9);
  case 'A':
    return (0xA);
  case 'B':
    return (0xB);
  case 'C':
    return (0xC);
  case 'D':
    return (0xD);
  case 'E':
    return (0xE);
  case 'F':
    return (0xF);
  default:
    return (0);
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<stbi_load>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  mov    -0x18(%rbp),%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L10
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <stbi__err@plt>
  mov    $0x0,%eax
  jmp    L0
L10:
  mov    -0x34(%rbp),%edi
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x10(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <stbi_load_from_file@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x8(%rbp),%rax
L0:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D6
type_guessed: string
name: parse_data
arguments: label: D0
type_guessed: string

tool: D6: rb

tool: D0: can't fopen

assistant: ```c
extern unsigned char *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) {
  FILE *f = fopen(filename, "rb");
  unsigned char *result;
  if (!f)
    return ((unsigned char *)(stbi__err("can't fopen") ? NULL : NULL));
  result = stbi_load_from_file(f, x, y, comp, req_comp);
  fclose(f);
  return result;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<stbi_load>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %r8d,%r14d
  lea    D5(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L7
  mov    %r14d,%r8d
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <stbi_load_from_file@plt>
  mov    %rax,%rbp
  mov    %rbx,%rdi
  call   <fclose@plt>
L8:
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L7:
  lea    D19(%rip),%rdi
  call   <stbi__err@plt>
  mov    %rbx,%rbp
  jmp    L8
```

tool_calls: name: parse_data
arguments: tag: D5
type: string
name: parse_data
arguments: tag: D19
type: string

tool: D5: rb

tool: D19: can't fopen

assistant: ```c
extern unsigned char *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) {
  FILE *f = fopen(filename, "rb");
  unsigned char *result;
  if (!f)
    return ((unsigned char *)(stbi__err("can't fopen") ? NULL : NULL));
  result = stbi_load_from_file(f, x, y, comp, req_comp);
  fclose(f);
  return result;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<stbi_load>:
  endbr64
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D0(%rip),%rsi
  push   %rbp
  push   %rbx
  mov    %r8d,%ebx
  call   <fopen@plt>
  test   %rax,%rax
  je     L4
  mov    %rax,%rbp
  mov    %r12,%rsi
  mov    %rax,%rdi
  mov    %ebx,%r8d
  mov    %r14,%rcx
  mov    %r13,%rdx
  call   <stbi_load_from_file@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <fclose@plt>
L12:
  pop    %rbx
  mov    %r12,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L4:
  lea    D13(%rip),%rdi
  xor    %r12d,%r12d
  call   <stbi__err@plt>
  jmp    L12
```

tool_calls: name: disassemble_data
arguments: data_label: D0
type_infered: string
name: disassemble_data
arguments: data_label: D13
type_infered: string

tool: D0: rb

tool: D13: can't fopen

assistant: ```c
extern unsigned char *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) {
  FILE *f = fopen(filename, "rb");
  unsigned char *result;
  if (!f)
    return ((unsigned char *)(stbi__err("can't fopen") ? NULL : NULL));
  result = stbi_load_from_file(f, x, y, comp, req_comp);
  fclose(f);
  return result;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<stbi_load>:
  endbr64
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D12(%rip),%rsi
  push   %rbp
  push   %rbx
  mov    %r8d,%ebx
  call   <fopen@plt>
  test   %rax,%rax
  je     L14
  mov    %rax,%rbp
  mov    %r12,%rsi
  mov    %rax,%rdi
  mov    %ebx,%r8d
  mov    %r14,%rcx
  mov    %r13,%rdx
  call   <stbi_load_from_file@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <fclose@plt>
L12:
  pop    %rbx
  mov    %r12,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L14:
  lea    D17(%rip),%rdi
  xor    %r12d,%r12d
  call   <stbi__err@plt>
  jmp    L12
```

tool_calls: name: retrieve_data
arguments: tag: D12
type_guessed: string
name: retrieve_data
arguments: tag: D17
type_guessed: string

tool: D12: rb

tool: D17: can't fopen

assistant: ```c
extern unsigned char *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) {
  FILE *f = fopen(filename, "rb");
  unsigned char *result;
  if (!f)
    return ((unsigned char *)(stbi__err("can't fopen") ? NULL : NULL));
  result = stbi_load_from_file(f, x, y, comp, req_comp);
  fclose(f);
  return result;
}
```
user: What is the c source code of the assembly code below?

```asm
<is_token_end>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,%eax
  mov    %al,-0x18(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movzbl -0x18(%rbp),%eax
  mov    %al,-0xa(%rbp)
  movb   $0x0,-0x9(%rbp)
  lea    -0xa(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <is_eof_token@plt>
  cmp    $0x1,%eax
  jne    L159
  mov    $0x1,%eax
  jmp    L80
L159:
  cmpl   $0x1,-0x14(%rbp)
  jne    L127
  cmpb   $0x22,-0x18(%rbp)
  sete   %dl
  cmpb   $0xa,-0x18(%rbp)
  sete   %al
  or     %edx,%eax
  test   %al,%al
  je     L122
  mov    $0x1,%eax
  jmp    L80
L122:
  mov    $0x0,%eax
  jmp    L80
L127:
  cmpl   $0x2,-0x14(%rbp)
  jne    L40
  cmpb   $0xa,-0x18(%rbp)
  jne    L91
  mov    $0x1,%eax
  jmp    L80
L91:
  mov    $0x0,%eax
  jmp    L80
L40:
  lea    -0xa(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <is_spec_symbol@plt>
  cmp    $0x1,%eax
  jne    L132
  mov    $0x1,%eax
  jmp    L80
L132:
  cmpb   $0x20,-0x18(%rbp)
  je     L12
  cmpb   $0xa,-0x18(%rbp)
  je     L12
  cmpb   $0x3b,-0x18(%rbp)
  jne    L164
L12:
  mov    $0x1,%eax
  jmp    L80
L164:
  mov    $0x0,%eax
L80:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L166
  call   <__stack_chk_fail@plt>
L166:
  leave
  ret
```

assistant: ```c
int is_token_end(str_com_id, ch)
char ch;
int str_com_id;
{
  char ch1[2];
  ch1[0] = ch;
  ch1[1] = '\0';
  if (is_eof_token(ch1) == 1)
    return (1);
  if (str_com_id == 1) {
    if (ch == '"' | ch == '\n')
      return (1);
    else
      return (0);
  }
  if (str_com_id == 2) {
    if (ch == '\n')
      return (1);
    else
      return (0);
  }
  if (is_spec_symbol(ch1) == 1)
    return (1);
  if (ch == ' ' || ch == '\n' || ch == 59)
    return (1);
  return (0);
}
```
user: Translate the below assembly code into C programming language:

```asm
<is_token_end>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%ebp
  mov    %esi,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %sil,0x6(%rsp)
  movb   $0x0,0x7(%rsp)
  lea    0x6(%rsp),%rdi
  call   <is_eof_token@plt>
  cmp    $0x1,%eax
  je     L63
  cmp    $0x1,%ebp
  je     L52
  cmp    $0x2,%ebp
  jne    L30
  cmp    $0xa,%bl
  sete   %al
  movzbl %al,%eax
  jmp    L63
L52:
  cmp    $0x22,%bl
  sete   %al
  cmp    $0xa,%bl
  sete   %dl
  or     %edx,%eax
  movzbl %al,%eax
L63:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L74
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
L30:
  lea    0x6(%rsp),%rdi
  mov    $0x0,%eax
  call   <is_spec_symbol@plt>
  cmp    $0x1,%eax
  je     L63
  cmp    $0x3b,%bl
  ja     L79
  movabs $0x800000100000400,%rax
  mov    %ebx,%ecx
  shr    %cl,%rax
  and    $0x1,%eax
  jmp    L63
L79:
  mov    $0x0,%eax
  jmp    L63
L74:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int is_token_end(str_com_id, ch)
char ch;
int str_com_id;
{
  char ch1[2];
  ch1[0] = ch;
  ch1[1] = '\0';
  if (is_eof_token(ch1) == 1)
    return (1);
  if (str_com_id == 1) {
    if (ch == '"' | ch == '\n')
      return (1);
    else
      return (0);
  }
  if (str_com_id == 2) {
    if (ch == '\n')
      return (1);
    else
      return (0);
  }
  if (is_spec_symbol(ch1) == 1)
    return (1);
  if (ch == ' ' || ch == '\n' || ch == 59)
    return (1);
  return (0);
}
```
user: What is the c source code of the assembly code below?

```asm
<is_token_end>:
  endbr64
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x6(%rsp),%r12
  mov    %sil,0x6(%rsp)
  mov    %r12,%rdi
  movb   $0x0,0x7(%rsp)
  call   <is_eof_token@plt>
  cmp    $0x1,%eax
  je     L25
  cmp    $0x1,%ebp
  je     L71
  cmp    $0x2,%ebp
  jne    L80
  xor    %eax,%eax
  cmp    $0xa,%bl
  sete   %al
L73:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L39
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L80:
  xor    %eax,%eax
  mov    %r12,%rdi
  call   <is_spec_symbol@plt>
  cmp    $0x1,%eax
  je     L25
  cmp    $0x3b,%bl
  ja     L82
  movabs $0x800000100000400,%rax
  mov    %ebx,%ecx
  shr    %cl,%rax
  and    $0x1,%eax
  jmp    L73
  nopl   0x0(%rax,%rax,1)
L71:
  cmp    $0x22,%bl
  sete   %al
  cmp    $0xa,%bl
  sete   %dl
  or     %edx,%eax
  movzbl %al,%eax
  jmp    L73
  nopl   0x0(%rax,%rax,1)
L25:
  mov    $0x1,%eax
  jmp    L73
  nop
L82:
  xor    %eax,%eax
  jmp    L73
L39:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int is_token_end(str_com_id, ch)
char ch;
int str_com_id;
{
  char ch1[2];
  ch1[0] = ch;
  ch1[1] = '\0';
  if (is_eof_token(ch1) == 1)
    return (1);
  if (str_com_id == 1) {
    if (ch == '"' | ch == '\n')
      return (1);
    else
      return (0);
  }
  if (str_com_id == 2) {
    if (ch == '\n')
      return (1);
    else
      return (0);
  }
  if (is_spec_symbol(ch1) == 1)
    return (1);
  if (ch == ' ' || ch == '\n' || ch == 59)
    return (1);
  return (0);
}
```
user: Translate the below assembly code into C programming language:

```asm
<is_token_end>:
  endbr64
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x6(%rsp),%r12
  mov    %sil,0x6(%rsp)
  mov    %r12,%rdi
  movb   $0x0,0x7(%rsp)
  call   <is_eof_token@plt>
  cmp    $0x1,%eax
  je     L12
  cmp    $0x1,%ebp
  je     L79
  cmp    $0x2,%ebp
  jne    L49
  xor    %eax,%eax
  cmp    $0xa,%bl
  sete   %al
L46:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L43
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L49:
  xor    %eax,%eax
  mov    %r12,%rdi
  call   <is_spec_symbol@plt>
  cmp    $0x1,%eax
  je     L12
  cmp    $0x3b,%bl
  ja     L10
  movabs $0x800000100000400,%rax
  mov    %ebx,%ecx
  shr    %cl,%rax
  and    $0x1,%eax
  jmp    L46
  nopl   0x0(%rax,%rax,1)
L79:
  cmp    $0x22,%bl
  sete   %al
  cmp    $0xa,%bl
  sete   %dl
  or     %edx,%eax
  movzbl %al,%eax
  jmp    L46
  nopl   0x0(%rax,%rax,1)
L12:
  mov    $0x1,%eax
  jmp    L46
  nop
L10:
  xor    %eax,%eax
  jmp    L46
L43:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int is_token_end(str_com_id, ch)
char ch;
int str_com_id;
{
  char ch1[2];
  ch1[0] = ch;
  ch1[1] = '\0';
  if (is_eof_token(ch1) == 1)
    return (1);
  if (str_com_id == 1) {
    if (ch == '"' | ch == '\n')
      return (1);
    else
      return (0);
  }
  if (str_com_id == 2) {
    if (ch == '\n')
      return (1);
    else
      return (0);
  }
  if (is_spec_symbol(ch1) == 1)
    return (1);
  if (ch == ' ' || ch == '\n' || ch == 59)
    return (1);
  return (0);
}
```