
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

Idx __regparm3 re_dfa_add_node(re_dfa_t *dfa,re_token_t token)

{
  uint uVar1;
  uint uVar2;
  re_token_t *prVar3;
  Idx *__ptr;
  Idx *__ptr_00;
  re_node_set *prVar4;
  size_t sVar5;
  uint in_ECX;
  anon_union_4_5_a39f51ca_for_opr in_EDX;
  bool bVar6;
  re_node_set *local_30;
  
  uVar2 = dfa->nodes_len;
  uVar1 = dfa->nodes_alloc;
  if (uVar2 < uVar1) {
    local_30 = dfa->edests;
    __ptr = dfa->nexts;
LAB_00024f5c:
    bVar6 = (char)in_ECX == '\x06';
    prVar3 = dfa->nodes + uVar2;
    prVar3->opr = in_EDX;
    *(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;
    if ((char)in_ECX == '\x05') {
      bVar6 = 1 < dfa->mb_cur_max;
    }
    prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;
    __ptr[uVar2] = -1;
    local_30 = local_30 + dfa->nodes_len;
    local_30->alloc = 0;
    local_30->nelem = 0;
    local_30->elems = (Idx *)0x0;
    prVar4 = dfa->eclosures + dfa->nodes_len;
    prVar4->alloc = 0;
    prVar4->nelem = 0;
    prVar4->elems = (Idx *)0x0;
    sVar5 = dfa->nodes_len;
    dfa->nodes_len = sVar5 + 1;
  }
  else {
    if (uVar1 * 2 < 0x15555556) {
      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);
      if (prVar3 != (re_token_t *)0x0) {
        dfa->nodes = prVar3;
        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);
        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);
        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);
        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);
        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))
        {
          if (prVar4 != (re_node_set *)0x0) {
            dfa->eclosures = prVar4;
            dfa->nexts = __ptr;
            dfa->org_indices = __ptr_00;
            dfa->nodes_alloc = uVar1 * 2;
            uVar2 = dfa->nodes_len;
            dfa->edests = local_30;
            goto LAB_00024f5c;
          }
        }
        free(__ptr);
        free(__ptr_00);
        free(local_30);
        free(prVar4);
      }
    }
    sVar5 = 0xffffffff;
  }
  return sVar5;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)

{
  undefined4 *puVar1;
  uint uVar2;
  uint uVar3;
  void *pvVar4;
  void *__ptr;
  void *__ptr_00;
  int iVar5;
  bool bVar6;
  void *local_30;
  
  uVar3 = param_1[2];
  uVar2 = param_1[1];
  if (uVar3 < uVar2) {
    local_30 = (void *)param_1[5];
    pvVar4 = (void *)param_1[3];
LAB_00024f5c:
    bVar6 = (char)param_3 == '\x06';
    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);
    *puVar1 = param_2;
    puVar1[1] = param_3 & 0xfffc00ff;
    if ((char)param_3 == '\x05') {
      bVar6 = 1 < param_1[0x17];
    }
    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;
    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;
    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);
    *puVar1 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);
    *puVar1 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
    iVar5 = param_1[2];
    param_1[2] = iVar5 + 1;
  }
  else {
    if (uVar2 * 2 < 0x15555556) {
      pvVar4 = realloc((void *)*param_1,uVar2 << 4);
      if (pvVar4 != (void *)0x0) {
        *param_1 = (int)pvVar4;
        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);
        __ptr = realloc((void *)param_1[4],uVar2 * 8);
        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);
        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);
        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {
          if (__ptr_00 != (void *)0x0) {
            param_1[6] = (int)__ptr_00;
            param_1[3] = (int)pvVar4;
            param_1[4] = (int)__ptr;
            param_1[1] = uVar2 * 2;
            uVar3 = param_1[2];
            param_1[5] = (int)local_30;
            goto LAB_00024f5c;
          }
        }
        free(pvVar4);
        free(__ptr);
        free(local_30);
        free(__ptr_00);
      }
    }
    iVar5 = -1;
  }
  return iVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013540
