user: Converte this assembly snippet into its equivalent C code:

```asm
<disp7s>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    %r8d,-0x38(%rbp)
  mov    %r9d,-0x3c(%rbp)
  movss  %xmm0,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movabs $0xa4ded674b6ba24ee,%rax
  mov    %rax,-0x12(%rbp)
  movw   $0xf6fe,-0xa(%rbp)
  cmpl   $0x0,0x10(%rbp)
  js     L10
  cmpl   $0x9,0x10(%rbp)
  jg     L10
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  test   %al,%al
  jns    L76
  mov    -0x3c(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x38(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%r10d
  mov    -0x40(%rbp),%edi
  mov    -0x3c(%rbp),%r8d
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x1
  movd   %edi,%xmm0
  mov    %r8d,%r9d
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
L76:
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  movsbl %al,%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L56
  mov    -0x3c(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x38(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%r10d
  mov    -0x40(%rbp),%edi
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x3c(%rbp),%r8d
  push   %r8
  movd   %edi,%xmm0
  mov    $0x1,%r9d
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
L56:
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  movsbl %al,%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L37
  mov    -0x3c(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x38(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%r10d
  mov    -0x34(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  lea    (%rdx,%rax,1),%edi
  mov    -0x40(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x3c(%rbp),%r8d
  push   %r8
  movd   %ecx,%xmm0
  mov    $0x1,%r9d
  mov    %r10d,%r8d
  mov    %edi,%ecx
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
L37:
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  movsbl %al,%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L27
  mov    -0x38(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%r8d
  mov    -0x40(%rbp),%edi
  mov    -0x3c(%rbp),%r9d
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x1
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
L27:
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  movsbl %al,%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L13
  mov    -0x38(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%r10d
  mov    -0x40(%rbp),%edi
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x3c(%rbp),%r8d
  push   %r8
  movd   %edi,%xmm0
  mov    $0x1,%r9d
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
L13:
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  movsbl %al,%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L28
  mov    -0x38(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%r10d
  mov    -0x34(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  lea    (%rdx,%rax,1),%edi
  mov    -0x40(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x3c(%rbp),%r8d
  push   %r8
  movd   %ecx,%xmm0
  mov    $0x1,%r9d
  mov    %r10d,%r8d
  mov    %edi,%ecx
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
L28:
  mov    0x10(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  movsbl %al,%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L57
  mov    -0x40(%rbp),%edi
  mov    -0x3c(%rbp),%r9d
  mov    -0x38(%rbp),%r8d
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x1
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <draw_rectangle@plt>
  add    $0x10,%rsp
  jmp    L57
L10:
  nop
L57:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L96
  call   <__stack_chk_fail@plt>
L96:
  leave
  ret
```

assistant: ```c
void disp7s(float *sl, int w, int h, int x, int y, int v, int d, float gray) {
  char seg[10] = {0xEE, 0x24, 0xBA, 0xB6, 0x74, 0xD6, 0xDE, 0xA4, 0xFE, 0xF6};
  if ((d < 0) || (d > 9))
    return;
  if ((seg[d] & 128) != 0)
    draw_rectangle(sl, w, h, x, y - 2 * v, v, 1, gray);
  if ((seg[d] & 64) != 0)
    draw_rectangle(sl, w, h, x, y - 2 * v, 1, v, gray);
  if ((seg[d] & 32) != 0)
    draw_rectangle(sl, w, h, x + v, y - 2 * v, 1, v, gray);
  if ((seg[d] & 16) != 0)
    draw_rectangle(sl, w, h, x, y - v, v, 1, gray);
  if ((seg[d] & 8) != 0)
    draw_rectangle(sl, w, h, x, y - v, 1, v, gray);
  if ((seg[d] & 4) != 0)
    draw_rectangle(sl, w, h, x + v, y - v, 1, v, gray);
  if ((seg[d] & 2) != 0)
    draw_rectangle(sl, w, h, x, y, v, 1, gray);
}
```