user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r13
  lea    D161(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  movl   $0x0,0xc(%rsp)
  call   <puts@plt>
  lea    D111(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x7(%rsp),%rsi
  lea    D244(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  movzbl 0x7(%rsp),%eax
  cmp    $0x6e,%al
  je     L9
  cmp    $0x79,%al
  je     L105
  lea    D249(%rip),%rdi
  lea    D159(%rip),%r12
  call   <puts@plt>
  xor    %edi,%edi
  call   <exit@plt>
L132:
  lea    D19(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  je     L146
  cmp    $0x1,%eax
  je     L43
  lea    D249(%rip),%rdi
  call   <puts@plt>
  xor    %edi,%edi
  call   <exit@plt>
L83:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L93
  add    $0x128,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L43:
  lea    0x10(%rsp),%r12
  lea    D36(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <searchOnTable@plt>
  mov    $0xa,%edi
  mov    %rax,%r13
  call   <putchar@plt>
  mov    0xc(%rsp),%r8d
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    0x8(%rsp),%ecx
  mov    %r13,%rdx
  call   <reverseSearchOnTable@plt>
  lea    D108(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
L68:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D52(%rip),%rdi
  call   <system@plt>
  jmp    L83
L146:
  lea    0x10(%rsp),%r12
  lea    D36(%rip),%rdi
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <searchOnTable@plt>
  mov    $0xa,%edi
  mov    %rax,%r13
  call   <putchar@plt>
  mov    0xc(%rsp),%r8d
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    0x8(%rsp),%ecx
  mov    %rbp,%rdi
  call   <reverseSearchOnTable@plt>
  lea    D98(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  cmpb   $0x6e,0x7(%rsp)
  jne    L68
  lea    D27(%rip),%rdi
  call   <puts@plt>
  jmp    L68
L105:
  mov    $0x28,%edi
  movl   $0x5,0x8(%rsp)
  call   <malloc@plt>
  mov    0x8(%rsp),%edi
  mov    %rax,%rbp
  test   %edi,%edi
  jle    L16
  xor    %ebx,%ebx
  nopl   0x0(%rax)
L81:
  add    $0x1,%edi
  call   <malloc@plt>
  mov    0x8(%rsp),%edi
  mov    %rax,0x0(%rbp,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%edi
  jg     L81
L16:
  lea    D186(%rip),%rax
  lea    D159(%rip),%r12
  mov    %rax,0x0(%rbp)
  lea    D129(%rip),%rax
  mov    %rax,0x8(%rbp)
  lea    D17(%rip),%rax
  mov    %rax,0x10(%rbp)
  lea    D13(%rip),%rax
  mov    %rax,0x18(%rbp)
  lea    D223(%rip),%rax
  mov    %rax,0x20(%rbp)
  jmp    L132
L9:
  lea    D76(%rip),%rdi
  xor    %eax,%eax
  lea    D159(%rip),%r12
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%eax
  lea    0x0(,%rax,8),%edi
  call   <malloc@plt>
  mov    0x8(%rsp),%edi
  mov    %rax,%rbp
  test   %edi,%edi
  jle    L115
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L72:
  add    $0x1,%edi
  call   <malloc@plt>
  mov    0x8(%rsp),%edi
  mov    %rax,0x0(%rbp,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%edi
  jg     L72
L115:
  lea    D238(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x8(%rsp)
  jle    L54
  xor    %ebx,%ebx
  lea    D157(%rip),%r13
  nopl   (%rax)
L101:
  mov    0x0(%rbp,%rbx,8),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <scanf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L101
L54:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L132
L93:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D161
type: string
name: parse_data
arguments: tag: D111
type: string
name: parse_data
arguments: tag: D244
type: string
name: parse_data
arguments: tag: D249
type: string
name: parse_data
arguments: tag: D159
type: string
name: parse_data
arguments: tag: D19
type: string
name: parse_data
arguments: tag: D36
type: string
name: parse_data
arguments: tag: D70
type: string
name: parse_data
arguments: tag: D108
type: string
name: parse_data
arguments: tag: D52
type: string
name: parse_data
arguments: tag: D98
type: string
name: parse_data
arguments: tag: D27
type: string
name: parse_data
arguments: tag: D186
type: string
name: parse_data
arguments: tag: D129
type: string
name: parse_data
arguments: tag: D17
type: string
name: parse_data
arguments: tag: D13
type: string
name: parse_data
arguments: tag: D223
type: string
name: parse_data
arguments: tag: D76
type: string
name: parse_data
arguments: tag: D238
type: string
name: parse_data
arguments: tag: D157
type: string

tool: D161: ------------- Bifid Cipher/Decipher v1.0 -------------


tool: D111: Do you want to use default table? (y/n): 

tool: D244:  %c

tool: D249: Invalid operation

tool: D159: %i

tool: D19: Do you want to cipher (0) or decipher (1)? : 

tool: D36: Write the sentence: 

tool: D70:  %[^
]s

tool: D108: 

Deciphered sentence: %s


tool: D52: PAUSE

tool: D98: 

Ciphered sentence: %s


tool: D27: 
REMEMBER: Copy your table, otherwise you can't decipher the sentence.

tool: D186: abcde

tool: D129: fghik

tool: D17: lmnop

tool: D13: qrstu

tool: D223: vwxyz

tool: D76: Size of table (ex: 5 for 5x5): 

tool: D238: Write your table:


tool: D157: %s

assistant: ```c
int main(void) {
  char **table;
  char sentence[255];
  char answ;
  struct position *posXY;
  char *de_crypt_sen;
  int i, table_len, method = 0;
  printf("------------- Bifid Cipher/Decipher v1.0 -------------\n\n");
  printf("Do you want to use default table? (y/n): ");
  scanf(" %c", &answ);
  printf("\n");
  if (answ == 'n') {
    printf("Size of table (ex: 5 for 5x5): ");
    scanf("%i", &table_len);
    printf("\n");
    table = malloc(table_len * sizeof(char *));
    for (i = 0; i < table_len; i++)
      table[i] = malloc((table_len + 1) * sizeof(char));
    printf("Write your table:\n\n");
    for (i = 0; i < table_len; i++)
      scanf("%s", table[i]);
    printf("\n");
  } else if (answ == 'y') {
    table_len = 5;
    table = malloc(table_len * sizeof(char *));
    for (i = 0; i < table_len; i++)
      table[i] = malloc((table_len + 1) * sizeof(char));
    table[0] = "abcde";
    table[1] = "fghik";
    table[2] = "lmnop";
    table[3] = "qrstu";
    table[4] = "vwxyz";
  } else {
    printf("Invalid operation\n");
    exit(0);
  }
  printf("Do you want to cipher (0) or decipher (1)? : ");
  scanf("%i", &method);
  printf("\n");
  if (method == 0) {
    printf("Write the sentence: ");
    scanf(" %[^\n]s", sentence);
    printf("\n");
    posXY = searchOnTable(table, sentence, table_len);
    printf("\n");
    de_crypt_sen = reverseSearchOnTable(table, sentence, posXY, table_len, method);
    printf("\n\nCiphered sentence: %s\n", de_crypt_sen);
    if (answ == 'n')
      printf("\nREMEMBER: Copy your table, otherwise you can't decipher the sentence.\n");
    printf("\n");
    system("PAUSE");
  } else if (method == 1) {
    printf("Write the sentence: ");
    scanf(" %[^\n]s", sentence);
    printf("\n");
    posXY = searchOnTable(table, sentence, table_len);
    printf("\n");
    de_crypt_sen = reverseSearchOnTable(table, sentence, posXY, table_len, method);
    printf("\n\nDeciphered sentence: %s\n", de_crypt_sen);
    printf("\n");
    system("PAUSE");
  } else {
    printf("Invalid operation\n");
    exit(0);
  }
  return 0;
}
```