user: What would the C source look like for the assembly code provided here?

```asm
<parse_spll_sample>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x828,%rsp
  mov    %rdi,(%rsp)
  mov    %rsi,%rbx
  mov    %edx,%ebp
  mov    %ecx,0xc(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x818(%rsp)
  xor    %eax,%eax
  mov    %edx,%r13d
  sar    $0x1c,%r13d
  and    $0x6,%r13d
  mov    %edx,%r12d
  sar    $0x18,%r12d
  and    $0xf,%r12d
  mov    %edx,%r14d
  and    $0xffffff,%r14d
  test   $0x8,%r8b
  je     L70
  mov    %rdi,%r15
  mov    %ecx,%edx
  mov    %r14d,%r8d
  mov    %r13d,%ecx
  lea    D192(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  movslq %r12d,%r12
  mov    (%r15,%r12,8),%rdi
  mov    %rbx,%rdx
  lea    D207(%rip),%rsi
  call   <fprintf@plt>
L92:
  mov    0x818(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  mov    $0x0,%eax
  add    $0x828,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  lea    D202(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  lea    0x10(%rsp),%r15
  mov    0xc(%rsp),%edx
  lea    D144(%rip),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  lea    D88(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    %ebp,%edx
  lea    D160(%rip),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  cmp    $0x2,%r13d
  je     L63
  cmp    $0x4,%r13d
  je     L40
  test   %r13d,%r13d
  je     L113
  lea    D100(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L16
L40:
  lea    D240(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
L16:
  lea    0x10(%rsp),%r15
  mov    %r13d,%edx
  lea    D226(%rip),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  cmp    $0x6,%r12d
  ja     L166
  mov    %r12d,%eax
  lea    D126(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L63:
  lea    D205(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L16
L113:
  lea    D133(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L16
  lea    D200(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
L55:
  lea    0x10(%rsp),%r13
  mov    %r12d,%edx
  lea    D78(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  lea    D70(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  movslq %r14d,%rax
  imul   $0xffffffff80000081,%rax,%rax
  shr    $0x20,%rax
  add    %r14d,%eax
  sar    $0x17,%eax
  mov    %eax,%ecx
  shl    $0x18,%ecx
  sub    %eax,%ecx
  mov    %r14d,%edx
  sub    %ecx,%edx
  lea    D222(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  test   %ebp,%ebp
  js     L180
L39:
  mov    %rbx,%rdx
  lea    D207(%rip),%rsi
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  call   <fprintf@plt>
  jmp    L92
  lea    D173(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
  lea    D38(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
  lea    D183(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
  lea    D193(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
  lea    D46(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
  lea    D247(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
L166:
  lea    D98(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L55
L180:
  lea    D32(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L39
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D192
datatype: string
name: retrieve_data
arguments: data_tag: D207
datatype: string
name: retrieve_data
arguments: data_tag: D202
datatype: string
name: retrieve_data
arguments: data_tag: D144
datatype: string
name: retrieve_data
arguments: data_tag: D88
datatype: string
name: retrieve_data
arguments: data_tag: D160
datatype: string
name: retrieve_data
arguments: data_tag: D100
datatype: string
name: retrieve_data
arguments: data_tag: D240
datatype: string
name: retrieve_data
arguments: data_tag: D226
datatype: string
name: retrieve_data
arguments: data_tag: D205
datatype: string
name: retrieve_data
arguments: data_tag: D133
datatype: string
name: retrieve_data
arguments: data_tag: D200
datatype: string
name: retrieve_data
arguments: data_tag: D78
datatype: string
name: retrieve_data
arguments: data_tag: D70
datatype: string
name: retrieve_data
arguments: data_tag: D222
datatype: string
name: retrieve_data
arguments: data_tag: D173
datatype: string
name: retrieve_data
arguments: data_tag: D38
datatype: string
name: retrieve_data
arguments: data_tag: D183
datatype: string
name: retrieve_data
arguments: data_tag: D193
datatype: string
name: retrieve_data
arguments: data_tag: D46
datatype: string
name: retrieve_data
arguments: data_tag: D247
datatype: string
name: retrieve_data
arguments: data_tag: D98
datatype: string
name: retrieve_data
arguments: data_tag: D32
datatype: string

tool: D192: %05d,%d,%d


tool: D207: %s

tool: D202:  ID 

tool: D144: %05d

tool: D88:  | RAW:

tool: D160: 0x%08X | 

tool: D100: UKNWN: [0x

tool: D240: ePLL [0x

tool: D226: %d] 

tool: D205: hPLL [0x

tool: D133: mPLL [0x

tool: D200: | Y  	    : [0x

tool: D78: %x] |  

tool: 

tool: D222: %d


tool: D173: | ERROR	    : [0x

tool: D38: | TAG LOCAL : [0x

tool: D183: | PERIOD 	  : [0x

tool: D193: | EVENT 	  : [0x

tool: D46: | TAG REF   : [0x

tool: D247: | SAMPLE ID : [0x

tool: D98: | UNKNOWN! : [0x

tool: D32: --------------------------------------------------------------------------------


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;
}
```