user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D36(%rip),%rdi
  call   <puts@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  lea    D28(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x7dc,%edi
  call   <Checkleapyear@plt>
  mov    %eax,%esi
  lea    D12(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D93(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x7db,%edi
  call   <Checkleapyear@plt>
  mov    %eax,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D9(%rip),%rdi
  call   <puts@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  mov    $0x7dc,%edi
  call   <Checkyear@plt>
  mov    %eax,%r13d
  mov    $0x841,%edi
  call   <Checkyear@plt>
  mov    %eax,%r12d
  mov    $0xd,%edi
  call   <Checkyear@plt>
  mov    %eax,%ebp
  mov    $0x59,%edi
  call   <Checkyear@plt>
  mov    %eax,%ebx
  mov    $0xffffff90,%edi
  call   <Checkyear@plt>
  mov    %eax,%esi
  mov    %r13d,%r9d
  mov    %r12d,%r8d
  mov    %ebp,%ecx
  mov    %ebx,%edx
  lea    D90(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D56(%rip),%r13
  mov    %r13,%rdi
  call   <puts@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  mov    $0xd,%edi
  call   <Checkmonth@plt>
  mov    %eax,%r12d
  mov    $0xc,%edi
  call   <Checkmonth@plt>
  mov    %eax,%ebp
  mov    $0x1,%edi
  call   <Checkmonth@plt>
  mov    %eax,%ebx
  mov    $0x0,%edi
  call   <Checkmonth@plt>
  mov    %eax,%esi
  mov    %r12d,%r8d
  mov    %ebp,%ecx
  mov    %ebx,%edx
  lea    D27(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  lea    D16(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%ebx
  lea    D61(%rip),%rbp
L6:
  mov    $0x7dd,%esi
  mov    %ebx,%edi
  call   <Dayinmonth@plt>
  mov    %eax,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x7a120,%edi
  call   <usleep@plt>
  add    $0x1,%ebx
  cmp    $0xe,%ebx
  jne    L6
  mov    $0x7dc,%esi
  mov    $0x2,%edi
  call   <Dayinmonth@plt>
  mov    %eax,%esi
  lea    D117(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  mov    $0x7dd,%edx
  mov    $0x2,%esi
  mov    $0x1d,%edi
  call   <Checkday@plt>
  mov    %eax,%ebx
  mov    $0x7dc,%edx
  mov    $0x2,%esi
  mov    $0x1d,%edi
  call   <Checkday@plt>
  mov    %eax,%esi
  mov    %ebx,%edx
  lea    D106(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D36
datatype: string
name: disassemble_data
arguments: data_label: D28
datatype: string
name: disassemble_data
arguments: data_label: D12
datatype: string
name: disassemble_data
arguments: data_label: D93
datatype: string
name: disassemble_data
arguments: data_label: D9
datatype: string
name: disassemble_data
arguments: data_label: D90
datatype: string
name: disassemble_data
arguments: data_label: D56
datatype: string
name: disassemble_data
arguments: data_label: D27
datatype: string
name: disassemble_data
arguments: data_label: D16
datatype: string
name: disassemble_data
arguments: data_label: D61
datatype: string
name: disassemble_data
arguments: data_label: D117
datatype: string
name: disassemble_data
arguments: data_label: D106
datatype: string

tool: D36: This Program may test checkdate.c whether is worked.

tool: D28: 	Now Test 'Checkleapyear()'
	you can see 2012 is 1, 2011 is 0
	Test 2012: 

tool: D12: %d

tool: D93: 
	Test 2011: 

tool: D9: 
Test Complete!

tool: D90: 	Now Test 'Checkyear()'
	you can see -112 is -1, 89 is 191, 13 is 201, 2113 is 0, 2012 is 1
	Test -112: %d
	Test 89: %d
	Test 13: %d
	Test 2113: %d
	Test 2012: %d


tool: D56: Test Complete!

tool: D27: 	Now Test 'Checkmonth()'
	you can see 0 is 0, 1 is 1, 12 is 1, 13 is 0
	Test 0: %d
	Test 1: %d
	Test 12: %d
	Test 13: %d


tool: D16: 	Now Test 'Dayinmonth()'
	you can see year of 2013, each month has the days and 2012 leap year has 29 in Feb

tool: D61: This is %d month you can see %d


tool: D117: This is 2 month in 2012 you can see %d
	Test Complete!


tool: D106: 	Now Test 'Checkday()'
	you can see 2012-02-29 is legeled(1), 2013-02-29 is illegeled(0)
	Test 2012-02-29: %d
	Test 2013-02-29: %d
Test Complete!
Exitting...


assistant: ```c
int main(void) {
  int i;
  printf("This Program may test checkdate.c whether is worked.\n");
  sleep(2);
  printf("\tNow Test 'Checkleapyear()'\n"
         "\tyou can see 2012 is 1, 2011 is 0\n"
         "\tTest 2012: ");
  printf("%d", Checkleapyear(2012));
  printf("\n\tTest 2011: ");
  printf("%d", Checkleapyear(2011));
  printf("\nTest Complete!\n");
  sleep(2);
  printf("\tNow Test 'Checkyear()'\n"
         "\tyou can see -112 is -1, 89 is 191, 13 is 201, 2113 is 0, 2012 is 1\n"
         "\tTest -112: %d\n\tTest 89: %d\n\tTest 13: %d\n\tTest 2113: %d\n\tTest 2012: %d\n",
         Checkyear(-112), Checkyear(89), Checkyear(13), Checkyear(2113), Checkyear(2012));
  printf("Test Complete!\n");
  sleep(2);
  printf("\tNow Test 'Checkmonth()'\n"
         "\tyou can see 0 is 0, 1 is 1, 12 is 1, 13 is 0\n"
         "\tTest 0: %d\n\tTest 1: %d\n\tTest 12: %d\n\tTest 13: %d\n",
         Checkmonth(0), Checkmonth(1), Checkmonth(12), Checkmonth(13));
  printf("Test Complete!\n");
  sleep(2);
  printf("\tNow Test 'Dayinmonth()'\n"
         "\tyou can see year of 2013, each month has the days and 2012 leap year has 29 in Feb\n");
  for (i = 0; i < 14; i++) {
    printf("This is %d month you can see %d\n", i, Dayinmonth(i, 2013));
    usleep(500000);
  }
  printf("This is 2 month in 2012 you can see %d\n\tTest Complete!\n", Dayinmonth(2, 2012));
  sleep(2);
  printf("\tNow Test 'Checkday()'\n"
         "\tyou can see 2012-02-29 is legeled(1), 2013-02-29 is illegeled(0)\n"
         "\tTest 2012-02-29: %d\n\tTest 2013-02-29: %d\nTest Complete!\nExitting...\n",
         Checkday(29, 2, 2012), Checkday(29, 2, 2013));
  return 0;
}
```