user: What is the c source code of the assembly code below?

```asm
<print_plot_str>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  cmp    $0xfff,%edi
  jg     L12
  mov    %esi,%ebp
  cmp    $0xfff,%esi
  jg     L87
  mov    %rsp,%r12
  mov    $0x6e,%esi
  mov    %r12,%rdi
  call   <bzero@plt>
  mov    $0x800,%eax
  mov    %r12,%rdi
  cmp    %eax,%ebx
  cmovge %ebx,%eax
  lea    -0x800(%rax),%r8d
  mov    $0xcccccccd,%eax
  mov    %r8,%rsi
  imul   %rax,%r8
  shr    $0x24,%r8
  add    $0x1,%r8d
  cmp    $0x8,%r8d
  jae    L94
  test   $0x4,%r8b
  jne    L5
L129:
  test   $0x2,%r8b
  jne    L100
L142:
  and    $0x1,%r8d
  jne    L182
L111:
  mov    $0x800,%eax
  mov    $0xcccccccd,%edx
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  lea    -0x800(%rbp),%eax
  imul   %rdx,%rax
  shr    $0x24,%rax
  movslq %eax,%rcx
  cmpb   $0x2a,(%rsp,%rcx,1)
  je     L146
  movb   $0x7c,(%rsp,%rcx,1)
  test   %eax,%eax
  je     L150
  mov    %r12,%rax
  add    %r12,%rcx
  nopl   0x0(%rax)
L199:
  cmpb   $0x0,(%rax)
  jne    L62
  movb   $0x20,(%rax)
L62:
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L199
L150:
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L163
  sub    $0xffffffffffffff80,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nop
L182:
  movb   $0x2a,(%rdi)
  jmp    L111
  nopl   0x0(%rax,%rax,1)
L100:
  mov    $0x2a2a,%eax
  add    $0x2,%rdi
  mov    %ax,-0x2(%rdi)
  and    $0x1,%r8d
  je     L111
  jmp    L182
  nopl   0x0(%rax)
L5:
  movl   $0x2a2a2a2a,(%rdi)
  add    $0x4,%rdi
  test   $0x2,%r8b
  je     L142
  jmp    L100
  cs nopw 0x0(%rax,%rax,1)
L94:
  movabs $0x2a2a2a2a2a2a2a2a,%rax
  mov    %r8d,%ecx
  shr    $0x3,%ecx
  rep stos %rax,%es:(%rdi)
  test   $0x4,%r8b
  je     L129
  jmp    L5
  nop
L87:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L163
  sub    $0xffffffffffffff80,%rsp
  lea    D0(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  jmp    1080 <printf@plt>
  cs nopw 0x0(%rax,%rax,1)
L12:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L163
  sub    $0xffffffffffffff80,%rsp
  lea    -0x800(%rdi),%esi
  xor    %eax,%eax
  pop    %rbx
  lea    D26(%rip),%rdi
  pop    %rbp
  pop    %r12
  jmp    1080 <printf@plt>
  nopl   0x0(%rax)
L146:
  movb   $0x2b,(%rsp,%rcx,1)
  jmp    L150
L163:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D5
datatype: string
name: extract_symbolic_data
arguments: data_label: D0
datatype: string
name: extract_symbolic_data
arguments: data_label: D26
datatype: string

tool: D5: %5d: %s


tool: D0: %5d: baseline is out of range


tool: D26: %5d: value is out of range


assistant: ```c
void print_plot_str(uint16_t value, uint16_t baseline) {
  char str[110];
  int32_t idx, i;
  if (value > 4095) {
    printf("%5d: value is out of range\n", value - 2048);
    return;
  }
  if (baseline > 4095) {
    printf("%5d: baseline is out of range\n", baseline);
    return;
  }
  if (value < 2048) {
    value = 2048;
  }
  if (baseline < 2048) {
    baseline = 2048;
  }
  bzero(str, sizeof(str));
  idx = (value - 2048) / 20;
  for (i = 0; i <= idx; i++) {
    str[i] = '*';
  }
  idx = (baseline - 2048) / 20;
  if (str[idx] == '*') {
    str[idx] = '+';
  } else {
    str[idx] = '|';
    for (i = 0; i < idx; i++) {
      if (str[i] == '\0') {
        str[i] = ' ';
      }
    }
  }
  printf("%5d: %s\n", value - 2048, str);
}
```