user: 下面的汇编指令对应的C源代码是什么：

```asm
<Z80_Index_GetOpcodeCountForInstruction>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <Z80_RD_MEM@plt>
  cmp    $0xdd,%al
  je     L331
  ja     L205
  mov    $0x4,%edx
  cmp    $0xcb,%al
  jne    L147
L41:
  mov    %edx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L205:
  mov    %eax,%ecx
  and    $0xffffffef,%ecx
  mov    $0x1,%edx
  cmp    $0xed,%cl
  je     L41
L191:
  mov    %eax,%ecx
  and    $0x7,%ecx
  cmp    $0x3,%cl
  je     L114
  cmp    $0x5,%cl
  je     L36
  mov    $0x1,%edx
  cmp    $0x1,%cl
  jne    L41
  test   $0x8,%al
  je     L323
  and    $0xffffffef,%eax
  cmp    $0xe9,%al
  sete   %dl
  movzbl %dl,%edx
  add    $0x1,%edx
  jmp    L41
L147:
  mov    %eax,%edx
  and    $0xffffffc0,%edx
  cmp    $0x80,%dl
  je     L194
  ja     L50
  test   %dl,%dl
  je     L387
  cmp    $0x40,%dl
  jne    L48
  mov    $0x1,%edx
  cmp    $0x76,%al
  je     L41
  mov    %eax,%ebp
  and    $0x7,%ebp
  shr    $0x3,%al
  mov    %eax,%ebx
  and    $0x7,%ebx
  mov    %ebx,%edi
  call   <Diss_Index_IsReg8Bit@plt>
  test   %eax,%eax
  jne    L373
  movzbl %bpl,%edi
  call   <Diss_Index_IsReg8Bit@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  je     L41
L373:
  mov    %ebx,%edi
  call   <Diss_Index_Get8BitRegCount@plt>
  mov    %eax,%ebx
  movzbl %bpl,%edi
  call   <Diss_Index_Get8BitRegCount@plt>
  cmp    %al,%bl
  jae    L99
  movzbl %al,%eax
  lea    0x1(%rax),%edx
  jmp    L41
L48:
  mov    $0x1,%edx
  jmp    L41
L50:
  cmp    $0xc0,%dl
  je     L191
  mov    $0x1,%edx
  jmp    L41
L387:
  mov    %eax,%edx
  and    $0x7,%edx
  cmp    $0x6,%dl
  ja     L224
  movzbl %dl,%edx
  lea    D9(%rip),%rcx
  movslq (%rcx,%rdx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x2,%edx
  test   $0x8,%al
  jne    L41
  shr    $0x4,%al
  movzbl %al,%edi
  call   <Diss_Index_IsRegIndex@plt>
  cmp    $0x1,%eax
  sbb    %edx,%edx
  and    $0xfffffffd,%edx
  add    $0x4,%edx
  jmp    L41
  shr    $0x4,%al
  cmp    $0x2,%al
  sete   %dl
  movzbl %dl,%edx
  lea    0x1(%rdx,%rdx,2),%edx
  jmp    L41
  shr    $0x4,%al
  movzbl %al,%edi
  call   <Diss_Index_IsRegIndex@plt>
  cmp    $0x1,%eax
  mov    $0x1,%edx
  sbb    $0xffffffff,%edx
  jmp    L41
  shr    $0x3,%al
  movzbl %al,%ebx
  mov    %ebx,%edi
  call   <Diss_Index_IsReg8Bit@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  je     L41
  mov    %ebx,%edi
  call   <Diss_Index_Get8BitRegCount@plt>
  movzbl %al,%edx
  add    $0x1,%edx
  jmp    L41
  shr    $0x3,%al
  movzbl %al,%ebx
  mov    %ebx,%edi
  call   <Diss_Index_IsReg8Bit@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  je     L41
  mov    %ebx,%edi
  call   <Diss_Index_Get8BitRegCount@plt>
  movzbl %al,%edx
  add    $0x2,%edx
  jmp    L41
L99:
  movzbl %bl,%edx
  add    $0x1,%edx
  jmp    L41
L194:
  mov    %eax,%ebx
  and    $0x7,%ebx
  mov    %ebx,%edi
  call   <Diss_Index_IsReg8Bit@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  je     L41
  mov    %ebx,%edi
  call   <Diss_Index_Get8BitRegCount@plt>
  movzbl %al,%edx
  add    $0x1,%edx
  jmp    L41
L323:
  shr    $0x4,%al
  mov    %eax,%edi
  and    $0x3,%edi
  call   <Diss_Index_IsRegIndex@plt>
  cmp    $0x1,%eax
  mov    $0x1,%edx
  sbb    $0xffffffff,%edx
  jmp    L41
L114:
  mov    %eax,%edx
  and    $0x30,%edx
  cmp    $0x10,%dl
  sete   %cl
  cmp    $0xc3,%al
  sete   %dl
  or     %edx,%ecx
  xor    $0x1,%ecx
  cmp    $0xe3,%al
  sete   %dl
  movzbl %dl,%edx
  and    %ecx,%edx
  add    $0x1,%edx
  jmp    L41
L36:
  mov    $0x1,%edx
  test   $0x8,%al
  jne    L41
  shr    $0x4,%al
  mov    %eax,%edi
  and    $0x3,%edi
  call   <Diss_Index_IsRegIndex@plt>
  cmp    $0x1,%eax
  mov    $0x1,%edx
  sbb    $0xffffffff,%edx
  jmp    L41
L331:
  mov    $0x1,%edx
  jmp    L41
L224:
  mov    $0x1,%edx
  jmp    L41
```

