user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xcc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xcb8(%rsp)
  xor    %eax,%eax
  movabs $0x4847464544434241,%rax
  movabs $0x4f6e4e4d4c4b4a49,%rdx
  mov    %rax,0x4c0(%rsp)
  mov    %rdx,0x4c8(%rsp)
  movabs $0x5756555453525150,%rax
  mov    %rax,0x4d0(%rsp)
  movl   $0x2a5a5958,0x4d8(%rsp)
  movb   $0x0,0x4dc(%rsp)
  lea    D69(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  lea    D23(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D15(%rip),%rdi
  call   <puts@plt>
  lea    0x4e0(%rsp),%rsi
  lea    D44(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    0x10(%rsp),%rax
  lea    0x4c0(%rsp),%rdx
L10:
  movl   $0x0,(%rax)
  movl   $0x0,0x4(%rax)
  movl   $0x0,0x8(%rax)
  add    $0xc,%rax
  cmp    %rax,%rdx
  jne    L10
  movl   $0x1,0x14(%rsp)
  mov    0x8(%rsp),%r8d
  mov    %r8d,0x10(%rsp)
  movl   $0x1c,0x1c(%rsp)
  movslq %r8d,%rax
  imul   $0xffffffff92492493,%rax,%rax
  shr    $0x20,%rax
  add    %r8d,%eax
  sar    $0x4,%eax
  mov    %r8d,%ecx
  sar    $0x1f,%ecx
  mov    %eax,%edx
  sub    %ecx,%edx
  imul   $0x1c,%edx,%esi
  mov    %r8d,%edx
  sub    %esi,%edx
  mov    %edx,0x28(%rsp)
  sub    %ecx,%eax
  imul   0x20(%rsp),%eax
  mov    $0x1,%ecx
  sub    %eax,%ecx
  mov    %ecx,0x2c(%rsp)
  test   %edx,%edx
  je     L34
  lea    0x1c(%rsp),%rcx
  mov    $0x2,%edi
L46:
  mov    %edi,%r9d
  add    $0x1,%edi
  mov    (%rcx),%eax
  cltd
  idivl  0xc(%rcx)
  mov    %edx,0x18(%rcx)
  imul   0x10(%rcx),%eax
  mov    0x4(%rcx),%esi
  sub    %eax,%esi
  mov    %esi,0x1c(%rcx)
  add    $0xc,%rcx
  test   %edx,%edx
  jne    L46
L44:
  movslq %r9d,%r9
  lea    (%r9,%r9,2),%rax
  mov    0x14(%rsp,%rax,4),%ebx
  mov    %ebx,%edx
  mov    %r8d,%esi
  lea    D64(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  mov    %ebx,%ecx
  imul   %esi,%ecx
  mov    %ebx,%edx
  lea    D61(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movslq %ebx,%rbp
  imul   $0xffffffff92492493,%rbp,%rbp
  shr    $0x20,%rbp
  add    %ebx,%ebp
  sar    $0x4,%ebp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  imul   $0x1c,%ebp,%eax
  sub    %eax,%ebx
  mov    %ebx,%ebp
  mov    $0x0,%ebx
  lea    0x4e0(%rsp),%r12
  jmp    L71
L34:
  mov    $0x1,%r9d
  jmp    L44
L53:
  mov    %edx,%eax
  add    $0x1,%rdx
  cmp    (%rcx,%rdx,1),%sil
  jne    L53
  sub    0xc(%rsp),%eax
  imul   %ebp,%eax
  add    $0xaf0,%eax
  movslq %eax,%rdx
  imul   $0xffffffff92492493,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x1c,%edx,%edx
  sub    %edx,%eax
  cltq
  movzbl 0x4c0(%rsp,%rax,1),%eax
  mov    %al,0x8d0(%rsp,%rbx,1)
  add    $0x1,%rbx
L71:
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jle    L63
  movzbl (%rbx,%r12,1),%esi
  mov    $0x0,%edx
  lea    0x4bf(%rsp),%rcx
  jmp    L53
L63:
  movslq %ebx,%r13
  movb   $0x0,0x8d0(%rsp,%r13,1)
  lea    0x8d0(%rsp),%rsi
  lea    D32(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    0xcb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  mov    $0x0,%eax
  add    $0xcc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L88:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D69
type_guessed: string
name: parse_data
arguments: label: D23
type_guessed: string
name: parse_data
arguments: label: D15
type_guessed: string
name: parse_data
arguments: label: D44
type_guessed: string
name: parse_data
arguments: label: D64
type_guessed: string
name: parse_data
arguments: label: D61
type_guessed: string
name: parse_data
arguments: label: D32
type_guessed: string

tool: D69: Introduce los dos numeros del criptosistema afin: 

tool: D23: %d

tool: D15: Introduce el mensaje a decodificar: 

tool: D44: %s

tool: D64: El inverso de %d modulo 28 es %d


tool: D61: Comprobamos: %d * %d = %d


tool: D32: Mensaje decodificado: 
%s

assistant: ```c
int main(void) {
  int a, b;
  int a_inv;
  int D;
  char clave[] = "ABCDEFGHIJKLMNnOPQRSTUVWXYZ*";
  char mensaje[1000];
  char decodificado[1000];
  int codif;
  int matriz[100][3];
  int i = 2;
  int cociente;
  int j, k;
  printf("Introduce los dos numeros del criptosistema afin: \n");
  scanf("%d", &a);
  scanf("%d", &b);
  printf("Introduce el mensaje a decodificar: \n");
  scanf("%s", mensaje);
  for (j = 0; j < 100; j++) {
    for (k = 0; k < 3; k++) {
      matriz[j][k] = 0;
    }
  }
  matriz[0][1] = 1;
  matriz[1][2] = 1;
  matriz[0][0] = a;
  matriz[1][0] = 28;
  while (1) {
    cociente = (matriz[i - 2][0] / matriz[i - 1][0]);
    matriz[i][0] = (matriz[i - 2][0] % matriz[i - 1][0]);
    matriz[i][1] = (matriz[i - 2][1] - (cociente * matriz[i - 1][1]));
    matriz[i][2] = (matriz[i - 2][2] - (cociente * matriz[i - 1][2]));
    if (matriz[i][0] == 0)
      break;
    i++;
  }
  printf("El inverso de %d modulo 28 es %d\n", a, matriz[i - 1][1]);
  printf("Comprobamos: %d * %d = %d\n", a, matriz[i - 1][1], matriz[i - 1][1] * a);
  a_inv = (matriz[i - 1][1] % 28);
  for (i = 0; i < strlen(mensaje); i++) {
    codif = 0;
    j = 0;
    while (codif == 0) {
      if (mensaje[i] == clave[j]) {
        decodificado[i] = clave[((a_inv * (j - b)) + 2800) % 28];
        codif = 1;
      }
      j++;
    }
  }
  decodificado[i] = '\0';
  printf("Mensaje decodificado: \n%s", decodificado);
  getchar();
  getchar();
}
```