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

```asm
<lancement_service>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x330,%rsp
  mov    %edi,-0x324(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x318(%rbp)
  movq   $0x0,-0x310(%rbp)
  movq   $0x0,-0x308(%rbp)
  movq   $0x0,-0x300(%rbp)
  movq   $0x0,-0x2f8(%rbp)
  movq   $0x0,-0x2f0(%rbp)
  movq   $0x0,-0x2e8(%rbp)
  movq   $0x0,-0x2e0(%rbp)
  movq   $0x0,-0x2d8(%rbp)
  movq   $0x0,-0x2d0(%rbp)
  movq   $0x0,-0x2c8(%rbp)
  movq   $0x0,-0x2c0(%rbp)
  movq   $0x0,-0x2b8(%rbp)
  movq   $0x0,-0x2b0(%rbp)
  movq   $0x0,-0x2a8(%rbp)
  movq   $0x0,-0x2a0(%rbp)
  movq   $0x0,-0x298(%rbp)
  movq   $0x0,-0x290(%rbp)
  movq   $0x0,-0x288(%rbp)
  movq   $0x0,-0x280(%rbp)
  movq   $0x0,-0x278(%rbp)
  movq   $0x0,-0x270(%rbp)
  movq   $0x0,-0x268(%rbp)
  movq   $0x0,-0x260(%rbp)
  movq   $0x0,-0x258(%rbp)
  movq   $0x0,-0x250(%rbp)
  movq   $0x0,-0x248(%rbp)
  movq   $0x0,-0x240(%rbp)
  movq   $0x0,-0x238(%rbp)
  movq   $0x0,-0x230(%rbp)
  movq   $0x0,-0x228(%rbp)
  movq   $0x0,-0x220(%rbp)
  movq   $0x0,-0x218(%rbp)
  movq   $0x0,-0x210(%rbp)
  movq   $0x0,-0x208(%rbp)
  movq   $0x0,-0x200(%rbp)
  movq   $0x0,-0x1f8(%rbp)
  movq   $0x0,-0x1f0(%rbp)
  movq   $0x0,-0x1e8(%rbp)
  movq   $0x0,-0x1e0(%rbp)
  movq   $0x0,-0x1d8(%rbp)
  movq   $0x0,-0x1d0(%rbp)
  movq   $0x0,-0x1c8(%rbp)
  movq   $0x0,-0x1c0(%rbp)
  movq   $0x0,-0x1b8(%rbp)
  movq   $0x0,-0x1b0(%rbp)
  movq   $0x0,-0x1a8(%rbp)
  movq   $0x0,-0x1a0(%rbp)
  movq   $0x0,-0x198(%rbp)
  movq   $0x0,-0x190(%rbp)
  movq   $0x0,-0x188(%rbp)
  movq   $0x0,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  movq   $0x0,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movq   $0x0,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  movq   $0x0,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movq   $0x0,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  movq   $0x0,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movq   $0x0,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movq   $0x0,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  lea    -0x110(%rbp),%rcx
  mov    -0x324(%rbp),%eax
  mov    $0xff,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  mov    %eax,-0x314(%rbp)
  cmpl   $0x0,-0x314(%rbp)
  jg     L84
  lea    -0x110(%rbp),%rax
  lea    D15(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L84:
  mov    -0x324(%rbp),%eax
  mov    %eax,%edi
  call   <liste_referentiel@plt>
  jmp    L59
L67:
  mov    -0x324(%rbp),%eax
  mov    %eax,%edi
  call   <lecture_s@plt>
  mov    %eax,-0x314(%rbp)
  mov    $0x0,%eax
  call   <get_message@plt>
  mov    %eax,%ecx
  lea    -0x310(%rbp),%rax
  mov    %rax,%rdx
  lea    D28(%rip),%rax
  mov    %rax,%rsi
  mov    %ecx,%edi
  call   <sscanf@plt>
  test   %rax,%rax
  jle    L18
  jmp    L45
L23:
  mov    -0x324(%rbp),%eax
  mov    %eax,%edi
  call   <ecriture_s@plt>
L45:
  lea    -0x310(%rbp),%rax
  mov    %rax,%rdi
  call   <lecture@plt>
  mov    %eax,-0x314(%rbp)
  cmpl   $0x1,-0x314(%rbp)
  je     L23
  cmpl   $0x0,-0x314(%rbp)
  jns    L18
  lea    -0x310(%rbp),%rax
  mov    %rax,%rdi
  call   <creation_message_erreur@plt>
  mov    -0x324(%rbp),%eax
  mov    %eax,%edi
  call   <diffusion_erreur@plt>
L18:
  lea    -0x310(%rbp),%rax
  lea    D11(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L92
  lea    -0x310(%rbp),%rax
  lea    D10(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L59
L92:
  movl   $0x0,-0x318(%rbp)
  mov    -0x324(%rbp),%eax
  mov    %eax,%edi
  call   <quitter@plt>
L59:
  cmpl   $0x0,-0x318(%rbp)
  jne    L67
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L48
  call   <__stack_chk_fail@plt>
L48:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D15
data_type: string
name: disassemble_data
arguments: data_tag: D28
data_type: string
name: disassemble_data
arguments: data_tag: D11
data_type: string
name: disassemble_data
arguments: data_tag: D10
data_type: string

tool: D15: sombre inconnu

tool: D28: %s

tool: D11: q

tool: D10: Q

assistant: ```c
void lancement_service(int ta_socket) {
  int n;
  int choix;
  choix = 1;
  char mMessage[256] = "";
  char reponse[256] = "";
  char nom[256] = "";
  if ((n = read(ta_socket, nom, 256 - 1)) > 0)
    ;
  else
    strcpy(nom, "sombre inconnu");
  liste_referentiel(ta_socket);
  while (choix) {
    n = lecture_s(ta_socket);
    if (sscanf(get_message(), "%s", mMessage) > 0) {
      while ((n = lecture(mMessage)) == 1) {
        ecriture_s(ta_socket);
      }
      if (n < 0) {
        creation_message_erreur(mMessage);
        diffusion_erreur(ta_socket);
      }
    }
    if (!strcmp(mMessage, "q") || !strcmp(mMessage, "Q")) {
      choix = 0;
      quitter(ta_socket);
    }
  }
}
```