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

```asm
<decode_args>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %r8,-0x30(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L125
L314:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x25,%al
  jne    L55
  addl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x7a,%eax
  ja     L419
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D18(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D18(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_cpureg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x10,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_cpureg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x15,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_cpureg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  cwtl
  mov    -0x28(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <print_imm@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  movzwl %ax,%eax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <print_hex@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x15,%eax
  and    $0x1f,%eax
  mov    %eax,%esi
  mov    -0x14(%rbp),%eax
  cwtl
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%edi
  call   <print_ofs@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  cwtl
  mov    -0x28(%rbp),%rdx
  mov    -0x18(%rbp),%ecx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <print_pcofs@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x15,%eax
  and    $0x1f,%eax
  mov    %eax,%esi
  mov    -0x14(%rbp),%eax
  cwtl
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%edi
  call   <print_ofs@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x18(%rbp),%eax
  and    $0xf0000000,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x2,%eax
  and    $0xffffffc,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_jump@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x15,%eax
  and    $0x1f,%eax
  mov    %eax,%ecx
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %ecx,%edi
  call   <print_jumpr@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x6,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_int@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_cop0@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_cop1@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  movb   $0x24,(%rax)
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_int@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x10,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_hex@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x6,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_fpureg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x10,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_fpureg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_fpureg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_debugreg@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  and    $0x1f,%eax
  lea    0x1(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_int@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L442
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x14(%rbp),%edx
  shr    $0x10,%edx
  mov    %edx,%ecx
  and    $0x7f,%ecx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <print_vfpureg@plt>
  mov    %rax,-0x28(%rbp)
  addl   $0x1,-0xc(%rbp)
  jmp    L442
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L200
  mov    -0x14(%rbp),%eax
  shr    $0x8,%eax
  and    $0x7f,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  je     L172
  mov    -0x4(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L401
  andl   $0x5f,-0x4(%rbp)
  jmp    L172
L401:
  orl    $0x20,-0x4(%rbp)
L172:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x4(%rbp),%eax
  mov    -0x28(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <print_vfpureg@plt>
  mov    %rax,-0x28(%rbp)
  addl   $0x1,-0xc(%rbp)
  jmp    L200
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L43
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x14(%rbp),%edx
  mov    %edx,%ecx
  and    $0x7f,%ecx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <print_vfpureg@plt>
  mov    %rax,-0x28(%rbp)
  addl   $0x1,-0xc(%rbp)
  jmp    L43
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L167
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x14(%rbp),%edx
  shl    $0x5,%edx
  mov    %edx,%ecx
  and    $0x60,%ecx
  mov    -0x14(%rbp),%edx
  shr    $0x10,%edx
  and    $0x1f,%edx
  or     %edx,%ecx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <print_vfpureg@plt>
  mov    %rax,-0x28(%rbp)
  addl   $0x1,-0xc(%rbp)
  jmp    L167
  mov    -0x14(%rbp),%eax
  shr    $0x12,%eax
  and    $0x7,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_imm@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x6,%eax
  and    $0xfffff,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_hex@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x6,%eax
  and    $0xfffff,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <print_syscall@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  mov    -0x14(%rbp),%eax
  shr    $0x15,%eax
  and    $0x1f,%eax
  mov    %eax,%esi
  mov    -0x14(%rbp),%eax
  and    $0xfffffffc,%eax
  cwtl
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%edi
  call   <print_ofs@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L37
  movl   $0x1,-0x8(%rbp)
  jmp    L37
L419:
  nop
  jmp    L37
L442:
  nop
  jmp    L37
L200:
  nop
  jmp    L37
L43:
  nop
  jmp    L37
L167:
  nop
L37:
  addl   $0x1,-0xc(%rbp)
  jmp    L125
L55:
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  movzbl (%rcx),%edx
  mov    %dl,(%rax)
L125:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L314
  jmp    L316
  nop
L316:
  mov    -0x28(%rbp),%rax
  movb   $0x0,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void decode_args(unsigned int opcode, unsigned int PC, const char *fmt, char *output, unsigned int *realregs) {
  int i = 0;
  int vmmul = 0;
  while (fmt[i]) {
    if (fmt[i] == '%') {
      i++;
      switch (fmt[i]) {
      case 'd':
        output = print_cpureg(((opcode >> 11) & 0x1F), output);
        break;
      case 't':
        output = print_cpureg(((opcode >> 16) & 0x1F), output);
        break;
      case 's':
        output = print_cpureg(((opcode >> 21) & 0x1F), output);
        break;
      case 'i':
        output = print_imm(((signed short)(opcode & 0xFFFF)), output);
        break;
      case 'I':
        output = print_hex(((unsigned short)(opcode & 0xFFFF)), output);
        break;
      case 'o':
        output = print_ofs(((signed short)(opcode & 0xFFFF)), ((opcode >> 21) & 0x1F), output, realregs);
        break;
      case 'O':
        output = print_pcofs(((signed short)(opcode & 0xFFFF)), PC, output);
        break;
      case 'V':
        output = print_ofs(((signed short)(opcode & 0xFFFF)), ((opcode >> 21) & 0x1F), output, realregs);
        break;
      case 'j':
        output = print_jump(((PC & 0xF0000000) | ((opcode & 0x3FFFFFF) << 2)), output);
        break;
      case 'J':
        output = print_jumpr(((opcode >> 21) & 0x1F), output, realregs);
        break;
      case 'a':
        output = print_int(((opcode >> 6) & 0x1F), output);
        break;
      case '0':
        output = print_cop0(((opcode >> 11) & 0x1F), output);
        break;
      case '1':
        output = print_cop1(((opcode >> 11) & 0x1F), output);
        break;
      case 'p':
        *output++ = '$';
        output = print_int(((opcode >> 11) & 0x1F), output);
        break;
      case 'k':
        output = print_hex(((opcode >> 16) & 0x1F), output);
        break;
      case 'D':
        output = print_fpureg(((opcode >> 6) & 0x1F), output);
        break;
      case 'T':
        output = print_fpureg(((opcode >> 16) & 0x1F), output);
        break;
      case 'S':
        output = print_fpureg(((opcode >> 11) & 0x1F), output);
        break;
      case 'r':
        output = print_debugreg(((opcode >> 11) & 0x1F), output);
        break;
      case 'n':
        output = print_int(((opcode >> 11) & 0x1F) + 1, output);
        break;
      case 'x':
        if (fmt[i + 1]) {
          output = print_vfpureg(((opcode >> 16) & 0x7F), fmt[i + 1], output);
          i++;
        }
        break;
      case 'y':
        if (fmt[i + 1]) {
          int reg = ((opcode >> 8) & 0x7F);
          if (vmmul) {
            if (reg & 0x20) {
              reg &= 0x5F;
            } else {
              reg |= 0x20;
            }
          }
          output = print_vfpureg(reg, fmt[i + 1], output);
          i++;
        }
        break;
      case 'z':
        if (fmt[i + 1]) {
          output = print_vfpureg((opcode & 0x7F), fmt[i + 1], output);
          i++;
        }
        break;
      case 'v':
        break;
      case 'X':
        if (fmt[i + 1]) {
          output = print_vfpureg((((opcode & 3) << 5) | ((opcode >> 16) & 0x1F)), fmt[i + 1], output);
          i++;
        }
        break;
      case 'Z':
        output = print_imm(((opcode >> 18) & 7), output);
        break;
      case 'c':
        output = print_hex(((opcode >> 6) & 0xFFFFF), output);
        break;
      case 'C':
        output = print_syscall(((opcode >> 6) & 0xFFFFF), output);
        break;
      case 'Y':
        output = print_ofs(((signed short)(opcode & 0xFFFF)) & ~3, ((opcode >> 21) & 0x1F), output, realregs);
        break;
      case '?':
        vmmul = 1;
        break;
      case 0:
        goto end;
      default:
        break;
      };
      i++;
    } else {
      *output++ = fmt[i++];
    }
  }
end:
  *output = 0;
}
```