user: Demonstrate the C code that generates the assembly output below:

```asm
<parse_spll_sample>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  mov    %ecx,%edx
  mov    %ebx,%r13d
  mov    %ebx,%ecx
  mov    %ebx,%r15d
  sar    $0x1c,%ecx
  sar    $0x18,%r13d
  and    $0xffffff,%r15d
  sub    $0x828,%rsp
  and    $0x6,%ecx
  and    $0xf,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0x818(%rsp)
  xor    %eax,%eax
  and    $0x8,%r8d
  je     L38
  lea    D44(%rip),%rsi
  mov    %r12,%rdi
  mov    %r15d,%r8d
  movslq %r13d,%r13
  call   <sprintf@plt>
  mov    (%r14,%r13,8),%rdi
  mov    %r12,%rdx
  lea    D48(%rip),%rsi
  call   <fprintf@plt>
L119:
  mov    0x818(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  add    $0x828,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L38:
  lea    D215(%rip),%rsi
  mov    %r12,%rdi
  mov    %ecx,0x8(%rsp)
  lea    0x10(%rsp),%rbp
  mov    %edx,0xc(%rsp)
  call   <strcpy@plt>
  mov    0xc(%rsp),%edx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D72(%rip),%rsi
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  lea    D106(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %ebx,%edx
  lea    D4(%rip),%rsi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    0x8(%rsp),%ecx
  cmp    $0x2,%ecx
  je     L99
  cmp    $0x4,%ecx
  je     L137
  test   %ecx,%ecx
  je     L125
  lea    D139(%rip),%rsi
  mov    %r12,%rdi
  mov    %ecx,0x8(%rsp)
  call   <strcat@plt>
  mov    0x8(%rsp),%ecx
L44:
  lea    D15(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %ecx,%edx
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  cmp    $0x6,%r13d
  ja     L62
  lea    D9(%rip),%rdx
  mov    %r13d,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L125:
  lea    D43(%rip),%rsi
  mov    %r12,%rdi
  mov    %ecx,0x8(%rsp)
  call   <strcat@plt>
  mov    0x8(%rsp),%ecx
  jmp    L44
  nopl   0x0(%rax)
L137:
  lea    D169(%rip),%rsi
  mov    %r12,%rdi
  mov    %ecx,0x8(%rsp)
  call   <strcat@plt>
  mov    0x8(%rsp),%ecx
  jmp    L44
  nopl   0x0(%rax)
L99:
  lea    D233(%rip),%rsi
  mov    %r12,%rdi
  mov    %ecx,0x8(%rsp)
  call   <strcat@plt>
  mov    0x8(%rsp),%ecx
  jmp    L44
  nopl   0x0(%rax)
  lea    D17(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  nopw   0x0(%rax,%rax,1)
L29:
  mov    %r13d,%edx
  lea    D85(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  lea    D101(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %r15d,%eax
  lea    D196(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rax,%rdx
  shl    $0x8,%rdx
  add    %rax,%rdx
  mov    %r15d,%eax
  shr    $0x20,%rdx
  sub    %edx,%eax
  shr    %eax
  add    %edx,%eax
  mov    %r15d,%edx
  shr    $0x17,%eax
  mov    %eax,%ecx
  shl    $0x18,%ecx
  sub    %eax,%ecx
  xor    %eax,%eax
  sub    %ecx,%edx
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  test   %ebx,%ebx
  js     L109
L116:
  mov    (%r14),%rdi
  mov    %r12,%rdx
  lea    D48(%rip),%rsi
  call   <fprintf@plt>
  jmp    L119
  nopw   0x0(%rax,%rax,1)
  lea    D140(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
  nopl   0x0(%rax)
  lea    D143(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
  nopl   0x0(%rax)
  lea    D124(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
  nopl   0x0(%rax)
  lea    D210(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
  nopl   0x0(%rax)
  lea    D132(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
  nopl   0x0(%rax)
  lea    D87(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
  nopl   0x0(%rax)
L109:
  lea    D194(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L116
L62:
  lea    D12(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L29
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D44
type_infered: string
name: retrieve_data
arguments: data_tag: D48
type_infered: string
name: retrieve_data
arguments: data_tag: D215
type_infered: string
name: retrieve_data
arguments: data_tag: D72
type_infered: string
name: retrieve_data
arguments: data_tag: D106
type_infered: string
name: retrieve_data
arguments: data_tag: D4
type_infered: string
name: retrieve_data
arguments: data_tag: D139
type_infered: string
name: retrieve_data
arguments: data_tag: D15
type_infered: string
name: retrieve_data
arguments: data_tag: D43
type_infered: string
name: retrieve_data
arguments: data_tag: D169
type_infered: string
name: retrieve_data
arguments: data_tag: D233
type_infered: string
name: retrieve_data
arguments: data_tag: D17
type_infered: string
name: retrieve_data
arguments: data_tag: D85
type_infered: string
name: retrieve_data
arguments: data_tag: D101
type_infered: string
name: retrieve_data
arguments: data_tag: D196
type_infered: string
name: retrieve_data
arguments: data_tag: D140
type_infered: string
name: retrieve_data
arguments: data_tag: D143
type_infered: string
name: retrieve_data
arguments: data_tag: D124
type_infered: string
name: retrieve_data
arguments: data_tag: D210
type_infered: string
name: retrieve_data
arguments: data_tag: D132
type_infered: string
name: retrieve_data
arguments: data_tag: D87
type_infered: string
name: retrieve_data
arguments: data_tag: D194
type_infered: string
name: retrieve_data
arguments: data_tag: D12
type_infered: string

tool: D44: %05d,%d,%d


tool: D48: %s

tool: D215:  ID 

tool: D72: %05d

tool: D106:  | RAW:

tool: D4: 0x%08X | 

tool: D139: UKNWN: [0x

tool: D15: %d] 

tool: D43: mPLL [0x

tool: D169: ePLL [0x

tool: D233: hPLL [0x

tool: D17: | TAG REF   : [0x

tool: D85: %x] |  

tool: 

tool: D196: %d


tool: D140: | EVENT 	  : [0x

tool: D143: | ERROR	    : [0x

tool: D124: | Y  	    : [0x

tool: D210: | SAMPLE ID : [0x

tool: D132: | PERIOD 	  : [0x

tool: D87: | TAG LOCAL : [0x

tool: D194: --------------------------------------------------------------------------------


tool: D12: | UNKNOWN! : [0x

assistant: ```c
int parse_spll_sample(FILE **fds, char *dst, uint32_t value, uint16_t seq_id, uint32_t options) {
  char temp[2048];
  uint32_t source = 0x6 & (value >> 28);
  uint32_t type = 0xF & (value >> 24);
  uint32_t sample_value = 0xFFFFFF & value;
  if ((options & 0x8)) {
    sprintf(dst, "%05d,%d,%d\n", seq_id, source, sample_value);
    fprintf(fds[type], "%s", dst);
  } else {
    strcpy(dst, " ID ");
    sprintf(temp, "%05d", seq_id);
    strcat(dst, temp);
    strcat(dst, " | RAW:");
    sprintf(temp, "0x%08X | ", value);
    strcat(dst, temp);
    switch (source) {
    case 4:
      strcat(dst, "ePLL [0x");
      break;
    case 2:
      strcat(dst, "hPLL [0x");
      break;
    case 0:
      strcat(dst, "mPLL [0x");
      break;
    default:
      strcat(dst, "UKNWN: [0x");
    }
    sprintf(temp, "%d] ", source);
    strcat(dst, temp);
    switch (type) {
    case 0:
      strcat(dst, "| Y  \t    : [0x");
      break;
    case 1:
      strcat(dst, "| ERROR\t    : [0x");
      break;
    case 2:
      strcat(dst, "| TAG LOCAL : [0x");
      break;
    case 3:
      strcat(dst, "| PERIOD \t  : [0x");
      break;
    case 4:
      strcat(dst, "| EVENT \t  : [0x");
      break;
    case 5:
      strcat(dst, "| TAG REF   : [0x");
      break;
    case 6:
      strcat(dst, "| SAMPLE ID : [0x");
      break;
    default:
      strcat(dst, "| UNKNOWN! : [0x");
    }
    sprintf(temp, "%x] |  ", type);
    strcat(dst, temp);
    strcat(dst, "");
    sprintf(temp, "%d\n", (int32_t)(sample_value % 0xFFFFFF));
    strcat(dst, temp);
    if ((0x80000000 & value))
      strcat(dst, "--------------------------------------------------------------------------------\n");
    fprintf(fds[0], "%s", dst);
  }
  return 0;
}
```