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

```asm
<ParseOpcodes>:
  endbr64
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x8,%rsp
  call   <OpcodeLen@plt>
  cmp    %r12d,%eax
  jg     L122
  mov    %eax,%edx
  lea    (%rax,%rbx,1),%r13d
  mov    %ebx,%eax
  movzbl 0x0(%rbp,%rax,1),%edi
  cmp    $0x38,%dil
  jbe    L139
  cmp    $0xc1,%dil
  jbe    L122
  lea    0x3e(%rdi),%eax
  cmp    $0xc2,%dil
  jb     L122
  lea    D3(%rip),%rcx
  movzbl %al,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L139:
  cmp    $0xf,%dil
  ja     L138
L122:
  add    $0x8,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L138:
  movabs $0x101010100000000,%rax
  bt     %rdi,%rax
  jb     L92
  cmp    $0x18,%dil
  je     L144
  cmp    $0x10,%dil
  jne    L122
L92:
  lea    0x1(%rbx),%eax
  mov    %rbp,%rsi
  movsbl 0x0(%rbp,%rax,1),%eax
  lea    0x2(%rbx,%rax,1),%edi
  call   <ParseOpcodes>
  add    $0x8,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
  lea    0x2(%rbx),%eax
  mov    %rbp,%rsi
  movzbl 0x0(%rbp,%rax,1),%edi
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  shl    $0x8,%edi
  add    %eax,%edi
  call   <ParseOpcodes>
  add    $0x8,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
  and    $0x38,%edi
  mov    %rbp,%rsi
  call   <ParseOpcodes>
  jmp    L122
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  and    $0xfffffff7,%eax
  cmp    $0x45,%al
  mov    $0x2,%eax
  cmove  %eax,%r13d
  jmp    L122
  nopl   0x0(%rax,%rax,1)
  lea    0x2(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%r13d
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  shl    $0x8,%r13d
  add    %eax,%r13d
  jmp    L122
  nopl   (%rax)
  lea    0x1(%rbx),%eax
  cmpb   $0xe9,0x0(%rbp,%rax,1)
  jne    L122
  lea    D14(%rip),%rdi
  call   <printf@plt>
  jmp    L122
  nop
  lea    0x1(%rbx),%eax
  cmpb   $0xe9,0x0(%rbp,%rax,1)
  jne    L122
  lea    D15(%rip),%rdi
  call   <printf@plt>
  jmp    L122
  nop
L144:
  lea    0x1(%rbx),%eax
  movsbl 0x0(%rbp,%rax,1),%eax
  lea    0x2(%rbx,%rax,1),%r13d
  jmp    L122
  nopw   0x0(%rax,%rax,1)
  mov    $0x1,%r13d
  jmp    L122
```

tool_calls: name: unpack_data
arguments: label: D14
data_type: string
name: unpack_data
arguments: label: D15
data_type: string

tool: D14: 	JP (IX) gefunden

tool: D15: 	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;
}
```