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

```asm
<html_write_footer>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rbp
  mov    %rbp,%rdi
  call   <time@plt>
  mov    %rbp,%rdi
  call   <localtime@plt>
  mov    %r12,%rcx
  mov    $0x2c,%edx
  mov    $0x1,%esi
  lea    D42(%rip),%rdi
  mov    (%rax),%ebx
  mov    0x4(%rax),%ebp
  mov    0x8(%rax),%r13d
  mov    0xc(%rax),%r14d
  mov    0x10(%rax),%r15d
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0xc5,%edx
  mov    $0x1,%esi
  lea    D17(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x16,%edx
  mov    $0x1,%esi
  lea    D35(%rip),%rdi
  call   <fwrite@plt>
  sub    $0x8,%rsp
  lea    0x1(%rbp),%ecx
  mov    %r14d,%r9d
  push   %r15
  lea    0x76c(%rbx),%edx
  mov    %r13d,%r8d
  mov    %r12,%rdi
  lea    D22(%rip),%rsi
  call   <fprintf@plt>
  mov    $0x135,%edx
  mov    %r12,%rcx
  mov    $0x1,%esi
  lea    D25(%rip),%rdi
  call   <fwrite@plt>
  pop    %rax
  pop    %rdx
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D42
type_infered: string
name: retrieve_data
arguments: data_label: D17
type_infered: string
name: retrieve_data
arguments: data_label: D35
type_infered: string
name: retrieve_data
arguments: data_label: D22
type_infered: string
name: retrieve_data
arguments: data_label: D25
type_infered: string

tool: D42: 
	</center>
	<hr>
	<u><b>Disclaimer:</b></u>

tool: D17: 
	<br/><br/><i>This material is presented to ensure timely dissemination of scholarly and technical work. Copyright and all rights therein are retained by authors or by other copyright holders.</i>

tool: D35: 
	<hr>
	Last updated: 

tool: D22: <i>%02d/%02d/%d - %02d:%02d</i>


tool: D25: 	<hr>
	Generated from <i>BibT<sub>E</sub>X</i> by <a href="http://echambon.contact.free.fr/en/bibgerhtm.php" target="blank"><em>bibgerhtm</em></a>, itself inspired by <a href="http://www-sop.inria.fr/epidaure/personnel/malandain/codes/bibtex2html.html" target="blank"><em>bibtex2html</em></a>.
</body>
</html>

assistant: ```c
void html_write_footer(FILE *filename) {
  time_t secondes;
  struct tm instant;
  time(&secondes);
  instant = *localtime(&secondes);
  fputs("\n\t</center>\n\t<hr>\n\t<u><b>Disclaimer:</b></u>", filename);
  fputs("\n\t<br/><br/><i>This material is presented to ensure timely dissemination of scholarly and technical work. Copyright and all rights therein are retained by authors or by other copyright holders.</i>", filename);
  fputs("\n\t<hr>\n\tLast updated: ", filename);
  fprintf(filename, "<i>%02d/%02d/%d - %02d:%02d</i>\n", instant.tm_year + 1900, instant.tm_mon + 1, instant.tm_mday, instant.tm_hour, instant.tm_min);
  fputs("\t<hr>\n\tGenerated from <i>BibT<sub>E</sub>X</i> by <a href=\"http://echambon.contact.free.fr/en/bibgerhtm.php\" target=\"blank\"><em>bibgerhtm</em></a>, itself inspired by <a href=\"http://www-sop.inria.fr/epidaure/personnel/malandain/codes/bibtex2html.html\" target=\"blank\"><em>bibtex2html</em></a>.\n</body>\n</html>", filename);
}
```