user: Converte this assembly snippet into its equivalent C code:

```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     L162
  mov    %eax,%edx
  lea    (%rax,%rbx,1),%r13d
  mov    %ebx,%eax
  movzbl 0x0(%rbp,%rax,1),%edi
  cmp    $0x38,%dil
  jbe    L106
  cmp    $0xc1,%dil
  jbe    L162
  lea    0x3e(%rdi),%eax
  cmp    $0xc2,%dil
  jb     L162
  lea    D7(%rip),%rcx
  movzbl %al,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L106:
  cmp    $0xf,%dil
  ja     L94
L162:
  add    $0x8,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L94:
  movabs $0x101010100000000,%rax
  bt     %rdi,%rax
  jb     L144
  cmp    $0x18,%dil
  je     L160
  cmp    $0x10,%dil
  jne    L162
L144:
  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    L162
  lea    0x1(%rbx),%eax
  movzbl 0x0(%rbp,%rax,1),%eax
  and    $0xfffffff7,%eax
  cmp    $0x45,%al
  mov    $0x2,%eax
  cmove  %eax,%r13d
  jmp    L162
  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    L162
  nopl   (%rax)
  lea    0x1(%rbx),%eax
  cmpb   $0xe9,0x0(%rbp,%rax,1)
  jne    L162
  lea    D17(%rip),%rdi
  call   <printf@plt>
  jmp    L162
  nop
  lea    0x1(%rbx),%eax
  cmpb   $0xe9,0x0(%rbp,%rax,1)
  jne    L162
  lea    D1(%rip),%rdi
  call   <printf@plt>
  jmp    L162
  nop
L160:
  lea    0x1(%rbx),%eax
  movsbl 0x0(%rbp,%rax,1),%eax
  lea    0x2(%rbx,%rax,1),%r13d
  jmp    L162
  nopw   0x0(%rax,%rax,1)
  mov    $0x1,%r13d
  jmp    L162
```

tool_calls: name: unpack_data
arguments: label: D17
type_infered: string
name: unpack_data
arguments: label: D1
type_infered: string

tool: D17: 	JP (IX) gefunden

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