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

```asm
<mark_time_label>:
  endbr64
  pxor   %xmm0,%xmm0
  push   %r15
  cvtsi2sd %r8d,%xmm0
  push   %r14
  mov    %edi,%r14d
  push   %r13
  movslq %r9d,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  mulsd  %xmm2,%xmm0
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x318,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x308(%rsp)
  xor    %eax,%eax
  lea    -0x19(%rsi),%eax
  lea    0x180(%rsp),%r8
  mov    0x350(%rsp),%r12
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  mov    %eax,0x8(%rsp)
  mov    %r8,%rdi
  lea    D15(%rip),%rsi
  mov    %r8,0x18(%rsp)
  cvttsd2si %xmm0,%edx
  cvtsi2sd %edx,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  D2(%rip),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    0x18(%rsp),%rdi
  call   <strlen@plt>
  mov    0x18(%rsp),%r8
  cmp    %r13d,%eax
  jge    L4
  mov    %r13d,%r9d
  mov    $0x20,%esi
  mov    %r8,0x28(%rsp)
  lea    0x200(%rsp),%r15
  sub    %eax,%r9d
  mov    %r15,%rdi
  movslq %r9d,%rdx
  mov    %r9d,0x20(%rsp)
  mov    %rdx,0x18(%rsp)
  call   <memset@plt>
  mov    0x20(%rsp),%r9d
  mov    0x18(%rsp),%rdx
  mov    0x28(%rsp),%r8
  cmp    %r9d,%r13d
  jle    L2
  lea    (%r15,%rdx,1),%rdi
  lea    -0x1(%r13),%edx
  mov    %r8,%rsi
  sub    %r9d,%edx
  add    $0x1,%rdx
  call   <memcpy@plt>
L2:
  movslq %r13d,%rax
  movb   $0x0,0x200(%rsp,%rax,1)
L105:
  lea    0x280(%rsp),%r8
  mov    0x10(%rsp),%edx
  lea    D15(%rip),%rsi
  xor    %eax,%eax
  mov    %r8,%rdi
  mov    %r8,0x10(%rsp)
  call   <sprintf@plt>
  mov    0x10(%rsp),%rdi
  call   <strlen@plt>
  mov    0x10(%rsp),%r8
  cmp    $0x1,%eax
  jg     L24
  movzbl 0x280(%rsp),%eax
  movb   $0x0,0x282(%rsp)
  movb   $0x30,0x280(%rsp)
  mov    %al,0x281(%rsp)
L24:
  lea    0x100(%rsp),%rdi
  xor    %eax,%eax
  lea    D24(%rip),%r9
  mov    %r15,%rcx
  lea    D47(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rdi,0x10(%rsp)
  call   <sprintf@plt>
  mov    %r13d,%eax
  add    $0x5,%eax
  mov    %eax,0x18(%rsp)
  js     L98
  mov    0x8(%rsp),%eax
  mov    0x10(%rsp),%rdi
  xor    %r10d,%r10d
  imul   %r14d,%eax
  lea    (%rdi,%r13,1),%r15
  mov    $0x6,%r13d
  mov    %r15,%r9
  mov    %r12,%r15
  mov    %rbp,%r12
  mov    %r10d,%ebp
  lea    0x1e(%rax),%r8d
  lea    0x30(%rsp),%rax
  mov    %rax,0x20(%rsp)
L44:
  movsbl 0x5(%r9),%edi
  mov    0x20(%rsp),%rsi
  mov    %r8d,0x10(%rsp)
  mov    %r9,0x8(%rsp)
  call   <font7_generate@plt>
  mov    0x10(%rsp),%r8d
  mov    0x8(%rsp),%r9
  xor    %edi,%edi
  mov    %r8d,%r11d
  nopw   0x0(%rax,%rax,1)
L69:
  mov    %edi,%edx
  mov    %r13d,%eax
  xor    %ecx,%ecx
  sar    %edx
  sub    %edx,%eax
  lea    (%r11,%r11,2),%edx
  cltq
  movslq %edx,%rdx
  lea    0x0(,%rax,8),%rsi
  lea    (%r15,%rdx,8),%rdx
  sub    %rax,%rsi
  jmp    L10
  nopl   (%rax)
L116:
  movsd  (%rbx),%xmm0
  movsd  %xmm0,(%rdx)
  movsd  0x8(%rbx),%xmm0
  movsd  %xmm0,0x8(%rdx)
  movsd  0x10(%rbx),%xmm0
L16:
  add    $0x1,%ecx
  movsd  %xmm0,0x10(%rdx)
  sub    $0x18,%rdx
  cmp    $0xe,%ecx
  je     L21
L10:
  mov    %ecx,%eax
  sar    %eax
  cltq
  add    %rsi,%rax
  cmpl   $0x1,0x30(%rsp,%rax,4)
  jne    L116
  movsd  (%r12),%xmm0
  movsd  %xmm0,(%rdx)
  movsd  0x8(%r12),%xmm0
  movsd  %xmm0,0x8(%rdx)
  movsd  0x10(%r12),%xmm0
  jmp    L16
  nop
L21:
  add    $0x1,%edi
  add    %r14d,%r11d
  cmp    $0xe,%edi
  jne    L69
  add    $0x1,%ebp
  sub    $0x1,%r9
  add    $0xe,%r8d
  cmp    %ebp,0x18(%rsp)
  jge    L44
L98:
  mov    0x308(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L79
  add    $0x318,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L4:
  lea    0x200(%rsp),%r15
  mov    %r8,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  jmp    L105
L79:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D15
type: string
name: disassemble_data
arguments: tag: D2
type: f64
name: disassemble_data
arguments: tag: D24
type: string
name: disassemble_data
arguments: tag: D47
type: string
name: disassemble_data
arguments: tag: D38
type: string

tool: D15: %d

tool: D2: 100

tool: D24: s

tool: D47: T=

tool: D38: %s%s.%s%s

assistant: ```c
void mark_time_label(double font_size, int xr, int yr, double font_color[3], double background_color[3], double start_time, double time_interval, int timestep, int max_len_step, double *image) {
  int i, j, m;
  int start_ys, start_xs, scale, len_step;
  double vv;
  char buf[128], buf1[128], buf2[128], buf3[128];
  int output7[7][7], tmp1, tmp2;
  font_size = 2.5;
  scale = (int)font_size;
  start_xs = 30;
  start_ys = yr - 25;
  vv = start_time + (double)timestep * time_interval;
  tmp1 = (int)vv;
  tmp2 = (int)((vv - (double)tmp1) * 100.0);
  sprintf(buf1, "%d", tmp1);
  len_step = strlen(buf1);
  if (len_step < max_len_step) {
    for (i = 0; i < max_len_step - len_step; i++)
      buf2[i] = ' ';
    for (i = max_len_step - len_step; i < max_len_step; i++)
      buf2[i] = buf1[i - (max_len_step - len_step)];
    buf2[max_len_step] = '\0';
  } else {
    sprintf(buf2, "%s", buf1);
  }
  sprintf(buf3, "%d", tmp2);
  if (strlen(buf3) < 2) {
    buf3[2] = '\0';
    buf3[1] = buf3[0];
    buf3[0] = '0';
  }
  sprintf(buf, "%s%s.%s%s", "T=", buf2, buf3, "s");
  for (m = 0; m < max_len_step + 6; m++) {
    font7_generate(buf[max_len_step + 5 - m], output7);
    for (j = 0; j < 7 * scale; j++)
      for (i = 0; i < 7 * scale; i++) {
        if (output7[6 - (int)(j / scale)][(int)(i / scale)] == 1) {
          image[((start_ys + j) * xr + start_xs - i) * 3] = font_color[0];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 1] = font_color[1];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 2] = font_color[2];
        } else {
          image[((start_ys + j) * xr + start_xs - i) * 3] = background_color[0];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 1] = background_color[1];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 2] = background_color[2];
        }
      }
    start_xs += 7 * scale;
  }
  return;
}
```