ADD EBX,0x1fec9
SUB ESP,0x2c
MOV EAX,dword ptr [EAX + 0x8]
MOV EDI,dword ptr [ESI + 0x4]
CMP EAX,EDI
JNC 0x00024ff0
MOV EBX,dword ptr [ESI + 0x14]
MOV EBP,dword ptr [ESI + 0xc]
MOV dword ptr [ESP + 0xc],EBX
MOV EBX,dword ptr [ESI]
MOV EDI,ECX
AND EDI,0xfffc00ff
CMP CL,0x6
LEA EBX,[EBX + EAX*0x8]
MOV dword ptr [EBX],EDX
SETZ DL
MOV dword ptr [EBX + 0x4],EDI
MOV EDI,EDX
CMP CL,0x5
JNZ 0x00024f84
CMP dword ptr [ESI + 0x5c],0x1
SETG DL
MOV EDI,EDX
MOVZX ECX,byte ptr [EBX + 0x6]
SHL EDI,0x4
AND ECX,0xffffffef
OR ECX,EDI
MOV byte ptr [EBX + 0x6],CL
MOV EBX,dword ptr [ESP + 0xc]
MOV dword ptr [EBP + EAX*0x4],0xffffffff
MOV EAX,dword ptr [ESI + 0x8]
LEA EAX,[EAX + EAX*0x2]
LEA EAX,[EBX + EAX*0x4]
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV EAX,dword ptr [ESI + 0x8]
LEA EDX,[EAX + EAX*0x2]
MOV EAX,dword ptr [ESI + 0x18]
LEA EAX,[EAX + EDX*0x4]
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV EAX,dword ptr [ESI + 0x8]
LEA EDX,[EAX + 0x1]
MOV dword ptr [ESI + 0x8],EDX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EDI + EDI*0x1]
MOV dword ptr [ESP + 0x10],EAX
CMP EAX,0x15555555
JA 0x000250f0
MOV EAX,EDI
MOV dword ptr [ESP + 0x1c],ECX
SUB ESP,0x8
MOV dword ptr [ESP + 0x20],EDX
SHL EAX,0x4
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x000122f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000250f0
SUB ESP,0x8
MOV dword ptr [ESI],EAX
LEA EAX,[EDI*0x8 + 0x0]
MOV dword ptr [ESP + 0x14],EAX
PUSH EAX
PUSH dword ptr [ESI + 0xc]
CALL 0x000122f0
MOV EBP,EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESI + 0x10]
CALL 0x000122f0
ADD EDI,dword ptr [ESP + 0x20]
SHL EDI,0x3
MOV dword ptr [ESP + 0x24],EAX
POP ECX
POP EAX
PUSH EDI
PUSH dword ptr [ESI + 0x14]
CALL 0x000122f0
MOV dword ptr [ESP + 0x1c],EAX
POP EAX
POP EDX
PUSH EDI
PUSH dword ptr [ESI + 0x18]
CALL 0x000122f0
ADD ESP,0x10
TEST EBP,EBP
JZ 0x000250c0
MOV EDI,dword ptr [ESP + 0x14]
TEST EDI,EDI
JZ 0x000250c0
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JZ 0x000250c0
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
JZ 0x000250c0
MOV EDI,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESI + 0xc],EBP
MOV dword ptr [ESI + 0x10],EDI
MOV EDI,dword ptr [ESP + 0xc]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [ESI + 0x14],EDI
JMP 0x00024f5c
MOV dword ptr [ESP + 0x10],EAX
SUB ESP,0xc
PUSH EBP
CALL 0x000120f0
POP EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x000120f0
POP EDX
PUSH dword ptr [ESP + 0x18]
CALL 0x000120f0
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESP],EAX
CALL 0x000120f0
ADD ESP,0x10
MOV EAX,0xffffffff
JMP 0x00024fe5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}\n\n" comment (function_definition "int __regparm3 FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" if (parenthesized_expression "(uVar3 < uVar2)" ( (binary_expression "uVar3 < uVar2" identifier < identifier) )) (compound_statement "{\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }" { (expression_statement "local_30 = (void *)param_1[5];" (assignment_expression "local_30 = (void *)param_1[5]" identifier = (cast_expression "(void *)param_1[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (expression_statement "pvVar4 = (void *)param_1[3];" (assignment_expression "pvVar4 = (void *)param_1[3]" identifier = (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';" statement_identifier : (expression_statement "bVar6 = (char)param_3 == '\x06';" (assignment_expression "bVar6 = (char)param_3 == '\x06'" identifier = (binary_expression "(char)param_3 == '\x06'" (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\x06'" ' escape_sequence '))) ;)) (expression_statement "puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);" (assignment_expression "puVar1 = (undefined4 *)(*param_1 + uVar3 * 8)" identifier = (cast_expression "(undefined4 *)(*param_1 + uVar3 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar3 * 8)" ( (binary_expression "*param_1 + uVar3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar3 * 8" identifier * number_literal)) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_3 & 0xfffc00ff;" (assignment_expression "puVar1[1] = param_3 & 0xfffc00ff" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (binary_expression "param_3 & 0xfffc00ff" identifier & number_literal)) ;) (if_statement "if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }" if (parenthesized_expression "((char)param_3 == '\x05')" ( (binary_expression "(char)param_3 == '\x05'" (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      bVar6 = 1 < param_1[0x17];\n    }" { (expression_statement "bVar6 = 1 < param_1[0x17];" (assignment_expression "bVar6 = 1 < param_1[0x17]" identifier = (binary_expression "1 < param_1[0x17]" number_literal < (subscript_expression "param_1[0x17]" identifier [ number_literal ]))) ;) })) (expression_statement "*(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;" (assignment_expression "*(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4" (pointer_expression "*(byte *)((int)puVar1 + 6)" * (cast_expression "(byte *)((int)puVar1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4" (binary_expression "*(byte *)((int)puVar1 + 6) & 0xef" (pointer_expression "*(byte *)((int)puVar1 + 6)" * (cast_expression "(byte *)((int)puVar1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) | (binary_expression "bVar6 << 4" identifier << number_literal))) ;) (expression_statement "*(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)pvVar4 + uVar3 * 4)" * (cast_expression "(undefined4 *)((int)pvVar4 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + uVar3 * 4)" ( (binary_expression "(int)pvVar4 + uVar3 * 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);" (assignment_expression "puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc)" identifier = (cast_expression "(undefined4 *)((int)local_30 + param_1[2] * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + param_1[2] * 0xc)" ( (binary_expression "(int)local_30 + param_1[2] * 0xc" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "param_1[2] * 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) * number_literal)) )))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc)" identifier = (cast_expression "(undefined4 *)(param_1[6] + param_1[2] * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + param_1[2] * 0xc)" ( (binary_expression "param_1[6] + param_1[2] * 0xc" (subscript_expression "param_1[6]" identifier [ number_literal ]) + (binary_expression "param_1[2] * 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) * number_literal)) )))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar5 + 1;" (assignment_expression "param_1[2] = iVar5 + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" else (compound_statement "{\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" { (if_statement "if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }" if (parenthesized_expression "(uVar2 * 2 < 0x15555556)" ( (binary_expression "uVar2 * 2 < 0x15555556" (binary_expression "uVar2 * 2" identifier * number_literal) < number_literal) )) (compound_statement "{\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }" { (expression_statement "pvVar4 = realloc((void *)*param_1,uVar2 << 4);" (assignment_expression "pvVar4 = realloc((void *)*param_1,uVar2 << 4)" identifier = (call_expression "realloc((void *)*param_1,uVar2 << 4)" identifier (argument_list "((void *)*param_1,uVar2 << 4)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (binary_expression "uVar2 << 4" identifier << number_literal) )))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }" { (expression_statement "*param_1 = (int)pvVar4;" (assignment_expression "*param_1 = (int)pvVar4" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pvVar4 = realloc((void *)param_1[3],uVar2 * 8);" (assignment_expression "pvVar4 = realloc((void *)param_1[3],uVar2 * 8)" identifier = (call_expression "realloc((void *)param_1[3],uVar2 * 8)" identifier (argument_list "((void *)param_1[3],uVar2 * 8)" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , (binary_expression "uVar2 * 8" identifier * number_literal) )))) ;) (expression_statement "__ptr = realloc((void *)param_1[4],uVar2 * 8);" (assignment_expression "__ptr = realloc((void *)param_1[4],uVar2 * 8)" identifier = (call_expression "realloc((void *)param_1[4],uVar2 * 8)" identifier (argument_list "((void *)param_1[4],uVar2 * 8)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , (binary_expression "uVar2 * 8" identifier * number_literal) )))) ;) (expression_statement "local_30 = realloc((void *)param_1[5],uVar2 * 0x18);" (assignment_expression "local_30 = realloc((void *)param_1[5],uVar2 * 0x18)" identifier = (call_expression "realloc((void *)param_1[5],uVar2 * 0x18)" identifier (argument_list "((void *)param_1[5],uVar2 * 0x18)" ( (cast_expression "(void *)param_1[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) , (binary_expression "uVar2 * 0x18" identifier * number_literal) )))) ;) (expression_statement "__ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);" (assignment_expression "__ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18)" identifier = (call_expression "realloc((void *)param_1[6],uVar2 * 0x18)" identifier (argument_list "((void *)param_1[6],uVar2 * 0x18)" ( (cast_expression "(void *)param_1[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) , (binary_expression "uVar2 * 0x18" identifier * number_literal) )))) ;) (if_statement "if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }" if (parenthesized_expression "(((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0))" ( (binary_expression "((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)" (parenthesized_expression "((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0))" ( (binary_expression "(pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)" (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }" { (if_statement "if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }" if (parenthesized_expression "(__ptr_00 != (void *)0x0)" ( (binary_expression "__ptr_00 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }" { (expression_statement "param_1[6] = (int)__ptr_00;" (assignment_expression "param_1[6] = (int)__ptr_00" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (cast_expression "(int)__ptr_00" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[3] = (int)pvVar4;" (assignment_expression "param_1[3] = (int)pvVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[4] = (int)__ptr;" (assignment_expression "param_1[4] = (int)__ptr" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = uVar2 * 2;" (assignment_expression "param_1[1] = uVar2 * 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar2 * 2" identifier * number_literal)) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = (int)local_30;" (assignment_expression "param_1[5] = (int)local_30" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00024f5c;" goto statement_identifier ;) })) })) (expression_statement "free(pvVar4);" (call_expression "free(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) })) })) (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nIdx __regparm3 re_dfa_add_node(re_dfa_t *dfa,re_token_t token)\n\n{\n  uint uVar1;\n  uint uVar2;\n  re_token_t *prVar3;\n  Idx *__ptr;\n  Idx *__ptr_00;\n  re_node_set *prVar4;\n  size_t sVar5;\n  uint in_ECX;\n  anon_union_4_5_a39f51ca_for_opr in_EDX;\n  bool bVar6;\n  re_node_set *local_30;\n  \n  uVar2 = dfa->nodes_len;\n  uVar1 = dfa->nodes_alloc;\n  if (uVar2 < uVar1) {\n    local_30 = dfa->edests;\n    __ptr = dfa->nexts;\nLAB_00024f5c:\n    bVar6 = (char)in_ECX == '\x06';\n    prVar3 = dfa->nodes + uVar2;\n    prVar3->opr = in_EDX;\n    *(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;\n    if ((char)in_ECX == '\x05') {\n      bVar6 = 1 < dfa->mb_cur_max;\n    }\n    prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;\n    __ptr[uVar2] = -1;\n    local_30 = local_30 + dfa->nodes_len;\n    local_30->alloc = 0;\n    local_30->nelem = 0;\n    local_30->elems = (Idx *)0x0;\n    prVar4 = dfa->eclosures + dfa->nodes_len;\n    prVar4->alloc = 0;\n    prVar4->nelem = 0;\n    prVar4->elems = (Idx *)0x0;\n    sVar5 = dfa->nodes_len;\n    dfa->nodes_len = sVar5 + 1;\n  }\n  else {\n    if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }\n    sVar5 = 0xffffffff;\n  }\n  return sVar5;\n}\n\n" comment (function_definition "Idx __regparm3 re_dfa_add_node(re_dfa_t *dfa,re_token_t token)\n\n{\n  uint uVar1;\n  uint uVar2;\n  re_token_t *prVar3;\n  Idx *__ptr;\n  Idx *__ptr_00;\n  re_node_set *prVar4;\n  size_t sVar5;\n  uint in_ECX;\n  anon_union_4_5_a39f51ca_for_opr in_EDX;\n  bool bVar6;\n  re_node_set *local_30;\n  \n  uVar2 = dfa->nodes_len;\n  uVar1 = dfa->nodes_alloc;\n  if (uVar2 < uVar1) {\n    local_30 = dfa->edests;\n    __ptr = dfa->nexts;\nLAB_00024f5c:\n    bVar6 = (char)in_ECX == '\x06';\n    prVar3 = dfa->nodes + uVar2;\n    prVar3->opr = in_EDX;\n    *(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;\n    if ((char)in_ECX == '\x05') {\n      bVar6 = 1 < dfa->mb_cur_max;\n    }\n    prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;\n    __ptr[uVar2] = -1;\n    local_30 = local_30 + dfa->nodes_len;\n    local_30->alloc = 0;\n    local_30->nelem = 0;\n    local_30->elems = (Idx *)0x0;\n    prVar4 = dfa->eclosures + dfa->nodes_len;\n    prVar4->alloc = 0;\n    prVar4->nelem = 0;\n    prVar4->elems = (Idx *)0x0;\n    sVar5 = dfa->nodes_len;\n    dfa->nodes_len = sVar5 + 1;\n  }\n  else {\n    if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }\n    sVar5 = 0xffffffff;\n  }\n  return sVar5;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "re_dfa_add_node(re_dfa_t *dfa,re_token_t token)" identifier (parameter_list "(re_dfa_t *dfa,re_token_t token)" ( (parameter_declaration "re_dfa_t *dfa" type_identifier (pointer_declarator "*dfa" * identifier)) , (parameter_declaration "re_token_t token" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  re_token_t *prVar3;\n  Idx *__ptr;\n  Idx *__ptr_00;\n  re_node_set *prVar4;\n  size_t sVar5;\n  uint in_ECX;\n  anon_union_4_5_a39f51ca_for_opr in_EDX;\n  bool bVar6;\n  re_node_set *local_30;\n  \n  uVar2 = dfa->nodes_len;\n  uVar1 = dfa->nodes_alloc;\n  if (uVar2 < uVar1) {\n    local_30 = dfa->edests;\n    __ptr = dfa->nexts;\nLAB_00024f5c:\n    bVar6 = (char)in_ECX == '\x06';\n    prVar3 = dfa->nodes + uVar2;\n    prVar3->opr = in_EDX;\n    *(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;\n    if ((char)in_ECX == '\x05') {\n      bVar6 = 1 < dfa->mb_cur_max;\n    }\n    prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;\n    __ptr[uVar2] = -1;\n    local_30 = local_30 + dfa->nodes_len;\n    local_30->alloc = 0;\n    local_30->nelem = 0;\n    local_30->elems = (Idx *)0x0;\n    prVar4 = dfa->eclosures + dfa->nodes_len;\n    prVar4->alloc = 0;\n    prVar4->nelem = 0;\n    prVar4->elems = (Idx *)0x0;\n    sVar5 = dfa->nodes_len;\n    dfa->nodes_len = sVar5 + 1;\n  }\n  else {\n    if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }\n    sVar5 = 0xffffffff;\n  }\n  return sVar5;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "re_token_t *prVar3;" type_identifier (pointer_declarator "*prVar3" * identifier) ;) (declaration "Idx *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "Idx *__ptr_00;" type_identifier (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "re_node_set *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "uint in_ECX;" type_identifier identifier ;) (declaration "anon_union_4_5_a39f51ca_for_opr in_EDX;" type_identifier identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "re_node_set *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "uVar2 = dfa->nodes_len;" (assignment_expression "uVar2 = dfa->nodes_len" identifier = (field_expression "dfa->nodes_len" identifier -> field_identifier)) ;) (expression_statement "uVar1 = dfa->nodes_alloc;" (assignment_expression "uVar1 = dfa->nodes_alloc" identifier = (field_expression "dfa->nodes_alloc" identifier -> field_identifier)) ;) (if_statement "if (uVar2 < uVar1) {\n    local_30 = dfa->edests;\n    __ptr = dfa->nexts;\nLAB_00024f5c:\n    bVar6 = (char)in_ECX == '\x06';\n    prVar3 = dfa->nodes + uVar2;\n    prVar3->opr = in_EDX;\n    *(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;\n    if ((char)in_ECX == '\x05') {\n      bVar6 = 1 < dfa->mb_cur_max;\n    }\n    prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;\n    __ptr[uVar2] = -1;\n    local_30 = local_30 + dfa->nodes_len;\n    local_30->alloc = 0;\n    local_30->nelem = 0;\n    local_30->elems = (Idx *)0x0;\n    prVar4 = dfa->eclosures + dfa->nodes_len;\n    prVar4->alloc = 0;\n    prVar4->nelem = 0;\n    prVar4->elems = (Idx *)0x0;\n    sVar5 = dfa->nodes_len;\n    dfa->nodes_len = sVar5 + 1;\n  }\n  else {\n    if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }\n    sVar5 = 0xffffffff;\n  }" if (parenthesized_expression "(uVar2 < uVar1)" ( (binary_expression "uVar2 < uVar1" identifier < identifier) )) (compound_statement "{\n    local_30 = dfa->edests;\n    __ptr = dfa->nexts;\nLAB_00024f5c:\n    bVar6 = (char)in_ECX == '\x06';\n    prVar3 = dfa->nodes + uVar2;\n    prVar3->opr = in_EDX;\n    *(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;\n    if ((char)in_ECX == '\x05') {\n      bVar6 = 1 < dfa->mb_cur_max;\n    }\n    prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;\n    __ptr[uVar2] = -1;\n    local_30 = local_30 + dfa->nodes_len;\n    local_30->alloc = 0;\n    local_30->nelem = 0;\n    local_30->elems = (Idx *)0x0;\n    prVar4 = dfa->eclosures + dfa->nodes_len;\n    prVar4->alloc = 0;\n    prVar4->nelem = 0;\n    prVar4->elems = (Idx *)0x0;\n    sVar5 = dfa->nodes_len;\n    dfa->nodes_len = sVar5 + 1;\n  }" { (expression_statement "local_30 = dfa->edests;" (assignment_expression "local_30 = dfa->edests" identifier = (field_expression "dfa->edests" identifier -> field_identifier)) ;) (expression_statement "__ptr = dfa->nexts;" (assignment_expression "__ptr = dfa->nexts" identifier = (field_expression "dfa->nexts" identifier -> field_identifier)) ;) (labeled_statement "LAB_00024f5c:\n    bVar6 = (char)in_ECX == '\x06';" statement_identifier : (expression_statement "bVar6 = (char)in_ECX == '\x06';" (assignment_expression "bVar6 = (char)in_ECX == '\x06'" identifier = (binary_expression "(char)in_ECX == '\x06'" (cast_expression "(char)in_ECX" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\x06'" ' escape_sequence '))) ;)) (expression_statement "prVar3 = dfa->nodes + uVar2;" (assignment_expression "prVar3 = dfa->nodes + uVar2" identifier = (binary_expression "dfa->nodes + uVar2" (field_expression "dfa->nodes" identifier -> field_identifier) + identifier)) ;) (expression_statement "prVar3->opr = in_EDX;" (assignment_expression "prVar3->opr = in_EDX" (field_expression "prVar3->opr" identifier -> field_identifier) = identifier) ;) (expression_statement "*(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff;" (assignment_expression "*(uint *)&prVar3->field_0x4 = in_ECX & 0xfffc00ff" (pointer_expression "*(uint *)&prVar3->field_0x4" * (cast_expression "(uint *)&prVar3->field_0x4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar3->field_0x4" & (field_expression "prVar3->field_0x4" identifier -> field_identifier)))) = (binary_expression "in_ECX & 0xfffc00ff" identifier & number_literal)) ;) (if_statement "if ((char)in_ECX == '\x05') {\n      bVar6 = 1 < dfa->mb_cur_max;\n    }" if (parenthesized_expression "((char)in_ECX == '\x05')" ( (binary_expression "(char)in_ECX == '\x05'" (cast_expression "(char)in_ECX" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      bVar6 = 1 < dfa->mb_cur_max;\n    }" { (expression_statement "bVar6 = 1 < dfa->mb_cur_max;" (assignment_expression "bVar6 = 1 < dfa->mb_cur_max" identifier = (binary_expression "1 < dfa->mb_cur_max" number_literal < (field_expression "dfa->mb_cur_max" identifier -> field_identifier))) ;) })) (expression_statement "prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4;" (assignment_expression "prVar3->field_0x6 = prVar3->field_0x6 & 0xef | bVar6 << 4" (field_expression "prVar3->field_0x6" identifier -> field_identifier) = (binary_expression "prVar3->field_0x6 & 0xef | bVar6 << 4" (binary_expression "prVar3->field_0x6 & 0xef" (field_expression "prVar3->field_0x6" identifier -> field_identifier) & number_literal) | (binary_expression "bVar6 << 4" identifier << number_literal))) ;) (expression_statement "__ptr[uVar2] = -1;" (assignment_expression "__ptr[uVar2] = -1" (subscript_expression "__ptr[uVar2]" identifier [ identifier ]) = number_literal) ;) (expression_statement "local_30 = local_30 + dfa->nodes_len;" (assignment_expression "local_30 = local_30 + dfa->nodes_len" identifier = (binary_expression "local_30 + dfa->nodes_len" identifier + (field_expression "dfa->nodes_len" identifier -> field_identifier))) ;) (expression_statement "local_30->alloc = 0;" (assignment_expression "local_30->alloc = 0" (field_expression "local_30->alloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_30->nelem = 0;" (assignment_expression "local_30->nelem = 0" (field_expression "local_30->nelem" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_30->elems = (Idx *)0x0;" (assignment_expression "local_30->elems = (Idx *)0x0" (field_expression "local_30->elems" identifier -> field_identifier) = (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "prVar4 = dfa->eclosures + dfa->nodes_len;" (assignment_expression "prVar4 = dfa->eclosures + dfa->nodes_len" identifier = (binary_expression "dfa->eclosures + dfa->nodes_len" (field_expression "dfa->eclosures" identifier -> field_identifier) + (field_expression "dfa->nodes_len" identifier -> field_identifier))) ;) (expression_statement "prVar4->alloc = 0;" (assignment_expression "prVar4->alloc = 0" (field_expression "prVar4->alloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "prVar4->nelem = 0;" (assignment_expression "prVar4->nelem = 0" (field_expression "prVar4->nelem" identifier -> field_identifier) = number_literal) ;) (expression_statement "prVar4->elems = (Idx *)0x0;" (assignment_expression "prVar4->elems = (Idx *)0x0" (field_expression "prVar4->elems" identifier -> field_identifier) = (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sVar5 = dfa->nodes_len;" (assignment_expression "sVar5 = dfa->nodes_len" identifier = (field_expression "dfa->nodes_len" identifier -> field_identifier)) ;) (expression_statement "dfa->nodes_len = sVar5 + 1;" (assignment_expression "dfa->nodes_len = sVar5 + 1" (field_expression "dfa->nodes_len" identifier -> field_identifier) = (binary_expression "sVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }\n    sVar5 = 0xffffffff;\n  }" else (compound_statement "{\n    if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }\n    sVar5 = 0xffffffff;\n  }" { (if_statement "if (uVar1 * 2 < 0x15555556) {\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }" if (parenthesized_expression "(uVar1 * 2 < 0x15555556)" ( (binary_expression "uVar1 * 2 < 0x15555556" (binary_expression "uVar1 * 2" identifier * number_literal) < number_literal) )) (compound_statement "{\n      prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);\n      if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }\n    }" { (expression_statement "prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4);" (assignment_expression "prVar3 = (re_token_t *)realloc(dfa->nodes,uVar1 << 4)" identifier = (cast_expression "(re_token_t *)realloc(dfa->nodes,uVar1 << 4)" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(dfa->nodes,uVar1 << 4)" identifier (argument_list "(dfa->nodes,uVar1 << 4)" ( (field_expression "dfa->nodes" identifier -> field_identifier) , (binary_expression "uVar1 << 4" identifier << number_literal) ))))) ;) (if_statement "if (prVar3 != (re_token_t *)0x0) {\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }" if (parenthesized_expression "(prVar3 != (re_token_t *)0x0)" ( (binary_expression "prVar3 != (re_token_t *)0x0" identifier != (cast_expression "(re_token_t *)0x0" ( (type_descriptor "re_token_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        dfa->nodes = prVar3;\n        __ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);\n        __ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);\n        local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);\n        prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);\n        if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(__ptr);\n        free(__ptr_00);\n        free(local_30);\n        free(prVar4);\n      }" { (expression_statement "dfa->nodes = prVar3;" (assignment_expression "dfa->nodes = prVar3" (field_expression "dfa->nodes" identifier -> field_identifier) = identifier) ;) (expression_statement "__ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8);" (assignment_expression "__ptr = (Idx *)realloc(dfa->nexts,uVar1 * 8)" identifier = (cast_expression "(Idx *)realloc(dfa->nexts,uVar1 * 8)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(dfa->nexts,uVar1 * 8)" identifier (argument_list "(dfa->nexts,uVar1 * 8)" ( (field_expression "dfa->nexts" identifier -> field_identifier) , (binary_expression "uVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "__ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8);" (assignment_expression "__ptr_00 = (Idx *)realloc(dfa->org_indices,uVar1 * 8)" identifier = (cast_expression "(Idx *)realloc(dfa->org_indices,uVar1 * 8)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(dfa->org_indices,uVar1 * 8)" identifier (argument_list "(dfa->org_indices,uVar1 * 8)" ( (field_expression "dfa->org_indices" identifier -> field_identifier) , (binary_expression "uVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18);" (assignment_expression "local_30 = (re_node_set *)realloc(dfa->edests,uVar1 * 0x18)" identifier = (cast_expression "(re_node_set *)realloc(dfa->edests,uVar1 * 0x18)" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(dfa->edests,uVar1 * 0x18)" identifier (argument_list "(dfa->edests,uVar1 * 0x18)" ( (field_expression "dfa->edests" identifier -> field_identifier) , (binary_expression "uVar1 * 0x18" identifier * number_literal) ))))) ;) (expression_statement "prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18);" (assignment_expression "prVar4 = (re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18)" identifier = (cast_expression "(re_node_set *)realloc(dfa->eclosures,uVar1 * 0x18)" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(dfa->eclosures,uVar1 * 0x18)" identifier (argument_list "(dfa->eclosures,uVar1 * 0x18)" ( (field_expression "dfa->eclosures" identifier -> field_identifier) , (binary_expression "uVar1 * 0x18" identifier * number_literal) ))))) ;) (if_statement "if (((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))\n        {\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }" if (parenthesized_expression "(((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0))" ( (binary_expression "((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)) && (local_30 != (re_node_set *)0x0)" (parenthesized_expression "((__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0))" ( (binary_expression "(__ptr != (Idx *)0x0) && (__ptr_00 != (Idx *)0x0)" (parenthesized_expression "(__ptr != (Idx *)0x0)" ( (binary_expression "__ptr != (Idx *)0x0" identifier != (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(__ptr_00 != (Idx *)0x0)" ( (binary_expression "__ptr_00 != (Idx *)0x0" identifier != (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(local_30 != (re_node_set *)0x0)" ( (binary_expression "local_30 != (re_node_set *)0x0" identifier != (cast_expression "(re_node_set *)0x0" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }\n        }" { (if_statement "if (prVar4 != (re_node_set *)0x0) {\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }" if (parenthesized_expression "(prVar4 != (re_node_set *)0x0)" ( (binary_expression "prVar4 != (re_node_set *)0x0" identifier != (cast_expression "(re_node_set *)0x0" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            dfa->eclosures = prVar4;\n            dfa->nexts = __ptr;\n            dfa->org_indices = __ptr_00;\n            dfa->nodes_alloc = uVar1 * 2;\n            uVar2 = dfa->nodes_len;\n            dfa->edests = local_30;\n            goto LAB_00024f5c;\n          }" { (expression_statement "dfa->eclosures = prVar4;" (assignment_expression "dfa->eclosures = prVar4" (field_expression "dfa->eclosures" identifier -> field_identifier) = identifier) ;) (expression_statement "dfa->nexts = __ptr;" (assignment_expression "dfa->nexts = __ptr" (field_expression "dfa->nexts" identifier -> field_identifier) = identifier) ;) (expression_statement "dfa->org_indices = __ptr_00;" (assignment_expression "dfa->org_indices = __ptr_00" (field_expression "dfa->org_indices" identifier -> field_identifier) = identifier) ;) (expression_statement "dfa->nodes_alloc = uVar1 * 2;" (assignment_expression "dfa->nodes_alloc = uVar1 * 2" (field_expression "dfa->nodes_alloc" identifier -> field_identifier) = (binary_expression "uVar1 * 2" identifier * number_literal)) ;) (expression_statement "uVar2 = dfa->nodes_len;" (assignment_expression "uVar2 = dfa->nodes_len" identifier = (field_expression "dfa->nodes_len" identifier -> field_identifier)) ;) (expression_statement "dfa->edests = local_30;" (assignment_expression "dfa->edests = local_30" (field_expression "dfa->edests" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00024f5c;" goto statement_identifier ;) })) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "free(prVar4);" (call_expression "free(prVar4)" identifier (argument_list "(prVar4)" ( identifier ))) ;) })) })) (expression_statement "sVar5 = 0xffffffff;" (assignment_expression "sVar5 = 0xffffffff" identifier = number_literal) ;) }))) (return_statement "return sVar5;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}\n\n" (function_definition "int __regparm3 FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" if (parenthesized_expression "(uVar3 < uVar2)" ( (binary_expression "uVar3 < uVar2" identifier < identifier) )) (compound_statement "{\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }" { (expression_statement "local_30 = (void *)param_1[5];" (assignment_expression "local_30 = (void *)param_1[5]" identifier = (cast_expression "(void *)param_1[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (expression_statement "pvVar4 = (void *)param_1[3];" (assignment_expression "pvVar4 = (void *)param_1[3]" identifier = (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';" statement_identifier : (expression_statement "bVar6 = (char)param_3 == '\x06';" (assignment_expression "bVar6 = (char)param_3 == '\x06'" identifier = (binary_expression "(char)param_3 == '\x06'" (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\x06'" ' escape_sequence '))) ;)) (expression_statement "puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);" (assignment_expression "puVar1 = (undefined4 *)(*param_1 + uVar3 * 8)" identifier = (cast_expression "(undefined4 *)(*param_1 + uVar3 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar3 * 8)" ( (binary_expression "*param_1 + uVar3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar3 * 8" identifier * number_literal)) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_3 & 0xfffc00ff;" (assignment_expression "puVar1[1] = param_3 & 0xfffc00ff" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (binary_expression "param_3 & 0xfffc00ff" identifier & number_literal)) ;) (if_statement "if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }" if (parenthesized_expression "((char)param_3 == '\x05')" ( (binary_expression "(char)param_3 == '\x05'" (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      bVar6 = 1 < param_1[0x17];\n    }" { (expression_statement "bVar6 = 1 < param_1[0x17];" (assignment_expression "bVar6 = 1 < param_1[0x17]" identifier = (binary_expression "1 < param_1[0x17]" number_literal < (subscript_expression "param_1[0x17]" identifier [ number_literal ]))) ;) })) (expression_statement "*(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;" (assignment_expression "*(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4" (pointer_expression "*(byte *)((int)puVar1 + 6)" * (cast_expression "(byte *)((int)puVar1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4" (binary_expression "*(byte *)((int)puVar1 + 6) & 0xef" (pointer_expression "*(byte *)((int)puVar1 + 6)" * (cast_expression "(byte *)((int)puVar1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) | (binary_expression "bVar6 << 4" identifier << number_literal))) ;) (expression_statement "*(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)pvVar4 + uVar3 * 4)" * (cast_expression "(undefined4 *)((int)pvVar4 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + uVar3 * 4)" ( (binary_expression "(int)pvVar4 + uVar3 * 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);" (assignment_expression "puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc)" identifier = (cast_expression "(undefined4 *)((int)local_30 + param_1[2] * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + param_1[2] * 0xc)" ( (binary_expression "(int)local_30 + param_1[2] * 0xc" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "param_1[2] * 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) * number_literal)) )))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc)" identifier = (cast_expression "(undefined4 *)(param_1[6] + param_1[2] * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + param_1[2] * 0xc)" ( (binary_expression "param_1[6] + param_1[2] * 0xc" (subscript_expression "param_1[6]" identifier [ number_literal ]) + (binary_expression "param_1[2] * 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) * number_literal)) )))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar5 + 1;" (assignment_expression "param_1[2] = iVar5 + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" else (compound_statement "{\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" { (if_statement "if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }" if (parenthesized_expression "(uVar2 * 2 < 0x15555556)" ( (binary_expression "uVar2 * 2 < 0x15555556" (binary_expression "uVar2 * 2" identifier * number_literal) < number_literal) )) (compound_statement "{\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }" { (expression_statement "pvVar4 = realloc((void *)*param_1,uVar2 << 4);" (assignment_expression "pvVar4 = realloc((void *)*param_1,uVar2 << 4)" identifier = (call_expression "realloc((void *)*param_1,uVar2 << 4)" identifier (argument_list "((void *)*param_1,uVar2 << 4)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (binary_expression "uVar2 << 4" identifier << number_literal) )))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }" { (expression_statement "*param_1 = (int)pvVar4;" (assignment_expression "*param_1 = (int)pvVar4" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pvVar4 = realloc((void *)param_1[3],uVar2 * 8);" (assignment_expression "pvVar4 = realloc((void *)param_1[3],uVar2 * 8)" identifier = (call_expression "realloc((void *)param_1[3],uVar2 * 8)" identifier (argument_list "((void *)param_1[3],uVar2 * 8)" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , (binary_expression "uVar2 * 8" identifier * number_literal) )))) ;) (expression_statement "__ptr = realloc((void *)param_1[4],uVar2 * 8);" (assignment_expression "__ptr = realloc((void *)param_1[4],uVar2 * 8)" identifier = (call_expression "realloc((void *)param_1[4],uVar2 * 8)" identifier (argument_list "((void *)param_1[4],uVar2 * 8)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , (binary_expression "uVar2 * 8" identifier * number_literal) )))) ;) (expression_statement "local_30 = realloc((void *)param_1[5],uVar2 * 0x18);" (assignment_expression "local_30 = realloc((void *)param_1[5],uVar2 * 0x18)" identifier = (call_expression "realloc((void *)param_1[5],uVar2 * 0x18)" identifier (argument_list "((void *)param_1[5],uVar2 * 0x18)" ( (cast_expression "(void *)param_1[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) , (binary_expression "uVar2 * 0x18" identifier * number_literal) )))) ;) (expression_statement "__ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);" (assignment_expression "__ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18)" identifier = (call_expression "realloc((void *)param_1[6],uVar2 * 0x18)" identifier (argument_list "((void *)param_1[6],uVar2 * 0x18)" ( (cast_expression "(void *)param_1[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) , (binary_expression "uVar2 * 0x18" identifier * number_literal) )))) ;) (if_statement "if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }" if (parenthesized_expression "(((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0))" ( (binary_expression "((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)" (parenthesized_expression "((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0))" ( (binary_expression "(pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)" (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }" { (if_statement "if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }" if (parenthesized_expression "(__ptr_00 != (void *)0x0)" ( (binary_expression "__ptr_00 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }" { (expression_statement "param_1[6] = (int)__ptr_00;" (assignment_expression "param_1[6] = (int)__ptr_00" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (cast_expression "(int)__ptr_00" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[3] = (int)pvVar4;" (assignment_expression "param_1[3] = (int)pvVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[4] = (int)__ptr;" (assignment_expression "param_1[4] = (int)__ptr" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = uVar2 * 2;" (assignment_expression "param_1[1] = uVar2 * 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar2 * 2" identifier * number_literal)) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = (int)local_30;" (assignment_expression "param_1[5] = (int)local_30" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00024f5c;" goto statement_identifier ;) })) })) (expression_statement "free(pvVar4);" (call_expression "free(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) })) })) (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence '))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT < (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (binary_expression IDENT << LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT * LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (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 ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00024f30(int *param_1,undefined4 param_2,uint param_3)" (identifier "FUN_00024f30") (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  void *pvVar4;\n  void *__ptr;\n  void *__ptr_00;\n  int iVar5;\n  bool bVar6;\n  void *local_30;\n  \n  uVar3 = param_1[2];\n  uVar2 = param_1[1];\n  if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }\n  return iVar5;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "void *__ptr_00;" (primitive_type "void") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "void *local_30;" (primitive_type "void") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" (identifier "uVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" (identifier "uVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (uVar3 < uVar2) {\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }\n  else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" (if "if") (parenthesized_expression "(uVar3 < uVar2)" (( "(") (binary_expression "uVar3 < uVar2" (identifier "uVar3") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    local_30 = (void *)param_1[5];\n    pvVar4 = (void *)param_1[3];\nLAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';\n    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);\n    *puVar1 = param_2;\n    puVar1[1] = param_3 & 0xfffc00ff;\n    if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }\n    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;\n    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;\n    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    iVar5 = param_1[2];\n    param_1[2] = iVar5 + 1;\n  }" ({ "{") (expression_statement "local_30 = (void *)param_1[5];" (assignment_expression "local_30 = (void *)param_1[5]" (identifier "local_30") (= "=") (cast_expression "(void *)param_1[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (expression_statement "pvVar4 = (void *)param_1[3];" (assignment_expression "pvVar4 = (void *)param_1[3]" (identifier "pvVar4") (= "=") (cast_expression "(void *)param_1[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (labeled_statement "LAB_00024f5c:\n    bVar6 = (char)param_3 == '\x06';" (statement_identifier "LAB_00024f5c") (: ":") (expression_statement "bVar6 = (char)param_3 == '\x06';" (assignment_expression "bVar6 = (char)param_3 == '\x06'" (identifier "bVar6") (= "=") (binary_expression "(char)param_3 == '\x06'" (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3")) (== "==") (char_literal "'\x06'" (' "'") (escape_sequence "\x06") (' "'")))) (; ";"))) (expression_statement "puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);" (assignment_expression "puVar1 = (undefined4 *)(*param_1 + uVar3 * 8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*param_1 + uVar3 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + uVar3 * 8)" (( "(") (binary_expression "*param_1 + uVar3 * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "uVar3 * 8" (identifier "uVar3") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[1] = param_3 & 0xfffc00ff;" (assignment_expression "puVar1[1] = param_3 & 0xfffc00ff" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_3 & 0xfffc00ff" (identifier "param_3") (& "&") (number_literal "0xfffc00ff"))) (; ";")) (if_statement "if ((char)param_3 == '\x05') {\n      bVar6 = 1 < param_1[0x17];\n    }" (if "if") (parenthesized_expression "((char)param_3 == '\x05')" (( "(") (binary_expression "(char)param_3 == '\x05'" (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3")) (== "==") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (compound_statement "{\n      bVar6 = 1 < param_1[0x17];\n    }" ({ "{") (expression_statement "bVar6 = 1 < param_1[0x17];" (assignment_expression "bVar6 = 1 < param_1[0x17]" (identifier "bVar6") (= "=") (binary_expression "1 < param_1[0x17]" (number_literal "1") (< "<") (subscript_expression "param_1[0x17]" (identifier "param_1") ([ "[") (number_literal "0x17") (] "]")))) (; ";")) (} "}"))) (expression_statement "*(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;" (assignment_expression "*(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4" (pointer_expression "*(byte *)((int)puVar1 + 6)" (* "*") (cast_expression "(byte *)((int)puVar1 + 6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 6)" (( "(") (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "6")) () ")")))) (= "=") (binary_expression "*(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4" (binary_expression "*(byte *)((int)puVar1 + 6) & 0xef" (pointer_expression "*(byte *)((int)puVar1 + 6)" (* "*") (cast_expression "(byte *)((int)puVar1 + 6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 6)" (( "(") (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "6")) () ")")))) (& "&") (number_literal "0xef")) (| "|") (binary_expression "bVar6 << 4" (identifier "bVar6") (<< "<<") (number_literal "4")))) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)pvVar4 + uVar3 * 4)" (* "*") (cast_expression "(undefined4 *)((int)pvVar4 + uVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar4 + uVar3 * 4)" (( "(") (binary_expression "(int)pvVar4 + uVar3 * 4" (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4")) (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);" (assignment_expression "puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)((int)local_30 + param_1[2] * 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_30 + param_1[2] * 0xc)" (( "(") (binary_expression "(int)local_30 + param_1[2] * 0xc" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (binary_expression "param_1[2] * 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(param_1[6] + param_1[2] * 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[6] + param_1[2] * 0xc)" (( "(") (binary_expression "param_1[6] + param_1[2] * 0xc" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (binary_expression "param_1[2] * 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" (identifier "iVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[2] = iVar5 + 1;" (assignment_expression "param_1[2] = iVar5 + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" (else "else") (compound_statement "{\n    if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }\n    iVar5 = -1;\n  }" ({ "{") (if_statement "if (uVar2 * 2 < 0x15555556) {\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }" (if "if") (parenthesized_expression "(uVar2 * 2 < 0x15555556)" (( "(") (binary_expression "uVar2 * 2 < 0x15555556" (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2")) (< "<") (number_literal "0x15555556")) () ")")) (compound_statement "{\n      pvVar4 = realloc((void *)*param_1,uVar2 << 4);\n      if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }\n    }" ({ "{") (expression_statement "pvVar4 = realloc((void *)*param_1,uVar2 << 4);" (assignment_expression "pvVar4 = realloc((void *)*param_1,uVar2 << 4)" (identifier "pvVar4") (= "=") (call_expression "realloc((void *)*param_1,uVar2 << 4)" (identifier "realloc") (argument_list "((void *)*param_1,uVar2 << 4)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "uVar2 << 4" (identifier "uVar2") (<< "<<") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (pvVar4 != (void *)0x0) {\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }" (if "if") (parenthesized_expression "(pvVar4 != (void *)0x0)" (( "(") (binary_expression "pvVar4 != (void *)0x0" (identifier "pvVar4") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_1 = (int)pvVar4;\n        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);\n        __ptr = realloc((void *)param_1[4],uVar2 * 8);\n        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);\n        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);\n        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }\n        free(pvVar4);\n        free(__ptr);\n        free(local_30);\n        free(__ptr_00);\n      }" ({ "{") (expression_statement "*param_1 = (int)pvVar4;" (assignment_expression "*param_1 = (int)pvVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4"))) (; ";")) (expression_statement "pvVar4 = realloc((void *)param_1[3],uVar2 * 8);" (assignment_expression "pvVar4 = realloc((void *)param_1[3],uVar2 * 8)" (identifier "pvVar4") (= "=") (call_expression "realloc((void *)param_1[3],uVar2 * 8)" (identifier "realloc") (argument_list "((void *)param_1[3],uVar2 * 8)" (( "(") (cast_expression "(void *)param_1[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (, ",") (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "__ptr = realloc((void *)param_1[4],uVar2 * 8);" (assignment_expression "__ptr = realloc((void *)param_1[4],uVar2 * 8)" (identifier "__ptr") (= "=") (call_expression "realloc((void *)param_1[4],uVar2 * 8)" (identifier "realloc") (argument_list "((void *)param_1[4],uVar2 * 8)" (( "(") (cast_expression "(void *)param_1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "local_30 = realloc((void *)param_1[5],uVar2 * 0x18);" (assignment_expression "local_30 = realloc((void *)param_1[5],uVar2 * 0x18)" (identifier "local_30") (= "=") (call_expression "realloc((void *)param_1[5],uVar2 * 0x18)" (identifier "realloc") (argument_list "((void *)param_1[5],uVar2 * 0x18)" (( "(") (cast_expression "(void *)param_1[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (, ",") (binary_expression "uVar2 * 0x18" (identifier "uVar2") (* "*") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "__ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);" (assignment_expression "__ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18)" (identifier "__ptr_00") (= "=") (call_expression "realloc((void *)param_1[6],uVar2 * 0x18)" (identifier "realloc") (argument_list "((void *)param_1[6],uVar2 * 0x18)" (( "(") (cast_expression "(void *)param_1[6]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (, ",") (binary_expression "uVar2 * 0x18" (identifier "uVar2") (* "*") (number_literal "0x18")) () ")")))) (; ";")) (if_statement "if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }" (if "if") (parenthesized_expression "(((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0))" (( "(") (binary_expression "((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)" (parenthesized_expression "((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0))" (( "(") (binary_expression "(pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)" (parenthesized_expression "(pvVar4 != (void *)0x0)" (( "(") (binary_expression "pvVar4 != (void *)0x0" (identifier "pvVar4") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(local_30 != (void *)0x0)" (( "(") (binary_expression "local_30 != (void *)0x0" (identifier "local_30") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n          if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }\n        }" ({ "{") (if_statement "if (__ptr_00 != (void *)0x0) {\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }" (if "if") (parenthesized_expression "(__ptr_00 != (void *)0x0)" (( "(") (binary_expression "__ptr_00 != (void *)0x0" (identifier "__ptr_00") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            param_1[6] = (int)__ptr_00;\n            param_1[3] = (int)pvVar4;\n            param_1[4] = (int)__ptr;\n            param_1[1] = uVar2 * 2;\n            uVar3 = param_1[2];\n            param_1[5] = (int)local_30;\n            goto LAB_00024f5c;\n          }" ({ "{") (expression_statement "param_1[6] = (int)__ptr_00;" (assignment_expression "param_1[6] = (int)__ptr_00" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(int)__ptr_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr_00"))) (; ";")) (expression_statement "param_1[3] = (int)pvVar4;" (assignment_expression "param_1[3] = (int)pvVar4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4"))) (; ";")) (expression_statement "param_1[4] = (int)__ptr;" (assignment_expression "param_1[4] = (int)__ptr" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr"))) (; ";")) (expression_statement "param_1[1] = uVar2 * 2;" (assignment_expression "param_1[1] = uVar2 * 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" (identifier "uVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[5] = (int)local_30;" (assignment_expression "param_1[5] = (int)local_30" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30"))) (; ";")) (goto_statement "goto LAB_00024f5c;" (goto "goto") (statement_identifier "LAB_00024f5c") (; ";")) (} "}"))) (} "}"))) (expression_statement "free(pvVar4);" (call_expression "free(pvVar4)" (identifier "free") (argument_list "(pvVar4)" (( "(") (identifier "pvVar4") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(local_30);" (call_expression "free(local_30)" (identifier "free") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(type_2 *dfa,type_3 token)

{
  type_4 var_2;
  type_4 var_1;
  type_3 *var_8;
  type_1 *var_9;
  type_1 *var_10;
  type_5 *var_11;
  size_t var_6;
  type_4 var_3;
  type_6 in_EDX;
  bool var_4;
  type_5 *var_5;
  
  var_1 = dfa->nodes_len;
  var_2 = dfa->nodes_alloc;
  if (var_1 < var_2) {
    var_5 = dfa->edests;
    var_9 = dfa->nexts;
LAB_00024f5c:
    var_4 = (char)var_3 == '\x06';
    var_8 = dfa->nodes + var_1;
    var_8->opr = in_EDX;
    *(type_4 *)&var_8->field_0x4 = var_3 & 0xfffc00ff;
    if ((char)var_3 == '\x05') {
      var_4 = 1 < dfa->mb_cur_max;
    }
    var_8->field_0x6 = var_8->field_0x6 & 0xef | var_4 << 4;
    var_9[var_1] = -1;
    var_5 = var_5 + dfa->nodes_len;
    var_5->alloc = 0;
    var_5->nelem = 0;
    var_5->elems = (type_1 *)0x0;
    var_11 = dfa->eclosures + dfa->nodes_len;
    var_11->alloc = 0;
    var_11->nelem = 0;
    var_11->elems = (type_1 *)0x0;
    var_6 = dfa->nodes_len;
    dfa->nodes_len = var_6 + 1;
  }
  else {
    if (var_2 * 2 < 0x15555556) {
      var_8 = (type_3 *)var_7(dfa->nodes,var_2 << 4);
      if (var_8 != (type_3 *)0x0) {
        dfa->nodes = var_8;
        var_9 = (type_1 *)var_7(dfa->nexts,var_2 * 8);
        var_10 = (type_1 *)var_7(dfa->org_indices,var_2 * 8);
        var_5 = (type_5 *)var_7(dfa->edests,var_2 * 0x18);
        var_11 = (type_5 *)var_7(dfa->eclosures,var_2 * 0x18);
        if (((var_9 != (type_1 *)0x0) && (var_10 != (type_1 *)0x0)) && (var_5 != (type_5 *)0x0))
        {
          if (var_11 != (type_5 *)0x0) {
            dfa->eclosures = var_11;
            dfa->nexts = var_9;
            dfa->org_indices = var_10;
            dfa->nodes_alloc = var_2 * 2;
            var_1 = dfa->nodes_len;
            dfa->edests = var_5;
            goto LAB_00024f5c;
          }
        }
        var_12(var_9);
        var_12(var_10);
        var_12(var_5);
        var_12(var_11);
      }
    }
    var_6 = 0xffffffff;
  }
  return var_6;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(int *param_1,undefined4 param_2,uint param_3)

{
  undefined4 *puVar1;
  uint uVar2;
  uint uVar3;
  void *pvVar4;
  void *__ptr;
  void *__ptr_00;
  int iVar5;
  bool bVar6;
  void *local_30;
  
  uVar3 = param_1[2];
  uVar2 = param_1[1];
  if (uVar3 < uVar2) {
    local_30 = (void *)param_1[5];
    pvVar4 = (void *)param_1[3];
LAB_00024f5c:
    bVar6 = (char)param_3 == '\x06';
    puVar1 = (undefined4 *)(*param_1 + uVar3 * 8);
    *puVar1 = param_2;
    puVar1[1] = param_3 & 0xfffc00ff;
    if ((char)param_3 == '\x05') {
      bVar6 = 1 < param_1[0x17];
    }
    *(byte *)((int)puVar1 + 6) = *(byte *)((int)puVar1 + 6) & 0xef | bVar6 << 4;
    *(undefined4 *)((int)pvVar4 + uVar3 * 4) = 0xffffffff;
    puVar1 = (undefined4 *)((int)local_30 + param_1[2] * 0xc);
    *puVar1 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
    puVar1 = (undefined4 *)(param_1[6] + param_1[2] * 0xc);
    *puVar1 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
    iVar5 = param_1[2];
    param_1[2] = iVar5 + 1;
  }
  else {
    if (uVar2 * 2 < 0x15555556) {
      pvVar4 = realloc((void *)*param_1,uVar2 << 4);
      if (pvVar4 != (void *)0x0) {
        *param_1 = (int)pvVar4;
        pvVar4 = realloc((void *)param_1[3],uVar2 * 8);
        __ptr = realloc((void *)param_1[4],uVar2 * 8);
        local_30 = realloc((void *)param_1[5],uVar2 * 0x18);
        __ptr_00 = realloc((void *)param_1[6],uVar2 * 0x18);
        if (((pvVar4 != (void *)0x0) && (__ptr != (void *)0x0)) && (local_30 != (void *)0x0)) {
          if (__ptr_00 != (void *)0x0) {
            param_1[6] = (int)__ptr_00;
            param_1[3] = (int)pvVar4;
            param_1[4] = (int)__ptr;
            param_1[1] = uVar2 * 2;
            uVar3 = param_1[2];
            param_1[5] = (int)local_30;
            goto LAB_00024f5c;
          }
        }
        free(pvVar4);
        free(__ptr);
        free(local_30);
        free(__ptr_00);
      }
    }
    iVar5 = -1;
  }
  return iVar5;
}

