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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    $0xa,%esi
  mov    $0x1,%edi
  call   <nondet@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0xe,-0x4(%rbp)
  jle    L1
  mov    $0x0,%eax
  call   <__poet_fail@plt>
L1:
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int main(void) {
  int x = nondet(1, 10);
  if (x >= 15)
    __poet_fail();
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xa,%esi
  mov    $0x1,%edi
  call   <nondet@plt>
  cmp    $0xe,%eax
  jg     L15
L1:
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
L15:
  mov    $0x0,%eax
  call   <__poet_fail@plt>
  jmp    L1
```

assistant: ```c
int main(void) {
  int x = nondet(1, 10);
  if (x >= 15)
    __poet_fail();
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xa,%esi
  mov    $0x1,%edi
  call   <nondet@plt>
  cmp    $0xe,%eax
  jg     L13
L6:
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
L13:
  xor    %eax,%eax
  call   <__poet_fail@plt>
  jmp    L6
```

assistant: ```c
int main(void) {
  int x = nondet(1, 10);
  if (x >= 15)
    __poet_fail();
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xa,%esi
  mov    $0x1,%edi
  call   <nondet@plt>
  cmp    $0xe,%eax
  jg     L3
L4:
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
L3:
  xor    %eax,%eax
  call   <__poet_fail@plt>
  jmp    L4
```

assistant: ```c
int main(void) {
  int x = nondet(1, 10);
  if (x >= 15)
    __poet_fail();
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<test_memclr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movabs $0x101010101010101,%rax
  mov    %rax,-0x12(%rbp)
  movw   $0x101,-0xa(%rbp)
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x12(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <memclr@plt>
  movzbl -0x12(%rbp),%eax
  test   %al,%al
  je     L46
  mov    $0x1,%eax
  jmp    L39
L46:
  movzbl -0xe(%rbp),%eax
  test   %al,%al
  je     L12
  mov    $0x1,%eax
  jmp    L39
L12:
  movzbl -0xd(%rbp),%eax
  cmp    $0x1,%al
  je     L31
  mov    $0x1,%eax
  jmp    L39
L31:
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
L39:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L32
  call   <__stack_chk_fail@plt>
L32:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D17
type_guessed: string
name: parse_data
arguments: data_label: D11
type_guessed: string

tool: D17: 	memclr

tool: D11: 	passed.


assistant: ```c
int test_memclr(void) {
  char value0[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
  printf("\tmemclr");
  memclr(value0, 5);
  if (value0[0] != 0)
    return 1;
  if (value0[4] != 0)
    return 1;
  if (value0[5] != 1)
    return 1;
  printf("\tpassed.\n");
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<test_memclr>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movabs $0x101010101010101,%rax
  mov    %rax,0xe(%rsp)
  movw   $0x101,0x16(%rsp)
  lea    D4(%rip),%rdi
  call   <printf@plt>
  lea    0xe(%rsp),%rdi
  mov    $0x5,%esi
  call   <memclr@plt>
  mov    $0x1,%edx
  movzbl 0xe(%rsp),%eax
  or     0x12(%rsp),%al
  jne    L2
  cmpb   $0x1,0x13(%rsp)
  je     L20
L2:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  mov    %edx,%eax
  add    $0x28,%rsp
  ret
L20:
  lea    D15(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%edx
  jmp    L2
L13:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D4
datatype: string
name: parse_data
arguments: tag: D15
datatype: string

tool: D4: 	memclr

tool: D15: 	passed.


assistant: ```c
int test_memclr(void) {
  char value0[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
  printf("\tmemclr");
  memclr(value0, 5);
  if (value0[0] != 0)
    return 1;
  if (value0[4] != 0)
    return 1;
  if (value0[5] != 1)
    return 1;
  printf("\tpassed.\n");
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<test_memclr>:
  endbr64
  sub    $0x28,%rsp
  lea    D1(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x101010101010101,%rax
  mov    %rax,0xe(%rsp)
  mov    $0x101,%eax
  mov    %ax,0x16(%rsp)
  call   <printf@plt>
  lea    0xe(%rsp),%rdi
  mov    $0x5,%esi
  call   <memclr@plt>
  movzbl 0xe(%rsp),%eax
  or     0x12(%rsp),%al
  mov    $0x1,%r8d
  jne    L6
  cmpb   $0x1,0x13(%rsp)
  je     L10
L6:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  mov    %r8d,%eax
  add    $0x28,%rsp
  ret
  nopw   0x0(%rax,%rax,1)
L10:
  lea    D3(%rip),%rdi
  call   <printf@plt>
  xor    %r8d,%r8d
  jmp    L6
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D1
type_guessed: string
name: unpack_data
arguments: label: D3
type_guessed: string

tool: D1: 	memclr

tool: D3: 	passed.


assistant: ```c
int test_memclr(void) {
  char value0[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
  printf("\tmemclr");
  memclr(value0, 5);
  if (value0[0] != 0)
    return 1;
  if (value0[4] != 0)
    return 1;
  if (value0[5] != 1)
    return 1;
  printf("\tpassed.\n");
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<test_memclr>:
  endbr64
  sub    $0x28,%rsp
  lea    D13(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x101010101010101,%rax
  mov    %rax,0xe(%rsp)
  mov    $0x101,%eax
  mov    %ax,0x16(%rsp)
  call   <printf@plt>
  lea    0xe(%rsp),%rdi
  mov    $0x5,%esi
  call   <memclr@plt>
  movzbl 0xe(%rsp),%eax
  or     0x12(%rsp),%al
  mov    $0x1,%r8d
  jne    L17
  cmpb   $0x1,0x13(%rsp)
  je     L12
L17:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  mov    %r8d,%eax
  add    $0x28,%rsp
  ret
  nopw   0x0(%rax,%rax,1)
L12:
  lea    D11(%rip),%rdi
  call   <printf@plt>
  xor    %r8d,%r8d
  jmp    L17
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D13
datatype: string
name: retrieve_data
arguments: data_tag: D11
datatype: string

tool: D13: 	memclr

tool: D11: 	passed.


assistant: ```c
int test_memclr(void) {
  char value0[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
  printf("\tmemclr");
  memclr(value0, 5);
  if (value0[0] != 0)
    return 1;
  if (value0[4] != 0)
    return 1;
  if (value0[5] != 1)
    return 1;
  printf("\tpassed.\n");
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<HibernateIntRegister>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    $0x0,%eax
  call   <_HibernateIntNumberGet@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <ASSERT@plt>
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <IntRegister@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <IntEnable@plt>
  nop
  leave
  ret
```

assistant: ```c
void HibernateIntRegister(void (*pfnHandler)(void)) {
  uint32_t ui32Int;
  ui32Int = _HibernateIntNumberGet();
  ASSERT(ui32Int != 0);
  IntRegister(ui32Int, pfnHandler);
  IntEnable(ui32Int);
}
```
user: What is the c source code of the assembly code below?

```asm
<HibernateIntRegister>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    $0x0,%eax
  call   <_HibernateIntNumberGet@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  setne  %dil
  movzbl %dil,%edi
  call   <ASSERT@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <IntRegister@plt>
  mov    %rbx,%rdi
  call   <IntEnable@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void HibernateIntRegister(void (*pfnHandler)(void)) {
  uint32_t ui32Int;
  ui32Int = _HibernateIntNumberGet();
  ASSERT(ui32Int != 0);
  IntRegister(ui32Int, pfnHandler);
  IntEnable(ui32Int);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<HibernateIntRegister>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    %rdi,%r12
  push   %rbp
  sub    $0x8,%rsp
  call   <_HibernateIntNumberGet@plt>
  xor    %edi,%edi
  test   %rax,%rax
  mov    %rax,%rbp
  setne  %dil
  call   <ASSERT@plt>
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <IntRegister@plt>
  add    $0x8,%rsp
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    10a0 <IntEnable@plt>
```

assistant: ```c
void HibernateIntRegister(void (*pfnHandler)(void)) {
  uint32_t ui32Int;
  ui32Int = _HibernateIntNumberGet();
  ASSERT(ui32Int != 0);
  IntRegister(ui32Int, pfnHandler);
  IntEnable(ui32Int);
}
```
user: What is the c source code of the assembly code below?

```asm
<HibernateIntRegister>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    %rdi,%r12
  push   %rbp
  sub    $0x8,%rsp
  call   <_HibernateIntNumberGet@plt>
  xor    %edi,%edi
  test   %rax,%rax
  mov    %rax,%rbp
  setne  %dil
  call   <ASSERT@plt>
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <IntRegister@plt>
  add    $0x8,%rsp
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    10a0 <IntEnable@plt>
```

assistant: ```c
void HibernateIntRegister(void (*pfnHandler)(void)) {
  uint32_t ui32Int;
  ui32Int = _HibernateIntNumberGet();
  ASSERT(ui32Int != 0);
  IntRegister(ui32Int, pfnHandler);
  IntEnable(ui32Int);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<_bnerr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    $0x0,%eax
  call   <ERR_load_crypto_strings@plt>
  mov    $0x0,%eax
  call   <ERR_get_error@plt>
  mov    %eax,%edi
  call   <ERR_reason_error_string@plt>
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <warnx@plt>
  mov    $0x0,%eax
  call   <abort@plt>
  nop
  leave
  ret
```

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

tool: D3: %s: %s

assistant: ```c
void _bnerr(const char *msg) {
  ERR_load_crypto_strings();
  do {
    warnx("%s: %s", msg, ERR_reason_error_string(ERR_get_error()));
    abort();
  } while (0);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<_bnerr>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x0,%eax
  call   <ERR_load_crypto_strings@plt>
  mov    $0x0,%eax
  call   <ERR_get_error@plt>
  mov    %eax,%edi
  call   <ERR_reason_error_string@plt>
  mov    %eax,%edx
  mov    %rbx,%rsi
  lea    D8(%rip),%rdi
  call   <warnx@plt>
  mov    $0x0,%eax
  call   <abort@plt>
  pop    %rbx
  ret
```

tool_calls: name: read_data
arguments: data_label: D8
type: string

tool: D8: %s: %s

assistant: ```c
void _bnerr(const char *msg) {
  ERR_load_crypto_strings();
  do {
    warnx("%s: %s", msg, ERR_reason_error_string(ERR_get_error()));
    abort();
  } while (0);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<_bnerr>:
  endbr64
  push   %rbp
  xor    %eax,%eax
  mov    %rdi,%rbp
  call   <ERR_load_crypto_strings@plt>
  xor    %eax,%eax
  call   <ERR_get_error@plt>
  mov    %eax,%edi
  call   <ERR_reason_error_string@plt>
  mov    %rbp,%rsi
  lea    D9(%rip),%rdi
  mov    %eax,%edx
  call   <warnx@plt>
  xor    %eax,%eax
  pop    %rbp
  jmp    1090 <abort@plt>
```

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

tool: D9: %s: %s

assistant: ```c
void _bnerr(const char *msg) {
  ERR_load_crypto_strings();
  do {
    warnx("%s: %s", msg, ERR_reason_error_string(ERR_get_error()));
    abort();
  } while (0);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<_bnerr>:
  endbr64
  push   %rbp
  xor    %eax,%eax
  mov    %rdi,%rbp
  call   <ERR_load_crypto_strings@plt>
  xor    %eax,%eax
  call   <ERR_get_error@plt>
  mov    %eax,%edi
  call   <ERR_reason_error_string@plt>
  mov    %rbp,%rsi
  lea    D1(%rip),%rdi
  mov    %eax,%edx
  call   <warnx@plt>
  xor    %eax,%eax
  pop    %rbp
  jmp    1090 <abort@plt>
```

tool_calls: name: parse_data
arguments: data_label: D1
type_guessed: string

tool: D1: %s: %s

assistant: ```c
void _bnerr(const char *msg) {
  ERR_load_crypto_strings();
  do {
    warnx("%s: %s", msg, ERR_reason_error_string(ERR_get_error()));
    abort();
  } while (0);
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<uart_puts>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  jmp    L9
L7:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <uart_putchar@plt>
L9:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L7
  nop
  nop
  leave
  ret
```

assistant: ```c
void uart_puts(const char *str) {
  while (*str)
    uart_putchar(*str++);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<uart_puts>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  movzbl (%rdi),%edi
  test   %dil,%dil
  je     L9
L13:
  add    $0x1,%rbx
  movsbl %dil,%edi
  call   <uart_putchar@plt>
  movzbl (%rbx),%edi
  test   %dil,%dil
  jne    L13
L9:
  pop    %rbx
  ret
```

assistant: ```c
void uart_puts(const char *str) {
  while (*str)
    uart_putchar(*str++);
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<uart_puts>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  movsbl (%rdi),%edi
  test   %dil,%dil
  je     L11
L14:
  call   <uart_putchar@plt>
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  test   %dil,%dil
  jne    L14
L11:
  pop    %rbx
  ret
```

assistant: ```c
void uart_puts(const char *str) {
  while (*str)
    uart_putchar(*str++);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<uart_puts>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  movsbl (%rdi),%edi
  test   %dil,%dil
  je     L17
L16:
  call   <uart_putchar@plt>
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  test   %dil,%dil
  jne    L16
L17:
  pop    %rbx
  ret
```

assistant: ```c
void uart_puts(const char *str) {
  while (*str)
    uart_putchar(*str++);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    $0x14,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <f@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int main() {
  int *p = (int *)malloc(5 * sizeof(int));
  f(p, 5);
  free(p);
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbx
  mov    $0x14,%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <f@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  pop    %rbx
  ret
```

assistant: ```c
int main() {
  int *p = (int *)malloc(5 * sizeof(int));
  f(p, 5);
  free(p);
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    $0x14,%edi
  call   <malloc@plt>
  mov    $0x5,%esi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <f@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

assistant: ```c
int main() {
  int *p = (int *)malloc(5 * sizeof(int));
  f(p, 5);
  free(p);
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbp
  mov    $0x14,%edi
  call   <malloc@plt>
  mov    $0x5,%esi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <f@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

assistant: ```c
int main() {
  int *p = (int *)malloc(5 * sizeof(int));
  f(p, 5);
  free(p);
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<voidline>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x210,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  call   <ftell@plt>
  movslq %eax,%rbp
  mov    %rbx,%rsi
  mov    $0x9,%edi
  call   <fputc@plt>
  mov    %rbx,%rdi
  call   <fflush@plt>
  mov    %rsp,%r12
  mov    %rbx,%rdx
  mov    $0x200,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  mov    %rbx,%rdx
  mov    $0x200,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L88
  movzbl (%rsp),%eax
  sub    $0x9,%eax
  cmp    $0x1,%al
  jbe    L64
L88:
  mov    %rbx,%rdi
  call   <fflush@plt>
  lea    -0x2(%rbp),%rsi
  mov    D5(%rip),%rax
  mov    (%rax),%edx
  mov    %rbx,%rdi
  call   <fseek@plt>
  jmp    L72
L64:
  mov    D9(%rip),%rax
  mov    (%rax),%r12d
  mov    %rsp,%rdi
  call   <strlen@plt>
  not    %eax
  movslq %eax,%rsi
  mov    %r12d,%edx
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    %rbx,%rsi
  mov    $0x9,%edi
  call   <fputc@plt>
  jmp    L88
L57:
  mov    D9(%rip),%rax
  mov    (%rax),%edx
  mov    $0xfffffffffffffffe,%rsi
  mov    %rbx,%rdi
  call   <fseek@plt>
L72:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  cmp    $0xa,%al
  je     L41
  mov    %rbx,%rdi
  call   <ftell@plt>
  cmp    $0x1,%eax
  jg     L57
L41:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  sub    $0x9,%eax
  cmp    $0x1,%al
  jbe    L75
L25:
  mov    %rbx,%rdi
  call   <fflush@plt>
  mov    D5(%rip),%rax
  mov    (%rax),%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x210,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L75:
  mov    D9(%rip),%r12
  mov    (%r12),%edx
  mov    $0xffffffffffffffff,%rsi
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    %rsp,%rdi
  mov    %rbx,%rdx
  mov    $0x200,%esi
  call   <fgets@plt>
  mov    (%r12),%edx
  mov    $0xffffffffffffffff,%rsi
  mov    %rbx,%rdi
  call   <fseek@plt>
  mov    %rbx,%rsi
  mov    $0x9,%edi
  call   <fputc@plt>
  jmp    L25
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void voidline(FILE *master) {
  char buff[512], ch;
  unsigned long start;
  start = ftell(master);
  fputc('\t', master);
  fflush(master);
  fgets(buff, 512, master);
  if (fgets(buff, 512, master))
    if (buff[0] == '\t' || buff[0] == '\n') {
      fseek(master, -(strlen(buff) + 1), SEEK_CUR);
      fputc('\t', master);
    }
  fflush(master);
  fseek(master, start - 2, SEEK_SET);
  while (fgetc(master) != '\n') {
    if (ftell(master) < 2)
      break;
    fseek(master, -2, SEEK_CUR);
  }
  ch = fgetc(master);
  if (ch == '\t' || ch == '\n') {
    fseek(master, -1, SEEK_CUR);
    fgets(buff, 512, master);
    fseek(master, -1, SEEK_CUR);
    fputc('\t', master);
  }
  fflush(master);
  fseek(master, start, SEEK_SET);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<voidline>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x210,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  call   <ftell@plt>
  mov    %rbp,%rsi
  mov    $0x9,%edi
  movslq %eax,%r12
  call   <fputc@plt>
  mov    %rbp,%rdi
  call   <fflush@plt>
  mov    %rbp,%rdx
  mov    $0x200,%esi
  mov    %r13,%rdi
  call   <fgets@plt>
  mov    %rbp,%rdx
  mov    $0x200,%esi
  mov    %r13,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L22
  movzbl (%rsp),%eax
  sub    $0x9,%eax
  cmp    $0x1,%al
  jbe    L5
L22:
  mov    %rbp,%rdi
  call   <fflush@plt>
  mov    D23(%rip),%rbx
  lea    -0x2(%r12),%rsi
  mov    %rbp,%rdi
  mov    (%rbx),%edx
  call   <fseek@plt>
  jmp    L64
  nopl   (%rax)
L84:
  mov    %rbp,%rdi
  call   <ftell@plt>
  cmp    $0x1,%eax
  jle    L52
  mov    D4(%rip),%rax
  mov    $0xfffffffffffffffe,%rsi
  mov    %rbp,%rdi
  mov    (%rax),%edx
  call   <fseek@plt>
L64:
  mov    %rbp,%rdi
  call   <fgetc@plt>
  cmp    $0xa,%al
  jne    L84
L52:
  mov    %rbp,%rdi
  call   <fgetc@plt>
  sub    $0x9,%eax
  cmp    $0x1,%al
  jbe    L21
L34:
  mov    %rbp,%rdi
  call   <fflush@plt>
  mov    (%rbx),%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <fseek@plt>
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  add    $0x210,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L21:
  mov    D4(%rip),%r14
  mov    %rbp,%rdi
  mov    $0xffffffffffffffff,%rsi
  mov    (%r14),%edx
  call   <fseek@plt>
  mov    %rbp,%rdx
  mov    %r13,%rdi
  mov    $0x200,%esi
  call   <fgets@plt>
  mov    (%r14),%edx
  mov    %rbp,%rdi
  mov    $0xffffffffffffffff,%rsi
  call   <fseek@plt>
  mov    %rbp,%rsi
  mov    $0x9,%edi
  call   <fputc@plt>
  jmp    L34
  nopl   (%rax)
L5:
  mov    D4(%rip),%rax
  mov    %r13,%rdi
  mov    (%rax),%r14d
  call   <strlen@plt>
  mov    %rbp,%rdi
  not    %eax
  mov    %r14d,%edx
  movslq %eax,%rsi
  call   <fseek@plt>
  mov    %rbp,%rsi
  mov    $0x9,%edi
  call   <fputc@plt>
  jmp    L22
L31:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void voidline(FILE *master) {
  char buff[512], ch;
  unsigned long start;
  start = ftell(master);
  fputc('\t', master);
  fflush(master);
  fgets(buff, 512, master);
  if (fgets(buff, 512, master))
    if (buff[0] == '\t' || buff[0] == '\n') {
      fseek(master, -(strlen(buff) + 1), SEEK_CUR);
      fputc('\t', master);
    }
  fflush(master);
  fseek(master, start - 2, SEEK_SET);
  while (fgetc(master) != '\n') {
    if (ftell(master) < 2)
      break;
    fseek(master, -2, SEEK_CUR);
  }
  ch = fgetc(master);
  if (ch == '\t' || ch == '\n') {
    fseek(master, -1, SEEK_CUR);
    fgets(buff, 512, master);
    fseek(master, -1, SEEK_CUR);
    fputc('\t', master);
  }
  fflush(master);
  fseek(master, start, SEEK_SET);
}
```