user: 请从给定的汇编指令推导出C源代码:

```asm
<afficheTempRestant>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x30,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    $0x0,%eax
  call   <largeurFenetre@plt>
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <hauteurFenetre@plt>
  cmp    %eax,%ebx
  setge  %al
  movzbl %al,%ebx
  mov    $0x0,%eax
  call   <largeurFenetre@plt>
  imul   %ebx,%eax
  movslq %eax,%rdx
  imul   $0x2aaaaaab,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x1f,%eax
  mov    %edx,%r12d
  sub    %eax,%r12d
  mov    $0x0,%eax
  call   <hauteurFenetre@plt>
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <largeurFenetre@plt>
  cmp    %eax,%ebx
  setg   %al
  movzbl %al,%ebx
  mov    $0x0,%eax
  call   <hauteurFenetre@plt>
  imul   %ebx,%eax
  movslq %eax,%rdx
  imul   $0x2aaaaaab,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  add    %r12d,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  add    $0x1,%eax
  add    %eax,%eax
  mov    %eax,%edi
  call   <gestionDuree@plt>
  mov    $0x3,%edi
  call   <gestionDuree@plt>
  mov    %eax,%edx
  lea    -0x22(%rbp),%rax
  lea    D46(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    $0x5,%edi
  call   <gestionDuree@plt>
  mov    %eax,%edx
  lea    -0x1d(%rbp),%rax
  lea    D46(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    $0xff,%edx
  mov    $0xff,%esi
  mov    $0xf0,%edi
  call   <couleurCourante@plt>
  mov    $0x0,%eax
  call   <hauteurFenetre@plt>
  shl    $0x3,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  movss  -0x28(%rbp),%xmm0
  movss  D0(%rip),%xmm1
  divss  %xmm1,%xmm0
  cvttss2si %xmm0,%esi
  movss  -0x28(%rbp),%xmm0
  movss  D58(%rip),%xmm1
  divss  %xmm1,%xmm0
  movd   %xmm0,%ecx
  lea    -0x22(%rbp),%rax
  movd   %ecx,%xmm0
  mov    %rax,%rdi
  call   <afficheChaine@plt>
  mov    $0x0,%eax
  call   <hauteurFenetre@plt>
  shl    $0x3,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %edx,%ebx
  sub    %eax,%ebx
  mov    $0x0,%eax
  call   <largeurFenetre@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x28(%rbp),%xmm2
  movss  D49(%rip),%xmm1
  mulss  %xmm2,%xmm1
  movss  D0(%rip),%xmm2
  divss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  cvttss2si %xmm0,%esi
  movss  -0x28(%rbp),%xmm0
  movss  D58(%rip),%xmm1
  divss  %xmm1,%xmm0
  movd   %xmm0,%ecx
  lea    -0x1d(%rbp),%rax
  mov    %ebx,%edx
  movd   %ecx,%xmm0
  mov    %rax,%rdi
  call   <afficheChaine@plt>
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  add    $0x30,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D46
type: string
name: parse_data
arguments: data_tag: D0
type: byte[4]
name: parse_data
arguments: data_tag: D58
type: f32
name: parse_data
arguments: data_tag: D49
type: byte[4]

tool: D46: %d

tool: {"D0": [0x00,0x00,0x20,0x41]}

tool: D58: 6

tool: {"D49": [0x00,0x00,0x10,0x41]}

assistant: ```c
void afficheTempRestant(int joueurActuel) {
  float taille = (largeurFenetre() >= hauteurFenetre()) * largeurFenetre() / 6 + (hauteurFenetre() > largeurFenetre()) * hauteurFenetre() / 6;
  gestionDuree(((joueurActuel + 1) % 2) * 2 + 2);
  char tempJ1[5];
  char tempJ2[5];
  sprintf(tempJ1, "%d", gestionDuree(3));
  sprintf(tempJ2, "%d", gestionDuree(5));
  couleurCourante(240, 255, 255);
  afficheChaine(tempJ1, taille / 6, taille / 10, hauteurFenetre() * 8 / 10);
  afficheChaine(tempJ2, taille / 6, largeurFenetre() - 9 * taille / 10, hauteurFenetre() * 8 / 10);
}
```