user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  movl   $0xa,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movl   $0xa,0x14(%rsp)
  lea    D89(%rip),%r14
  lea    D63(%rip),%r13
  lea    D52(%rip),%r12
  lea    D49(%rip),%rbp
  jmp    L187
L14:
  lea    0x30(%rsp),%rbx
  mov    %rbx,%rdi
  call   <motAleatoire@plt>
  mov    %al,0x94(%rsp)
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %eax,0x1c(%rsp)
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    %rax,%r15
  test   %ebx,%ebx
  jle    L196
  lea    -0x1(%rbx),%edx
  lea    0x4(%rax,%rdx,4),%rdx
L193:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L193
  mov    0x14(%rsp),%eax
  mov    %eax,0x20(%rsp)
  test   %eax,%eax
  jle    L202
  movl   $0x0,0x18(%rsp)
  lea    0x30(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L52
L198:
  mov    0x8(%rsp),%rax
  movsbl (%rbx,%rax,1),%edi
  call   <putchar@plt>
L203:
  add    $0x1,%rbx
  cmp    (%rsp),%rbx
  je     L148
L239:
  cmpl   $0x1,(%r15,%rbx,4)
  je     L198
  mov    $0x3d,%edi
  call   <putchar@plt>
  jmp    L203
L148:
  mov    0x20(%rsp),%esi
  lea    D30(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L151:
  mov    $0x0,%eax
  call   <getchar@plt>
  movsbl %al,%edi
  call   <maj@plt>
  mov    %eax,%ebx
  cmp    $0xa,%al
  je     L151
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x18(%rsp),%eax
  mov    %eax,0x2c(%rsp)
  mov    0x20(%rsp),%eax
  mov    %eax,0x30(%rsp)
  lea    0x28(%rsp),%rcx
  movsbl %bl,%edi
  mov    %r15,%rdx
  mov    0x8(%rsp),%rsi
  call   <verification@plt>
  mov    0x2c(%rsp),%eax
  mov    %eax,%ecx
  mov    %eax,0x18(%rsp)
  mov    0x30(%rsp),%eax
  mov    %eax,0x20(%rsp)
  cmp    %ecx,0x1c(%rsp)
  jle    L113
  test   %eax,%eax
  jle    L113
L52:
  lea    D108(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%eax
  mov    %rax,(%rsp)
  mov    $0x0,%ebx
  jmp    L239
L200:
  lea    0x30(%rsp),%rsi
  lea    D1(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%eax
  mov    %eax,0x20(%rsp)
  jmp    L103
L84:
  cmpl   $0x3,0x24(%rsp)
  je     L51
L187:
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D44(%rip),%rdi
  call   <puts@plt>
  mov    0x24(%rsp),%eax
  lea    -0x1(%rax),%edx
  cmp    $0x2,%edx
  ja     L187
  cmp    $0x1,%eax
  je     L14
L103:
  cmpl   $0x2,0x24(%rsp)
  jne    L84
  lea    D91(%rip),%r15
  lea    0x20(%rsp),%rbx
L45:
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x20(%rsp),%eax
  mov    %eax,0x14(%rsp)
  test   %eax,%eax
  jle    L45
  jmp    L84
L51:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L125
  mov    $0x0,%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L196:
  mov    0x14(%rsp),%eax
  mov    %eax,0x20(%rsp)
  movl   $0x0,0x18(%rsp)
L113:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  je     L200
L46:
  cmpl   $0x0,0x20(%rsp)
  jne    L103
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  je     L103
  lea    0x30(%rsp),%rsi
  lea    D78(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%eax
  mov    %eax,0x20(%rsp)
  jmp    L103
L202:
  movl   $0x0,0x18(%rsp)
  jmp    L46
L125:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D89
data_type: string
name: extract_symbolic_data
arguments: label: D63
data_type: string
name: extract_symbolic_data
arguments: label: D52
data_type: string
name: extract_symbolic_data
arguments: label: D49
data_type: string
name: extract_symbolic_data
arguments: label: D30
data_type: string
name: extract_symbolic_data
arguments: label: D47
data_type: string
name: extract_symbolic_data
arguments: label: D108
data_type: string
name: extract_symbolic_data
arguments: label: D1
data_type: string
name: extract_symbolic_data
arguments: label: D44
data_type: string
name: extract_symbolic_data
arguments: label: D91
data_type: string
name: extract_symbolic_data
arguments: label: D78
data_type: string

tool: D89: 

              ----------PENDU----------



tool: D63: 		1 : Jouer
		2 : Nombre de chance
		3 : Quitter

tool: D52: 
		? 

tool: D49: %ld

tool: D30: 
Chance(s) : %ld

tool: D47: 
Lettre : 

tool: D108: Mot secret : 

tool: D1: 
Vous avez GAGNE :D !!!!!
Le mot etait bien : %s



tool: D44: 


tool: D91: 
Nombre de chance (defaut : 10 ) ?  

tool: D78: 
Vous avez PERDU  :(
Le mot etait : %s



assistant: ```c
int main(int argc, char *argv[]) {
  int chance = 10, chan = 10, menu, *lettreTrouvee = NULL, l, i, a, donnees[2] = {0};
  char mot[100], caract;
  do {
    do {
      printf("\n\n              ----------PENDU----------\n\n\n");
      printf("\t\t1 : Jouer\n\t\t2 : Nombre de chance\n\t\t3 : Quitter\n");
      printf("\n\t\t? ");
      scanf("%ld", &menu);
      printf("\n\n");
    } while (menu < 1 || menu > 3);
    if (menu == 1) {
      a = 0;
      mot[100] = motAleatoire(mot);
      l = strlen(mot);
      lettreTrouvee = malloc(l * sizeof(int));
      for (i = 0; i < l; i++) {
        lettreTrouvee[i] = 0;
      }
      chance = chan;
      while (a < l && chance > 0) {
        printf("Mot secret : ");
        for (i = 0; i < l; i++) {
          if (lettreTrouvee[i] == 1)
            printf("%c", mot[i]);
          else
            printf("=");
        }
        printf("\nChance(s) : %ld", chance);
        printf("\nLettre : ");
        do {
          caract = getchar();
          caract = maj(caract);
        } while (caract == '\n');
        printf("\n");
        donnees[1] = a;
        donnees[2] = chance;
        verification(caract, mot, lettreTrouvee, donnees);
        a = donnees[1];
        chance = donnees[2];
      }
      if (a == l) {
        printf("\nVous avez GAGNE :D !!!!!\nLe mot etait bien : %s\n\n", mot);
        chance = chan;
      }
      if (chance == 0 && a != l) {
        printf("\nVous avez PERDU  :(\nLe mot etait : %s\n\n", mot);
        chance = chan;
      }
    }
    if (menu == 2) {
      do {
        printf("\nNombre de chance (defaut : 10 ) ?  ");
        scanf("%ld", &chance);
      } while (chance <= 0);
      chan = chance;
    }
  } while (menu != 3);
  return 0;
}
```