ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<scanbinfile>:
  endbr64
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  call   <ftell@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <rewind@plt>
  mov    %r13,%rdi
  mov    $0xfa,%edx
  mov    %r14,%rsi
  call   <strncpy@plt>
  mov    %r13,%rdi
  movb   $0x0,0xfa(%rsp)
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L1
  cltq
  lea    -0x2(%r13,%rax,1),%rax
  cmpb   $0x25,(%rax)
  je     L48
L1:
  lea    D19(%rip),%rbx
  mov    %r13,%rdx
  mov    %rbp,%rdi
  movb   $0x0,D19(%rip)
  mov    %rbx,%rsi
  call   <read_acqufile_bin@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    %eax,%r13d
  mov    D25(%rip),%rax
  mov    (%rax),%edx
  call   <fseek@plt>
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovne %rbx,%rax
  mov    0x108(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L44
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L48:
  cmpb   $0x73,0x1(%rax)
  jne    L1
  movb   $0x0,(%rax)
  jmp    L1
L44:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *scanbinfile(FILE *file, char *pattern1) {
  static char resultbuf[250 + 1];
  char *p, pattern[250 + 1], buf[250 + 1];
  int len, ok;
  long pos = ftell(file);
  rewind(file);
  strncpy(pattern, pattern1, 250);
  pattern[250] = '\0';
  len = strlen(pattern);
  if (len >= 2) {
    p = pattern + len - 2;
    if (p[0] == '%' && p[1] == 's')
      *p = '\0';
  }
  resultbuf[0] = '\0';
  ok = read_acqufile_bin(file, resultbuf, pattern);
  fseek(file, pos, SEEK_SET);
  if (ok)
    return resultbuf;
  return NULL;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L7
L1:
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <fahrToC@plt>
  movq   %xmm0,%rax
  mov    -0x4(%rbp),%edx
  movq   %rax,%xmm0
  mov    %edx,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x14,-0x4(%rbp)
L7:
  cmpl   $0x96,-0x4(%rbp)
  jle    L1
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D10
data_type: string
name: retrieve_data
arguments: label: D2
data_type: string

tool: D10: Fahr	Celcius

tool: D2: %3d	%6.1f


assistant: ```c
int main() {
  int fahr;
  printf("Fahr\tCelcius\n");
  for (fahr = 0; fahr <= 150; fahr += 20)
    printf("%3d\t%6.1f\n", fahr, fahrToC(fahr));
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D2(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%ebx
  lea    D17(%rip),%rbp
L0:
  mov    %ebx,%edi
  call   <fahrToC@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x14,%ebx
  cmp    $0xa0,%ebx
  jne    L0
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D2
type_guessed: string
name: read_data
arguments: tag: D17
type_guessed: string

tool: D2: Fahr	Celcius

tool: D17: %3d	%6.1f


assistant: ```c
int main() {
  int fahr;
  printf("Fahr\tCelcius\n");
  for (fahr = 0; fahr <= 150; fahr += 20)
    printf("%3d\t%6.1f\n", fahr, fahrToC(fahr));
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D18(%rip),%rdi
  lea    D13(%rip),%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x8,%rsp
  call   <puts@plt>
  nop
L3:
  mov    %ebx,%edi
  call   <fahrToC@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x14,%ebx
  cmp    $0xa0,%ebx
  jne    L3
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D18
type_infered: string
name: extract_symbolic_data
arguments: data_label: D13
type_infered: string

tool: D18: Fahr	Celcius

tool: D13: %3d	%6.1f


assistant: ```c
int main() {
  int fahr;
  printf("Fahr\tCelcius\n");
  for (fahr = 0; fahr <= 150; fahr += 20)
    printf("%3d\t%6.1f\n", fahr, fahrToC(fahr));
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D7(%rip),%rdi
  lea    D1(%rip),%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x8,%rsp
  call   <puts@plt>
  nop
L0:
  mov    %ebx,%edi
  call   <fahrToC@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x14,%ebx
  cmp    $0xa0,%ebx
  jne    L0
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D7
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D1
type_infered: string

tool: D7: Fahr	Celcius

tool: D1: %3d	%6.1f


assistant: ```c
int main() {
  int fahr;
  printf("Fahr\tCelcius\n");
  for (fahr = 0; fahr <= 150; fahr += 20)
    printf("%3d\t%6.1f\n", fahr, fahrToC(fahr));
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<outcome_print>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %edx,-0x14(%rbp)
  mov    %rcx,-0x20(%rbp)
  mov    %r8,-0x28(%rbp)
  mov    -0x10(%rbp),%rcx
  mov    -0x14(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    D14(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  lea    D17(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  lea    D23(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D14
datatype: string
name: disassemble_data
arguments: data_label: D17
datatype: string
name: disassemble_data
arguments: data_label: D23
datatype: string

tool: D14: [%d]: %s outcome


tool: D17: %s successful:	%lu


tool: D23: %s failed:	%lu


assistant: ```c
void outcome_print(FILE *out, char *variable_name, int cpu, long unsigned *n_success, long unsigned *n_fail) {
  fprintf(out, "[%d]: %s outcome\n", cpu, variable_name);
  fprintf(out, "%s successful:\t%lu\n", variable_name, n_success[cpu]);
  fprintf(out, "%s failed:\t%lu\n", variable_name, n_fail[cpu]);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<outcome_print>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %edx,%ebx
  mov    %rcx,%r14
  mov    %r8,%r13
  mov    %rsi,%rcx
  lea    D5(%rip),%rsi
  mov    $0x0,%eax
  call   <fprintf@plt>
  movslq %ebx,%rbx
  mov    (%r14,%rbx,8),%rcx
  mov    %r12,%rdx
  lea    D25(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    0x0(%r13,%rbx,8),%rcx
  mov    %r12,%rdx
  lea    D20(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D5
data_type: string
name: disassemble_data
arguments: tag: D25
data_type: string
name: disassemble_data
arguments: tag: D20
data_type: string

tool: D5: [%d]: %s outcome


tool: D25: %s successful:	%lu


tool: D20: %s failed:	%lu


assistant: ```c
void outcome_print(FILE *out, char *variable_name, int cpu, long unsigned *n_success, long unsigned *n_fail) {
  fprintf(out, "[%d]: %s outcome\n", cpu, variable_name);
  fprintf(out, "%s successful:\t%lu\n", variable_name, n_success[cpu]);
  fprintf(out, "%s failed:\t%lu\n", variable_name, n_fail[cpu]);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<outcome_print>:
  endbr64
  push   %r14
  xor    %eax,%eax
  mov    %rcx,%r14
  mov    %rsi,%rcx
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D11(%rip),%rsi
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  movslq %edx,%rbx
  mov    %ebx,%edx
  call   <fprintf@plt>
  mov    (%r14,%rbx,8),%rcx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D26(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    0x0(%r13,%rbx,8),%rcx
  mov    %r12,%rdx
  pop    %rbx
  mov    %rbp,%rdi
  lea    D4(%rip),%rsi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1050 <fprintf@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D11
type: string
name: parse_data
arguments: data_tag: D26
type: string
name: parse_data
arguments: data_tag: D4
type: string

tool: D11: [%d]: %s outcome


tool: D26: %s successful:	%lu


tool: D4: %s failed:	%lu


assistant: ```c
void outcome_print(FILE *out, char *variable_name, int cpu, long unsigned *n_success, long unsigned *n_fail) {
  fprintf(out, "[%d]: %s outcome\n", cpu, variable_name);
  fprintf(out, "%s successful:\t%lu\n", variable_name, n_success[cpu]);
  fprintf(out, "%s failed:\t%lu\n", variable_name, n_fail[cpu]);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<outcome_print>:
  endbr64
  push   %r14
  xor    %eax,%eax
  mov    %rcx,%r14
  mov    %rsi,%rcx
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D16(%rip),%rsi
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  movslq %edx,%rbx
  mov    %ebx,%edx
  call   <fprintf@plt>
  mov    (%r14,%rbx,8),%rcx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D13(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    0x0(%r13,%rbx,8),%rcx
  mov    %r12,%rdx
  pop    %rbx
  mov    %rbp,%rdi
  lea    D5(%rip),%rsi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1050 <fprintf@plt>
```

tool_calls: name: read_data
arguments: tag: D16
type_infered: string
name: read_data
arguments: tag: D13
type_infered: string
name: read_data
arguments: tag: D5
type_infered: string

tool: D16: [%d]: %s outcome


tool: D13: %s successful:	%lu


tool: D5: %s failed:	%lu


assistant: ```c
void outcome_print(FILE *out, char *variable_name, int cpu, long unsigned *n_success, long unsigned *n_fail) {
  fprintf(out, "[%d]: %s outcome\n", cpu, variable_name);
  fprintf(out, "%s successful:\t%lu\n", variable_name, n_success[cpu]);
  fprintf(out, "%s failed:\t%lu\n", variable_name, n_fail[cpu]);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<runtime_exception>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x2e0,%rsp
  mov    %rdi,-0x2d8(%rbp)
  mov    %rsi,-0xa8(%rbp)
  mov    %rdx,-0xa0(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L3
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L3:
  mov    %fs:0x28,%rax
  mov    %rax,-0xb8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x2c0(%rbp)
  movq   $0x0,-0x2b8(%rbp)
  lea    -0x2b0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x3e,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  mov    -0x2d8(%rbp),%rdx
  mov    -0x2c4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0x2c4(%rbp),%ecx
  mov    -0x2d8(%rbp),%rdx
  lea    -0x2c0(%rbp),%rax
  mov    $0x200,%esi
  mov    %rax,%rdi
  call   <vsnprintf@plt>
  mov    -0x2c4(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  lea    -0x2c0(%rbp),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  nop
  mov    -0xb8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D3
type: string

tool: D3: runtime exception: %s


assistant: ```c
void runtime_exception(const char *format, ...) {
  char error[512] = {0};
  va_list arguments;
  va_start(arguments, format);
  vsnprintf(error, sizeof(error), format, arguments);
  va_end(arguments);
  printf("runtime exception: %s\n", error);
  exit(1);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<runtime_exception>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x210,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  movq   $0x0,0x8(%rsp)
  lea    0x10(%rsp),%rdi
  mov    $0x3e,%ecx
  rep stos %rax,%es:(%rdi)
  mov    %rbx,%rsi
  mov    $0x0,%ebp
  mov    %ebp,%edi
  call   <va_start@plt>
  mov    %rsp,%r12
  mov    %ebp,%ecx
  mov    %rbx,%rdx
  mov    $0x200,%esi
  mov    %r12,%rdi
  call   <vsnprintf@plt>
  mov    %ebp,%edi
  call   <va_end@plt>
  mov    %r12,%rsi
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x210,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D6
type_infered: string

tool: D6: runtime exception: %s


assistant: ```c
void runtime_exception(const char *format, ...) {
  char error[512] = {0};
  va_list arguments;
  va_start(arguments, format);
  vsnprintf(error, sizeof(error), format, arguments);
  va_end(arguments);
  printf("runtime exception: %s\n", error);
  exit(1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<runtime_exception>:
  endbr64
  push   %r13
  mov    $0x3e,%ecx
  pxor   %xmm0,%xmm0
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  xor    %ebp,%ebp
  mov    %r12,%rsi
  sub    $0x210,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdi
  mov    %rsp,%r13
  movaps %xmm0,(%rsp)
  rep stos %rax,%es:(%rdi)
  mov    %ebp,%edi
  call   <va_start@plt>
  mov    %ebp,%ecx
  mov    %r12,%rdx
  mov    $0x200,%esi
  mov    %r13,%rdi
  call   <vsnprintf@plt>
  mov    %ebp,%edi
  call   <va_end@plt>
  lea    D6(%rip),%rdi
  mov    %r13,%rsi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x210,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D6
type_infered: string

tool: D6: runtime exception: %s


assistant: ```c
void runtime_exception(const char *format, ...) {
  char error[512] = {0};
  va_list arguments;
  va_start(arguments, format);
  vsnprintf(error, sizeof(error), format, arguments);
  va_end(arguments);
  printf("runtime exception: %s\n", error);
  exit(1);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<runtime_exception>:
  endbr64
  push   %r13
  mov    $0x3e,%ecx
  pxor   %xmm0,%xmm0
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  xor    %ebp,%ebp
  mov    %r12,%rsi
  sub    $0x210,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdi
  mov    %rsp,%r13
  movaps %xmm0,(%rsp)
  rep stos %rax,%es:(%rdi)
  mov    %ebp,%edi
  call   <va_start@plt>
  mov    %ebp,%ecx
  mov    %r12,%rdx
  mov    $0x200,%esi
  mov    %r13,%rdi
  call   <vsnprintf@plt>
  mov    %ebp,%edi
  call   <va_end@plt>
  lea    D6(%rip),%rdi
  mov    %r13,%rsi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x210,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D6
data_type: string

tool: D6: runtime exception: %s


assistant: ```c
void runtime_exception(const char *format, ...) {
  char error[512] = {0};
  va_list arguments;
  va_start(arguments, format);
  vsnprintf(error, sizeof(error), format, arguments);
  va_end(arguments);
  printf("runtime exception: %s\n", error);
  exit(1);
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<randomByte>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movzbl D152(%rip),%eax
  test   %al,%al
  jne    L58
  movb   $0x0,D264(%rip)
  movb   $0x0,D95(%rip)
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <sqlite3OsRandomSeed@plt>
  movl   $0x0,-0x114(%rbp)
  jmp    L27
L43:
  mov    -0x114(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x114(%rbp),%eax
  cltq
  lea    D209(%rip),%rdx
  mov    %cl,(%rax,%rdx,1)
  addl   $0x1,-0x114(%rbp)
L27:
  cmpl   $0xff,-0x114(%rbp)
  jle    L43
  movl   $0x0,-0x114(%rbp)
  jmp    L42
L10:
  movzbl D264(%rip),%ecx
  mov    -0x114(%rbp),%eax
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%edx
  mov    -0x114(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  add    %edx,%eax
  add    %ecx,%eax
  mov    %al,D151(%rip)
  movzbl D151(%rip),%eax
  movzbl %al,%eax
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  mov    %al,-0x115(%rbp)
  movzbl D151(%rip),%eax
  movzbl %al,%ecx
  mov    -0x114(%rbp),%eax
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%edx
  movslq %ecx,%rax
  lea    D209(%rip),%rcx
  mov    %dl,(%rax,%rcx,1)
  mov    -0x114(%rbp),%eax
  cltq
  lea    D209(%rip),%rcx
  movzbl -0x115(%rbp),%edx
  mov    %dl,(%rax,%rcx,1)
  addl   $0x1,-0x114(%rbp)
L42:
  cmpl   $0xff,-0x114(%rbp)
  jle    L10
  movb   $0x1,D152(%rip)
L58:
  movzbl D95(%rip),%eax
  add    $0x1,%eax
  mov    %al,D151(%rip)
  movzbl D151(%rip),%eax
  movzbl %al,%eax
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  mov    %al,-0x115(%rbp)
  movzbl D151(%rip),%edx
  movzbl -0x115(%rbp),%eax
  add    %edx,%eax
  mov    %al,D151(%rip)
  movzbl D151(%rip),%eax
  movzbl %al,%eax
  movzbl D151(%rip),%edx
  movzbl %dl,%ecx
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%edx
  movslq %ecx,%rax
  lea    D209(%rip),%rcx
  mov    %dl,(%rax,%rcx,1)
  movzbl D151(%rip),%eax
  movzbl %al,%eax
  cltq
  lea    D209(%rip),%rcx
  movzbl -0x115(%rbp),%edx
  mov    %dl,(%rax,%rcx,1)
  movzbl D151(%rip),%eax
  movzbl %al,%eax
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  add    %al,-0x115(%rbp)
  movzbl -0x115(%rbp),%eax
  cltq
  lea    D209(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  movzbl %al,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

assistant: ```c
int randomByte() {
  unsigned char t;
  static struct {
    unsigned char isInit;
    unsigned char i, j;
    unsigned char s[256];
  } prng;
  if (!prng.isInit) {
    int i;
    char k[256];
    prng.j = 0;
    prng.i = 0;
    sqlite3OsRandomSeed(k);
    for (i = 0; i < 256; i++) {
      prng.s[i] = i;
    }
    for (i = 0; i < 256; i++) {
      prng.j += prng.s[i] + k[i];
      t = prng.s[prng.j];
      prng.s[prng.j] = prng.s[i];
      prng.s[i] = t;
    }
    prng.isInit = 1;
  }
  prng.i++;
  t = prng.s[prng.i];
  prng.j += t;
  prng.s[prng.i] = prng.s[prng.j];
  prng.s[prng.j] = t;
  t += prng.s[prng.i];
  return prng.s[t];
}
```
user: What is the c source code of the assembly code below?

```asm
<randomByte>:
  endbr64
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  cmpb   $0x0,D60(%rip)
  je     L12
L49:
  lea    D60(%rip),%rcx
  movzbl D96(%rip),%eax
  add    $0x1,%eax
  mov    %al,D42(%rip)
  movzbl %al,%eax
  movzbl 0x3(%rcx,%rax,1),%edx
  mov    %edx,%esi
  add    D42(%rip),%sil
  mov    %sil,D43(%rip)
  movzbl %sil,%esi
  movzbl 0x3(%rcx,%rsi,1),%edi
  mov    %dil,0x3(%rcx,%rax,1)
  mov    %dl,0x3(%rcx,%rsi,1)
  add    0x3(%rcx,%rax,1),%dl
  movzbl %dl,%edx
  movzbl 0x3(%rcx,%rdx,1),%eax
  mov    0x108(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L5
  add    $0x118,%rsp
  ret
L12:
  movb   $0x0,D43(%rip)
  movb   $0x0,D42(%rip)
  mov    %rsp,%rdi
  call   <sqlite3OsRandomSeed@plt>
  mov    $0x0,%eax
  lea    D43(%rip),%rdx
L27:
  mov    %al,(%rax,%rdx,1)
  add    $0x1,%rax
  cmp    $0x100,%rax
  jne    L27
  movzbl D43(%rip),%edx
  lea    D43(%rip),%rax
  mov    %rsp,%rsi
  lea    0x100(%rax),%r11
  lea    -0x3(%rax),%r9
L20:
  movzbl (%rax),%ecx
  mov    %ecx,%edi
  add    (%rsi),%dil
  add    %edi,%edx
  movzbl %dl,%r10d
  movzbl %dl,%edi
  movzbl 0x3(%r9,%rdi,1),%r8d
  mov    %cl,0x3(%r9,%rdi,1)
  mov    %r8b,(%rax)
  add    $0x1,%rax
  add    $0x1,%rsi
  cmp    %r11,%rax
  jne    L20
  mov    %dl,D35(%rip)
  movslq %r10d,%r10
  lea    D60(%rip),%rax
  mov    %cl,0x3(%rax,%r10,1)
  mov    %r8b,D35(%rip)
  movb   $0x1,D60(%rip)
  jmp    L49
L5:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int randomByte() {
  unsigned char t;
  static struct {
    unsigned char isInit;
    unsigned char i, j;
    unsigned char s[256];
  } prng;
  if (!prng.isInit) {
    int i;
    char k[256];
    prng.j = 0;
    prng.i = 0;
    sqlite3OsRandomSeed(k);
    for (i = 0; i < 256; i++) {
      prng.s[i] = i;
    }
    for (i = 0; i < 256; i++) {
      prng.j += prng.s[i] + k[i];
      t = prng.s[prng.j];
      prng.s[prng.j] = prng.s[i];
      prng.s[i] = t;
    }
    prng.isInit = 1;
  }
  prng.i++;
  t = prng.s[prng.i];
  prng.j += t;
  prng.s[prng.i] = prng.s[prng.j];
  prng.s[prng.j] = t;
  t += prng.s[prng.i];
  return prng.s[t];
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<randomByte>:
  endbr64
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  cmpb   $0x0,D70(%rip)
  je     L22
  movzbl D104(%rip),%edx
  lea    D70(%rip),%r8
L23:
  movzbl D20(%rip),%eax
  add    $0x1,%eax
  mov    %al,D85(%rip)
  movzbl %al,%eax
  movzbl 0x3(%r8,%rax,1),%ecx
  add    %ecx,%edx
  mov    %dl,D85(%rip)
  movzbl %dl,%edx
  movzbl 0x3(%r8,%rdx,1),%esi
  mov    %sil,0x3(%r8,%rax,1)
  mov    %cl,0x3(%r8,%rdx,1)
  add    0x3(%r8,%rax,1),%cl
  movzbl %cl,%ecx
  movzbl 0x3(%r8,%rcx,1),%eax
  mov    0x108(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L26
  add    $0x110,%rsp
  pop    %rbx
  ret
L22:
  mov    %rsp,%rbx
  xor    %eax,%eax
  mov    %rbx,%rdi
  mov    %ax,D85(%rip)
  call   <sqlite3OsRandomSeed@plt>
  xor    %eax,%eax
  lea    D85(%rip),%rdx
  nopl   (%rax)
L46:
  mov    %al,(%rax,%rdx,1)
  add    $0x1,%rax
  cmp    $0x100,%rax
  jne    L46
  lea    D85(%rip),%rax
  movzbl D85(%rip),%edx
  mov    %rbx,%rcx
  lea    0x100(%rax),%r10
  lea    -0x3(%rax),%r8
  nopl   0x0(%rax,%rax,1)
L18:
  movzbl (%rax),%edi
  movzbl (%rcx),%esi
  add    $0x1,%rax
  add    $0x1,%rcx
  add    %edi,%esi
  add    %esi,%edx
  movzbl %dl,%esi
  movzbl 0x3(%r8,%rsi,1),%r9d
  mov    %dil,0x3(%r8,%rsi,1)
  mov    %r9b,-0x1(%rax)
  cmp    %rax,%r10
  jne    L18
  mov    %dil,0x3(%r8,%rsi,1)
  movb   $0x1,D70(%rip)
  mov    %r9b,D56(%rip)
  jmp    L23
L26:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int randomByte() {
  unsigned char t;
  static struct {
    unsigned char isInit;
    unsigned char i, j;
    unsigned char s[256];
  } prng;
  if (!prng.isInit) {
    int i;
    char k[256];
    prng.j = 0;
    prng.i = 0;
    sqlite3OsRandomSeed(k);
    for (i = 0; i < 256; i++) {
      prng.s[i] = i;
    }
    for (i = 0; i < 256; i++) {
      prng.j += prng.s[i] + k[i];
      t = prng.s[prng.j];
      prng.s[prng.j] = prng.s[i];
      prng.s[i] = t;
    }
    prng.isInit = 1;
  }
  prng.i++;
  t = prng.s[prng.i];
  prng.j += t;
  prng.s[prng.i] = prng.s[prng.j];
  prng.s[prng.j] = t;
  t += prng.s[prng.i];
  return prng.s[t];
}
```