user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ParseOpcodes>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  mov    %rsi,%rbp
  mov    %edx,%r13d
  call   <OpcodeLen@plt>
  mov    $0x0,%r12d
  cmp    %r13d,%eax
  jg     L150
  mov    %eax,%edx
  lea    (%rax,%rbx,1),%r12d
  mov    %ebx,%eax
  movzbl 0x0(%rbp,%rax,1),%ecx
  cmp    $0x38,%cl
  jbe    L97
  cmp    $0xc1,%cl
  jbe    L150
  lea    0x3e(%rcx),%eax
  cmp    $0xc2,%cl
  jb     L150
  movzbl %al,%eax
  lea    D9(%rip),%rsi
  movslq (%rsi,%rax,4),%rax
  add    %rsi,%rax
  notrack jmp *%rax
L97:
  cmp    $0xf,%cl
  jbe    L150
  mov    $0x1,%eax
  shl    %cl,%rax
  movabs $0x101010100000000,%rsi
  test   %rsi,%rax
  jne    L146
  cmp    $0x18,%cl
  je     L199
  cmp    $0x10,%cl
  je     L185
L150:
  mov    %r12d,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  lea    0x2(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%edi
  shl    $0x8,%edi
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  add    %eax,%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L150
L146:
  lea    0x1(%rbx),%eax
  movsbl 0x0(%rbp,%rax,1),%eax
  lea    0x2(%rbx,%rax,1),%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L150
  lea    0x2(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%edi
  shl    $0x8,%edi
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  add    %eax,%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L150
  mov    %ecx,%edi
  and    $0x38,%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L150
L185:
  lea    0x1(%rbx),%eax
  movsbl 0x0(%rbp,%rax,1),%eax
  lea    0x2(%rbx,%rax,1),%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L150
  lea    0x2(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%r12d
  shl    $0x8,%r12d
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  add    %eax,%r12d
  jmp    L150
L199:
  lea    0x1(%rbx),%eax
  movsbl 0x0(%rbp,%rax,1),%eax
  lea    0x2(%rbx,%rax,1),%r12d
  jmp    L150
  lea    0x2(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%edi
  shl    $0x8,%edi
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  add    %eax,%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L150
  lea    0x1(%rbx),%eax
  cmpb   $0xe9,0x0(%rbp,%rax,1)
  jne    L150
  lea    D23(%rip),%rdi
  call   <printf@plt>
  jmp    L150
  lea    0x1(%rbx),%eax
  cmpb   $0xe9,0x0(%rbp,%rax,1)
  jne    L150
  lea    D20(%rip),%rdi
  call   <printf@plt>
  jmp    L150
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  and    $0xfffffff7,%eax
  cmp    $0x45,%al
  mov    $0x2,%eax
  cmove  %eax,%r12d
  jmp    L150
  mov    $0x1,%r12d
  jmp    L150
```

tool_calls: name: disassemble_data
arguments: data_tag: D23
data_type: string
name: disassemble_data
arguments: data_tag: D20
data_type: string

tool: D23: 	JP (IX) gefunden

tool: D20: 	JP (IY) gefunden

assistant: ```c
unsigned int ParseOpcodes(unsigned int adr, unsigned char *Opcodes, int len) {
  int i;
  unsigned int next;
  i = OpcodeLen(adr, Opcodes);
  if (len < i)
    return 0;
  len = i;
  next = adr + len;
  switch (Opcodes[adr]) {
  case 0xCA:
  case 0xC2:
  case 0xDA:
  case 0xD2:
  case 0xEA:
  case 0xE2:
  case 0xFA:
  case 0xF2:
    ParseOpcodes((Opcodes[adr + 2] << 8) + Opcodes[adr + 1], Opcodes, len);
    break;
  case 0x28:
  case 0x20:
  case 0x38:
  case 0x30:
    ParseOpcodes(adr + 2 + (char)Opcodes[adr + 1], Opcodes, len);
    break;
  case 0xCC:
  case 0xC4:
  case 0xDC:
  case 0xD4:
  case 0xEC:
  case 0xE4:
  case 0xFC:
  case 0xF4:
    ParseOpcodes((Opcodes[adr + 2] << 8) + Opcodes[adr + 1], Opcodes, len);
    break;
  case 0xC8:
  case 0xC0:
  case 0xD8:
  case 0xD0:
  case 0xE8:
  case 0xE0:
  case 0xF8:
  case 0xF0:
    break;
  case 0xC7:
  case 0xCF:
  case 0xD7:
  case 0xDF:
  case 0xE7:
  case 0xEF:
  case 0xF7:
  case 0xFF:
    ParseOpcodes(Opcodes[adr] & 0x38, Opcodes, len);
    break;
  case 0x10:
    ParseOpcodes(adr + 2 + (char)Opcodes[adr + 1], Opcodes, len);
    break;
  case 0xC3:
    next = (Opcodes[adr + 2] << 8) + Opcodes[adr + 1];
    break;
  case 0x18:
    next = adr + 2 + (char)Opcodes[adr + 1];
    break;
  case 0xCD:
    ParseOpcodes((Opcodes[adr + 2] << 8) + Opcodes[adr + 1], Opcodes, len);
    break;
  case 0xC9:
    return 1;
  case 0xE9:
    break;
  case 0xDD:
    if (Opcodes[adr + 1] == 0xE9) {
      printf("\tJP (IX) gefunden");
    }
    break;
  case 0xFD:
    if (Opcodes[adr + 1] == 0xE9) {
      printf("\tJP (IY) gefunden");
    }
    break;
  case 0xED:
    if (Opcodes[adr + 1] == 0x4D) {
      return 2;
    } else if (Opcodes[adr + 1] == 0x45) {
      return 2;
    }
    break;
  }
  return next;
}
```