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

```asm
<mark_time_label>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x350,%rsp
  movsd  %xmm0,-0x318(%rbp)
  mov    %edi,-0x31c(%rbp)
  mov    %esi,-0x320(%rbp)
  mov    %rdx,-0x328(%rbp)
  mov    %rcx,-0x330(%rbp)
  movsd  %xmm1,-0x338(%rbp)
  movsd  %xmm2,-0x340(%rbp)
  mov    %r8d,-0x344(%rbp)
  mov    %r9d,-0x348(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x350(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  D66(%rip),%xmm0
  movsd  %xmm0,-0x318(%rbp)
  movsd  -0x318(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2fc(%rbp)
  movl   $0x1e,-0x300(%rbp)
  mov    -0x320(%rbp),%eax
  sub    $0x19,%eax
  mov    %eax,-0x2f8(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x344(%rbp),%xmm0
  mulsd  -0x340(%rbp),%xmm0
  movsd  -0x338(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2e8(%rbp)
  movsd  -0x2e8(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2f4(%rbp)
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x2f4(%rbp),%xmm2
  movsd  -0x2e8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D75(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2f0(%rbp)
  mov    -0x2f4(%rbp),%edx
  lea    -0x190(%rbp),%rax
  lea    D35(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x190(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x2ec(%rbp)
  mov    -0x2ec(%rbp),%eax
  cmp    -0x348(%rbp),%eax
  jge    L158
  movl   $0x0,-0x30c(%rbp)
  jmp    L10
L11:
  mov    -0x30c(%rbp),%eax
  cltq
  movb   $0x20,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x30c(%rbp)
L10:
  mov    -0x348(%rbp),%eax
  sub    -0x2ec(%rbp),%eax
  cmp    %eax,-0x30c(%rbp)
  jl     L11
  mov    -0x348(%rbp),%eax
  sub    -0x2ec(%rbp),%eax
  mov    %eax,-0x30c(%rbp)
  jmp    L142
L60:
  mov    -0x348(%rbp),%eax
  sub    -0x2ec(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30c(%rbp),%eax
  sub    %edx,%eax
  cltq
  movzbl -0x190(%rbp,%rax,1),%edx
  mov    -0x30c(%rbp),%eax
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x30c(%rbp)
L142:
  mov    -0x30c(%rbp),%eax
  cmp    -0x348(%rbp),%eax
  jl     L60
  mov    -0x348(%rbp),%eax
  cltq
  movb   $0x0,-0x110(%rbp,%rax,1)
  jmp    L27
L158:
  lea    -0x190(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  lea    D73(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L27:
  mov    -0x2f0(%rbp),%edx
  lea    -0x90(%rbp),%rax
  lea    D35(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jg     L152
  movb   $0x0,-0x8e(%rbp)
  movzbl -0x90(%rbp),%eax
  mov    %al,-0x8f(%rbp)
  movb   $0x30,-0x90(%rbp)
L152:
  lea    -0x90(%rbp),%rcx
  lea    -0x110(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  lea    D1(%rip),%r9
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D70(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movl   $0x0,-0x304(%rbp)
  jmp    L58
L146:
  mov    -0x348(%rbp),%eax
  add    $0x5,%eax
  sub    -0x304(%rbp),%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%eax
  movsbl %al,%eax
  lea    -0x2e0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <font7_generate@plt>
  movl   $0x0,-0x308(%rbp)
  jmp    L95
L110:
  movl   $0x0,-0x30c(%rbp)
  jmp    L25
L88:
  mov    -0x308(%rbp),%eax
  cltd
  idivl  -0x2fc(%rbp)
  mov    %eax,%edx
  mov    $0x6,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x30c(%rbp),%eax
  cltd
  idivl  -0x2fc(%rbp)
  movslq %eax,%rsi
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  sub    %rdx,%rax
  add    %rsi,%rax
  mov    -0x2e0(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L147
  mov    -0x2f8(%rbp),%edx
  mov    -0x308(%rbp),%eax
  add    %edx,%eax
  imul   -0x31c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x300(%rbp),%eax
  add    %edx,%eax
  sub    -0x30c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x350(%rbp),%rax
  add    %rax,%rdx
  mov    -0x328(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  mov    -0x2f8(%rbp),%edx
  mov    -0x308(%rbp),%eax
  add    %edx,%eax
  imul   -0x31c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x300(%rbp),%eax
  add    %edx,%eax
  sub    -0x30c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x350(%rbp),%rax
  add    %rax,%rdx
  mov    -0x328(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  movsd  %xmm0,(%rdx)
  mov    -0x2f8(%rbp),%edx
  mov    -0x308(%rbp),%eax
  add    %edx,%eax
  imul   -0x31c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x300(%rbp),%eax
  add    %edx,%eax
  sub    -0x30c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x350(%rbp),%rax
  add    %rax,%rdx
  mov    -0x328(%rbp),%rax
  movsd  0x10(%rax),%xmm0
  movsd  %xmm0,(%rdx)
  jmp    L78
L147:
  mov    -0x2f8(%rbp),%edx
  mov    -0x308(%rbp),%eax
  add    %edx,%eax
  imul   -0x31c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x300(%rbp),%eax
  add    %edx,%eax
  sub    -0x30c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x350(%rbp),%rax
  add    %rax,%rdx
  mov    -0x330(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  mov    -0x2f8(%rbp),%edx
  mov    -0x308(%rbp),%eax
  add    %edx,%eax
  imul   -0x31c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x300(%rbp),%eax
  add    %edx,%eax
  sub    -0x30c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x350(%rbp),%rax
  add    %rax,%rdx
  mov    -0x330(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  movsd  %xmm0,(%rdx)
  mov    -0x2f8(%rbp),%edx
  mov    -0x308(%rbp),%eax
  add    %edx,%eax
  imul   -0x31c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x300(%rbp),%eax
  add    %edx,%eax
  sub    -0x30c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x350(%rbp),%rax
  add    %rax,%rdx
  mov    -0x330(%rbp),%rax
  movsd  0x10(%rax),%xmm0
  movsd  %xmm0,(%rdx)
L78:
  addl   $0x1,-0x30c(%rbp)
L25:
  mov    -0x2fc(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  cmp    %eax,-0x30c(%rbp)
  jl     L88
  addl   $0x1,-0x308(%rbp)
L95:
  mov    -0x2fc(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  cmp    %eax,-0x308(%rbp)
  jl     L110
  mov    -0x2fc(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  add    %eax,-0x300(%rbp)
  addl   $0x1,-0x304(%rbp)
L58:
  mov    -0x348(%rbp),%eax
  add    $0x5,%eax
  cmp    %eax,-0x304(%rbp)
  jle    L146
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L57
  call   <__stack_chk_fail@plt>
L57:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D66
type: f64
name: extract_symbolic_data
arguments: data_label: D75
type: f64
name: extract_symbolic_data
arguments: data_label: D35
type: string
name: extract_symbolic_data
arguments: data_label: D73
type: string
name: extract_symbolic_data
arguments: data_label: D1
type: string
name: extract_symbolic_data
arguments: data_label: D70
type: string
name: extract_symbolic_data
arguments: data_label: D38
type: string

tool: D66: 2.5

tool: D75: 100

tool: D35: %d

tool: D73: %s

tool: D1: s

tool: D70: 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;
}
```