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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x38(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  lea    0x1(%rax),%edi
  mov    $0x1,%eax
  cltd
  idiv   %edi
  mov    %eax,%esi
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x64,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x1(%rdx),%edi
  mov    $0xffffffff,%eax
  cltd
  idiv   %edi
  add    %eax,%esi
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x7,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x190,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x1(%rdx),%edi
  mov    $0x1,%eax
  cltd
  idiv   %edi
  add    %esi,%eax
  mov    %eax,-0x34(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jne    L16
  lea    D25(%rip),%rax
  jmp    L6
L16:
  lea    D47(%rip),%rax
L6:
  mov    -0x38(%rbp),%ecx
  mov    %rax,%rdx
  mov    %ecx,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x7,%edx
  sar    $0x1f,%eax
  sub    %edx,%eax
  add    %ecx,%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  lea    0x10(%rax),%ecx
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%esi
  mov    %edx,%eax
  sub    %esi,%eax
  shl    $0x3,%eax
  add    $0xd,%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x3,%edx
  sar    $0x1f,%eax
  sub    %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x38(%rbp),%edx
  movslq %edx,%rax
  imul   $0x6bca1af3,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x3,%eax
  add    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  sub    %eax,%edx
  mov    %edx,-0x18(%rbp)
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0x28(%rbp)
  mov    -0x28(%rbp),%edx
  imul   $0x1e,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x2e8ba2e9,%rdx,%rdx
  shr    $0x20,%rdx
  sar    %edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffff8d3dcb09,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x28(%rbp),%eax
  add    $0x78,%eax
  sub    -0x10(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x38(%rbp),%edx
  mov    -0x24(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x38(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  add    %ecx,%eax
  sub    -0xc(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff92492493,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x2,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0x20(%rbp)
  mov    -0x20(%rbp),%ecx
  mov    %ecx,%edx
  shl    $0x3,%edx
  sub    %ecx,%edx
  sub    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  sub    -0x20(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff84210843,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  shl    $0x5,%ecx
  sub    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x1(%rdx),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff84210843,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x38(%rbp),%esi
  mov    -0x38(%rbp),%eax
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%edx
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L0
  call   <__stack_chk_fail@plt>
L0:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D21
type_infered: string
name: disassemble_data
arguments: tag: D4
type_infered: string
name: disassemble_data
arguments: tag: D25
type_infered: string
name: disassemble_data
arguments: tag: D47
type_infered: string
name: disassemble_data
arguments: tag: D49
type_infered: string
name: disassemble_data
arguments: tag: D30
type_infered: string

tool: D21: 

		Bitte geben Sie ein Jahr ein (Beispiel: 2017):

		--> 

tool: D4: %4d

tool: D25: Computer sagt: "Nein..."

tool: D47: Computer sagt: "Ja..."

tool: D49: 
		Ist "%4d" ein Schaltjahr? %s


tool: D30: 
		Ostersonntag faellt im Jahr "%4d" auf das Tagesdatum: %0d.%0d.%d


assistant: ```c
int main(void) {
  int SJ = 0, monat = 0, tag = 0, jahr = 0, A = 0, B = 0, C = 0, E = 0;
  int H = 0, M = 0, T = 0, k = 0;
  printf("\n\n\t\tBitte geben Sie ein Jahr ein (Beispiel: 2017):\n\n\t\t--> ");
  scanf("%4d", &jahr);
  SJ = 1 / (1 + jahr % 4) - 1 / (1 + jahr % 100) + 1 / (1 + jahr % 400);
  printf("\n\t\tIst \"%4d\" ein Schaltjahr? %s\n", jahr, SJ == 0 ? "Computer sagt: \"Nein...\"" : "Computer sagt: \"Ja...\"");
  k = jahr / 100 - jahr / 400 - 1;
  M = 16 + k - (jahr / 100 * 8 + 13) / 25;
  H = jahr % 19;
  A = (M + H * 19) % 30;
  T = (A + H / 11) / 29;
  B = 120 + A - T;
  C = (B + jahr + jahr / 4 - k) % 7;
  E = B - C;
  tag = 1 + E % 31;
  monat = E / 31;
  printf("\n\t\tOstersonntag faellt im Jahr \"%4d\" auf das Tagesdatum: %0d.%0d.%d\n", jahr, tag, monat, jahr);
  return 0;
}
```