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

```asm
<monShell>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  mov    %rdi,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movl   $0x0,0xb0(%rsp)
  lea    D48(%rip),%rdi
  call   <puts@plt>
  lea    0xc0(%rsp),%rdi
  mov    $0x64,%esi
  call   <getcwd@plt>
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <getcwd@plt>
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <getlogin@plt>
  mov    %rax,%rsi
  mov    %rbx,%rdx
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D43(%rip),%r12
  lea    D1(%rip),%r14
  lea    D74(%rip),%r15
  jmp    L76
L66:
  mov    %rsp,%rdi
  mov    %r13,%rsi
  call   <executePipe@plt>
  jmp    L90
L35:
  mov    %rsp,%rdi
  mov    %r13,%rsi
  call   <executeCommandeSequentielle@plt>
  jmp    L90
L22:
  mov    %rsp,%rdi
  mov    %r13,%rsi
  call   <modifEntreeSortie@plt>
L90:
  lea    0xc0(%rsp),%rbx
  mov    $0x64,%esi
  mov    %rbx,%rdi
  call   <getcwd@plt>
  mov    $0x0,%eax
  call   <getlogin@plt>
  mov    %rax,%rsi
  mov    %rbx,%rdx
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L76:
  lea    0x50(%rsp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L74
  lea    0x50(%rsp),%rbp
  mov    %rbp,%rdi
  call   <gets@plt>
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <lireCommande@plt>
  mov    %rbx,%rdi
  call   <rechercheCaractereSpecial@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L106
  mov    %r14,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L66
  lea    D36(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L35
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L22
  lea    D38(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L22
L106:
  mov    (%rsp),%rdi
  call   <testCommandeInterne@plt>
  test   %rax,%rax
  je     L107
  mov    %rsp,%rdi
  mov    %r13,%rsi
  call   <execCommandeInterne@plt>
  jmp    L90
L107:
  mov    %rsp,%rdi
  call   <execCommandeExterne@plt>
  jmp    L90
L74:
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L73
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L73:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D48
data_type: string
name: disassemble_data
arguments: data_tag: D31
data_type: string
name: disassemble_data
arguments: data_tag: D43
data_type: string
name: disassemble_data
arguments: data_tag: D1
data_type: string
name: disassemble_data
arguments: data_tag: D74
data_type: string
name: disassemble_data
arguments: data_tag: D36
data_type: string
name: disassemble_data
arguments: data_tag: D38
data_type: string

tool: D48: Voici mon shell, taper Q pour sortir

tool: D31: %s@[%s]--> 

tool: D43: Q

tool: D1: |

tool: D74: <

tool: D36: ;

tool: D38: >

assistant: ```c
void monShell(char *arge[]) {
  char cmd[100] = "";
  char *com[10];
  char *caractereSpe;
  char prompt[100];
  printf("Voici mon shell, taper Q pour sortir\n");
  getcwd(prompt, 100);
  printf("%s@[%s]--> ", getlogin(), getcwd(NULL, 0));
  while (strcmp(cmd, "Q") != 0) {
    gets(cmd);
    lireCommande(cmd, com);
    caractereSpe = rechercheCaractereSpecial(com);
    if (caractereSpe != NULL && (strcmp(caractereSpe, "|") == 0))
      executePipe(com, arge);
    else if (caractereSpe != NULL && (strcmp(caractereSpe, ";") == 0))
      executeCommandeSequentielle(com, arge);
    else if (caractereSpe != NULL && (strcmp(caractereSpe, "<") == 0 || strcmp(caractereSpe, ">") == 0))
      modifEntreeSortie(com, arge);
    else {
      if (testCommandeInterne(com[0])) {
        execCommandeInterne(com, arge);
      } else {
        execCommandeExterne(com);
      }
    }
    getcwd(prompt, 100);
    printf("%s@[%s]--> ", getlogin(), prompt);
  }
}
```