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

```asm
<main>:
  endbr64
  push   %r13
  lea    D88(%rip),%rdi
  push   %r12
  push   %rbp
  lea    D77(%rip),%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D81(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D0(%rip),%rbp
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D84(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D46(%rip),%rdi
  mov    0xc(%rsp),%ebx
  sub    0x10(%rsp),%ebx
  call   <puts@plt>
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  js     L23
  mov    0x10(%rsp),%ecx
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  lea    D28(%rip),%rbp
  jmp    L7
  xchg   %ax,%ax
L22:
  mov    0x10(%rsp),%esi
  mov    %ebx,%eax
  mov    0xc(%rsp),%ecx
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  imul   %esi,%eax
  cvtsi2ss %ebx,%xmm0
  cltd
  idiv   %ecx
  cvtsi2ss %eax,%xmm1
  mulss  0x4(%rsp),%xmm1
  subss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %r13d,%xmm1
  cvttss2si %xmm0,%ebx
  pxor   %xmm0,%xmm0
  cvtsi2ss %esi,%xmm0
  mulss  0x8(%rsp),%xmm0
  sub    %ebx,%ecx
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%r13d
  sub    %r13d,%ecx
  mov    %ecx,0x10(%rsp)
L7:
  mov    %r12d,%esi
  mov    %r13d,%r8d
  mov    %ebx,%edx
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <printf@plt>
  cmp    %r12d,0x14(%rsp)
  jge    L22
L23:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D88
type_infered: string
name: disassemble_data
arguments: data_label: D77
type_infered: string
name: disassemble_data
arguments: data_label: D81
type_infered: string
name: disassemble_data
arguments: data_label: D0
type_infered: string
name: disassemble_data
arguments: data_label: D31
type_infered: string
name: disassemble_data
arguments: data_label: D64
type_infered: string
name: disassemble_data
arguments: data_label: D84
type_infered: string
name: disassemble_data
arguments: data_label: D46
type_infered: string
name: disassemble_data
arguments: data_label: D28
type_infered: string

tool: D88: infection rate: 

tool: D77: %f

tool: D81: immunization rate: 

tool: D0: %d

tool: D31: population: 

tool: D64: ill: 

tool: D84: days: 

tool: D46: day  healthy  ill  immune

tool: D28: %-4d %-8d %-4d %d


assistant: ```c
int main() {
  float infectRate, immuneRate;
  int population, healthy, ill, immune, days, i;
  printf("infection rate: ");
  scanf("%f", &infectRate);
  printf("immunization rate: ");
  scanf("%f", &immuneRate);
  printf("population: ");
  scanf("%d", &population);
  printf("ill: ");
  scanf("%d", &ill);
  printf("days: ");
  scanf("%d", &days);
  healthy = population - ill;
  immune = 0;
  printf("day  healthy  ill  immune\n");
  for (i = 0; i <= days; i++) {
    if (i > 0) {
      healthy = healthy - (infectRate * (healthy * ill / population));
      immune = immune + immuneRate * ill;
      ill = population - healthy - immune;
    }
    printf("%-4d %-8d %-4d %d\n", i, healthy, ill, immune);
  }
  return 0;
}
```