
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Unknown calling convention */

reg_errcode_t
check_arrival_expand_ecl_sub(re_dfa_t *dfa,re_node_set *dst_nodes,Idx target,Idx ex_subexp,int type)

{
  int iVar1;
  Idx *pIVar2;
  _Bool _Var3;
  uint uVar4;
  reg_errcode_t rVar5;
  int *piVar6;
  uint uVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  
  do {
    iVar10 = dst_nodes->nelem;
    if (0 < iVar10) {
      uVar9 = iVar10 - 1;
      pIVar2 = dst_nodes->elems;
      uVar7 = 0;
      if (uVar9 == 0) {
LAB_0004b4cd:
        iVar1 = pIVar2[uVar7];
      }
      else {
        do {
          uVar4 = uVar7 + uVar9 >> 1;
          if (target <= pIVar2[uVar4]) {
            if (uVar4 <= uVar7) goto LAB_0004b4cd;
            uVar8 = uVar4 + uVar7 >> 1;
            iVar1 = pIVar2[uVar8];
            uVar9 = uVar4;
            uVar4 = uVar8;
            while (target <= iVar1) {
              if (uVar4 <= uVar7) goto LAB_0004b4cd;
              uVar8 = uVar4 + uVar7 >> 1;
              uVar9 = uVar4;
              uVar4 = uVar8;
              iVar1 = pIVar2[uVar8];
            }
          }
          uVar7 = uVar4 + 1;
        } while (uVar7 < uVar9);
        iVar1 = pIVar2[uVar7];
      }
      if (target == iVar1) {
        return _REG_NOERROR;
      }
    }
    if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&
       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {
      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {
        return _REG_ESPACE;
      }
      return _REG_NOERROR;
    }
    if (dst_nodes->alloc == 0) {
      dst_nodes->alloc = 1;
      dst_nodes->nelem = 1;
      piVar6 = (int *)malloc(4);
      dst_nodes->elems = piVar6;
      if (piVar6 == (int *)0x0) {
        dst_nodes->nelem = 0;
        dst_nodes->alloc = 0;
        return _REG_ESPACE;
      }
      *piVar6 = target;
    }
    else {
      piVar6 = dst_nodes->elems;
      if (iVar10 == 0) {
        *piVar6 = target;
        dst_nodes->nelem = dst_nodes->nelem + 1;
      }
      else {
        if (iVar10 == dst_nodes->alloc) {
          dst_nodes->alloc = iVar10 * 2;
          piVar6 = (int *)realloc(piVar6,iVar10 << 3);
          if (piVar6 == (int *)0x0) {
            return _REG_ESPACE;
          }
          dst_nodes->elems = piVar6;
          iVar10 = dst_nodes->nelem;
        }
        if (target < *piVar6) {
          if (0 < iVar10) {
            memmove(piVar6 + 1,piVar6,iVar10 << 2);
            iVar10 = 0;
          }
        }
        else {
          iVar1 = piVar6[iVar10 + -1];
          while (target < iVar1) {
            piVar6[iVar10] = iVar1;
            iVar1 = piVar6[iVar10 + -2];
            iVar10 = iVar10 + -1;
          }
        }
        piVar6[iVar10] = target;
        dst_nodes->nelem = dst_nodes->nelem + 1;
      }
    }
    iVar10 = dfa->edests[target].nelem;
    if (iVar10 == 0) {
      return _REG_NOERROR;
    }
    piVar6 = dfa->edests[target].elems;
    if (iVar10 == 2) {
      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);
      if (rVar5 != _REG_NOERROR) {
        return rVar5;
      }
      target = *dfa->edests[target].elems;
    }
    else {
      target = *piVar6;
    }
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)

{
  int iVar1;
  char cVar2;
  uint uVar3;
  int iVar4;
  int *piVar5;
  uint uVar6;
  uint uVar7;
  int iVar8;
  uint uVar9;
  
  do {
    iVar4 = param_2[1];
    if (0 < iVar4) {
      uVar9 = iVar4 - 1;
      iVar8 = param_2[2];
      uVar6 = 0;
      if (uVar9 == 0) {
LAB_0004b4cd:
        iVar8 = *(int *)(iVar8 + uVar6 * 4);
      }
      else {
        do {
          uVar3 = uVar6 + uVar9 >> 1;
          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {
            if (uVar3 <= uVar6) goto LAB_0004b4cd;
            uVar7 = uVar3 + uVar6 >> 1;
            iVar1 = *(int *)(iVar8 + uVar7 * 4);
            uVar9 = uVar3;
            uVar3 = uVar7;
            while (param_3 <= iVar1) {
              if (uVar3 <= uVar6) goto LAB_0004b4cd;
              uVar7 = uVar3 + uVar6 >> 1;
              uVar9 = uVar3;
              uVar3 = uVar7;
              iVar1 = *(int *)(iVar8 + uVar7 * 4);
            }
          }
          uVar6 = uVar3 + 1;
        } while (uVar6 < uVar9);
        iVar8 = *(int *)(iVar8 + uVar6 * 4);
      }
      if (param_3 == iVar8) {
        return 0;
      }
    }
    piVar5 = (int *)(*param_1 + param_3 * 8);
    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {
      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {
        return 0xc;
      }
      return 0;
    }
    if (*param_2 == 0) {
      *param_2 = 1;
      param_2[1] = 1;
      piVar5 = (int *)malloc(4);
      param_2[2] = (int)piVar5;
      if (piVar5 == (int *)0x0) {
        param_2[1] = 0;
        *param_2 = 0;
        return 0xc;
      }
      *piVar5 = param_3;
    }
    else {
      piVar5 = (int *)param_2[2];
      if (iVar4 == 0) {
        *piVar5 = param_3;
        param_2[1] = param_2[1] + 1;
      }
      else {
        if (iVar4 == *param_2) {
          *param_2 = iVar4 * 2;
          piVar5 = (int *)realloc(piVar5,iVar4 << 3);
          if (piVar5 == (int *)0x0) {
            return 0xc;
          }
          param_2[2] = (int)piVar5;
          iVar4 = param_2[1];
        }
        if (param_3 < *piVar5) {
          if (0 < iVar4) {
            memmove(piVar5 + 1,piVar5,iVar4 << 2);
            iVar4 = 0;
          }
        }
        else {
          iVar8 = piVar5[iVar4 + -1];
          while (param_3 < iVar8) {
            piVar5[iVar4] = iVar8;
            iVar8 = piVar5[iVar4 + -2];
            iVar4 = iVar4 + -1;
          }
        }
        piVar5[iVar4] = param_3;
        param_2[1] = param_2[1] + 1;
      }
    }
    iVar8 = param_1[5] + param_3 * 0xc;
    iVar4 = *(int *)(iVar8 + 4);
    if (iVar4 == 0) {
      return 0;
    }
    piVar5 = *(int **)(iVar8 + 8);
    if (iVar4 == 2) {
      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);
      if (iVar4 != 0) {
        return iVar4;
      }
      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);
    }
    else {
      param_3 = *piVar5;
    }
  } while( true );
}


