user: Translate the below assembly code into C programming language:

```asm
<int64tostrtime>:
  endbr64
  push   %rbx
  sub    $0x30,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %edi,0xc(%rsp)
  lea    0x10(%rsp),%rsi
  lea    0xc(%rsp),%rdi
  call   <gmtime_r@plt>
  mov    0x10(%rsp),%eax
  lea    0x76c(%rax),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%edx
  add    $0x30,%edx
  mov    %dl,0x3(%rbx)
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  add    $0x30,%eax
  mov    %al,0x2(%rbx)
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%edx
  add    $0x30,%edx
  mov    %dl,0x1(%rbx)
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  add    $0x30,%eax
  mov    %al,(%rbx)
  movb   $0x2d,0x4(%rbx)
  mov    0x14(%rsp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    0x30(%rdx),%ecx
  mov    %cl,0x5(%rbx)
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  add    $0x30,%eax
  mov    %al,0x6(%rbx)
  movb   $0x2d,0x7(%rbx)
  mov    0x18(%rsp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  lea    0x30(%rax),%ecx
  mov    %cl,0x8(%rbx)
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edx
  add    $0x30,%edx
  mov    %dl,0x9(%rbx)
  movb   $0x54,0xa(%rbx)
  mov    0x1c(%rsp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  lea    0x30(%rax),%ecx
  mov    %cl,0xb(%rbx)
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edx
  add    $0x30,%edx
  mov    %dl,0xc(%rbx)
  movb   $0x3a,0xd(%rbx)
  mov    0x20(%rsp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  lea    0x30(%rax),%ecx
  mov    %cl,0xe(%rbx)
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edx
  add    $0x30,%edx
  mov    %dl,0xf(%rbx)
  movb   $0x3a,0x10(%rbx)
  mov    0x24(%rsp),%edx
  movslq %edx,%rax
  imul   $0xffffffff88888889,%rax,%rax
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x3c,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    0x30(%rdx),%ecx
  mov    %cl,0x11(%rbx)
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  add    $0x30,%eax
  mov    %al,0x12(%rbx)
  movb   $0x5a,0x13(%rbx)
  movb   $0x0,0x14(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x30,%rsp
  pop    %rbx
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void int64tostrtime(uint64_t v, char *sp) {
  time_t vtime;
  struct tm tm;
  int i;
  vtime = v;
  gmtime_r(&vtime, &tm);
  i = tm.tm_year + 1900;
  sp += 3;
  *sp-- = i % 10 + '0';
  i /= 10;
  *sp-- = i % 10 + '0';
  i /= 10;
  *sp-- = i % 10 + '0';
  i /= 10;
  *sp = i % 10 + '0';
  sp += 4;
  *sp++ = '-';
  i = tm.tm_mon + 1;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = '-';
  i = tm.tm_mday;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = 'T';
  i = tm.tm_hour;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = ':';
  i = tm.tm_min;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = ':';
  i = tm.tm_sec % 60;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = 'Z';
  *sp = 0;
}
```