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

```asm
<meter_monitor_dump>:
  endbr64
  cmpb   $0x2,(%rsi)
  je     L77
  ret
  nopw   0x0(%rax,%rax,1)
L77:
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  movzbl 0x2(%rsi),%eax
  movzbl 0x1(%rsi),%r13d
  mov    %eax,%edx
  and    $0x1f,%r13d
  mov    %eax,%ebp
  mov    %eax,%r14d
  and    $0x7,%edx
  shr    $0x5,%al
  mov    %r13d,%edi
  and    $0x7,%ebp
  mov    %edx,0xc(%rsp)
  movzbl %al,%r15d
  shr    $0x3,%r14b
  call   <get_meter_type_string@plt>
  lea    D13(%rip),%rdi
  and    $0x3,%r14d
  mov    %r15d,%r12d
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  movzbl 0x1(%rbx),%esi
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  shr    $0x5,%sil
  and    $0x3,%esi
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r14d,%esi
  lea    D19(%rip),%rdi
  call   <printf@plt>
  test   %bpl,%bpl
  je     L22
  mov    0xc(%rsp),%edx
  movzbl 0x3(%rbx),%ebp
  cmp    $0x1,%edx
  je     L39
  movzbl 0x4(%rbx),%eax
  shl    $0x8,%rbp
  or     %rax,%rbp
  cmp    $0x2,%edx
  je     L39
  movzbl 0x5(%rbx),%eax
  shl    $0x8,%rbp
  or     %rax,%rbp
  cmp    $0x3,%edx
  je     L39
  movzbl 0x6(%rbx),%eax
  shl    $0x8,%rbp
  or     %rax,%rbp
  cmp    $0x4,%edx
  je     L39
  movzbl 0x7(%rbx),%eax
  shl    $0x8,%rbp
  or     %rax,%rbp
  cmp    $0x5,%edx
  je     L39
  movzbl 0x8(%rbx),%eax
  shl    $0x8,%rbp
  or     %rax,%rbp
  cmp    $0x7,%edx
  jne    L39
  movzbl 0x9(%rbx),%eax
  shl    $0x8,%rbp
  or     %rax,%rbp
L39:
  test   %r12b,%r12b
  je     L34
  cmp    $0x1,%r15d
  je     L111
  cmp    $0x2,%r15d
  je     L85
  cmp    $0x3,%r15d
  je     L200
  cmp    $0x4,%r15d
  je     L60
  cmp    $0x5,%r15d
  je     L3
  cmp    $0x7,%r15d
  mov    $0x989680,%ebx
  mov    $0xf4240,%eax
  cmovne %rax,%rbx
L138:
  mov    %r14d,%esi
  mov    %r13d,%edi
  call   <get_meter_scale_string@plt>
  xor    %edx,%edx
  add    $0x18,%rsp
  mov    %rbp,%rsi
  mov    %eax,%r8d
  mov    %rbp,%rax
  lea    D39(%rip),%rdi
  div    %rbx
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  mov    %rdx,%rcx
  mov    %rax,%rdx
  xor    %eax,%eax
  jmp    1080 <printf@plt>
  nopl   0x0(%rax)
L200:
  mov    $0x3e8,%ebx
  jmp    L138
  nopw   0x0(%rax,%rax,1)
L22:
  xor    %ebp,%ebp
  jmp    L39
  nopw   0x0(%rax,%rax,1)
L34:
  mov    $0x1,%ebx
  jmp    L138
  nopw   0x0(%rax,%rax,1)
L111:
  mov    $0xa,%ebx
  jmp    L138
  nopw   0x0(%rax,%rax,1)
L85:
  mov    $0x64,%ebx
  jmp    L138
L60:
  mov    $0x2710,%ebx
  jmp    L138
L3:
  mov    $0x186a0,%ebx
  jmp    L138
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D13
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D19
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D39
type_guessed: string

tool: D13: Meter type: %s 

tool: D2: Rate type %x 

tool: D19: scale: %d 

tool: D39: val: %lu (%lu.%lu %s)


assistant: ```c
void meter_monitor_dump(int src, void *payload, int len) {
  unsigned char *pp = (unsigned char *)payload;
  int type, size, scale, precision, i;
  unsigned long val;
  unsigned long div = 1;
  if (pp[0] != 0x02) {
    return;
  }
  type = pp[1] & 0x1f;
  size = pp[2] & 7;
  scale = (pp[2] >> 3) & 3;
  precision = (pp[2] >> 5) & 7;
  printf("Meter type: %s ", get_meter_type_string(type));
  printf("Rate type %x ", (pp[1] >> 5) & 0x3);
  printf("scale: %d ", scale);
  val = 0;
  for (i = 0; i < size; i++)
    val = val << 8 | pp[3 + i];
  for (i = 0; i < precision; i++)
    div = div * 10;
  printf("val: %lu (%lu.%lu %s)\n", val, val / div, val % div, get_meter_scale_string(type, scale));
}
```