CALL 0x00015c0c
ADD EAX,0x2f883
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0xc],EAX
MOV EBX,dword ptr [EDI + 0x4]
TEST EBX,EBX
JLE 0x0004b4d7
LEA EDX,[EBX + -0x1]
MOV EBP,dword ptr [EDI + 0x8]
XOR ECX,ECX
TEST EDX,EDX
JZ 0x0004b4cd
LEA EAX,[ECX + EDX*0x1]
SHR EAX,0x1
CMP ESI,dword ptr [EBP + EAX*0x4]
JG 0x0004b580
CMP EAX,ECX
JBE 0x0004b4cd
LEA EDX,[EAX + ECX*0x1]
SHR EDX,0x1
CMP ESI,dword ptr [EBP + EDX*0x4]
JLE 0x0004b4c9
JMP 0x0004b578
LEA EAX,[EDX + ECX*0x1]
SHR EAX,0x1
CMP ESI,dword ptr [EBP + EAX*0x4]
JG 0x0004b580
MOV EDX,EAX
CMP EDX,ECX
JA 0x0004b4b8
CMP ESI,dword ptr [EBP + ECX*0x4]
JZ 0x0004b598
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
LEA EAX,[EAX + ESI*0x8]
MOVZX EDX,byte ptr [EAX + 0x4]
CMP EDX,dword ptr [ESP + 0x40]
JNZ 0x0004b4f6
MOV ECX,dword ptr [ESP + 0x3c]
CMP dword ptr [EAX],ECX
JZ 0x0004b648
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0004b5a8
MOV EBP,dword ptr [EDI + 0x8]
TEST EBX,EBX
JNZ 0x0004b5e0
MOV dword ptr [EBP],ESI
ADD dword ptr [EDI + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x30]
LEA EBX,[ESI + ESI*0x2]
SHL EBX,0x2
MOV EDX,dword ptr [EAX + 0x14]
ADD EDX,EBX
MOV EAX,dword ptr [EDX + 0x4]
TEST EAX,EAX
JZ 0x0004b598
MOV EDX,dword ptr [EDX + 0x8]
CMP EAX,0x2
JZ 0x0004b540
MOV ESI,dword ptr [EDX]
JMP 0x0004b47d
SUB ESP,0xc
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [EDX + 0x4]
PUSH EDI
PUSH dword ptr [ESP + 0x4c]
CALL 0x0004b460
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0004b59a
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX + 0x14]
MOV EDX,dword ptr [EAX + EBX*0x1 + 0x8]
MOV ESI,dword ptr [EDX]
JMP 0x0004b47d
MOV ECX,EDX
MOV EDX,EAX
MOV EAX,ECX
NOP
LEA ECX,[EAX + 0x1]
CMP ECX,EDX
JC 0x0004b490
CMP ESI,dword ptr [EBP + ECX*0x4]
JNZ 0x0004b4d7
LEA ESI,[ESI]
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV dword ptr [EDI],0x1
MOV dword ptr [EDI + 0x4],0x1
PUSH 0x4
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x000144e0
ADD ESP,0x10
MOV dword ptr [EDI + 0x8],EAX
TEST EAX,EAX
JZ 0x0004b670
MOV dword ptr [EAX],ESI
JMP 0x0004b512
CMP EBX,EAX
JZ 0x0004b690
MOV EDX,EBX
CMP ESI,dword ptr [EBP]
JGE 0x0004b620
TEST EBX,EBX
JLE 0x0004b60d
SUB ESP,0x4
SHL EDX,0x2
LEA EAX,[EBP + 0x4]
PUSH EDX
PUSH EBP
PUSH EAX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00014180
ADD ESP,0x10
XOR EDX,EDX
MOV dword ptr [EBP + EDX*0x4],ESI
ADD dword ptr [EDI + 0x4],0x1
JMP 0x0004b512
MOV EAX,dword ptr [EBP + EBX*0x4 + -0x4]
CMP EAX,ESI
JLE 0x0004b60d
LEA ESI,[ESI]
NOP
MOV dword ptr [EBP + EBX*0x4],EAX
SUB EBX,0x1
MOV EAX,dword ptr [EBP + EBX*0x4 + -0x4]
MOV EDX,EBX
CMP ESI,EAX
JL 0x0004b630
JMP 0x0004b60d
CMP dword ptr [ESP + 0x40],0x9
JNZ 0x0004b598
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x000455a0
ADD ESP,0x10
TEST AL,AL
JNZ 0x0004b598
JMP 0x0004b67d
MOV dword ptr [EDI + 0x4],0x0
MOV dword ptr [EDI],0x0
MOV EAX,0xc
JMP 0x0004b59a
SUB ESP,0x8
LEA EAX,[EBX + EBX*0x1]
SHL EBX,0x3
MOV dword ptr [EDI],EAX
PUSH EBX
PUSH EBP
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x000144c0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0004b67d
MOV dword ptr [EDI + 0x8],EAX
MOV EBX,dword ptr [EDI + 0x4]
JMP 0x0004b5e8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}\n\n" comment (function_definition "int FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (do_statement "do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );" do (compound_statement "{\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  }" { (expression_statement "iVar4 = param_2[1];" (assignment_expression "iVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }" { (expression_statement "uVar9 = iVar4 - 1;" (assignment_expression "uVar9 = iVar4 - 1" identifier = (binary_expression "iVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar8 = param_2[2];" (assignment_expression "iVar8 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" { (labeled_statement "LAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);" statement_identifier : (expression_statement "iVar8 = *(int *)(iVar8 + uVar6 * 4);" (assignment_expression "iVar8 = *(int *)(iVar8 + uVar6 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar6 * 4)" * (cast_expression "(int *)(iVar8 + uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar6 * 4)" ( (binary_expression "iVar8 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;)) }) (else_clause "else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" else (compound_statement "{\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" { (do_statement "do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);" do (compound_statement "{\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        }" { (expression_statement "uVar3 = uVar6 + uVar9 >> 1;" (assignment_expression "uVar3 = uVar6 + uVar9 >> 1" identifier = (binary_expression "uVar6 + uVar9 >> 1" (binary_expression "uVar6 + uVar9" identifier + identifier) >> number_literal)) ;) (if_statement "if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }" if (parenthesized_expression "(param_3 <= *(int *)(iVar8 + uVar3 * 4))" ( (binary_expression "param_3 <= *(int *)(iVar8 + uVar3 * 4)" identifier <= (pointer_expression "*(int *)(iVar8 + uVar3 * 4)" * (cast_expression "(int *)(iVar8 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar3 * 4)" ( (binary_expression "iVar8 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) )) (compound_statement "{\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }" { (if_statement "if (uVar3 <= uVar6) goto LAB_0004b4cd;" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_0004b4cd;" goto statement_identifier ;)) (expression_statement "uVar7 = uVar3 + uVar6 >> 1;" (assignment_expression "uVar7 = uVar3 + uVar6 >> 1" identifier = (binary_expression "uVar3 + uVar6 >> 1" (binary_expression "uVar3 + uVar6" identifier + identifier) >> number_literal)) ;) (expression_statement "iVar1 = *(int *)(iVar8 + uVar7 * 4);" (assignment_expression "iVar1 = *(int *)(iVar8 + uVar7 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar7 * 4)" * (cast_expression "(int *)(iVar8 + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar7 * 4)" ( (binary_expression "iVar8 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar9 = uVar3;" (assignment_expression "uVar9 = uVar3" identifier = identifier) ;) (expression_statement "uVar3 = uVar7;" (assignment_expression "uVar3 = uVar7" identifier = identifier) ;) (while_statement "while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }" while (parenthesized_expression "(param_3 <= iVar1)" ( (binary_expression "param_3 <= iVar1" identifier <= identifier) )) (compound_statement "{\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }" { (if_statement "if (uVar3 <= uVar6) goto LAB_0004b4cd;" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_0004b4cd;" goto statement_identifier ;)) (expression_statement "uVar7 = uVar3 + uVar6 >> 1;" (assignment_expression "uVar7 = uVar3 + uVar6 >> 1" identifier = (binary_expression "uVar3 + uVar6 >> 1" (binary_expression "uVar3 + uVar6" identifier + identifier) >> number_literal)) ;) (expression_statement "uVar9 = uVar3;" (assignment_expression "uVar9 = uVar3" identifier = identifier) ;) (expression_statement "uVar3 = uVar7;" (assignment_expression "uVar3 = uVar7" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar8 + uVar7 * 4);" (assignment_expression "iVar1 = *(int *)(iVar8 + uVar7 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar7 * 4)" * (cast_expression "(int *)(iVar8 + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar7 * 4)" ( (binary_expression "iVar8 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) ))))) ;) })) })) (expression_statement "uVar6 = uVar3 + 1;" (assignment_expression "uVar6 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < uVar9)" ( (binary_expression "uVar6 < uVar9" identifier < identifier) )) ;) (expression_statement "iVar8 = *(int *)(iVar8 + uVar6 * 4);" (assignment_expression "iVar8 = *(int *)(iVar8 + uVar6 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar6 * 4)" * (cast_expression "(int *)(iVar8 + uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar6 * 4)" ( (binary_expression "iVar8 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;) }))) (if_statement "if (param_3 == iVar8) {\n        return 0;\n      }" if (parenthesized_expression "(param_3 == iVar8)" ( (binary_expression "param_3 == iVar8" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "piVar5 = (int *)(*param_1 + param_3 * 8);" (assignment_expression "piVar5 = (int *)(*param_1 + param_3 * 8)" identifier = (cast_expression "(int *)(*param_1 + param_3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_3 * 8)" ( (binary_expression "*param_1 + param_3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "param_3 * 8" identifier * number_literal)) )))) ;) (if_statement "if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4))" ( (binary_expression "(*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)" (parenthesized_expression "(*(byte *)(piVar5 + 1) == param_5)" ( (binary_expression "*(byte *)(piVar5 + 1) == param_5" (pointer_expression "*(byte *)(piVar5 + 1)" * (cast_expression "(byte *)(piVar5 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 1)" ( (binary_expression "piVar5 + 1" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(*piVar5 == param_4)" ( (binary_expression "*piVar5 == param_4" (pointer_expression "*piVar5" * identifier) == identifier) ))) )) (compound_statement "{\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }" { (if_statement "if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }" if (parenthesized_expression "((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0'))" ( (binary_expression "(param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')" (parenthesized_expression "(param_5 == 9)" ( (binary_expression "param_5 == 9" identifier == number_literal) )) && (parenthesized_expression "(cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')" ( (comma_expression "cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0'" (assignment_expression "cVar2 = FUN_000455a0(param_2,param_3)" identifier = (call_expression "FUN_000455a0(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) , (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n        return 0xc;\n      }" { (return_statement "return 0xc;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }" { (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5 = (int *)malloc(4);" (assignment_expression "piVar5 = (int *)malloc(4)" identifier = (cast_expression "(int *)malloc(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "param_2[2] = (int)piVar5;" (assignment_expression "param_2[2] = (int)piVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) }) (else_clause "else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" else (compound_statement "{\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" { (expression_statement "piVar5 = (int *)param_2[2];" (assignment_expression "piVar5 = (int *)param_2[2]" identifier = (cast_expression "(int *)param_2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" { (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" else (compound_statement "{\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" { (if_statement "if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }" if (parenthesized_expression "(iVar4 == *param_2)" ( (binary_expression "iVar4 == *param_2" identifier == (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }" { (expression_statement "*param_2 = iVar4 * 2;" (assignment_expression "*param_2 = iVar4 * 2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar4 * 2" identifier * number_literal)) ;) (expression_statement "piVar5 = (int *)realloc(piVar5,iVar4 << 3);" (assignment_expression "piVar5 = (int *)realloc(piVar5,iVar4 << 3)" identifier = (cast_expression "(int *)realloc(piVar5,iVar4 << 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(piVar5,iVar4 << 3)" identifier (argument_list "(piVar5,iVar4 << 3)" ( identifier , (binary_expression "iVar4 << 3" identifier << number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 0xc;\n          }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "param_2[2] = (int)piVar5;" (assignment_expression "param_2[2] = (int)piVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar4 = param_2[1];" (assignment_expression "iVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) })) (if_statement "if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" if (parenthesized_expression "(param_3 < *piVar5)" ( (binary_expression "param_3 < *piVar5" identifier < (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }" { (if_statement "if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }" { (expression_statement "memmove(piVar5 + 1,piVar5,iVar4 << 2);" (call_expression "memmove(piVar5 + 1,piVar5,iVar4 << 2)" identifier (argument_list "(piVar5 + 1,piVar5,iVar4 << 2)" ( (binary_expression "piVar5 + 1" identifier + number_literal) , identifier , (binary_expression "iVar4 << 2" identifier << number_literal) ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" else (compound_statement "{\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" { (expression_statement "iVar8 = piVar5[iVar4 + -1];" (assignment_expression "iVar8 = piVar5[iVar4 + -1]" identifier = (subscript_expression "piVar5[iVar4 + -1]" identifier [ (binary_expression "iVar4 + -1" identifier + number_literal) ])) ;) (while_statement "while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }" while (parenthesized_expression "(param_3 < iVar8)" ( (binary_expression "param_3 < iVar8" identifier < identifier) )) (compound_statement "{\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }" { (expression_statement "piVar5[iVar4] = iVar8;" (assignment_expression "piVar5[iVar4] = iVar8" (subscript_expression "piVar5[iVar4]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar8 = piVar5[iVar4 + -2];" (assignment_expression "iVar8 = piVar5[iVar4 + -2]" identifier = (subscript_expression "piVar5[iVar4 + -2]" identifier [ (binary_expression "iVar4 + -2" identifier + number_literal) ])) ;) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) })) }))) (expression_statement "piVar5[iVar4] = param_3;" (assignment_expression "piVar5[iVar4] = param_3" (subscript_expression "piVar5[iVar4]" identifier [ identifier ]) = identifier) ;) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }))) }))) (expression_statement "iVar8 = param_1[5] + param_3 * 0xc;" (assignment_expression "iVar8 = param_1[5] + param_3 * 0xc" identifier = (binary_expression "param_1[5] + param_3 * 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + (binary_expression "param_3 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar4 = *(int *)(iVar8 + 4);" (assignment_expression "iVar4 = *(int *)(iVar8 + 4)" identifier = (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar5 = *(int **)(iVar8 + 8);" (assignment_expression "piVar5 = *(int **)(iVar8 + 8)" identifier = (pointer_expression "*(int **)(iVar8 + 8)" * (cast_expression "(int **)(iVar8 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }" { (expression_statement "iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);" (assignment_expression "iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5)" identifier = (call_expression "FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5)" identifier (argument_list "(param_1,param_2,piVar5[1],param_4,param_5)" ( identifier , identifier , (subscript_expression "piVar5[1]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);" (assignment_expression "param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc)" identifier = (pointer_expression "**(int **)(param_1[5] + 8 + param_3 * 0xc)" * (pointer_expression "*(int **)(param_1[5] + 8 + param_3 * 0xc)" * (cast_expression "(int **)(param_1[5] + 8 + param_3 * 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[5] + 8 + param_3 * 0xc)" ( (binary_expression "param_1[5] + 8 + param_3 * 0xc" (binary_expression "param_1[5] + 8" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) + (binary_expression "param_3 * 0xc" identifier * number_literal)) )))))) ;) }) (else_clause "else {\n      param_3 = *piVar5;\n    }" else (compound_statement "{\n      param_3 = *piVar5;\n    }" { (expression_statement "param_3 = *piVar5;" (assignment_expression "param_3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Type propagation algorithm not settling */\n/* WARNING: Unknown calling convention */\n\nreg_errcode_t\ncheck_arrival_expand_ecl_sub(re_dfa_t *dfa,re_node_set *dst_nodes,Idx target,Idx ex_subexp,int type)\n\n{\n  int iVar1;\n  Idx *pIVar2;\n  _Bool _Var3;\n  uint uVar4;\n  reg_errcode_t rVar5;\n  int *piVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  \n  do {\n    iVar10 = dst_nodes->nelem;\n    if (0 < iVar10) {\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }\n    if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }\n    if (dst_nodes->alloc == 0) {\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }\n    else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }\n    iVar10 = dfa->edests[target].nelem;\n    if (iVar10 == 0) {\n      return _REG_NOERROR;\n    }\n    piVar6 = dfa->edests[target].elems;\n    if (iVar10 == 2) {\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }\n    else {\n      target = *piVar6;\n    }\n  } while( true );\n}\n\n" comment comment comment (function_definition "reg_errcode_t\ncheck_arrival_expand_ecl_sub(re_dfa_t *dfa,re_node_set *dst_nodes,Idx target,Idx ex_subexp,int type)\n\n{\n  int iVar1;\n  Idx *pIVar2;\n  _Bool _Var3;\n  uint uVar4;\n  reg_errcode_t rVar5;\n  int *piVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  \n  do {\n    iVar10 = dst_nodes->nelem;\n    if (0 < iVar10) {\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }\n    if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }\n    if (dst_nodes->alloc == 0) {\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }\n    else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }\n    iVar10 = dfa->edests[target].nelem;\n    if (iVar10 == 0) {\n      return _REG_NOERROR;\n    }\n    piVar6 = dfa->edests[target].elems;\n    if (iVar10 == 2) {\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }\n    else {\n      target = *piVar6;\n    }\n  } while( true );\n}" type_identifier (function_declarator "check_arrival_expand_ecl_sub(re_dfa_t *dfa,re_node_set *dst_nodes,Idx target,Idx ex_subexp,int type)" identifier (parameter_list "(re_dfa_t *dfa,re_node_set *dst_nodes,Idx target,Idx ex_subexp,int type)" ( (parameter_declaration "re_dfa_t *dfa" type_identifier (pointer_declarator "*dfa" * identifier)) , (parameter_declaration "re_node_set *dst_nodes" type_identifier (pointer_declarator "*dst_nodes" * identifier)) , (parameter_declaration "Idx target" type_identifier identifier) , (parameter_declaration "Idx ex_subexp" type_identifier identifier) , (parameter_declaration "int type" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Idx *pIVar2;\n  _Bool _Var3;\n  uint uVar4;\n  reg_errcode_t rVar5;\n  int *piVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  \n  do {\n    iVar10 = dst_nodes->nelem;\n    if (0 < iVar10) {\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }\n    if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }\n    if (dst_nodes->alloc == 0) {\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }\n    else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }\n    iVar10 = dfa->edests[target].nelem;\n    if (iVar10 == 0) {\n      return _REG_NOERROR;\n    }\n    piVar6 = dfa->edests[target].elems;\n    if (iVar10 == 2) {\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }\n    else {\n      target = *piVar6;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Idx *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "reg_errcode_t rVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (do_statement "do {\n    iVar10 = dst_nodes->nelem;\n    if (0 < iVar10) {\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }\n    if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }\n    if (dst_nodes->alloc == 0) {\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }\n    else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }\n    iVar10 = dfa->edests[target].nelem;\n    if (iVar10 == 0) {\n      return _REG_NOERROR;\n    }\n    piVar6 = dfa->edests[target].elems;\n    if (iVar10 == 2) {\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }\n    else {\n      target = *piVar6;\n    }\n  } while( true );" do (compound_statement "{\n    iVar10 = dst_nodes->nelem;\n    if (0 < iVar10) {\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }\n    if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }\n    if (dst_nodes->alloc == 0) {\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }\n    else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }\n    iVar10 = dfa->edests[target].nelem;\n    if (iVar10 == 0) {\n      return _REG_NOERROR;\n    }\n    piVar6 = dfa->edests[target].elems;\n    if (iVar10 == 2) {\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }\n    else {\n      target = *piVar6;\n    }\n  }" { (expression_statement "iVar10 = dst_nodes->nelem;" (assignment_expression "iVar10 = dst_nodes->nelem" identifier = (field_expression "dst_nodes->nelem" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar10) {\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }" if (parenthesized_expression "(0 < iVar10)" ( (binary_expression "0 < iVar10" number_literal < identifier) )) (compound_statement "{\n      uVar9 = iVar10 - 1;\n      pIVar2 = dst_nodes->elems;\n      uVar7 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }\n      if (target == iVar1) {\n        return _REG_NOERROR;\n      }\n    }" { (expression_statement "uVar9 = iVar10 - 1;" (assignment_expression "uVar9 = iVar10 - 1" identifier = (binary_expression "iVar10 - 1" identifier - number_literal)) ;) (expression_statement "pIVar2 = dst_nodes->elems;" (assignment_expression "pIVar2 = dst_nodes->elems" identifier = (field_expression "dst_nodes->elems" identifier -> field_identifier)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }\n      else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];\n      }" { (labeled_statement "LAB_0004b4cd:\n        iVar1 = pIVar2[uVar7];" statement_identifier : (expression_statement "iVar1 = pIVar2[uVar7];" (assignment_expression "iVar1 = pIVar2[uVar7]" identifier = (subscript_expression "pIVar2[uVar7]" identifier [ identifier ])) ;)) }) (else_clause "else {\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }" else (compound_statement "{\n        do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);\n        iVar1 = pIVar2[uVar7];\n      }" { (do_statement "do {\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        } while (uVar7 < uVar9);" do (compound_statement "{\n          uVar4 = uVar7 + uVar9 >> 1;\n          if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }\n          uVar7 = uVar4 + 1;\n        }" { (expression_statement "uVar4 = uVar7 + uVar9 >> 1;" (assignment_expression "uVar4 = uVar7 + uVar9 >> 1" identifier = (binary_expression "uVar7 + uVar9 >> 1" (binary_expression "uVar7 + uVar9" identifier + identifier) >> number_literal)) ;) (if_statement "if (target <= pIVar2[uVar4]) {\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }" if (parenthesized_expression "(target <= pIVar2[uVar4])" ( (binary_expression "target <= pIVar2[uVar4]" identifier <= (subscript_expression "pIVar2[uVar4]" identifier [ identifier ])) )) (compound_statement "{\n            if (uVar4 <= uVar7) goto LAB_0004b4cd;\n            uVar8 = uVar4 + uVar7 >> 1;\n            iVar1 = pIVar2[uVar8];\n            uVar9 = uVar4;\n            uVar4 = uVar8;\n            while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }\n          }" { (if_statement "if (uVar4 <= uVar7) goto LAB_0004b4cd;" if (parenthesized_expression "(uVar4 <= uVar7)" ( (binary_expression "uVar4 <= uVar7" identifier <= identifier) )) (goto_statement "goto LAB_0004b4cd;" goto statement_identifier ;)) (expression_statement "uVar8 = uVar4 + uVar7 >> 1;" (assignment_expression "uVar8 = uVar4 + uVar7 >> 1" identifier = (binary_expression "uVar4 + uVar7 >> 1" (binary_expression "uVar4 + uVar7" identifier + identifier) >> number_literal)) ;) (expression_statement "iVar1 = pIVar2[uVar8];" (assignment_expression "iVar1 = pIVar2[uVar8]" identifier = (subscript_expression "pIVar2[uVar8]" identifier [ identifier ])) ;) (expression_statement "uVar9 = uVar4;" (assignment_expression "uVar9 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" identifier = identifier) ;) (while_statement "while (target <= iVar1) {\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }" while (parenthesized_expression "(target <= iVar1)" ( (binary_expression "target <= iVar1" identifier <= identifier) )) (compound_statement "{\n              if (uVar4 <= uVar7) goto LAB_0004b4cd;\n              uVar8 = uVar4 + uVar7 >> 1;\n              uVar9 = uVar4;\n              uVar4 = uVar8;\n              iVar1 = pIVar2[uVar8];\n            }" { (if_statement "if (uVar4 <= uVar7) goto LAB_0004b4cd;" if (parenthesized_expression "(uVar4 <= uVar7)" ( (binary_expression "uVar4 <= uVar7" identifier <= identifier) )) (goto_statement "goto LAB_0004b4cd;" goto statement_identifier ;)) (expression_statement "uVar8 = uVar4 + uVar7 >> 1;" (assignment_expression "uVar8 = uVar4 + uVar7 >> 1" identifier = (binary_expression "uVar4 + uVar7 >> 1" (binary_expression "uVar4 + uVar7" identifier + identifier) >> number_literal)) ;) (expression_statement "uVar9 = uVar4;" (assignment_expression "uVar9 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" identifier = identifier) ;) (expression_statement "iVar1 = pIVar2[uVar8];" (assignment_expression "iVar1 = pIVar2[uVar8]" identifier = (subscript_expression "pIVar2[uVar8]" identifier [ identifier ])) ;) })) })) (expression_statement "uVar7 = uVar4 + 1;" (assignment_expression "uVar7 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < uVar9)" ( (binary_expression "uVar7 < uVar9" identifier < identifier) )) ;) (expression_statement "iVar1 = pIVar2[uVar7];" (assignment_expression "iVar1 = pIVar2[uVar7]" identifier = (subscript_expression "pIVar2[uVar7]" identifier [ identifier ])) ;) }))) (if_statement "if (target == iVar1) {\n        return _REG_NOERROR;\n      }" if (parenthesized_expression "(target == iVar1)" ( (binary_expression "target == iVar1" identifier == identifier) )) (compound_statement "{\n        return _REG_NOERROR;\n      }" { (return_statement "return _REG_NOERROR;" return identifier ;) })) })) (if_statement "if (((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)) {\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }" if (parenthesized_expression "(((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp))" ( (binary_expression "((uint)(byte)dfa->nodes[target].field_0x4 == type) &&\n       (dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)" (parenthesized_expression "((uint)(byte)dfa->nodes[target].field_0x4 == type)" ( (binary_expression "(uint)(byte)dfa->nodes[target].field_0x4 == type" (cast_expression "(uint)(byte)dfa->nodes[target].field_0x4" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)dfa->nodes[target].field_0x4" ( (type_descriptor "byte" type_identifier) ) (field_expression "dfa->nodes[target].field_0x4" (subscript_expression "dfa->nodes[target]" (field_expression "dfa->nodes" identifier -> field_identifier) [ identifier ]) . field_identifier))) == identifier) )) && (parenthesized_expression "(dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp)" ( (binary_expression "dfa->nodes[target].opr.sbcset == (re_bitset_ptr_t)ex_subexp" (field_expression "dfa->nodes[target].opr.sbcset" (field_expression "dfa->nodes[target].opr" (subscript_expression "dfa->nodes[target]" (field_expression "dfa->nodes" identifier -> field_identifier) [ identifier ]) . field_identifier) . field_identifier) == (cast_expression "(re_bitset_ptr_t)ex_subexp" ( (type_descriptor "re_bitset_ptr_t" type_identifier) ) identifier)) ))) )) (compound_statement "{\n      if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }\n      return _REG_NOERROR;\n    }" { (if_statement "if ((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)) {\n        return _REG_ESPACE;\n      }" if (parenthesized_expression "((type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3))" ( (binary_expression "(type == 9) && (_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)" (parenthesized_expression "(type == 9)" ( (binary_expression "type == 9" identifier == number_literal) )) && (parenthesized_expression "(_Var3 = re_node_set_insert(dst_nodes,target), !_Var3)" ( (comma_expression "_Var3 = re_node_set_insert(dst_nodes,target), !_Var3" (assignment_expression "_Var3 = re_node_set_insert(dst_nodes,target)" identifier = (call_expression "re_node_set_insert(dst_nodes,target)" identifier (argument_list "(dst_nodes,target)" ( identifier , identifier )))) , (unary_expression "!_Var3" ! identifier)) ))) )) (compound_statement "{\n        return _REG_ESPACE;\n      }" { (return_statement "return _REG_ESPACE;" return identifier ;) })) (return_statement "return _REG_NOERROR;" return identifier ;) })) (if_statement "if (dst_nodes->alloc == 0) {\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }\n    else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }" if (parenthesized_expression "(dst_nodes->alloc == 0)" ( (binary_expression "dst_nodes->alloc == 0" (field_expression "dst_nodes->alloc" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      dst_nodes->alloc = 1;\n      dst_nodes->nelem = 1;\n      piVar6 = (int *)malloc(4);\n      dst_nodes->elems = piVar6;\n      if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }\n      *piVar6 = target;\n    }" { (expression_statement "dst_nodes->alloc = 1;" (assignment_expression "dst_nodes->alloc = 1" (field_expression "dst_nodes->alloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "dst_nodes->nelem = 1;" (assignment_expression "dst_nodes->nelem = 1" (field_expression "dst_nodes->nelem" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar6 = (int *)malloc(4);" (assignment_expression "piVar6 = (int *)malloc(4)" identifier = (cast_expression "(int *)malloc(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "dst_nodes->elems = piVar6;" (assignment_expression "dst_nodes->elems = piVar6" (field_expression "dst_nodes->elems" identifier -> field_identifier) = identifier) ;) (if_statement "if (piVar6 == (int *)0x0) {\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        dst_nodes->nelem = 0;\n        dst_nodes->alloc = 0;\n        return _REG_ESPACE;\n      }" { (expression_statement "dst_nodes->nelem = 0;" (assignment_expression "dst_nodes->nelem = 0" (field_expression "dst_nodes->nelem" identifier -> field_identifier) = number_literal) ;) (expression_statement "dst_nodes->alloc = 0;" (assignment_expression "dst_nodes->alloc = 0" (field_expression "dst_nodes->alloc" identifier -> field_identifier) = number_literal) ;) (return_statement "return _REG_ESPACE;" return identifier ;) })) (expression_statement "*piVar6 = target;" (assignment_expression "*piVar6 = target" (pointer_expression "*piVar6" * identifier) = identifier) ;) }) (else_clause "else {\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }" else (compound_statement "{\n      piVar6 = dst_nodes->elems;\n      if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n    }" { (expression_statement "piVar6 = dst_nodes->elems;" (assignment_expression "piVar6 = dst_nodes->elems" identifier = (field_expression "dst_nodes->elems" identifier -> field_identifier)) ;) (if_statement "if (iVar10 == 0) {\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }\n      else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar6 = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }" { (expression_statement "*piVar6 = target;" (assignment_expression "*piVar6 = target" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "dst_nodes->nelem = dst_nodes->nelem + 1;" (assignment_expression "dst_nodes->nelem = dst_nodes->nelem + 1" (field_expression "dst_nodes->nelem" identifier -> field_identifier) = (binary_expression "dst_nodes->nelem + 1" (field_expression "dst_nodes->nelem" identifier -> field_identifier) + number_literal)) ;) }) (else_clause "else {\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }" else (compound_statement "{\n        if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }\n        if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }\n        piVar6[iVar10] = target;\n        dst_nodes->nelem = dst_nodes->nelem + 1;\n      }" { (if_statement "if (iVar10 == dst_nodes->alloc) {\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }" if (parenthesized_expression "(iVar10 == dst_nodes->alloc)" ( (binary_expression "iVar10 == dst_nodes->alloc" identifier == (field_expression "dst_nodes->alloc" identifier -> field_identifier)) )) (compound_statement "{\n          dst_nodes->alloc = iVar10 * 2;\n          piVar6 = (int *)realloc(piVar6,iVar10 << 3);\n          if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }\n          dst_nodes->elems = piVar6;\n          iVar10 = dst_nodes->nelem;\n        }" { (expression_statement "dst_nodes->alloc = iVar10 * 2;" (assignment_expression "dst_nodes->alloc = iVar10 * 2" (field_expression "dst_nodes->alloc" identifier -> field_identifier) = (binary_expression "iVar10 * 2" identifier * number_literal)) ;) (expression_statement "piVar6 = (int *)realloc(piVar6,iVar10 << 3);" (assignment_expression "piVar6 = (int *)realloc(piVar6,iVar10 << 3)" identifier = (cast_expression "(int *)realloc(piVar6,iVar10 << 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(piVar6,iVar10 << 3)" identifier (argument_list "(piVar6,iVar10 << 3)" ( identifier , (binary_expression "iVar10 << 3" identifier << number_literal) ))))) ;) (if_statement "if (piVar6 == (int *)0x0) {\n            return _REG_ESPACE;\n          }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return _REG_ESPACE;\n          }" { (return_statement "return _REG_ESPACE;" return identifier ;) })) (expression_statement "dst_nodes->elems = piVar6;" (assignment_expression "dst_nodes->elems = piVar6" (field_expression "dst_nodes->elems" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar10 = dst_nodes->nelem;" (assignment_expression "iVar10 = dst_nodes->nelem" identifier = (field_expression "dst_nodes->nelem" identifier -> field_identifier)) ;) })) (if_statement "if (target < *piVar6) {\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }\n        else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }" if (parenthesized_expression "(target < *piVar6)" ( (binary_expression "target < *piVar6" identifier < (pointer_expression "*piVar6" * identifier)) )) (compound_statement "{\n          if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }\n        }" { (if_statement "if (0 < iVar10) {\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }" if (parenthesized_expression "(0 < iVar10)" ( (binary_expression "0 < iVar10" number_literal < identifier) )) (compound_statement "{\n            memmove(piVar6 + 1,piVar6,iVar10 << 2);\n            iVar10 = 0;\n          }" { (expression_statement "memmove(piVar6 + 1,piVar6,iVar10 << 2);" (call_expression "memmove(piVar6 + 1,piVar6,iVar10 << 2)" identifier (argument_list "(piVar6 + 1,piVar6,iVar10 << 2)" ( (binary_expression "piVar6 + 1" identifier + number_literal) , identifier , (binary_expression "iVar10 << 2" identifier << number_literal) ))) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }" else (compound_statement "{\n          iVar1 = piVar6[iVar10 + -1];\n          while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }\n        }" { (expression_statement "iVar1 = piVar6[iVar10 + -1];" (assignment_expression "iVar1 = piVar6[iVar10 + -1]" identifier = (subscript_expression "piVar6[iVar10 + -1]" identifier [ (binary_expression "iVar10 + -1" identifier + number_literal) ])) ;) (while_statement "while (target < iVar1) {\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }" while (parenthesized_expression "(target < iVar1)" ( (binary_expression "target < iVar1" identifier < identifier) )) (compound_statement "{\n            piVar6[iVar10] = iVar1;\n            iVar1 = piVar6[iVar10 + -2];\n            iVar10 = iVar10 + -1;\n          }" { (expression_statement "piVar6[iVar10] = iVar1;" (assignment_expression "piVar6[iVar10] = iVar1" (subscript_expression "piVar6[iVar10]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar1 = piVar6[iVar10 + -2];" (assignment_expression "iVar1 = piVar6[iVar10 + -2]" identifier = (subscript_expression "piVar6[iVar10 + -2]" identifier [ (binary_expression "iVar10 + -2" identifier + number_literal) ])) ;) (expression_statement "iVar10 = iVar10 + -1;" (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) })) }))) (expression_statement "piVar6[iVar10] = target;" (assignment_expression "piVar6[iVar10] = target" (subscript_expression "piVar6[iVar10]" identifier [ identifier ]) = identifier) ;) (expression_statement "dst_nodes->nelem = dst_nodes->nelem + 1;" (assignment_expression "dst_nodes->nelem = dst_nodes->nelem + 1" (field_expression "dst_nodes->nelem" identifier -> field_identifier) = (binary_expression "dst_nodes->nelem + 1" (field_expression "dst_nodes->nelem" identifier -> field_identifier) + number_literal)) ;) }))) }))) (expression_statement "iVar10 = dfa->edests[target].nelem;" (assignment_expression "iVar10 = dfa->edests[target].nelem" identifier = (field_expression "dfa->edests[target].nelem" (subscript_expression "dfa->edests[target]" (field_expression "dfa->edests" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if (iVar10 == 0) {\n      return _REG_NOERROR;\n    }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n      return _REG_NOERROR;\n    }" { (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "piVar6 = dfa->edests[target].elems;" (assignment_expression "piVar6 = dfa->edests[target].elems" identifier = (field_expression "dfa->edests[target].elems" (subscript_expression "dfa->edests[target]" (field_expression "dfa->edests" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if (iVar10 == 2) {\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }\n    else {\n      target = *piVar6;\n    }" if (parenthesized_expression "(iVar10 == 2)" ( (binary_expression "iVar10 == 2" identifier == number_literal) )) (compound_statement "{\n      rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);\n      if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }\n      target = *dfa->edests[target].elems;\n    }" { (expression_statement "rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type);" (assignment_expression "rVar5 = check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type)" identifier = (call_expression "check_arrival_expand_ecl_sub(dfa,dst_nodes,piVar6[1],ex_subexp,type)" identifier (argument_list "(dfa,dst_nodes,piVar6[1],ex_subexp,type)" ( identifier , identifier , (subscript_expression "piVar6[1]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if (rVar5 != _REG_NOERROR) {\n        return rVar5;\n      }" if (parenthesized_expression "(rVar5 != _REG_NOERROR)" ( (binary_expression "rVar5 != _REG_NOERROR" identifier != identifier) )) (compound_statement "{\n        return rVar5;\n      }" { (return_statement "return rVar5;" return identifier ;) })) (expression_statement "target = *dfa->edests[target].elems;" (assignment_expression "target = *dfa->edests[target].elems" identifier = (pointer_expression "*dfa->edests[target].elems" * (field_expression "dfa->edests[target].elems" (subscript_expression "dfa->edests[target]" (field_expression "dfa->edests" identifier -> field_identifier) [ identifier ]) . field_identifier))) ;) }) (else_clause "else {\n      target = *piVar6;\n    }" else (compound_statement "{\n      target = *piVar6;\n    }" { (expression_statement "target = *piVar6;" (assignment_expression "target = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (do_statement "do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );" do (compound_statement "{\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  }" { (expression_statement "iVar4 = param_2[1];" (assignment_expression "iVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }" { (expression_statement "uVar9 = iVar4 - 1;" (assignment_expression "uVar9 = iVar4 - 1" identifier = (binary_expression "iVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar8 = param_2[2];" (assignment_expression "iVar8 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" { (labeled_statement "LAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);" statement_identifier : (expression_statement "iVar8 = *(int *)(iVar8 + uVar6 * 4);" (assignment_expression "iVar8 = *(int *)(iVar8 + uVar6 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar6 * 4)" * (cast_expression "(int *)(iVar8 + uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar6 * 4)" ( (binary_expression "iVar8 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;)) }) (else_clause "else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" else (compound_statement "{\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" { (do_statement "do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);" do (compound_statement "{\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        }" { (expression_statement "uVar3 = uVar6 + uVar9 >> 1;" (assignment_expression "uVar3 = uVar6 + uVar9 >> 1" identifier = (binary_expression "uVar6 + uVar9 >> 1" (binary_expression "uVar6 + uVar9" identifier + identifier) >> number_literal)) ;) (if_statement "if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }" if (parenthesized_expression "(param_3 <= *(int *)(iVar8 + uVar3 * 4))" ( (binary_expression "param_3 <= *(int *)(iVar8 + uVar3 * 4)" identifier <= (pointer_expression "*(int *)(iVar8 + uVar3 * 4)" * (cast_expression "(int *)(iVar8 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar3 * 4)" ( (binary_expression "iVar8 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) )) (compound_statement "{\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }" { (if_statement "if (uVar3 <= uVar6) goto LAB_0004b4cd;" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_0004b4cd;" goto statement_identifier ;)) (expression_statement "uVar7 = uVar3 + uVar6 >> 1;" (assignment_expression "uVar7 = uVar3 + uVar6 >> 1" identifier = (binary_expression "uVar3 + uVar6 >> 1" (binary_expression "uVar3 + uVar6" identifier + identifier) >> number_literal)) ;) (expression_statement "iVar1 = *(int *)(iVar8 + uVar7 * 4);" (assignment_expression "iVar1 = *(int *)(iVar8 + uVar7 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar7 * 4)" * (cast_expression "(int *)(iVar8 + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar7 * 4)" ( (binary_expression "iVar8 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar9 = uVar3;" (assignment_expression "uVar9 = uVar3" identifier = identifier) ;) (expression_statement "uVar3 = uVar7;" (assignment_expression "uVar3 = uVar7" identifier = identifier) ;) (while_statement "while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }" while (parenthesized_expression "(param_3 <= iVar1)" ( (binary_expression "param_3 <= iVar1" identifier <= identifier) )) (compound_statement "{\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }" { (if_statement "if (uVar3 <= uVar6) goto LAB_0004b4cd;" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_0004b4cd;" goto statement_identifier ;)) (expression_statement "uVar7 = uVar3 + uVar6 >> 1;" (assignment_expression "uVar7 = uVar3 + uVar6 >> 1" identifier = (binary_expression "uVar3 + uVar6 >> 1" (binary_expression "uVar3 + uVar6" identifier + identifier) >> number_literal)) ;) (expression_statement "uVar9 = uVar3;" (assignment_expression "uVar9 = uVar3" identifier = identifier) ;) (expression_statement "uVar3 = uVar7;" (assignment_expression "uVar3 = uVar7" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar8 + uVar7 * 4);" (assignment_expression "iVar1 = *(int *)(iVar8 + uVar7 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar7 * 4)" * (cast_expression "(int *)(iVar8 + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar7 * 4)" ( (binary_expression "iVar8 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) ))))) ;) })) })) (expression_statement "uVar6 = uVar3 + 1;" (assignment_expression "uVar6 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < uVar9)" ( (binary_expression "uVar6 < uVar9" identifier < identifier) )) ;) (expression_statement "iVar8 = *(int *)(iVar8 + uVar6 * 4);" (assignment_expression "iVar8 = *(int *)(iVar8 + uVar6 * 4)" identifier = (pointer_expression "*(int *)(iVar8 + uVar6 * 4)" * (cast_expression "(int *)(iVar8 + uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + uVar6 * 4)" ( (binary_expression "iVar8 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;) }))) (if_statement "if (param_3 == iVar8) {\n        return 0;\n      }" if (parenthesized_expression "(param_3 == iVar8)" ( (binary_expression "param_3 == iVar8" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "piVar5 = (int *)(*param_1 + param_3 * 8);" (assignment_expression "piVar5 = (int *)(*param_1 + param_3 * 8)" identifier = (cast_expression "(int *)(*param_1 + param_3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_3 * 8)" ( (binary_expression "*param_1 + param_3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "param_3 * 8" identifier * number_literal)) )))) ;) (if_statement "if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4))" ( (binary_expression "(*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)" (parenthesized_expression "(*(byte *)(piVar5 + 1) == param_5)" ( (binary_expression "*(byte *)(piVar5 + 1) == param_5" (pointer_expression "*(byte *)(piVar5 + 1)" * (cast_expression "(byte *)(piVar5 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 1)" ( (binary_expression "piVar5 + 1" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(*piVar5 == param_4)" ( (binary_expression "*piVar5 == param_4" (pointer_expression "*piVar5" * identifier) == identifier) ))) )) (compound_statement "{\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }" { (if_statement "if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }" if (parenthesized_expression "((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0'))" ( (binary_expression "(param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')" (parenthesized_expression "(param_5 == 9)" ( (binary_expression "param_5 == 9" identifier == number_literal) )) && (parenthesized_expression "(cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')" ( (comma_expression "cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0'" (assignment_expression "cVar2 = FUN_000455a0(param_2,param_3)" identifier = (call_expression "FUN_000455a0(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) , (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n        return 0xc;\n      }" { (return_statement "return 0xc;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }" { (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5 = (int *)malloc(4);" (assignment_expression "piVar5 = (int *)malloc(4)" identifier = (cast_expression "(int *)malloc(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "param_2[2] = (int)piVar5;" (assignment_expression "param_2[2] = (int)piVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) }) (else_clause "else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" else (compound_statement "{\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" { (expression_statement "piVar5 = (int *)param_2[2];" (assignment_expression "piVar5 = (int *)param_2[2]" identifier = (cast_expression "(int *)param_2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" { (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" else (compound_statement "{\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" { (if_statement "if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }" if (parenthesized_expression "(iVar4 == *param_2)" ( (binary_expression "iVar4 == *param_2" identifier == (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }" { (expression_statement "*param_2 = iVar4 * 2;" (assignment_expression "*param_2 = iVar4 * 2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar4 * 2" identifier * number_literal)) ;) (expression_statement "piVar5 = (int *)realloc(piVar5,iVar4 << 3);" (assignment_expression "piVar5 = (int *)realloc(piVar5,iVar4 << 3)" identifier = (cast_expression "(int *)realloc(piVar5,iVar4 << 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(piVar5,iVar4 << 3)" identifier (argument_list "(piVar5,iVar4 << 3)" ( identifier , (binary_expression "iVar4 << 3" identifier << number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 0xc;\n          }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "param_2[2] = (int)piVar5;" (assignment_expression "param_2[2] = (int)piVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar4 = param_2[1];" (assignment_expression "iVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) })) (if_statement "if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" if (parenthesized_expression "(param_3 < *piVar5)" ( (binary_expression "param_3 < *piVar5" identifier < (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }" { (if_statement "if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }" { (expression_statement "memmove(piVar5 + 1,piVar5,iVar4 << 2);" (call_expression "memmove(piVar5 + 1,piVar5,iVar4 << 2)" identifier (argument_list "(piVar5 + 1,piVar5,iVar4 << 2)" ( (binary_expression "piVar5 + 1" identifier + number_literal) , identifier , (binary_expression "iVar4 << 2" identifier << number_literal) ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" else (compound_statement "{\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" { (expression_statement "iVar8 = piVar5[iVar4 + -1];" (assignment_expression "iVar8 = piVar5[iVar4 + -1]" identifier = (subscript_expression "piVar5[iVar4 + -1]" identifier [ (binary_expression "iVar4 + -1" identifier + number_literal) ])) ;) (while_statement "while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }" while (parenthesized_expression "(param_3 < iVar8)" ( (binary_expression "param_3 < iVar8" identifier < identifier) )) (compound_statement "{\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }" { (expression_statement "piVar5[iVar4] = iVar8;" (assignment_expression "piVar5[iVar4] = iVar8" (subscript_expression "piVar5[iVar4]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar8 = piVar5[iVar4 + -2];" (assignment_expression "iVar8 = piVar5[iVar4 + -2]" identifier = (subscript_expression "piVar5[iVar4 + -2]" identifier [ (binary_expression "iVar4 + -2" identifier + number_literal) ])) ;) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) })) }))) (expression_statement "piVar5[iVar4] = param_3;" (assignment_expression "piVar5[iVar4] = param_3" (subscript_expression "piVar5[iVar4]" identifier [ identifier ]) = identifier) ;) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }))) }))) (expression_statement "iVar8 = param_1[5] + param_3 * 0xc;" (assignment_expression "iVar8 = param_1[5] + param_3 * 0xc" identifier = (binary_expression "param_1[5] + param_3 * 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + (binary_expression "param_3 * 0xc" identifier * number_literal))) ;) (expression_statement "iVar4 = *(int *)(iVar8 + 4);" (assignment_expression "iVar4 = *(int *)(iVar8 + 4)" identifier = (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar5 = *(int **)(iVar8 + 8);" (assignment_expression "piVar5 = *(int **)(iVar8 + 8)" identifier = (pointer_expression "*(int **)(iVar8 + 8)" * (cast_expression "(int **)(iVar8 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }" { (expression_statement "iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);" (assignment_expression "iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5)" identifier = (call_expression "FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5)" identifier (argument_list "(param_1,param_2,piVar5[1],param_4,param_5)" ( identifier , identifier , (subscript_expression "piVar5[1]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);" (assignment_expression "param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc)" identifier = (pointer_expression "**(int **)(param_1[5] + 8 + param_3 * 0xc)" * (pointer_expression "*(int **)(param_1[5] + 8 + param_3 * 0xc)" * (cast_expression "(int **)(param_1[5] + 8 + param_3 * 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[5] + 8 + param_3 * 0xc)" ( (binary_expression "param_1[5] + 8 + param_3 * 0xc" (binary_expression "param_1[5] + 8" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) + (binary_expression "param_3 * 0xc" identifier * number_literal)) )))))) ;) }) (else_clause "else {\n      param_3 = *piVar5;\n    }" else (compound_statement "{\n      param_3 = *piVar5;\n    }" { (expression_statement "param_3 = *piVar5;" (assignment_expression "param_3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;)) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT << LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }))) }))) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + (binary_expression IDENT * LIT)) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_0004b460(int *param_1,int *param_2,int param_3,int param_4,uint param_5)" (identifier "FUN_0004b460") (parameter_list "(int *param_1,int *param_2,int param_3,int param_4,uint param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  \n  do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (do_statement "do {\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar4 = param_2[1];\n    if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }\n    piVar5 = (int *)(*param_1 + param_3 * 8);\n    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }\n    if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }\n    iVar8 = param_1[5] + param_3 * 0xc;\n    iVar4 = *(int *)(iVar8 + 4);\n    if (iVar4 == 0) {\n      return 0;\n    }\n    piVar5 = *(int **)(iVar8 + 8);\n    if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }\n  }" ({ "{") (expression_statement "iVar4 = param_2[1];" (assignment_expression "iVar4 = param_2[1]" (identifier "iVar4") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (0 < iVar4) {\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      uVar9 = iVar4 - 1;\n      iVar8 = param_2[2];\n      uVar6 = 0;\n      if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      if (param_3 == iVar8) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "uVar9 = iVar4 - 1;" (assignment_expression "uVar9 = iVar4 - 1" (identifier "uVar9") (= "=") (binary_expression "iVar4 - 1" (identifier "iVar4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = param_2[2];" (assignment_expression "iVar8 = param_2[2]" (identifier "iVar8") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar9 == 0) {\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }\n      else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" (if "if") (parenthesized_expression "(uVar9 == 0)" (( "(") (binary_expression "uVar9 == 0" (identifier "uVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" ({ "{") (labeled_statement "LAB_0004b4cd:\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);" (statement_identifier "LAB_0004b4cd") (: ":") (expression_statement "iVar8 = *(int *)(iVar8 + uVar6 * 4);" (assignment_expression "iVar8 = *(int *)(iVar8 + uVar6 * 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar8 + uVar6 * 4)" (* "*") (cast_expression "(int *)(iVar8 + uVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar6 * 4)" (( "(") (binary_expression "iVar8 + uVar6 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar6 * 4" (identifier "uVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";"))) (} "}")) (else_clause "else {\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" (else "else") (compound_statement "{\n        do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);\n        iVar8 = *(int *)(iVar8 + uVar6 * 4);\n      }" ({ "{") (do_statement "do {\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        } while (uVar6 < uVar9);" (do "do") (compound_statement "{\n          uVar3 = uVar6 + uVar9 >> 1;\n          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }\n          uVar6 = uVar3 + 1;\n        }" ({ "{") (expression_statement "uVar3 = uVar6 + uVar9 >> 1;" (assignment_expression "uVar3 = uVar6 + uVar9 >> 1" (identifier "uVar3") (= "=") (binary_expression "uVar6 + uVar9 >> 1" (binary_expression "uVar6 + uVar9" (identifier "uVar6") (+ "+") (identifier "uVar9")) (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }" (if "if") (parenthesized_expression "(param_3 <= *(int *)(iVar8 + uVar3 * 4))" (( "(") (binary_expression "param_3 <= *(int *)(iVar8 + uVar3 * 4)" (identifier "param_3") (<= "<=") (pointer_expression "*(int *)(iVar8 + uVar3 * 4)" (* "*") (cast_expression "(int *)(iVar8 + uVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar3 * 4)" (( "(") (binary_expression "iVar8 + uVar3 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")"))))) () ")")) (compound_statement "{\n            if (uVar3 <= uVar6) goto LAB_0004b4cd;\n            uVar7 = uVar3 + uVar6 >> 1;\n            iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            uVar9 = uVar3;\n            uVar3 = uVar7;\n            while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }\n          }" ({ "{") (if_statement "if (uVar3 <= uVar6) goto LAB_0004b4cd;" (if "if") (parenthesized_expression "(uVar3 <= uVar6)" (( "(") (binary_expression "uVar3 <= uVar6" (identifier "uVar3") (<= "<=") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_0004b4cd;" (goto "goto") (statement_identifier "LAB_0004b4cd") (; ";"))) (expression_statement "uVar7 = uVar3 + uVar6 >> 1;" (assignment_expression "uVar7 = uVar3 + uVar6 >> 1" (identifier "uVar7") (= "=") (binary_expression "uVar3 + uVar6 >> 1" (binary_expression "uVar3 + uVar6" (identifier "uVar3") (+ "+") (identifier "uVar6")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = *(int *)(iVar8 + uVar7 * 4);" (assignment_expression "iVar1 = *(int *)(iVar8 + uVar7 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar8 + uVar7 * 4)" (* "*") (cast_expression "(int *)(iVar8 + uVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar7 * 4)" (( "(") (binary_expression "iVar8 + uVar7 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar9 = uVar3;" (assignment_expression "uVar9 = uVar3" (identifier "uVar9") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = uVar7;" (assignment_expression "uVar3 = uVar7" (identifier "uVar3") (= "=") (identifier "uVar7")) (; ";")) (while_statement "while (param_3 <= iVar1) {\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }" (while "while") (parenthesized_expression "(param_3 <= iVar1)" (( "(") (binary_expression "param_3 <= iVar1" (identifier "param_3") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n              if (uVar3 <= uVar6) goto LAB_0004b4cd;\n              uVar7 = uVar3 + uVar6 >> 1;\n              uVar9 = uVar3;\n              uVar3 = uVar7;\n              iVar1 = *(int *)(iVar8 + uVar7 * 4);\n            }" ({ "{") (if_statement "if (uVar3 <= uVar6) goto LAB_0004b4cd;" (if "if") (parenthesized_expression "(uVar3 <= uVar6)" (( "(") (binary_expression "uVar3 <= uVar6" (identifier "uVar3") (<= "<=") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_0004b4cd;" (goto "goto") (statement_identifier "LAB_0004b4cd") (; ";"))) (expression_statement "uVar7 = uVar3 + uVar6 >> 1;" (assignment_expression "uVar7 = uVar3 + uVar6 >> 1" (identifier "uVar7") (= "=") (binary_expression "uVar3 + uVar6 >> 1" (binary_expression "uVar3 + uVar6" (identifier "uVar3") (+ "+") (identifier "uVar6")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "uVar9 = uVar3;" (assignment_expression "uVar9 = uVar3" (identifier "uVar9") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = uVar7;" (assignment_expression "uVar3 = uVar7" (identifier "uVar3") (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar8 + uVar7 * 4);" (assignment_expression "iVar1 = *(int *)(iVar8 + uVar7 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar8 + uVar7 * 4)" (* "*") (cast_expression "(int *)(iVar8 + uVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar7 * 4)" (( "(") (binary_expression "iVar8 + uVar7 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar6 = uVar3 + 1;" (assignment_expression "uVar6 = uVar3 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < uVar9)" (( "(") (binary_expression "uVar6 < uVar9" (identifier "uVar6") (< "<") (identifier "uVar9")) () ")")) (; ";")) (expression_statement "iVar8 = *(int *)(iVar8 + uVar6 * 4);" (assignment_expression "iVar8 = *(int *)(iVar8 + uVar6 * 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar8 + uVar6 * 4)" (* "*") (cast_expression "(int *)(iVar8 + uVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + uVar6 * 4)" (( "(") (binary_expression "iVar8 + uVar6 * 4" (identifier "iVar8") (+ "+") (binary_expression "uVar6 * 4" (identifier "uVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")))) (if_statement "if (param_3 == iVar8) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_3 == iVar8)" (( "(") (binary_expression "param_3 == iVar8" (identifier "param_3") (== "==") (identifier "iVar8")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar5 = (int *)(*param_1 + param_3 * 8);" (assignment_expression "piVar5 = (int *)(*param_1 + param_3 * 8)" (identifier "piVar5") (= "=") (cast_expression "(int *)(*param_1 + param_3 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + param_3 * 8)" (( "(") (binary_expression "*param_1 + param_3 * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }" (if "if") (parenthesized_expression "((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4))" (( "(") (binary_expression "(*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)" (parenthesized_expression "(*(byte *)(piVar5 + 1) == param_5)" (( "(") (binary_expression "*(byte *)(piVar5 + 1) == param_5" (pointer_expression "*(byte *)(piVar5 + 1)" (* "*") (cast_expression "(byte *)(piVar5 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5 + 1)" (( "(") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1")) () ")")))) (== "==") (identifier "param_5")) () ")")) (&& "&&") (parenthesized_expression "(*piVar5 == param_4)" (( "(") (binary_expression "*piVar5 == param_4" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (== "==") (identifier "param_4")) () ")"))) () ")")) (compound_statement "{\n      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }\n      return 0;\n    }" ({ "{") (if_statement "if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {\n        return 0xc;\n      }" (if "if") (parenthesized_expression "((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0'))" (( "(") (binary_expression "(param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')" (parenthesized_expression "(param_5 == 9)" (( "(") (binary_expression "param_5 == 9" (identifier "param_5") (== "==") (number_literal "9")) () ")")) (&& "&&") (parenthesized_expression "(cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')" (( "(") (comma_expression "cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0'" (assignment_expression "cVar2 = FUN_000455a0(param_2,param_3)" (identifier "cVar2") (= "=") (call_expression "FUN_000455a0(param_2,param_3)" (identifier "FUN_000455a0") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n        return 0xc;\n      }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*param_2 == 0) {\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }\n    else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_2 = 1;\n      param_2[1] = 1;\n      piVar5 = (int *)malloc(4);\n      param_2[2] = (int)piVar5;\n      if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }\n      *piVar5 = param_3;\n    }" ({ "{") (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar5 = (int *)malloc(4);" (assignment_expression "piVar5 = (int *)malloc(4)" (identifier "piVar5") (= "=") (cast_expression "(int *)malloc(4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(4)" (identifier "malloc") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "param_2[2] = (int)piVar5;" (assignment_expression "param_2[2] = (int)piVar5" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5"))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_2[1] = 0;\n        *param_2 = 0;\n        return 0xc;\n      }" ({ "{") (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "param_3")) (; ";")) (} "}")) (else_clause "else {\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" (else "else") (compound_statement "{\n      piVar5 = (int *)param_2[2];\n      if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n    }" ({ "{") (expression_statement "piVar5 = (int *)param_2[2];" (assignment_expression "piVar5 = (int *)param_2[2]" (identifier "piVar5") (= "=") (cast_expression "(int *)param_2[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }\n      else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *piVar5 = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" ({ "{") (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" (else "else") (compound_statement "{\n        if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }\n        if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }\n        piVar5[iVar4] = param_3;\n        param_2[1] = param_2[1] + 1;\n      }" ({ "{") (if_statement "if (iVar4 == *param_2) {\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }" (if "if") (parenthesized_expression "(iVar4 == *param_2)" (( "(") (binary_expression "iVar4 == *param_2" (identifier "iVar4") (== "==") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n          *param_2 = iVar4 * 2;\n          piVar5 = (int *)realloc(piVar5,iVar4 << 3);\n          if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }\n          param_2[2] = (int)piVar5;\n          iVar4 = param_2[1];\n        }" ({ "{") (expression_statement "*param_2 = iVar4 * 2;" (assignment_expression "*param_2 = iVar4 * 2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar4 * 2" (identifier "iVar4") (* "*") (number_literal "2"))) (; ";")) (expression_statement "piVar5 = (int *)realloc(piVar5,iVar4 << 3);" (assignment_expression "piVar5 = (int *)realloc(piVar5,iVar4 << 3)" (identifier "piVar5") (= "=") (cast_expression "(int *)realloc(piVar5,iVar4 << 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "realloc(piVar5,iVar4 << 3)" (identifier "realloc") (argument_list "(piVar5,iVar4 << 3)" (( "(") (identifier "piVar5") (, ",") (binary_expression "iVar4 << 3" (identifier "iVar4") (<< "<<") (number_literal "3")) () ")"))))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n            return 0xc;\n          }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            return 0xc;\n          }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "param_2[2] = (int)piVar5;" (assignment_expression "param_2[2] = (int)piVar5" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5"))) (; ";")) (expression_statement "iVar4 = param_2[1];" (assignment_expression "iVar4 = param_2[1]" (identifier "iVar4") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (if_statement "if (param_3 < *piVar5) {\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" (if "if") (parenthesized_expression "(param_3 < *piVar5)" (( "(") (binary_expression "param_3 < *piVar5" (identifier "param_3") (< "<") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) () ")")) (compound_statement "{\n          if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }\n        }" ({ "{") (if_statement "if (0 < iVar4) {\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n            memmove(piVar5 + 1,piVar5,iVar4 << 2);\n            iVar4 = 0;\n          }" ({ "{") (expression_statement "memmove(piVar5 + 1,piVar5,iVar4 << 2);" (call_expression "memmove(piVar5 + 1,piVar5,iVar4 << 2)" (identifier "memmove") (argument_list "(piVar5 + 1,piVar5,iVar4 << 2)" (( "(") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1")) (, ",") (identifier "piVar5") (, ",") (binary_expression "iVar4 << 2" (identifier "iVar4") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" (else "else") (compound_statement "{\n          iVar8 = piVar5[iVar4 + -1];\n          while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }\n        }" ({ "{") (expression_statement "iVar8 = piVar5[iVar4 + -1];" (assignment_expression "iVar8 = piVar5[iVar4 + -1]" (identifier "iVar8") (= "=") (subscript_expression "piVar5[iVar4 + -1]" (identifier "piVar5") ([ "[") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) (] "]"))) (; ";")) (while_statement "while (param_3 < iVar8) {\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }" (while "while") (parenthesized_expression "(param_3 < iVar8)" (( "(") (binary_expression "param_3 < iVar8" (identifier "param_3") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n            piVar5[iVar4] = iVar8;\n            iVar8 = piVar5[iVar4 + -2];\n            iVar4 = iVar4 + -1;\n          }" ({ "{") (expression_statement "piVar5[iVar4] = iVar8;" (assignment_expression "piVar5[iVar4] = iVar8" (subscript_expression "piVar5[iVar4]" (identifier "piVar5") ([ "[") (identifier "iVar4") (] "]")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "iVar8 = piVar5[iVar4 + -2];" (assignment_expression "iVar8 = piVar5[iVar4 + -2]" (identifier "iVar8") (= "=") (subscript_expression "piVar5[iVar4 + -2]" (identifier "piVar5") ([ "[") (binary_expression "iVar4 + -2" (identifier "iVar4") (+ "+") (number_literal "-2")) (] "]"))) (; ";")) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "piVar5[iVar4] = param_3;" (assignment_expression "piVar5[iVar4] = param_3" (subscript_expression "piVar5[iVar4]" (identifier "piVar5") ([ "[") (identifier "iVar4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")))) (expression_statement "iVar8 = param_1[5] + param_3 * 0xc;" (assignment_expression "iVar8 = param_1[5] + param_3 * 0xc" (identifier "iVar8") (= "=") (binary_expression "param_1[5] + param_3 * 0xc" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc")))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar8 + 4);" (assignment_expression "iVar4 = *(int *)(iVar8 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar8 + 4)" (* "*") (cast_expression "(int *)(iVar8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar5 = *(int **)(iVar8 + 8);" (assignment_expression "piVar5 = *(int **)(iVar8 + 8)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(iVar8 + 8)" (* "*") (cast_expression "(int **)(iVar8 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 8)" (( "(") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 2) {\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }\n    else {\n      param_3 = *piVar5;\n    }" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);\n      if (iVar4 != 0) {\n        return iVar4;\n      }\n      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);\n    }" ({ "{") (expression_statement "iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5);" (assignment_expression "iVar4 = FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5)" (identifier "iVar4") (= "=") (call_expression "FUN_0004b460(param_1,param_2,piVar5[1],param_4,param_5)" (identifier "FUN_0004b460") (argument_list "(param_1,param_2,piVar5[1],param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n        return iVar4;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar4;\n      }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);" (assignment_expression "param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc)" (identifier "param_3") (= "=") (pointer_expression "**(int **)(param_1[5] + 8 + param_3 * 0xc)" (* "*") (pointer_expression "*(int **)(param_1[5] + 8 + param_3 * 0xc)" (* "*") (cast_expression "(int **)(param_1[5] + 8 + param_3 * 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[5] + 8 + param_3 * 0xc)" (( "(") (binary_expression "param_1[5] + 8 + param_3 * 0xc" (binary_expression "param_1[5] + 8" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "8")) (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n      param_3 = *piVar5;\n    }" (else "else") (compound_statement "{\n      param_3 = *piVar5;\n    }" ({ "{") (expression_statement "param_3 = *piVar5;" (assignment_expression "param_3 = *piVar5" (identifier "param_3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Unknown calling convention */

type_1
function_1(type_2 *dfa,type_3 *dst_nodes,type_4 var_4,type_4 ex_subexp,int var_7)

{
  int var_6;
  type_4 *pIVar2;
  type_5 _Var3;
  type_6 var_5;
  type_1 var_13;
  int *var_10;
  type_6 var_3;
  type_6 uVar8;
  type_6 var_2;
  int var_1;
  
  do {
    var_1 = dst_nodes->nelem;
    if (0 < var_1) {
      var_2 = var_1 - 1;
      pIVar2 = dst_nodes->elems;
      var_3 = 0;
      if (var_2 == 0) {
LAB_0004b4cd:
        var_6 = pIVar2[var_3];
      }
      else {
        do {
          var_5 = var_3 + var_2 >> 1;
          if (var_4 <= pIVar2[var_5]) {
            if (var_5 <= var_3) goto LAB_0004b4cd;
            uVar8 = var_5 + var_3 >> 1;
            var_6 = pIVar2[uVar8];
            var_2 = var_5;
            var_5 = uVar8;
            while (var_4 <= var_6) {
              if (var_5 <= var_3) goto LAB_0004b4cd;
              uVar8 = var_5 + var_3 >> 1;
              var_2 = var_5;
              var_5 = uVar8;
              var_6 = pIVar2[uVar8];
            }
          }
          var_3 = var_5 + 1;
        } while (var_3 < var_2);
        var_6 = pIVar2[var_3];
      }
      if (var_4 == var_6) {
        return var_14;
      }
    }
    if (((type_6)(type_7)dfa->nodes[var_4].field_0x4 == var_7) &&
       (dfa->nodes[var_4].opr.sbcset == (type_8)ex_subexp)) {
      if ((var_7 == 9) && (_Var3 = var_8(dst_nodes,var_4), !_Var3)) {
        return _REG_ESPACE;
      }
      return var_14;
    }
    if (dst_nodes->alloc == 0) {
      dst_nodes->alloc = 1;
      dst_nodes->nelem = 1;
      var_10 = (int *)var_9(4);
      dst_nodes->elems = var_10;
      if (var_10 == (int *)0x0) {
        dst_nodes->nelem = 0;
        dst_nodes->alloc = 0;
        return _REG_ESPACE;
      }
      *var_10 = var_4;
    }
    else {
      var_10 = dst_nodes->elems;
      if (var_1 == 0) {
        *var_10 = var_4;
        dst_nodes->nelem = dst_nodes->nelem + 1;
      }
      else {
        if (var_1 == dst_nodes->alloc) {
          dst_nodes->alloc = var_1 * 2;
          var_10 = (int *)var_11(var_10,var_1 << 3);
          if (var_10 == (int *)0x0) {
            return _REG_ESPACE;
          }
          dst_nodes->elems = var_10;
          var_1 = dst_nodes->nelem;
        }
        if (var_4 < *var_10) {
          if (0 < var_1) {
            var_12(var_10 + 1,var_10,var_1 << 2);
            var_1 = 0;
          }
        }
        else {
          var_6 = var_10[var_1 + -1];
          while (var_4 < var_6) {
            var_10[var_1] = var_6;
            var_6 = var_10[var_1 + -2];
            var_1 = var_1 + -1;
          }
        }
        var_10[var_1] = var_4;
        dst_nodes->nelem = dst_nodes->nelem + 1;
      }
    }
    var_1 = dfa->edests[var_4].nelem;
    if (var_1 == 0) {
      return var_14;
    }
    var_10 = dfa->edests[var_4].elems;
    if (var_1 == 2) {
      var_13 = function_1(dfa,dst_nodes,var_10[1],ex_subexp,var_7);
      if (var_13 != var_14) {
        return var_13;
      }
      var_4 = *dfa->edests[var_4].elems;
    }
    else {
      var_4 = *var_10;
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (identifier))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))))) condition: (parenthesized_expression (true))))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(int *param_1,int *param_2,int param_3,int param_4,uint param_5)

{
  int iVar1;
  char cVar2;
  uint uVar3;
  int iVar4;
  int *piVar5;
  uint uVar6;
  uint uVar7;
  int iVar8;
  uint uVar9;
  
  do {
    iVar4 = param_2[1];
    if (0 < iVar4) {
      uVar9 = iVar4 - 1;
      iVar8 = param_2[2];
      uVar6 = 0;
      if (uVar9 == 0) {
LAB_0004b4cd:
        iVar8 = *(int *)(iVar8 + uVar6 * 4);
      }
      else {
        do {
          uVar3 = uVar6 + uVar9 >> 1;
          if (param_3 <= *(int *)(iVar8 + uVar3 * 4)) {
            if (uVar3 <= uVar6) goto LAB_0004b4cd;
            uVar7 = uVar3 + uVar6 >> 1;
            iVar1 = *(int *)(iVar8 + uVar7 * 4);
            uVar9 = uVar3;
            uVar3 = uVar7;
            while (param_3 <= iVar1) {
              if (uVar3 <= uVar6) goto LAB_0004b4cd;
              uVar7 = uVar3 + uVar6 >> 1;
              uVar9 = uVar3;
              uVar3 = uVar7;
              iVar1 = *(int *)(iVar8 + uVar7 * 4);
            }
          }
          uVar6 = uVar3 + 1;
        } while (uVar6 < uVar9);
        iVar8 = *(int *)(iVar8 + uVar6 * 4);
      }
      if (param_3 == iVar8) {
        return 0;
      }
    }
    piVar5 = (int *)(*param_1 + param_3 * 8);
    if ((*(byte *)(piVar5 + 1) == param_5) && (*piVar5 == param_4)) {
      if ((param_5 == 9) && (cVar2 = FUN_000455a0(param_2,param_3), cVar2 == '\0')) {
        return 0xc;
      }
      return 0;
    }
    if (*param_2 == 0) {
      *param_2 = 1;
      param_2[1] = 1;
      piVar5 = (int *)malloc(4);
      param_2[2] = (int)piVar5;
      if (piVar5 == (int *)0x0) {
        param_2[1] = 0;
        *param_2 = 0;
        return 0xc;
      }
      *piVar5 = param_3;
    }
    else {
      piVar5 = (int *)param_2[2];
      if (iVar4 == 0) {
        *piVar5 = param_3;
        param_2[1] = param_2[1] + 1;
      }
      else {
        if (iVar4 == *param_2) {
          *param_2 = iVar4 * 2;
          piVar5 = (int *)realloc(piVar5,iVar4 << 3);
          if (piVar5 == (int *)0x0) {
            return 0xc;
          }
          param_2[2] = (int)piVar5;
          iVar4 = param_2[1];
        }
        if (param_3 < *piVar5) {
          if (0 < iVar4) {
            memmove(piVar5 + 1,piVar5,iVar4 << 2);
            iVar4 = 0;
          }
        }
        else {
          iVar8 = piVar5[iVar4 + -1];
          while (param_3 < iVar8) {
            piVar5[iVar4] = iVar8;
            iVar8 = piVar5[iVar4 + -2];
            iVar4 = iVar4 + -1;
          }
        }
        piVar5[iVar4] = param_3;
        param_2[1] = param_2[1] + 1;
      }
    }
    iVar8 = param_1[5] + param_3 * 0xc;
    iVar4 = *(int *)(iVar8 + 4);
    if (iVar4 == 0) {
      return 0;
    }
    piVar5 = *(int **)(iVar8 + 8);
    if (iVar4 == 2) {
      iVar4 = MASKED(param_1,param_2,piVar5[1],param_4,param_5);
      if (iVar4 != 0) {
        return iVar4;
      }
      param_3 = **(int **)(param_1[5] + 8 + param_3 * 0xc);
    }
    else {
      param_3 = *piVar5;
    }
  } while( true );
}