assistant: ```c
int Z80_Index_GetOpcodeCountForInstruction(int DisAddr) {
  unsigned char Opcode;
  Opcode = Z80_RD_MEM(DisAddr);
  DisAddr++;
  switch (Opcode) {
  case 0x0dd:
  case 0x0fd:
  case 0x0ed:
    return 1;
  case 0x0cb:
    return 4;
  default: {
    switch (Opcode & 0x0c0) {
    case 0x000: {
      switch (Opcode & 0x07) {
      case 1: {
        if ((Opcode & 0x08) != 0) {
          return 2;
        } else {
          if (Diss_Index_IsRegIndex((Opcode >> 4) & 0x03)) {
            return 4;
          }
        }
      } break;
      case 2: {
        switch ((Opcode >> 4) & 0x03) {
        case 2:
          return 4;
        default:
          break;
        }
      } break;
      case 3: {
        if (Diss_Index_IsRegIndex((Opcode >> 4) & 0x03))
          return 2;
      } break;
      case 4:
      case 5: {
        unsigned char OpcodeIndex;
        OpcodeIndex = ((Opcode >> 3) & 0x07);
        if (Diss_Index_IsReg8Bit(OpcodeIndex))
          return Diss_Index_Get8BitRegCount(OpcodeIndex) + 1;
      } break;
      case 6: {
        unsigned char OpcodeIndex;
        OpcodeIndex = (Opcode >> 3) & 0x07;
        if (Diss_Index_IsReg8Bit(OpcodeIndex))
          return Diss_Index_Get8BitRegCount(OpcodeIndex) + 2;
      } break;
      default:
        break;
      }
    } break;
    case 0x040: {
      if (Opcode != 0x076) {
        unsigned char Reg1, Reg2;
        Reg1 = (Opcode >> 3) & 0x07;
        Reg2 = Opcode & 0x07;
        if (Diss_Index_IsReg8Bit(Reg1) || Diss_Index_IsReg8Bit(Reg2)) {
          unsigned char Length1, Length2;
          Length1 = Diss_Index_Get8BitRegCount(Reg1);
          Length2 = Diss_Index_Get8BitRegCount(Reg2);
          if (Length1 < Length2) {
            return Length2 + 1;
          }
          return Length1 + 1;
        }
      }
    } break;
    case 0x080: {
      unsigned char OpcodeIndex;
      OpcodeIndex = (Opcode & 0x07);
      if (Diss_Index_IsReg8Bit(OpcodeIndex))
        return Diss_Index_Get8BitRegCount(OpcodeIndex) + 1;
    } break;
    case 0x0c0: {
      switch (Opcode & 0x07) {
      case 1: {
        if ((Opcode & (1 << 3)) == 0) {
          if (Diss_Index_IsRegIndex((Opcode >> 4) & 0x03))
            return 2;
        } else {
          if ((Opcode == 0x0f9) || (Opcode == 0x0e9))
            return 2;
        }
      } break;
      case 3: {
        if ((Opcode & (3 << 4)) == (1 << 4)) {
        } else if (Opcode == 0x0c3) {
        } else {
          if (Opcode == 0x0e3)
            return 2;
        }
      } break;
      case 5: {
        if ((Opcode & (1 << 3)) == 0) {
          if (Diss_Index_IsRegIndex((Opcode >> 4) & 0x03))
            return 2;
        }
      } break;
      default:
        break;
      }
    } break;
    }
  } break;
  }
  return 1;
}
```