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

void __regparm3 push_processed_type(work_stuff *work,int typevec_index)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  iVar1 = work->nproctypes;
  iVar2 = work->proctypevec_size;
  if (iVar1 < iVar2) {
    work->nproctypes = iVar1 + 1;
    work->proctypevec[iVar1] = typevec_index;
    return;
  }
  if (iVar2 != 0) {
    if (iVar2 < 0x10) {
      iVar2 = iVar2 * 2;
      work->proctypevec_size = iVar2;
    }
    else {
      if (0x55555554 < iVar2) {
                    /* WARNING: Subroutine does not return */
        xmalloc_failed(0x7fffffff);
      }
      iVar2 = iVar2 * 3 >> 1;
      work->proctypevec_size = iVar2;
    }
    piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);
    iVar1 = work->nproctypes;
    work->proctypevec = piVar3;
    work->nproctypes = iVar1 + 1;
    piVar3[iVar1] = typevec_index;
    return;
  }
  work->proctypevec_size = 4;
  piVar3 = (int *)xmalloc(0x10);
  iVar1 = work->nproctypes;
  work->proctypevec = piVar3;
  work->nproctypes = iVar1 + 1;
  piVar3[iVar1] = typevec_index;
  return;
}



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

void __regparm3 FUN_001cdac0(int param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 0x5c);
  iVar2 = *(int *)(param_1 + 0x58);
  if (iVar1 < iVar2) {
    *(int *)(param_1 + 0x5c) = iVar1 + 1;
    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;
    return;
  }
  if (iVar2 != 0) {
    if (iVar2 < 0x10) {
      iVar2 = iVar2 * 2;
      *(int *)(param_1 + 0x58) = iVar2;
    }
    else {
      if (0x55555554 < iVar2) {
                    /* WARNING: Subroutine does not return */
        FUN_001e4c40(0x7fffffff);
      }
      iVar2 = iVar2 * 3 >> 1;
      *(int *)(param_1 + 0x58) = iVar2;
    }
    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);
    iVar1 = *(int *)(param_1 + 0x5c);
    *(int *)(param_1 + 0x54) = iVar2;
    *(int *)(param_1 + 0x5c) = iVar1 + 1;
    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;
    return;
  }
  *(undefined4 *)(param_1 + 0x58) = 4;
  iVar2 = FUN_001e4cc0(0x10);
  iVar1 = *(int *)(param_1 + 0x5c);
  *(int *)(param_1 + 0x54) = iVar2;
  *(int *)(param_1 + 0x5c) = iVar1 + 1;
  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;
  return;
}


PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EDX,dword ptr [EAX + 0x5c]
CALL 0x00035840
ADD EBX,0x1c1531
MOV EAX,dword ptr [EAX + 0x58]
CMP EDX,EAX
JGE 0x001cdaf0
MOV EAX,dword ptr [ESI + 0x54]
LEA ECX,[EDX + 0x1]
MOV dword ptr [ESI + 0x5c],ECX
MOV dword ptr [EAX + EDX*0x4],EDI
POP EBX
POP ESI
POP EDI
RET
TEST EAX,EAX
JZ 0x001cdb40
CMP EAX,0xf
JLE 0x001cdb30
CMP EAX,0x55555554
JG 0x001cdb67
LEA EAX,[EAX + EAX*0x2]
SAR EAX,0x1
MOV dword ptr [ESI + 0x58],EAX
SUB ESP,0x8
SHL EAX,0x2
PUSH EAX
PUSH dword ptr [ESI + 0x54]
CALL 0x001e4d50
MOV EDX,dword ptr [ESI + 0x5c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x54],EAX
LEA ECX,[EDX + 0x1]
MOV dword ptr [ESI + 0x5c],ECX
MOV dword ptr [EAX + EDX*0x4],EDI
POP EBX
POP ESI
POP EDI
RET
ADD EAX,EAX
MOV dword ptr [ESI + 0x58],EAX
JMP 0x001cdb08
SUB ESP,0xc
MOV dword ptr [ESI + 0x58],0x4
PUSH 0x10
CALL 0x001e4cc0
MOV EDX,dword ptr [ESI + 0x5c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x54],EAX
LEA ECX,[EDX + 0x1]
MOV dword ptr [ESI + 0x5c],ECX
MOV dword ptr [EAX + EDX*0x4],EDI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH 0x7fffffff
CALL 0x001e4c40
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_001cdac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_001cdac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001cdac0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x58);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x58)" identifier = (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }" { (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x54) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }" { (if_statement "if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" if (parenthesized_expression "(iVar2 < 0x10)" ( (binary_expression "iVar2 < 0x10" identifier < number_literal) )) (compound_statement "{\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" { (expression_statement "iVar2 = iVar2 * 2;" (assignment_expression "iVar2 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x58) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x58) = iVar2" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" else (compound_statement "{\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" { (if_statement "if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }" if (parenthesized_expression "(0x55555554 < iVar2)" ( (binary_expression "0x55555554 < iVar2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_001e4c40(0x7fffffff);\n      }" { comment (expression_statement "FUN_001e4c40(0x7fffffff);" (call_expression "FUN_001e4c40(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "iVar2 = iVar2 * 3 >> 1;" (assignment_expression "iVar2 = iVar2 * 3 >> 1" identifier = (binary_expression "iVar2 * 3 >> 1" (binary_expression "iVar2 * 3" identifier * number_literal) >> number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x58) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x58) = iVar2" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);" (assignment_expression "iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" identifier = (call_expression "FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , (binary_expression "iVar2 << 2" identifier << number_literal) )))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x54) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x54) = iVar2" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(iVar2 + iVar1 * 4)" * (cast_expression "(undefined4 *)(iVar2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1 * 4)" ( (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_001e4cc0(0x10);" (assignment_expression "iVar2 = FUN_001e4cc0(0x10)" identifier = (call_expression "FUN_001e4cc0(0x10)" identifier (argument_list "(0x10)" ( number_literal )))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x54) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x54) = iVar2" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(iVar2 + iVar1 * 4)" * (cast_expression "(undefined4 *)(iVar2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1 * 4)" ( (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 push_processed_type(work_stuff *work,int typevec_index)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  iVar1 = work->nproctypes;\n  iVar2 = work->proctypevec_size;\n  if (iVar1 < iVar2) {\n    work->nproctypes = iVar1 + 1;\n    work->proctypevec[iVar1] = typevec_index;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }\n    piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);\n    iVar1 = work->nproctypes;\n    work->proctypevec = piVar3;\n    work->nproctypes = iVar1 + 1;\n    piVar3[iVar1] = typevec_index;\n    return;\n  }\n  work->proctypevec_size = 4;\n  piVar3 = (int *)xmalloc(0x10);\n  iVar1 = work->nproctypes;\n  work->proctypevec = piVar3;\n  work->nproctypes = iVar1 + 1;\n  piVar3[iVar1] = typevec_index;\n  return;\n}\n\n" comment (function_definition "void __regparm3 push_processed_type(work_stuff *work,int typevec_index)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  iVar1 = work->nproctypes;\n  iVar2 = work->proctypevec_size;\n  if (iVar1 < iVar2) {\n    work->nproctypes = iVar1 + 1;\n    work->proctypevec[iVar1] = typevec_index;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }\n    piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);\n    iVar1 = work->nproctypes;\n    work->proctypevec = piVar3;\n    work->nproctypes = iVar1 + 1;\n    piVar3[iVar1] = typevec_index;\n    return;\n  }\n  work->proctypevec_size = 4;\n  piVar3 = (int *)xmalloc(0x10);\n  iVar1 = work->nproctypes;\n  work->proctypevec = piVar3;\n  work->nproctypes = iVar1 + 1;\n  piVar3[iVar1] = typevec_index;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "push_processed_type(work_stuff *work,int typevec_index)" identifier (parameter_list "(work_stuff *work,int typevec_index)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "int typevec_index" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  iVar1 = work->nproctypes;\n  iVar2 = work->proctypevec_size;\n  if (iVar1 < iVar2) {\n    work->nproctypes = iVar1 + 1;\n    work->proctypevec[iVar1] = typevec_index;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }\n    piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);\n    iVar1 = work->nproctypes;\n    work->proctypevec = piVar3;\n    work->nproctypes = iVar1 + 1;\n    piVar3[iVar1] = typevec_index;\n    return;\n  }\n  work->proctypevec_size = 4;\n  piVar3 = (int *)xmalloc(0x10);\n  iVar1 = work->nproctypes;\n  work->proctypevec = piVar3;\n  work->nproctypes = iVar1 + 1;\n  piVar3[iVar1] = typevec_index;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "iVar1 = work->nproctypes;" (assignment_expression "iVar1 = work->nproctypes" identifier = (field_expression "work->nproctypes" identifier -> field_identifier)) ;) (expression_statement "iVar2 = work->proctypevec_size;" (assignment_expression "iVar2 = work->proctypevec_size" identifier = (field_expression "work->proctypevec_size" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < iVar2) {\n    work->nproctypes = iVar1 + 1;\n    work->proctypevec[iVar1] = typevec_index;\n    return;\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    work->nproctypes = iVar1 + 1;\n    work->proctypevec[iVar1] = typevec_index;\n    return;\n  }" { (expression_statement "work->nproctypes = iVar1 + 1;" (assignment_expression "work->nproctypes = iVar1 + 1" (field_expression "work->nproctypes" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "work->proctypevec[iVar1] = typevec_index;" (assignment_expression "work->proctypevec[iVar1] = typevec_index" (subscript_expression "work->proctypevec[iVar1]" (field_expression "work->proctypevec" identifier -> field_identifier) [ identifier ]) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }\n    piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);\n    iVar1 = work->nproctypes;\n    work->proctypevec = piVar3;\n    work->nproctypes = iVar1 + 1;\n    piVar3[iVar1] = typevec_index;\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }\n    piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);\n    iVar1 = work->nproctypes;\n    work->proctypevec = piVar3;\n    work->nproctypes = iVar1 + 1;\n    piVar3[iVar1] = typevec_index;\n    return;\n  }" { (if_statement "if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }" if (parenthesized_expression "(iVar2 < 0x10)" ( (binary_expression "iVar2 < 0x10" identifier < number_literal) )) (compound_statement "{\n      iVar2 = iVar2 * 2;\n      work->proctypevec_size = iVar2;\n    }" { (expression_statement "iVar2 = iVar2 * 2;" (assignment_expression "iVar2 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "work->proctypevec_size = iVar2;" (assignment_expression "work->proctypevec_size = iVar2" (field_expression "work->proctypevec_size" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }" else (compound_statement "{\n      if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      work->proctypevec_size = iVar2;\n    }" { (if_statement "if (0x55555554 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }" if (parenthesized_expression "(0x55555554 < iVar2)" ( (binary_expression "0x55555554 < iVar2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }" { comment (expression_statement "xmalloc_failed(0x7fffffff);" (call_expression "xmalloc_failed(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "iVar2 = iVar2 * 3 >> 1;" (assignment_expression "iVar2 = iVar2 * 3 >> 1" identifier = (binary_expression "iVar2 * 3 >> 1" (binary_expression "iVar2 * 3" identifier * number_literal) >> number_literal)) ;) (expression_statement "work->proctypevec_size = iVar2;" (assignment_expression "work->proctypevec_size = iVar2" (field_expression "work->proctypevec_size" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2);" (assignment_expression "piVar3 = (int *)xrealloc(work->proctypevec,iVar2 << 2)" identifier = (cast_expression "(int *)xrealloc(work->proctypevec,iVar2 << 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(work->proctypevec,iVar2 << 2)" identifier (argument_list "(work->proctypevec,iVar2 << 2)" ( (field_expression "work->proctypevec" identifier -> field_identifier) , (binary_expression "iVar2 << 2" identifier << number_literal) ))))) ;) (expression_statement "iVar1 = work->nproctypes;" (assignment_expression "iVar1 = work->nproctypes" identifier = (field_expression "work->nproctypes" identifier -> field_identifier)) ;) (expression_statement "work->proctypevec = piVar3;" (assignment_expression "work->proctypevec = piVar3" (field_expression "work->proctypevec" identifier -> field_identifier) = identifier) ;) (expression_statement "work->nproctypes = iVar1 + 1;" (assignment_expression "work->nproctypes = iVar1 + 1" (field_expression "work->nproctypes" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "piVar3[iVar1] = typevec_index;" (assignment_expression "piVar3[iVar1] = typevec_index" (subscript_expression "piVar3[iVar1]" identifier [ identifier ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "work->proctypevec_size = 4;" (assignment_expression "work->proctypevec_size = 4" (field_expression "work->proctypevec_size" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar3 = (int *)xmalloc(0x10);" (assignment_expression "piVar3 = (int *)xmalloc(0x10)" identifier = (cast_expression "(int *)xmalloc(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "iVar1 = work->nproctypes;" (assignment_expression "iVar1 = work->nproctypes" identifier = (field_expression "work->nproctypes" identifier -> field_identifier)) ;) (expression_statement "work->proctypevec = piVar3;" (assignment_expression "work->proctypevec = piVar3" (field_expression "work->proctypevec" identifier -> field_identifier) = identifier) ;) (expression_statement "work->nproctypes = iVar1 + 1;" (assignment_expression "work->nproctypes = iVar1 + 1" (field_expression "work->nproctypes" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "piVar3[iVar1] = typevec_index;" (assignment_expression "piVar3[iVar1] = typevec_index" (subscript_expression "piVar3[iVar1]" identifier [ identifier ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_001cdac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_001cdac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001cdac0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x58);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x58)" identifier = (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }" { (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x54) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }" { (if_statement "if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" if (parenthesized_expression "(iVar2 < 0x10)" ( (binary_expression "iVar2 < 0x10" identifier < number_literal) )) (compound_statement "{\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" { (expression_statement "iVar2 = iVar2 * 2;" (assignment_expression "iVar2 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x58) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x58) = iVar2" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" else (compound_statement "{\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" { (if_statement "if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }" if (parenthesized_expression "(0x55555554 < iVar2)" ( (binary_expression "0x55555554 < iVar2" number_literal < identifier) )) (compound_statement "{\n                    \n        FUN_001e4c40(0x7fffffff);\n      }" { (expression_statement "FUN_001e4c40(0x7fffffff);" (call_expression "FUN_001e4c40(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "iVar2 = iVar2 * 3 >> 1;" (assignment_expression "iVar2 = iVar2 * 3 >> 1" identifier = (binary_expression "iVar2 * 3 >> 1" (binary_expression "iVar2 * 3" identifier * number_literal) >> number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x58) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x58) = iVar2" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);" (assignment_expression "iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" identifier = (call_expression "FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , (binary_expression "iVar2 << 2" identifier << number_literal) )))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x54) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x54) = iVar2" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(iVar2 + iVar1 * 4)" * (cast_expression "(undefined4 *)(iVar2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1 * 4)" ( (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_001e4cc0(0x10);" (assignment_expression "iVar2 = FUN_001e4cc0(0x10)" identifier = (call_expression "FUN_001e4cc0(0x10)" identifier (argument_list "(0x10)" ( number_literal )))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x54) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x54) = iVar2" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(iVar2 + iVar1 * 4)" * (cast_expression "(undefined4 *)(iVar2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1 * 4)" ( (binary_expression "iVar2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT << LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_001cdac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001cdac0(int param_1,undefined4 param_2)" (identifier "FUN_001cdac0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  iVar2 = *(int *)(param_1 + 0x58);\n  if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }\n  if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x58) = 4;\n  iVar2 = FUN_001e4cc0(0x10);\n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 0x54) = iVar2;\n  *(int *)(param_1 + 0x5c) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x58);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x58)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (if_statement "if (iVar1 < iVar2) {\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 < iVar2)" (( "(") (binary_expression "iVar1 < iVar2" (identifier "iVar1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;\n    return;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x54) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar2 != 0) {\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);\n    iVar1 = *(int *)(param_1 + 0x5c);\n    *(int *)(param_1 + 0x54) = iVar2;\n    *(int *)(param_1 + 0x5c) = iVar1 + 1;\n    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;\n    return;\n  }" ({ "{") (if_statement "if (iVar2 < 0x10) {\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }\n    else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" (if "if") (parenthesized_expression "(iVar2 < 0x10)" (( "(") (binary_expression "iVar2 < 0x10" (identifier "iVar2") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n      iVar2 = iVar2 * 2;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" ({ "{") (expression_statement "iVar2 = iVar2 * 2;" (assignment_expression "iVar2 = iVar2 * 2" (identifier "iVar2") (= "=") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x58) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x58) = iVar2" (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (else_clause "else {\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" (else "else") (compound_statement "{\n      if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }\n      iVar2 = iVar2 * 3 >> 1;\n      *(int *)(param_1 + 0x58) = iVar2;\n    }" ({ "{") (if_statement "if (0x55555554 < iVar2) {\n                    \n        FUN_001e4c40(0x7fffffff);\n      }" (if "if") (parenthesized_expression "(0x55555554 < iVar2)" (( "(") (binary_expression "0x55555554 < iVar2" (number_literal "0x55555554") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n                    \n        FUN_001e4c40(0x7fffffff);\n      }" ({ "{") (expression_statement "FUN_001e4c40(0x7fffffff);" (call_expression "FUN_001e4c40(0x7fffffff)" (identifier "FUN_001e4c40") (argument_list "(0x7fffffff)" (( "(") (number_literal "0x7fffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 * 3 >> 1;" (assignment_expression "iVar2 = iVar2 * 3 >> 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 * 3 >> 1" (binary_expression "iVar2 * 3" (identifier "iVar2") (* "*") (number_literal "3")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x58) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x58) = iVar2" (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);" (assignment_expression "iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" (identifier "iVar2") (= "=") (call_expression "FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" (identifier "FUN_001e4d50") (argument_list "(*(undefined4 *)(param_1 + 0x54),iVar2 << 2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (, ",") (binary_expression "iVar2 << 2" (identifier "iVar2") (<< "<<") (number_literal "2")) () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x54) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x54) = iVar2" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(iVar2 + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar1 * 4)" (( "(") (binary_expression "iVar2 + iVar1 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar2 = FUN_001e4cc0(0x10);" (assignment_expression "iVar2 = FUN_001e4cc0(0x10)" (identifier "iVar2") (= "=") (call_expression "FUN_001e4cc0(0x10)" (identifier "FUN_001e4cc0") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x54) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x54) = iVar2" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)(param_1 + 0x5c) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x5c) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = param_2" (pointer_expression "*(undefined4 *)(iVar2 + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar1 * 4)" (( "(") (binary_expression "iVar2 + iVar1 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *work,int typevec_index)

{
  int var_1;
  int var_2;
  int *piVar3;
  
  var_1 = work->nproctypes;
  var_2 = work->proctypevec_size;
  if (var_1 < var_2) {
    work->nproctypes = var_1 + 1;
    work->proctypevec[var_1] = typevec_index;
    return;
  }
  if (var_2 != 0) {
    if (var_2 < 0x10) {
      var_2 = var_2 * 2;
      work->proctypevec_size = var_2;
    }
    else {
      if (0x55555554 < var_2) {
                    /* WARNING: Subroutine does not return */
        var_3(0x7fffffff);
      }
      var_2 = var_2 * 3 >> 1;
      work->proctypevec_size = var_2;
    }
    piVar3 = (int *)var_4(work->proctypevec,var_2 << 2);
    var_1 = work->nproctypes;
    work->proctypevec = piVar3;
    work->nproctypes = var_1 + 1;
    piVar3[var_1] = typevec_index;
    return;
  }
  work->proctypevec_size = 4;
  piVar3 = (int *)var_5(0x10);
  var_1 = work->nproctypes;
  work->proctypevec = piVar3;
  work->nproctypes = var_1 + 1;
  piVar3[var_1] = typevec_index;
  return;
}


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

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

void __regparm3 MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 0x5c);
  iVar2 = *(int *)(param_1 + 0x58);
  if (iVar1 < iVar2) {
    *(int *)(param_1 + 0x5c) = iVar1 + 1;
    *(undefined4 *)(*(int *)(param_1 + 0x54) + iVar1 * 4) = param_2;
    return;
  }
  if (iVar2 != 0) {
    if (iVar2 < 0x10) {
      iVar2 = iVar2 * 2;
      *(int *)(param_1 + 0x58) = iVar2;
    }
    else {
      if (0x55555554 < iVar2) {
                    /* WARNING: Subroutine does not return */
        FUN_001e4c40(0x7fffffff);
      }
      iVar2 = iVar2 * 3 >> 1;
      *(int *)(param_1 + 0x58) = iVar2;
    }
    iVar2 = FUN_001e4d50(*(undefined4 *)(param_1 + 0x54),iVar2 << 2);
    iVar1 = *(int *)(param_1 + 0x5c);
    *(int *)(param_1 + 0x54) = iVar2;
    *(int *)(param_1 + 0x5c) = iVar1 + 1;
    *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;
    return;
  }
  *(undefined4 *)(param_1 + 0x58) = 4;
  iVar2 = FUN_001e4cc0(0x10);
  iVar1 = *(int *)(param_1 + 0x5c);
  *(int *)(param_1 + 0x54) = iVar2;
  *(int *)(param_1 + 0x5c) = iVar1 + 1;
  *(undefined4 *)(iVar2 + iVar1 * 4) = param_2;
  return;
}

