
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

mpage_name_func * get_mpage_name_func(mpage_info *mpi)

{
  uint uVar1;
  int iVar2;
  mpage_name_func *pmVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  
  uVar1 = mpi->peri_type;
  if (uVar1 < 0xf) {
    iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);
    switch(iVar2) {
    default:
      uVar4 = mpi->inq_byte6;
      iVar6 = mpi->subpage;
      iVar5 = mpi->page;
      goto joined_r0x000150a8;
    case 1:
      iVar6 = mpi->subpage;
      iVar5 = mpi->page;
      pmVar3 = mpage_disk;
      do {
        if (iVar5 == pmVar3->page) {
          if (iVar6 == pmVar3->subpage) {
            return pmVar3;
          }
        }
        else if (iVar5 < pmVar3->page) break;
        pmVar3 = pmVar3 + 1;
      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);
      break;
    case 2:
      iVar6 = mpi->subpage;
      iVar5 = mpi->page;
      pmVar3 = mpage_tape;
      do {
        if (iVar5 == pmVar3->page) {
          if (iVar6 == pmVar3->subpage) {
            return pmVar3;
          }
        }
        else if (iVar5 < pmVar3->page) break;
        pmVar3 = pmVar3 + 1;
      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);
      break;
    case 3:
      iVar6 = mpi->subpage;
      iVar5 = mpi->page;
      pmVar3 = mpage_cdvd;
      do {
        if (iVar5 == pmVar3->page) {
          if (iVar6 == pmVar3->subpage) {
            return pmVar3;
          }
        }
        else if (iVar5 < pmVar3->page) break;
        pmVar3 = pmVar3 + 1;
      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);
      break;
    case 4:
      iVar6 = mpi->subpage;
      iVar5 = mpi->page;
      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;
      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;
      goto LAB_00014ec3;
    case 5:
      iVar6 = mpi->subpage;
      iVar5 = mpi->page;
      pmVar3 = mpage_smc;
      do {
        if (iVar5 == pmVar3->page) {
          if (iVar6 == pmVar3->subpage) {
            return pmVar3;
          }
        }
        else if (iVar5 < pmVar3->page) break;
        pmVar3 = pmVar3 + 1;
      } while (pmVar3 != mpage_ses);
      uVar4 = mpi->inq_byte6;
      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;
      goto LAB_0001505b;
    }
    uVar4 = mpi->inq_byte6;
joined_r0x000150a8:
    if ((uVar4 & 0x40) != 0) {
LAB_0001505b:
      if (iVar5 == mpage_ses[0].page) {
        if (iVar6 == mpage_ses[0].subpage) {
          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;
          goto LAB_00015033;
        }
        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);
      }
      if (iVar2 == 5) goto LAB_00014e50;
    }
joined_r0x00014f22:
    if ((uVar4 & 8) == 0) goto LAB_00014e50;
  }
  else {
    iVar6 = mpi->subpage;
    iVar5 = mpi->page;
    uVar4 = mpi->inq_byte6;
    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))
    goto joined_r0x00014f22;
LAB_00015033:
    if ((uVar4 & 8) == 0) {
LAB_00014f00:
      return mpage_ses;
    }
  }
LAB_00014ec3:
  pmVar3 = mpage_smc;
  do {
    if (pmVar3->page == iVar5) {
      if (pmVar3->subpage == iVar6) {
        return pmVar3;
      }
    }
    else if (iVar5 < pmVar3->page) break;
    pmVar3 = pmVar3 + 1;
  } while (pmVar3 != mpage_ses);
LAB_00014e50:
  pmVar3 = mpage_common;
  do {
    if (pmVar3->page == iVar5) {
      if (pmVar3->subpage == iVar6) {
        return pmVar3;
      }
    }
    else if (iVar5 < pmVar3->page) {
      return (mpage_name_func *)0x0;
    }
    pmVar3 = pmVar3 + 1;
  } while (pmVar3 != (mpage_name_func *)&completed_6888);
  return (mpage_name_func *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int * FUN_00014e00(int *param_1)

{
  uint uVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  
  uVar1 = param_1[3];
  if (uVar1 < 0xf) {
    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);
    switch(iVar2) {
    default:
      uVar4 = param_1[4];
      iVar6 = param_1[1];
      iVar5 = *param_1;
      goto joined_r0x000150a8;
    case 1:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = (int *)0x22260;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != (int *)0x22350);
      break;
    case 2:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = (int *)0x220a0;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != (int *)0x22168);
      break;
    case 3:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = (int *)0x22180;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != (int *)0x2225c);
      break;
    case 4:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;
      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;
      goto LAB_00014ec3;
    case 5:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = &DAT_00022020;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != &DAT_00022070);
      uVar4 = param_1[4];
      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;
      goto LAB_0001505b;
    }
    uVar4 = param_1[4];
joined_r0x000150a8:
    if ((uVar4 & 0x40) != 0) {
LAB_0001505b:
      if (iVar5 == DAT_00022070) {
        if (iVar6 == DAT_00022074) {
          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;
          goto LAB_00015033;
        }
        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);
      }
      if (iVar2 == 5) goto LAB_00014e50;
    }
joined_r0x00014f22:
    if ((uVar4 & 8) == 0) goto LAB_00014e50;
  }
  else {
    iVar6 = param_1[1];
    iVar5 = *param_1;
    uVar4 = param_1[4];
    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))
    goto joined_r0x00014f22;
LAB_00015033:
    if ((uVar4 & 8) == 0) {
LAB_00014f00:
      return &DAT_00022070;
    }
  }
LAB_00014ec3:
  piVar3 = &DAT_00022020;
  do {
    if (*piVar3 == iVar5) {
      if (piVar3[1] == iVar6) {
        return piVar3;
      }
    }
    else if (iVar5 < *piVar3) break;
    piVar3 = piVar3 + 5;
  } while (piVar3 != &DAT_00022070);
LAB_00014e50:
  piVar3 = &DAT_00022360;
  do {
    if (*piVar3 == iVar5) {
      if (piVar3[1] == iVar6) {
        return piVar3;
      }
    }
    else if (iVar5 < *piVar3) {
      return (int *)0x0;
    }
    piVar3 = piVar3 + 5;
  } while (piVar3 != (int *)&DAT_000224a0);
  return (int *)0x0;
}


CALL 0x00012a35
ADD EDX,0xd137
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x1c]
MOV ESI,dword ptr [ECX + 0xc]
CMP ESI,0xe
JBE 0x00014e88
MOV EBP,dword ptr [ECX + 0x4]
MOV ESI,dword ptr [ECX]
MOV EAX,dword ptr [ECX + 0x10]
MOV EDI,EBP
MOV EBX,ESI
TEST AL,0x40
JZ 0x00014f20
CMP ESI,dword ptr [EDX + 0x134]
JZ 0x00015027
TEST AL,0x8
JNZ 0x00015040
MOV EBP,EDI
MOV ESI,EBX
LEA ESI,[ESI]
LEA EAX,[EDX + 0x424]
LEA EDX,[EDX + 0x564]
JMP 0x00014e71
JG 0x00014f10
ADD EAX,0x14
CMP EAX,EDX
JZ 0x00014f10
CMP dword ptr [EAX],ESI
JNZ 0x00014e60
CMP dword ptr [EAX + 0x4],EBP
JNZ 0x00014e66
ADD ESP,0x8
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EDX + 0xffffc7e4]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [EAX + ESI*0x4]
MOV dword ptr [ESP],EAX
CMP EAX,0x5
JA 0x00015072
MOV EAX,dword ptr [EDX + EAX*0x4 + 0xffffc6a4]
ADD EAX,EDX
JMP EAX
LEA EAX,[EDX + 0xe4]
LEA ECX,[EDX + 0x134]
JMP 0x00014ee9
JG 0x00014e50
ADD EAX,0x14
CMP EAX,ECX
JZ 0x00014e50
CMP dword ptr [EAX],ESI
JNZ 0x00014ed8
CMP dword ptr [EAX + 0x4],EBP
JNZ 0x00014ede
JMP 0x00014e7a
LEA EAX,[EDX + 0x134]
JMP 0x00014e7a
ADD ESP,0x8
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST AL,0x8
JNZ 0x00014ec3
JMP 0x00014e50
CMP dword ptr [EDX + 0x138],EBP
JNZ 0x00014e3e
TEST AL,0x8
JZ 0x00014f00
LEA ESI,[ESI]
NOP
MOV EBP,EDI
MOV ESI,EBX
JMP 0x00014ec3
CMP EBX,dword ptr [EDX + 0x134]
JZ 0x00015088
CMP dword ptr [ESP],0x5
JNZ 0x00014e3e
JMP 0x00014e46
MOV EAX,dword ptr [ECX + 0x10]
MOV EDI,dword ptr [ECX + 0x4]
MOV EBX,dword ptr [ECX]
TEST AL,0x40
JZ 0x00014e3e
JMP 0x0001505b
CMP EDI,dword ptr [EDX + 0x138]
JZ 0x000150af
MOV ECX,dword ptr [ESP + 0x4]
CMP dword ptr [ECX + ESI*0x4],0x5
JNZ 0x00014e3e
JMP 0x00014e46
MOV ECX,dword ptr [ESP + 0x4]
CMP dword ptr [ECX + ESI*0x4],0x5
JNZ 0x00015033
JMP 0x00014f00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint * FUN_00014e00(int *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * FUN_00014e00(int *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00014e00(int *param_1)" * (function_declarator "FUN_00014e00(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" if (parenthesized_expression "(uVar1 < 0xf)" ( (binary_expression "uVar1 < 0xf" identifier < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }" { (expression_statement "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" * (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" ( (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" & identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) ;) (switch_statement "switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" switch (parenthesized_expression "(iVar2)" ( identifier )) (compound_statement "{\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" { (case_statement "default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;" default : (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (goto_statement "goto joined_r0x000150a8;" goto statement_identifier ;)) (case_statement "case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = (int *)0x22260;" (assignment_expression "piVar3 = (int *)0x22260" identifier = (cast_expression "(int *)0x22260" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x22350)" ( (binary_expression "piVar3 != (int *)0x22350" identifier != (cast_expression "(int *)0x22350" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = (int *)0x220a0;" (assignment_expression "piVar3 = (int *)0x220a0" identifier = (cast_expression "(int *)0x220a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x22168)" ( (binary_expression "piVar3 != (int *)0x22168" identifier != (cast_expression "(int *)0x22168" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = (int *)0x22180;" (assignment_expression "piVar3 = (int *)0x22180" identifier = (cast_expression "(int *)0x22180" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x2225c)" ( (binary_expression "piVar3 != (int *)0x2225c" identifier != (cast_expression "(int *)0x2225c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;" if (parenthesized_expression "((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074))" ( (binary_expression "(iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)" (parenthesized_expression "(iVar5 == DAT_00022070)" ( (binary_expression "iVar5 == DAT_00022070" identifier == identifier) )) && (parenthesized_expression "(iVar6 == DAT_00022074)" ( (binary_expression "iVar6 == DAT_00022074" identifier == identifier) ))) )) (goto_statement "goto LAB_00014f00;" goto statement_identifier ;)) (if_statement "if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;" if (parenthesized_expression "((*(byte *)(param_1 + 4) & 8) == 0)" ( (binary_expression "(*(byte *)(param_1 + 4) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 4) & 8)" ( (binary_expression "*(byte *)(param_1 + 4) & 8" (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) (goto_statement "goto LAB_00014ec3;" goto statement_identifier ;)) (case_statement "case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = &DAT_00022020;" (assignment_expression "piVar3 = &DAT_00022020" identifier = (pointer_expression "&DAT_00022020" & identifier)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != &DAT_00022070)" ( (binary_expression "piVar3 != &DAT_00022070" identifier != (pointer_expression "&DAT_00022070" & identifier)) )) ;) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if ((uVar4 & 0x40) == 0) goto LAB_00014e50;" if (parenthesized_expression "((uVar4 & 0x40) == 0)" ( (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) (goto_statement "goto LAB_0001505b;" goto statement_identifier ;)) })) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (labeled_statement "joined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" statement_identifier : (if_statement "if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" if (parenthesized_expression "((uVar4 & 0x40) != 0)" ( (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" { (labeled_statement "LAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" statement_identifier : (if_statement "if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" if (parenthesized_expression "(iVar5 == DAT_00022070)" ( (binary_expression "iVar5 == DAT_00022070" identifier == identifier) )) (compound_statement "{\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" { (if_statement "if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" if (parenthesized_expression "(iVar6 == DAT_00022074)" ( (binary_expression "iVar6 == DAT_00022074" identifier == identifier) )) (compound_statement "{\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" { (if_statement "if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;" if (parenthesized_expression "(*(int *)(&DAT_0001e720 + uVar1 * 4) == 5)" ( (binary_expression "*(int *)(&DAT_0001e720 + uVar1 * 4) == 5" (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" * (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" ( (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" & identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) == number_literal) )) (goto_statement "goto LAB_00014f00;" goto statement_identifier ;)) (goto_statement "goto LAB_00015033;" goto statement_identifier ;) })) (expression_statement "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" * (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" ( (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" & identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) ;) }))) (if_statement "if (iVar2 == 5) goto LAB_00014e50;" if (parenthesized_expression "(iVar2 == 5)" ( (binary_expression "iVar2 == 5" identifier == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) }))) (labeled_statement "joined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;" statement_identifier : (if_statement "if ((uVar4 & 8) == 0) goto LAB_00014e50;" if (parenthesized_expression "((uVar4 & 8) == 0)" ( (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;))) }) (else_clause "else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" else (compound_statement "{\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;" if (parenthesized_expression "((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))" ( (binary_expression "(((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6)" (parenthesized_expression "(((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070))" ( (binary_expression "((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)" (parenthesized_expression "((uVar4 & 0x40) == 0)" ( (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(iVar5 != DAT_00022070)" ( (binary_expression "iVar5 != DAT_00022070" identifier != identifier) ))) )) || (parenthesized_expression "(DAT_00022074 != iVar6)" ( (binary_expression "DAT_00022074 != iVar6" identifier != identifier) ))) )) (goto_statement "goto joined_r0x00014f22;" goto statement_identifier ;)) (labeled_statement "LAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }" statement_identifier : (if_statement "if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }" if (parenthesized_expression "((uVar4 & 8) == 0)" ( (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00014f00:\n      return &DAT_00022070;\n    }" { (labeled_statement "LAB_00014f00:\n      return &DAT_00022070;" statement_identifier : (return_statement "return &DAT_00022070;" return (pointer_expression "&DAT_00022070" & identifier) ;)) }))) }))) (labeled_statement "LAB_00014ec3:\n  piVar3 = &DAT_00022020;" statement_identifier : (expression_statement "piVar3 = &DAT_00022020;" (assignment_expression "piVar3 = &DAT_00022020" identifier = (pointer_expression "&DAT_00022020" & identifier)) ;)) (do_statement "do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);" do (compound_statement "{\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  }" { (if_statement "if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(*piVar3 == iVar5)" ( (binary_expression "*piVar3 == iVar5" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }" { (if_statement "if (piVar3[1] == iVar6) {\n        return piVar3;\n      }" if (parenthesized_expression "(piVar3[1] == iVar6)" ( (binary_expression "piVar3[1] == iVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != &DAT_00022070)" ( (binary_expression "piVar3 != &DAT_00022070" identifier != (pointer_expression "&DAT_00022070" & identifier)) )) ;) (labeled_statement "LAB_00014e50:\n  piVar3 = &DAT_00022360;" statement_identifier : (expression_statement "piVar3 = &DAT_00022360;" (assignment_expression "piVar3 = &DAT_00022360" identifier = (pointer_expression "&DAT_00022360" & identifier)) ;)) (do_statement "do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);" do (compound_statement "{\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  }" { (if_statement "if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*piVar3 == iVar5)" ( (binary_expression "*piVar3 == iVar5" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }" { (if_statement "if (piVar3[1] == iVar6) {\n        return piVar3;\n      }" if (parenthesized_expression "(piVar3[1] == iVar6)" ( (binary_expression "piVar3[1] == iVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" else (if_statement "if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)&DAT_000224a0)" ( (binary_expression "piVar3 != (int *)&DAT_000224a0" identifier != (cast_expression "(int *)&DAT_000224a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_000224a0" & identifier))) )) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nmpage_name_func * get_mpage_name_func(mpage_info *mpi)\n\n{\n  uint uVar1;\n  int iVar2;\n  mpage_name_func *pmVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = mpi->peri_type;\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = mpi->inq_byte6;\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = mpi->subpage;\n    iVar5 = mpi->page;\n    uVar4 = mpi->inq_byte6;\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }\n  }\nLAB_00014ec3:\n  pmVar3 = mpage_smc;\n  do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) break;\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != mpage_ses);\nLAB_00014e50:\n  pmVar3 = mpage_common;\n  do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != (mpage_name_func *)&completed_6888);\n  return (mpage_name_func *)0x0;\n}\n\n" comment comment (function_definition "mpage_name_func * get_mpage_name_func(mpage_info *mpi)\n\n{\n  uint uVar1;\n  int iVar2;\n  mpage_name_func *pmVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = mpi->peri_type;\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = mpi->inq_byte6;\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = mpi->subpage;\n    iVar5 = mpi->page;\n    uVar4 = mpi->inq_byte6;\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }\n  }\nLAB_00014ec3:\n  pmVar3 = mpage_smc;\n  do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) break;\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != mpage_ses);\nLAB_00014e50:\n  pmVar3 = mpage_common;\n  do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != (mpage_name_func *)&completed_6888);\n  return (mpage_name_func *)0x0;\n}" type_identifier (pointer_declarator "* get_mpage_name_func(mpage_info *mpi)" * (function_declarator "get_mpage_name_func(mpage_info *mpi)" identifier (parameter_list "(mpage_info *mpi)" ( (parameter_declaration "mpage_info *mpi" type_identifier (pointer_declarator "*mpi" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  mpage_name_func *pmVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = mpi->peri_type;\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = mpi->inq_byte6;\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = mpi->subpage;\n    iVar5 = mpi->page;\n    uVar4 = mpi->inq_byte6;\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }\n  }\nLAB_00014ec3:\n  pmVar3 = mpage_smc;\n  do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) break;\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != mpage_ses);\nLAB_00014e50:\n  pmVar3 = mpage_common;\n  do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != (mpage_name_func *)&completed_6888);\n  return (mpage_name_func *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "mpage_name_func *pmVar3;" type_identifier (pointer_declarator "*pmVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "uVar1 = mpi->peri_type;" (assignment_expression "uVar1 = mpi->peri_type" identifier = (field_expression "mpi->peri_type" identifier -> field_identifier)) ;) (if_statement "if (uVar1 < 0xf) {\n    iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = mpi->inq_byte6;\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = mpi->subpage;\n    iVar5 = mpi->page;\n    uVar4 = mpi->inq_byte6;\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }\n  }" if (parenthesized_expression "(uVar1 < 0xf)" ( (binary_expression "uVar1 < 0xf" identifier < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = mpi->inq_byte6;\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }" { (expression_statement "iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4)" identifier = (pointer_expression "*(int *)(CSWTCH_785 + uVar1 * 4)" * (cast_expression "(int *)(CSWTCH_785 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CSWTCH_785 + uVar1 * 4)" ( (binary_expression "CSWTCH_785 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) ;) (switch_statement "switch(iVar2) {\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" switch (parenthesized_expression "(iVar2)" ( identifier )) (compound_statement "{\n    default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;\n    case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;\n    case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;\n    case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" { (case_statement "default:\n      uVar4 = mpi->inq_byte6;\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      goto joined_r0x000150a8;" default : (expression_statement "uVar4 = mpi->inq_byte6;" (assignment_expression "uVar4 = mpi->inq_byte6" identifier = (field_expression "mpi->inq_byte6" identifier -> field_identifier)) ;) (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (goto_statement "goto joined_r0x000150a8;" goto statement_identifier ;)) (case_statement "case 1:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_disk;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);\n      break;" case number_literal : (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (expression_statement "pmVar3 = mpage_disk;" (assignment_expression "pmVar3 = mpage_disk" identifier = identifier) ;) (do_statement "do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022350);" do (compound_statement "{\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      }" { (if_statement "if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 == pmVar3->page)" ( (binary_expression "iVar5 == pmVar3->page" identifier == (field_expression "pmVar3->page" identifier -> field_identifier)) )) (compound_statement "{\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }" { (if_statement "if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }" if (parenthesized_expression "(iVar6 == pmVar3->subpage)" ( (binary_expression "iVar6 == pmVar3->subpage" identifier == (field_expression "pmVar3->subpage" identifier -> field_identifier)) )) (compound_statement "{\n            return pmVar3;\n          }" { (return_statement "return pmVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < pmVar3->page) break;" else (if_statement "if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 < pmVar3->page)" ( (binary_expression "iVar5 < pmVar3->page" identifier < (field_expression "pmVar3->page" identifier -> field_identifier)) )) (break_statement "break;" break ;)))) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pmVar3 != (mpage_name_func *)&DAT_00022350)" ( (binary_expression "pmVar3 != (mpage_name_func *)&DAT_00022350" identifier != (cast_expression "(mpage_name_func *)&DAT_00022350" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00022350" & identifier))) )) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_tape;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);\n      break;" case number_literal : (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (expression_statement "pmVar3 = mpage_tape;" (assignment_expression "pmVar3 = mpage_tape" identifier = identifier) ;) (do_statement "do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_00022168);" do (compound_statement "{\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      }" { (if_statement "if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 == pmVar3->page)" ( (binary_expression "iVar5 == pmVar3->page" identifier == (field_expression "pmVar3->page" identifier -> field_identifier)) )) (compound_statement "{\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }" { (if_statement "if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }" if (parenthesized_expression "(iVar6 == pmVar3->subpage)" ( (binary_expression "iVar6 == pmVar3->subpage" identifier == (field_expression "pmVar3->subpage" identifier -> field_identifier)) )) (compound_statement "{\n            return pmVar3;\n          }" { (return_statement "return pmVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < pmVar3->page) break;" else (if_statement "if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 < pmVar3->page)" ( (binary_expression "iVar5 < pmVar3->page" identifier < (field_expression "pmVar3->page" identifier -> field_identifier)) )) (break_statement "break;" break ;)))) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pmVar3 != (mpage_name_func *)&DAT_00022168)" ( (binary_expression "pmVar3 != (mpage_name_func *)&DAT_00022168" identifier != (cast_expression "(mpage_name_func *)&DAT_00022168" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00022168" & identifier))) )) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_cdvd;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);\n      break;" case number_literal : (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (expression_statement "pmVar3 = mpage_cdvd;" (assignment_expression "pmVar3 = mpage_cdvd" identifier = identifier) ;) (do_statement "do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != (mpage_name_func *)&DAT_0002225c);" do (compound_statement "{\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      }" { (if_statement "if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 == pmVar3->page)" ( (binary_expression "iVar5 == pmVar3->page" identifier == (field_expression "pmVar3->page" identifier -> field_identifier)) )) (compound_statement "{\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }" { (if_statement "if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }" if (parenthesized_expression "(iVar6 == pmVar3->subpage)" ( (binary_expression "iVar6 == pmVar3->subpage" identifier == (field_expression "pmVar3->subpage" identifier -> field_identifier)) )) (compound_statement "{\n            return pmVar3;\n          }" { (return_statement "return pmVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < pmVar3->page) break;" else (if_statement "if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 < pmVar3->page)" ( (binary_expression "iVar5 < pmVar3->page" identifier < (field_expression "pmVar3->page" identifier -> field_identifier)) )) (break_statement "break;" break ;)))) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pmVar3 != (mpage_name_func *)&DAT_0002225c)" ( (binary_expression "pmVar3 != (mpage_name_func *)&DAT_0002225c" identifier != (cast_expression "(mpage_name_func *)&DAT_0002225c" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002225c" & identifier))) )) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;\n      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;" case number_literal : (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (if_statement "if ((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)) goto LAB_00014f00;" if (parenthesized_expression "((iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage))" ( (binary_expression "(iVar5 == mpage_ses[0].page) && (iVar6 == mpage_ses[0].subpage)" (parenthesized_expression "(iVar5 == mpage_ses[0].page)" ( (binary_expression "iVar5 == mpage_ses[0].page" identifier == (field_expression "mpage_ses[0].page" (subscript_expression "mpage_ses[0]" identifier [ number_literal ]) . field_identifier)) )) && (parenthesized_expression "(iVar6 == mpage_ses[0].subpage)" ( (binary_expression "iVar6 == mpage_ses[0].subpage" identifier == (field_expression "mpage_ses[0].subpage" (subscript_expression "mpage_ses[0]" identifier [ number_literal ]) . field_identifier)) ))) )) (goto_statement "goto LAB_00014f00;" goto statement_identifier ;)) (if_statement "if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;" if (parenthesized_expression "((mpi->inq_byte6 & 8) == 0)" ( (binary_expression "(mpi->inq_byte6 & 8) == 0" (parenthesized_expression "(mpi->inq_byte6 & 8)" ( (binary_expression "mpi->inq_byte6 & 8" (field_expression "mpi->inq_byte6" identifier -> field_identifier) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) (goto_statement "goto LAB_00014ec3;" goto statement_identifier ;)) (case_statement "case 5:\n      iVar6 = mpi->subpage;\n      iVar5 = mpi->page;\n      pmVar3 = mpage_smc;\n      do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);\n      uVar4 = mpi->inq_byte6;\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;" case number_literal : (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (expression_statement "pmVar3 = mpage_smc;" (assignment_expression "pmVar3 = mpage_smc" identifier = identifier) ;) (do_statement "do {\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      } while (pmVar3 != mpage_ses);" do (compound_statement "{\n        if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;\n        pmVar3 = pmVar3 + 1;\n      }" { (if_statement "if (iVar5 == pmVar3->page) {\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }\n        else if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 == pmVar3->page)" ( (binary_expression "iVar5 == pmVar3->page" identifier == (field_expression "pmVar3->page" identifier -> field_identifier)) )) (compound_statement "{\n          if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }\n        }" { (if_statement "if (iVar6 == pmVar3->subpage) {\n            return pmVar3;\n          }" if (parenthesized_expression "(iVar6 == pmVar3->subpage)" ( (binary_expression "iVar6 == pmVar3->subpage" identifier == (field_expression "pmVar3->subpage" identifier -> field_identifier)) )) (compound_statement "{\n            return pmVar3;\n          }" { (return_statement "return pmVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < pmVar3->page) break;" else (if_statement "if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 < pmVar3->page)" ( (binary_expression "iVar5 < pmVar3->page" identifier < (field_expression "pmVar3->page" identifier -> field_identifier)) )) (break_statement "break;" break ;)))) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pmVar3 != mpage_ses)" ( (binary_expression "pmVar3 != mpage_ses" identifier != identifier) )) ;) (expression_statement "uVar4 = mpi->inq_byte6;" (assignment_expression "uVar4 = mpi->inq_byte6" identifier = (field_expression "mpi->inq_byte6" identifier -> field_identifier)) ;) (if_statement "if ((uVar4 & 0x40) == 0) goto LAB_00014e50;" if (parenthesized_expression "((uVar4 & 0x40) == 0)" ( (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) (goto_statement "goto LAB_0001505b;" goto statement_identifier ;)) })) (expression_statement "uVar4 = mpi->inq_byte6;" (assignment_expression "uVar4 = mpi->inq_byte6" identifier = (field_expression "mpi->inq_byte6" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" statement_identifier : (if_statement "if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" if (parenthesized_expression "((uVar4 & 0x40) != 0)" ( (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\nLAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" { (labeled_statement "LAB_0001505b:\n      if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }" statement_identifier : (if_statement "if (iVar5 == mpage_ses[0].page) {\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }" if (parenthesized_expression "(iVar5 == mpage_ses[0].page)" ( (binary_expression "iVar5 == mpage_ses[0].page" identifier == (field_expression "mpage_ses[0].page" (subscript_expression "mpage_ses[0]" identifier [ number_literal ]) . field_identifier)) )) (compound_statement "{\n        if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);\n      }" { (if_statement "if (iVar6 == mpage_ses[0].subpage) {\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" if (parenthesized_expression "(iVar6 == mpage_ses[0].subpage)" ( (binary_expression "iVar6 == mpage_ses[0].subpage" identifier == (field_expression "mpage_ses[0].subpage" (subscript_expression "mpage_ses[0]" identifier [ number_literal ]) . field_identifier)) )) (compound_statement "{\n          if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" { (if_statement "if (*(int *)(CSWTCH_785 + uVar1 * 4) == 5) goto LAB_00014f00;" if (parenthesized_expression "(*(int *)(CSWTCH_785 + uVar1 * 4) == 5)" ( (binary_expression "*(int *)(CSWTCH_785 + uVar1 * 4) == 5" (pointer_expression "*(int *)(CSWTCH_785 + uVar1 * 4)" * (cast_expression "(int *)(CSWTCH_785 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CSWTCH_785 + uVar1 * 4)" ( (binary_expression "CSWTCH_785 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) == number_literal) )) (goto_statement "goto LAB_00014f00;" goto statement_identifier ;)) (goto_statement "goto LAB_00015033;" goto statement_identifier ;) })) (expression_statement "iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(CSWTCH_785 + uVar1 * 4)" identifier = (pointer_expression "*(int *)(CSWTCH_785 + uVar1 * 4)" * (cast_expression "(int *)(CSWTCH_785 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CSWTCH_785 + uVar1 * 4)" ( (binary_expression "CSWTCH_785 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) ;) }))) (if_statement "if (iVar2 == 5) goto LAB_00014e50;" if (parenthesized_expression "(iVar2 == 5)" ( (binary_expression "iVar2 == 5" identifier == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) }))) (labeled_statement "joined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;" statement_identifier : (if_statement "if ((uVar4 & 8) == 0) goto LAB_00014e50;" if (parenthesized_expression "((uVar4 & 8) == 0)" ( (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;))) }) (else_clause "else {\n    iVar6 = mpi->subpage;\n    iVar5 = mpi->page;\n    uVar4 = mpi->inq_byte6;\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }\n  }" else (compound_statement "{\n    iVar6 = mpi->subpage;\n    iVar5 = mpi->page;\n    uVar4 = mpi->inq_byte6;\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }\n  }" { (expression_statement "iVar6 = mpi->subpage;" (assignment_expression "iVar6 = mpi->subpage" identifier = (field_expression "mpi->subpage" identifier -> field_identifier)) ;) (expression_statement "iVar5 = mpi->page;" (assignment_expression "iVar5 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (expression_statement "uVar4 = mpi->inq_byte6;" (assignment_expression "uVar4 = mpi->inq_byte6" identifier = (field_expression "mpi->inq_byte6" identifier -> field_identifier)) ;) (if_statement "if ((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))\n    goto joined_r0x00014f22;" if (parenthesized_expression "((((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6))" ( (binary_expression "(((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)) || (mpage_ses[0].subpage != iVar6)" (parenthesized_expression "(((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page))" ( (binary_expression "((uVar4 & 0x40) == 0) || (iVar5 != mpage_ses[0].page)" (parenthesized_expression "((uVar4 & 0x40) == 0)" ( (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(iVar5 != mpage_ses[0].page)" ( (binary_expression "iVar5 != mpage_ses[0].page" identifier != (field_expression "mpage_ses[0].page" (subscript_expression "mpage_ses[0]" identifier [ number_literal ]) . field_identifier)) ))) )) || (parenthesized_expression "(mpage_ses[0].subpage != iVar6)" ( (binary_expression "mpage_ses[0].subpage != iVar6" (field_expression "mpage_ses[0].subpage" (subscript_expression "mpage_ses[0]" identifier [ number_literal ]) . field_identifier) != identifier) ))) )) (goto_statement "goto joined_r0x00014f22;" goto statement_identifier ;)) (labeled_statement "LAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }" statement_identifier : (if_statement "if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return mpage_ses;\n    }" if (parenthesized_expression "((uVar4 & 8) == 0)" ( (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00014f00:\n      return mpage_ses;\n    }" { (labeled_statement "LAB_00014f00:\n      return mpage_ses;" statement_identifier : (return_statement "return mpage_ses;" return identifier ;)) }))) }))) (labeled_statement "LAB_00014ec3:\n  pmVar3 = mpage_smc;" statement_identifier : (expression_statement "pmVar3 = mpage_smc;" (assignment_expression "pmVar3 = mpage_smc" identifier = identifier) ;)) (do_statement "do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) break;\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != mpage_ses);" do (compound_statement "{\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) break;\n    pmVar3 = pmVar3 + 1;\n  }" { (if_statement "if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(pmVar3->page == iVar5)" ( (binary_expression "pmVar3->page == iVar5" (field_expression "pmVar3->page" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }" { (if_statement "if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }" if (parenthesized_expression "(pmVar3->subpage == iVar6)" ( (binary_expression "pmVar3->subpage == iVar6" (field_expression "pmVar3->subpage" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        return pmVar3;\n      }" { (return_statement "return pmVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < pmVar3->page) break;" else (if_statement "if (iVar5 < pmVar3->page) break;" if (parenthesized_expression "(iVar5 < pmVar3->page)" ( (binary_expression "iVar5 < pmVar3->page" identifier < (field_expression "pmVar3->page" identifier -> field_identifier)) )) (break_statement "break;" break ;)))) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pmVar3 != mpage_ses)" ( (binary_expression "pmVar3 != mpage_ses" identifier != identifier) )) ;) (labeled_statement "LAB_00014e50:\n  pmVar3 = mpage_common;" statement_identifier : (expression_statement "pmVar3 = mpage_common;" (assignment_expression "pmVar3 = mpage_common" identifier = identifier) ;)) (do_statement "do {\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }\n    pmVar3 = pmVar3 + 1;\n  } while (pmVar3 != (mpage_name_func *)&completed_6888);" do (compound_statement "{\n    if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }\n    pmVar3 = pmVar3 + 1;\n  }" { (if_statement "if (pmVar3->page == iVar5) {\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }\n    else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }" if (parenthesized_expression "(pmVar3->page == iVar5)" ( (binary_expression "pmVar3->page == iVar5" (field_expression "pmVar3->page" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }\n    }" { (if_statement "if (pmVar3->subpage == iVar6) {\n        return pmVar3;\n      }" if (parenthesized_expression "(pmVar3->subpage == iVar6)" ( (binary_expression "pmVar3->subpage == iVar6" (field_expression "pmVar3->subpage" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        return pmVar3;\n      }" { (return_statement "return pmVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }" else (if_statement "if (iVar5 < pmVar3->page) {\n      return (mpage_name_func *)0x0;\n    }" if (parenthesized_expression "(iVar5 < pmVar3->page)" ( (binary_expression "iVar5 < pmVar3->page" identifier < (field_expression "pmVar3->page" identifier -> field_identifier)) )) (compound_statement "{\n      return (mpage_name_func *)0x0;\n    }" { (return_statement "return (mpage_name_func *)0x0;" return (cast_expression "(mpage_name_func *)0x0" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pmVar3 != (mpage_name_func *)&completed_6888)" ( (binary_expression "pmVar3 != (mpage_name_func *)&completed_6888" identifier != (cast_expression "(mpage_name_func *)&completed_6888" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&completed_6888" & identifier))) )) ;) (return_statement "return (mpage_name_func *)0x0;" return (cast_expression "(mpage_name_func *)0x0" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_00014e00(int *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00014e00(int *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00014e00(int *param_1)" * (function_declarator "FUN_00014e00(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" if (parenthesized_expression "(uVar1 < 0xf)" ( (binary_expression "uVar1 < 0xf" identifier < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }" { (expression_statement "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" * (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" ( (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" & identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) ;) (switch_statement "switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" switch (parenthesized_expression "(iVar2)" ( identifier )) (compound_statement "{\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" { (case_statement "default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;" default : (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (goto_statement "goto joined_r0x000150a8;" goto statement_identifier ;)) (case_statement "case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = (int *)0x22260;" (assignment_expression "piVar3 = (int *)0x22260" identifier = (cast_expression "(int *)0x22260" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x22350)" ( (binary_expression "piVar3 != (int *)0x22350" identifier != (cast_expression "(int *)0x22350" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = (int *)0x220a0;" (assignment_expression "piVar3 = (int *)0x220a0" identifier = (cast_expression "(int *)0x220a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x22168)" ( (binary_expression "piVar3 != (int *)0x22168" identifier != (cast_expression "(int *)0x22168" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = (int *)0x22180;" (assignment_expression "piVar3 = (int *)0x22180" identifier = (cast_expression "(int *)0x22180" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x2225c)" ( (binary_expression "piVar3 != (int *)0x2225c" identifier != (cast_expression "(int *)0x2225c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;" if (parenthesized_expression "((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074))" ( (binary_expression "(iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)" (parenthesized_expression "(iVar5 == DAT_00022070)" ( (binary_expression "iVar5 == DAT_00022070" identifier == identifier) )) && (parenthesized_expression "(iVar6 == DAT_00022074)" ( (binary_expression "iVar6 == DAT_00022074" identifier == identifier) ))) )) (goto_statement "goto LAB_00014f00;" goto statement_identifier ;)) (if_statement "if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;" if (parenthesized_expression "((*(byte *)(param_1 + 4) & 8) == 0)" ( (binary_expression "(*(byte *)(param_1 + 4) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 4) & 8)" ( (binary_expression "*(byte *)(param_1 + 4) & 8" (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) (goto_statement "goto LAB_00014ec3;" goto statement_identifier ;)) (case_statement "case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;" case number_literal : (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "piVar3 = &DAT_00022020;" (assignment_expression "piVar3 = &DAT_00022020" identifier = (pointer_expression "&DAT_00022020" & identifier)) ;) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);" do (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" { (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 == *piVar3)" ( (binary_expression "iVar5 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" { (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" if (parenthesized_expression "(iVar6 == piVar3[1])" ( (binary_expression "iVar6 == piVar3[1]" identifier == (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            return piVar3;\n          }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != &DAT_00022070)" ( (binary_expression "piVar3 != &DAT_00022070" identifier != (pointer_expression "&DAT_00022070" & identifier)) )) ;) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if ((uVar4 & 0x40) == 0) goto LAB_00014e50;" if (parenthesized_expression "((uVar4 & 0x40) == 0)" ( (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) (goto_statement "goto LAB_0001505b;" goto statement_identifier ;)) })) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (labeled_statement "joined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" statement_identifier : (if_statement "if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" if (parenthesized_expression "((uVar4 & 0x40) != 0)" ( (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" { (labeled_statement "LAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" statement_identifier : (if_statement "if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" if (parenthesized_expression "(iVar5 == DAT_00022070)" ( (binary_expression "iVar5 == DAT_00022070" identifier == identifier) )) (compound_statement "{\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" { (if_statement "if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" if (parenthesized_expression "(iVar6 == DAT_00022074)" ( (binary_expression "iVar6 == DAT_00022074" identifier == identifier) )) (compound_statement "{\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" { (if_statement "if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;" if (parenthesized_expression "(*(int *)(&DAT_0001e720 + uVar1 * 4) == 5)" ( (binary_expression "*(int *)(&DAT_0001e720 + uVar1 * 4) == 5" (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" * (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" ( (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" & identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) == number_literal) )) (goto_statement "goto LAB_00014f00;" goto statement_identifier ;)) (goto_statement "goto LAB_00015033;" goto statement_identifier ;) })) (expression_statement "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" * (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" ( (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" & identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) ))))) ;) }))) (if_statement "if (iVar2 == 5) goto LAB_00014e50;" if (parenthesized_expression "(iVar2 == 5)" ( (binary_expression "iVar2 == 5" identifier == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;)) }))) (labeled_statement "joined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;" statement_identifier : (if_statement "if ((uVar4 & 8) == 0) goto LAB_00014e50;" if (parenthesized_expression "((uVar4 & 8) == 0)" ( (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00014e50;" goto statement_identifier ;))) }) (else_clause "else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" else (compound_statement "{\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;" if (parenthesized_expression "((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))" ( (binary_expression "(((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6)" (parenthesized_expression "(((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070))" ( (binary_expression "((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)" (parenthesized_expression "((uVar4 & 0x40) == 0)" ( (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(iVar5 != DAT_00022070)" ( (binary_expression "iVar5 != DAT_00022070" identifier != identifier) ))) )) || (parenthesized_expression "(DAT_00022074 != iVar6)" ( (binary_expression "DAT_00022074 != iVar6" identifier != identifier) ))) )) (goto_statement "goto joined_r0x00014f22;" goto statement_identifier ;)) (labeled_statement "LAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }" statement_identifier : (if_statement "if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }" if (parenthesized_expression "((uVar4 & 8) == 0)" ( (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00014f00:\n      return &DAT_00022070;\n    }" { (labeled_statement "LAB_00014f00:\n      return &DAT_00022070;" statement_identifier : (return_statement "return &DAT_00022070;" return (pointer_expression "&DAT_00022070" & identifier) ;)) }))) }))) (labeled_statement "LAB_00014ec3:\n  piVar3 = &DAT_00022020;" statement_identifier : (expression_statement "piVar3 = &DAT_00022020;" (assignment_expression "piVar3 = &DAT_00022020" identifier = (pointer_expression "&DAT_00022020" & identifier)) ;)) (do_statement "do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);" do (compound_statement "{\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  }" { (if_statement "if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;" if (parenthesized_expression "(*piVar3 == iVar5)" ( (binary_expression "*piVar3 == iVar5" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }" { (if_statement "if (piVar3[1] == iVar6) {\n        return piVar3;\n      }" if (parenthesized_expression "(piVar3[1] == iVar6)" ( (binary_expression "piVar3[1] == iVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) break;" else (if_statement "if (iVar5 < *piVar3) break;" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (break_statement "break;" break ;)))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != &DAT_00022070)" ( (binary_expression "piVar3 != &DAT_00022070" identifier != (pointer_expression "&DAT_00022070" & identifier)) )) ;) (labeled_statement "LAB_00014e50:\n  piVar3 = &DAT_00022360;" statement_identifier : (expression_statement "piVar3 = &DAT_00022360;" (assignment_expression "piVar3 = &DAT_00022360" identifier = (pointer_expression "&DAT_00022360" & identifier)) ;)) (do_statement "do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);" do (compound_statement "{\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  }" { (if_statement "if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*piVar3 == iVar5)" ( (binary_expression "*piVar3 == iVar5" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }" { (if_statement "if (piVar3[1] == iVar6) {\n        return piVar3;\n      }" if (parenthesized_expression "(piVar3[1] == iVar6)" ( (binary_expression "piVar3[1] == iVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" else (if_statement "if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar5 < *piVar3)" ( (binary_expression "iVar5 < *piVar3" identifier < (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)&DAT_000224a0)" ( (binary_expression "piVar3 != (int *)&DAT_000224a0" identifier != (cast_expression "(int *)&DAT_000224a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_000224a0" & identifier))) )) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement default : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (break_statement break ;)))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (break_statement break ;)))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (break_statement break ;)))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (break_statement break ;)))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) || (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (return_statement return (pointer_expression & IDENT) ;)) }))) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (break_statement break ;)))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_00014e00(int *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_00014e00(int *param_1)" (* "*") (function_declarator "FUN_00014e00(int *param_1)" (identifier "FUN_00014e00") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  \n  uVar1 = param_1[3];\n  if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }\nLAB_00014ec3:\n  piVar3 = &DAT_00022020;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);\nLAB_00014e50:\n  piVar3 = &DAT_00022360;\n  do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);\n  return (int *)0x0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" (identifier "uVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (uVar1 < 0xf) {\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }\n  else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" (if "if") (parenthesized_expression "(uVar1 < 0xf)" (( "(") (binary_expression "uVar1 < 0xf" (identifier "uVar1") (< "<") (number_literal "0xf")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n    switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }\n    uVar4 = param_1[4];\njoined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }\njoined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" (( "(") (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" (& "&") (identifier "DAT_0001e720")) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (switch_statement "switch(iVar2) {\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" (switch "switch") (parenthesized_expression "(iVar2)" (( "(") (identifier "iVar2") () ")")) (compound_statement "{\n    default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;\n    case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;\n    case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;\n    case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;\n    case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;\n    case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;\n    }" ({ "{") (case_statement "default:\n      uVar4 = param_1[4];\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      goto joined_r0x000150a8;" (default "default") (: ":") (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" (identifier "uVar4") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (goto_statement "goto joined_r0x000150a8;" (goto "goto") (statement_identifier "joined_r0x000150a8") (; ";"))) (case_statement "case 1:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22260;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);\n      break;" (case "case") (number_literal "1") (: ":") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "piVar3 = (int *)0x22260;" (assignment_expression "piVar3 = (int *)0x22260" (identifier "piVar3") (= "=") (cast_expression "(int *)0x22260" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x22260"))) (; ";")) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22350);" (do "do") (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" ({ "{") (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 == *piVar3)" (( "(") (binary_expression "iVar5 == *piVar3" (identifier "iVar5") (== "==") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" ({ "{") (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" (if "if") (parenthesized_expression "(iVar6 == piVar3[1])" (( "(") (binary_expression "iVar6 == piVar3[1]" (identifier "iVar6") (== "==") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n            return piVar3;\n          }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 < *piVar3) break;" (else "else") (if_statement "if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 < *piVar3)" (( "(") (binary_expression "iVar5 < *piVar3" (identifier "iVar5") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (break_statement "break;" (break "break") (; ";"))))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x22350)" (( "(") (binary_expression "piVar3 != (int *)0x22350" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x22350" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x22350"))) () ")")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 2:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x220a0;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);\n      break;" (case "case") (number_literal "2") (: ":") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "piVar3 = (int *)0x220a0;" (assignment_expression "piVar3 = (int *)0x220a0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x220a0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x220a0"))) (; ";")) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x22168);" (do "do") (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" ({ "{") (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 == *piVar3)" (( "(") (binary_expression "iVar5 == *piVar3" (identifier "iVar5") (== "==") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" ({ "{") (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" (if "if") (parenthesized_expression "(iVar6 == piVar3[1])" (( "(") (binary_expression "iVar6 == piVar3[1]" (identifier "iVar6") (== "==") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n            return piVar3;\n          }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 < *piVar3) break;" (else "else") (if_statement "if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 < *piVar3)" (( "(") (binary_expression "iVar5 < *piVar3" (identifier "iVar5") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (break_statement "break;" (break "break") (; ";"))))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x22168)" (( "(") (binary_expression "piVar3 != (int *)0x22168" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x22168" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x22168"))) () ")")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 3:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = (int *)0x22180;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);\n      break;" (case "case") (number_literal "3") (: ":") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "piVar3 = (int *)0x22180;" (assignment_expression "piVar3 = (int *)0x22180" (identifier "piVar3") (= "=") (cast_expression "(int *)0x22180" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x22180"))) (; ";")) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != (int *)0x2225c);" (do "do") (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" ({ "{") (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 == *piVar3)" (( "(") (binary_expression "iVar5 == *piVar3" (identifier "iVar5") (== "==") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" ({ "{") (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" (if "if") (parenthesized_expression "(iVar6 == piVar3[1])" (( "(") (binary_expression "iVar6 == piVar3[1]" (identifier "iVar6") (== "==") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n            return piVar3;\n          }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 < *piVar3) break;" (else "else") (if_statement "if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 < *piVar3)" (( "(") (binary_expression "iVar5 < *piVar3" (identifier "iVar5") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (break_statement "break;" (break "break") (; ";"))))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x2225c)" (( "(") (binary_expression "piVar3 != (int *)0x2225c" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x2225c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2225c"))) () ")")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 4:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;\n      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;\n      goto LAB_00014ec3;" (case "case") (number_literal "4") (: ":") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;" (if "if") (parenthesized_expression "((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074))" (( "(") (binary_expression "(iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)" (parenthesized_expression "(iVar5 == DAT_00022070)" (( "(") (binary_expression "iVar5 == DAT_00022070" (identifier "iVar5") (== "==") (identifier "DAT_00022070")) () ")")) (&& "&&") (parenthesized_expression "(iVar6 == DAT_00022074)" (( "(") (binary_expression "iVar6 == DAT_00022074" (identifier "iVar6") (== "==") (identifier "DAT_00022074")) () ")"))) () ")")) (goto_statement "goto LAB_00014f00;" (goto "goto") (statement_identifier "LAB_00014f00") (; ";"))) (if_statement "if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 4) & 8) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 4) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 4) & 8)" (( "(") (binary_expression "*(byte *)(param_1 + 4) & 8" (pointer_expression "*(byte *)(param_1 + 4)" (* "*") (cast_expression "(byte *)(param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00014e50;" (goto "goto") (statement_identifier "LAB_00014e50") (; ";"))) (goto_statement "goto LAB_00014ec3;" (goto "goto") (statement_identifier "LAB_00014ec3") (; ";"))) (case_statement "case 5:\n      iVar6 = param_1[1];\n      iVar5 = *param_1;\n      piVar3 = &DAT_00022020;\n      do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);\n      uVar4 = param_1[4];\n      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;\n      goto LAB_0001505b;" (case "case") (number_literal "5") (: ":") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "piVar3 = &DAT_00022020;" (assignment_expression "piVar3 = &DAT_00022020" (identifier "piVar3") (= "=") (pointer_expression "&DAT_00022020" (& "&") (identifier "DAT_00022020"))) (; ";")) (do_statement "do {\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      } while (piVar3 != &DAT_00022070);" (do "do") (compound_statement "{\n        if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;\n        piVar3 = piVar3 + 5;\n      }" ({ "{") (if_statement "if (iVar5 == *piVar3) {\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }\n        else if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 == *piVar3)" (( "(") (binary_expression "iVar5 == *piVar3" (identifier "iVar5") (== "==") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n          if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }\n        }" ({ "{") (if_statement "if (iVar6 == piVar3[1]) {\n            return piVar3;\n          }" (if "if") (parenthesized_expression "(iVar6 == piVar3[1])" (( "(") (binary_expression "iVar6 == piVar3[1]" (identifier "iVar6") (== "==") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n            return piVar3;\n          }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 < *piVar3) break;" (else "else") (if_statement "if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 < *piVar3)" (( "(") (binary_expression "iVar5 < *piVar3" (identifier "iVar5") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (break_statement "break;" (break "break") (; ";"))))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != &DAT_00022070)" (( "(") (binary_expression "piVar3 != &DAT_00022070" (identifier "piVar3") (!= "!=") (pointer_expression "&DAT_00022070" (& "&") (identifier "DAT_00022070"))) () ")")) (; ";")) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" (identifier "uVar4") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if ((uVar4 & 0x40) == 0) goto LAB_00014e50;" (if "if") (parenthesized_expression "((uVar4 & 0x40) == 0)" (( "(") (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" (( "(") (binary_expression "uVar4 & 0x40" (identifier "uVar4") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00014e50;" (goto "goto") (statement_identifier "LAB_00014e50") (; ";"))) (goto_statement "goto LAB_0001505b;" (goto "goto") (statement_identifier "LAB_0001505b") (; ";"))) (} "}"))) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" (identifier "uVar4") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (labeled_statement "joined_r0x000150a8:\n    if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" (statement_identifier "joined_r0x000150a8") (: ":") (if_statement "if ((uVar4 & 0x40) != 0) {\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x40) != 0)" (( "(") (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" (( "(") (binary_expression "uVar4 & 0x40" (identifier "uVar4") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }\n      if (iVar2 == 5) goto LAB_00014e50;\n    }" ({ "{") (labeled_statement "LAB_0001505b:\n      if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" (statement_identifier "LAB_0001505b") (: ":") (if_statement "if (iVar5 == DAT_00022070) {\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" (if "if") (parenthesized_expression "(iVar5 == DAT_00022070)" (( "(") (binary_expression "iVar5 == DAT_00022070" (identifier "iVar5") (== "==") (identifier "DAT_00022070")) () ")")) (compound_statement "{\n        if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }\n        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);\n      }" ({ "{") (if_statement "if (iVar6 == DAT_00022074) {\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" (if "if") (parenthesized_expression "(iVar6 == DAT_00022074)" (( "(") (binary_expression "iVar6 == DAT_00022074" (identifier "iVar6") (== "==") (identifier "DAT_00022074")) () ")")) (compound_statement "{\n          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;\n          goto LAB_00015033;\n        }" ({ "{") (if_statement "if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;" (if "if") (parenthesized_expression "(*(int *)(&DAT_0001e720 + uVar1 * 4) == 5)" (( "(") (binary_expression "*(int *)(&DAT_0001e720 + uVar1 * 4) == 5" (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" (( "(") (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" (& "&") (identifier "DAT_0001e720")) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "5")) () ")")) (goto_statement "goto LAB_00014f00;" (goto "goto") (statement_identifier "LAB_00014f00") (; ";"))) (goto_statement "goto LAB_00015033;" (goto "goto") (statement_identifier "LAB_00015033") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&DAT_0001e720 + uVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0001e720 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0001e720 + uVar1 * 4)" (( "(") (binary_expression "&DAT_0001e720 + uVar1 * 4" (pointer_expression "&DAT_0001e720" (& "&") (identifier "DAT_0001e720")) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 5) goto LAB_00014e50;" (if "if") (parenthesized_expression "(iVar2 == 5)" (( "(") (binary_expression "iVar2 == 5" (identifier "iVar2") (== "==") (number_literal "5")) () ")")) (goto_statement "goto LAB_00014e50;" (goto "goto") (statement_identifier "LAB_00014e50") (; ";"))) (} "}")))) (labeled_statement "joined_r0x00014f22:\n    if ((uVar4 & 8) == 0) goto LAB_00014e50;" (statement_identifier "joined_r0x00014f22") (: ":") (if_statement "if ((uVar4 & 8) == 0) goto LAB_00014e50;" (if "if") (parenthesized_expression "((uVar4 & 8) == 0)" (( "(") (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" (( "(") (binary_expression "uVar4 & 8" (identifier "uVar4") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00014e50;" (goto "goto") (statement_identifier "LAB_00014e50") (; ";")))) (} "}")) (else_clause "else {\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = param_1[1];\n    iVar5 = *param_1;\n    uVar4 = param_1[4];\n    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;\nLAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }\n  }" ({ "{") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = param_1[4];" (assignment_expression "uVar4 = param_1[4]" (identifier "uVar4") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))\n    goto joined_r0x00014f22;" (if "if") (parenthesized_expression "((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))" (( "(") (binary_expression "(((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6)" (parenthesized_expression "(((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070))" (( "(") (binary_expression "((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)" (parenthesized_expression "((uVar4 & 0x40) == 0)" (( "(") (binary_expression "(uVar4 & 0x40) == 0" (parenthesized_expression "(uVar4 & 0x40)" (( "(") (binary_expression "uVar4 & 0x40" (identifier "uVar4") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar5 != DAT_00022070)" (( "(") (binary_expression "iVar5 != DAT_00022070" (identifier "iVar5") (!= "!=") (identifier "DAT_00022070")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(DAT_00022074 != iVar6)" (( "(") (binary_expression "DAT_00022074 != iVar6" (identifier "DAT_00022074") (!= "!=") (identifier "iVar6")) () ")"))) () ")")) (goto_statement "goto joined_r0x00014f22;" (goto "goto") (statement_identifier "joined_r0x00014f22") (; ";"))) (labeled_statement "LAB_00015033:\n    if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }" (statement_identifier "LAB_00015033") (: ":") (if_statement "if ((uVar4 & 8) == 0) {\nLAB_00014f00:\n      return &DAT_00022070;\n    }" (if "if") (parenthesized_expression "((uVar4 & 8) == 0)" (( "(") (binary_expression "(uVar4 & 8) == 0" (parenthesized_expression "(uVar4 & 8)" (( "(") (binary_expression "uVar4 & 8" (identifier "uVar4") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00014f00:\n      return &DAT_00022070;\n    }" ({ "{") (labeled_statement "LAB_00014f00:\n      return &DAT_00022070;" (statement_identifier "LAB_00014f00") (: ":") (return_statement "return &DAT_00022070;" (return "return") (pointer_expression "&DAT_00022070" (& "&") (identifier "DAT_00022070")) (; ";"))) (} "}")))) (} "}")))) (labeled_statement "LAB_00014ec3:\n  piVar3 = &DAT_00022020;" (statement_identifier "LAB_00014ec3") (: ":") (expression_statement "piVar3 = &DAT_00022020;" (assignment_expression "piVar3 = &DAT_00022020" (identifier "piVar3") (= "=") (pointer_expression "&DAT_00022020" (& "&") (identifier "DAT_00022020"))) (; ";"))) (do_statement "do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != &DAT_00022070);" (do "do") (compound_statement "{\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;\n    piVar3 = piVar3 + 5;\n  }" ({ "{") (if_statement "if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(*piVar3 == iVar5)" (( "(") (binary_expression "*piVar3 == iVar5" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }" ({ "{") (if_statement "if (piVar3[1] == iVar6) {\n        return piVar3;\n      }" (if "if") (parenthesized_expression "(piVar3[1] == iVar6)" (( "(") (binary_expression "piVar3[1] == iVar6" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\n        return piVar3;\n      }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 < *piVar3) break;" (else "else") (if_statement "if (iVar5 < *piVar3) break;" (if "if") (parenthesized_expression "(iVar5 < *piVar3)" (( "(") (binary_expression "iVar5 < *piVar3" (identifier "iVar5") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (break_statement "break;" (break "break") (; ";"))))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != &DAT_00022070)" (( "(") (binary_expression "piVar3 != &DAT_00022070" (identifier "piVar3") (!= "!=") (pointer_expression "&DAT_00022070" (& "&") (identifier "DAT_00022070"))) () ")")) (; ";")) (labeled_statement "LAB_00014e50:\n  piVar3 = &DAT_00022360;" (statement_identifier "LAB_00014e50") (: ":") (expression_statement "piVar3 = &DAT_00022360;" (assignment_expression "piVar3 = &DAT_00022360" (identifier "piVar3") (= "=") (pointer_expression "&DAT_00022360" (& "&") (identifier "DAT_00022360"))) (; ";"))) (do_statement "do {\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  } while (piVar3 != (int *)&DAT_000224a0);" (do "do") (compound_statement "{\n    if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }\n    piVar3 = piVar3 + 5;\n  }" ({ "{") (if_statement "if (*piVar3 == iVar5) {\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }\n    else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(*piVar3 == iVar5)" (( "(") (binary_expression "*piVar3 == iVar5" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n      if (piVar3[1] == iVar6) {\n        return piVar3;\n      }\n    }" ({ "{") (if_statement "if (piVar3[1] == iVar6) {\n        return piVar3;\n      }" (if "if") (parenthesized_expression "(piVar3[1] == iVar6)" (( "(") (binary_expression "piVar3[1] == iVar6" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\n        return piVar3;\n      }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" (else "else") (if_statement "if (iVar5 < *piVar3) {\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar5 < *piVar3)" (( "(") (binary_expression "iVar5 < *piVar3" (identifier "iVar5") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n      return (int *)0x0;\n    }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))))) (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)&DAT_000224a0)" (( "(") (binary_expression "piVar3 != (int *)&DAT_000224a0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)&DAT_000224a0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_000224a0" (& "&") (identifier "DAT_000224a0")))) () ")")) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *mpi)

{
  type_3 var_1;
  int var_8;
  type_1 *var_5;
  type_3 var_7;
  int var_3;
  int var_4;
  
  var_1 = mpi->peri_type;
  if (var_1 < 0xf) {
    var_8 = *(int *)(var_2 + var_1 * 4);
    switch(var_8) {
    default:
      var_7 = mpi->inq_byte6;
      var_4 = mpi->subpage;
      var_3 = mpi->page;
      goto joined_r0x000150a8;
    case 1:
      var_4 = mpi->subpage;
      var_3 = mpi->page;
      var_5 = mpage_disk;
      do {
        if (var_3 == var_5->page) {
          if (var_4 == var_5->subpage) {
            return var_5;
          }
        }
        else if (var_3 < var_5->page) break;
        var_5 = var_5 + 1;
      } while (var_5 != (type_1 *)&DAT_00022350);
      break;
    case 2:
      var_4 = mpi->subpage;
      var_3 = mpi->page;
      var_5 = mpage_tape;
      do {
        if (var_3 == var_5->page) {
          if (var_4 == var_5->subpage) {
            return var_5;
          }
        }
        else if (var_3 < var_5->page) break;
        var_5 = var_5 + 1;
      } while (var_5 != (type_1 *)&DAT_00022168);
      break;
    case 3:
      var_4 = mpi->subpage;
      var_3 = mpi->page;
      var_5 = mpage_cdvd;
      do {
        if (var_3 == var_5->page) {
          if (var_4 == var_5->subpage) {
            return var_5;
          }
        }
        else if (var_3 < var_5->page) break;
        var_5 = var_5 + 1;
      } while (var_5 != (type_1 *)&DAT_0002225c);
      break;
    case 4:
      var_4 = mpi->subpage;
      var_3 = mpi->page;
      if ((var_3 == var_6[0].page) && (var_4 == var_6[0].subpage)) goto LAB_00014f00;
      if ((mpi->inq_byte6 & 8) == 0) goto LAB_00014e50;
      goto LAB_00014ec3;
    case 5:
      var_4 = mpi->subpage;
      var_3 = mpi->page;
      var_5 = mpage_smc;
      do {
        if (var_3 == var_5->page) {
          if (var_4 == var_5->subpage) {
            return var_5;
          }
        }
        else if (var_3 < var_5->page) break;
        var_5 = var_5 + 1;
      } while (var_5 != var_6);
      var_7 = mpi->inq_byte6;
      if ((var_7 & 0x40) == 0) goto LAB_00014e50;
      goto LAB_0001505b;
    }
    var_7 = mpi->inq_byte6;
joined_r0x000150a8:
    if ((var_7 & 0x40) != 0) {
LAB_0001505b:
      if (var_3 == var_6[0].page) {
        if (var_4 == var_6[0].subpage) {
          if (*(int *)(var_2 + var_1 * 4) == 5) goto LAB_00014f00;
          goto LAB_00015033;
        }
        var_8 = *(int *)(var_2 + var_1 * 4);
      }
      if (var_8 == 5) goto LAB_00014e50;
    }
joined_r0x00014f22:
    if ((var_7 & 8) == 0) goto LAB_00014e50;
  }
  else {
    var_4 = mpi->subpage;
    var_3 = mpi->page;
    var_7 = mpi->inq_byte6;
    if ((((var_7 & 0x40) == 0) || (var_3 != var_6[0].page)) || (var_6[0].subpage != var_4))
    goto joined_r0x00014f22;
LAB_00015033:
    if ((var_7 & 8) == 0) {
LAB_00014f00:
      return var_6;
    }
  }
LAB_00014ec3:
  var_5 = mpage_smc;
  do {
    if (var_5->page == var_3) {
      if (var_5->subpage == var_4) {
        return var_5;
      }
    }
    else if (var_3 < var_5->page) break;
    var_5 = var_5 + 1;
  } while (var_5 != var_6);
LAB_00014e50:
  var_5 = mpage_common;
  do {
    if (var_5->page == var_3) {
      if (var_5->subpage == var_4) {
        return var_5;
      }
    }
    else if (var_3 < var_5->page) {
      return (type_1 *)0x0;
    }
    var_5 = var_5 + 1;
  } while (var_5 != (type_1 *)&completed_6888);
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (return_statement (pointer_expression argument: (identifier)))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int * MASKED(int *param_1)

{
  uint uVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  
  uVar1 = param_1[3];
  if (uVar1 < 0xf) {
    iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);
    switch(iVar2) {
    default:
      uVar4 = param_1[4];
      iVar6 = param_1[1];
      iVar5 = *param_1;
      goto joined_r0x000150a8;
    case 1:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = (int *)0x22260;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != (int *)0x22350);
      break;
    case 2:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = (int *)0x220a0;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != (int *)0x22168);
      break;
    case 3:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = (int *)0x22180;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != (int *)0x2225c);
      break;
    case 4:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      if ((iVar5 == DAT_00022070) && (iVar6 == DAT_00022074)) goto LAB_00014f00;
      if ((*(byte *)(param_1 + 4) & 8) == 0) goto LAB_00014e50;
      goto LAB_00014ec3;
    case 5:
      iVar6 = param_1[1];
      iVar5 = *param_1;
      piVar3 = &DAT_00022020;
      do {
        if (iVar5 == *piVar3) {
          if (iVar6 == piVar3[1]) {
            return piVar3;
          }
        }
        else if (iVar5 < *piVar3) break;
        piVar3 = piVar3 + 5;
      } while (piVar3 != &DAT_00022070);
      uVar4 = param_1[4];
      if ((uVar4 & 0x40) == 0) goto LAB_00014e50;
      goto LAB_0001505b;
    }
    uVar4 = param_1[4];
joined_r0x000150a8:
    if ((uVar4 & 0x40) != 0) {
LAB_0001505b:
      if (iVar5 == DAT_00022070) {
        if (iVar6 == DAT_00022074) {
          if (*(int *)(&DAT_0001e720 + uVar1 * 4) == 5) goto LAB_00014f00;
          goto LAB_00015033;
        }
        iVar2 = *(int *)(&DAT_0001e720 + uVar1 * 4);
      }
      if (iVar2 == 5) goto LAB_00014e50;
    }
joined_r0x00014f22:
    if ((uVar4 & 8) == 0) goto LAB_00014e50;
  }
  else {
    iVar6 = param_1[1];
    iVar5 = *param_1;
    uVar4 = param_1[4];
    if ((((uVar4 & 0x40) == 0) || (iVar5 != DAT_00022070)) || (DAT_00022074 != iVar6))
    goto joined_r0x00014f22;
LAB_00015033:
    if ((uVar4 & 8) == 0) {
LAB_00014f00:
      return &DAT_00022070;
    }
  }
LAB_00014ec3:
  piVar3 = &DAT_00022020;
  do {
    if (*piVar3 == iVar5) {
      if (piVar3[1] == iVar6) {
        return piVar3;
      }
    }
    else if (iVar5 < *piVar3) break;
    piVar3 = piVar3 + 5;
  } while (piVar3 != &DAT_00022070);
LAB_00014e50:
  piVar3 = &DAT_00022360;
  do {
    if (*piVar3 == iVar5) {
      if (piVar3[1] == iVar6) {
        return piVar3;
      }
    }
    else if (iVar5 < *piVar3) {
      return (int *)0x0;
    }
    piVar3 = piVar3 + 5;
  } while (piVar3 != (int *)&DAT_000224a0);
  return (int *)0x0;
}

