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

int __regparm3 register_Btype(work_stuff *work)

{
  int iVar1;
  int iVar2;
  char **ppcVar3;
  
  iVar2 = work->numb;
  iVar1 = work->bsize;
  if (iVar2 < iVar1) {
    ppcVar3 = work->btypevec;
  }
  else if (iVar1 == 0) {
    work->bsize = 5;
    ppcVar3 = (char **)xmalloc(0x14);
    work->btypevec = ppcVar3;
    iVar2 = work->numb;
  }
  else {
    if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
      xmalloc_failed(0x7fffffff);
    }
    work->bsize = iVar1 * 2;
    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);
    work->btypevec = ppcVar3;
    iVar2 = work->numb;
  }
  work->numb = iVar2 + 1;
  ppcVar3[iVar2] = (char *)0x0;
  return iVar2;
}



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

void __regparm3 FUN_00193240(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 0x14);
  iVar2 = *(int *)(param_1 + 0x1c);
  if (iVar1 < iVar2) {
    iVar2 = *(int *)(param_1 + 0xc);
  }
  else if (iVar2 == 0) {
    *(undefined4 *)(param_1 + 0x1c) = 5;
    iVar2 = FUN_001aa380(0x14);
    *(int *)(param_1 + 0xc) = iVar2;
    iVar1 = *(int *)(param_1 + 0x14);
  }
  else {
    if (0x3fffffff < iVar2) {
                    /* WARNING: Subroutine does not return */
      FUN_001aa300(0x7fffffff);
    }
    *(int *)(param_1 + 0x1c) = iVar2 * 2;
    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);
    *(int *)(param_1 + 0xc) = iVar2;
    iVar1 = *(int *)(param_1 + 0x14);
  }
  *(int *)(param_1 + 0x14) = iVar1 + 1;
  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00035680
ADD EBX,0x1abdb7
SUB ESP,0x4
MOV EAX,dword ptr [EAX + 0x14]
MOV EDX,dword ptr [ESI + 0x1c]
CMP EAX,EDX
JGE 0x00193278
MOV EDX,dword ptr [ESI + 0xc]
LEA ECX,[EAX + 0x1]
MOV dword ptr [ESI + 0x14],ECX
MOV dword ptr [EDX + EAX*0x4],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
TEST EDX,EDX
JZ 0x001932b0
CMP EDX,0x3fffffff
JG 0x001932ce
SUB ESP,0x8
LEA EAX,[EDX + EDX*0x1]
SHL EDX,0x3
PUSH EDX
MOV dword ptr [ESI + 0x1c],EAX
PUSH dword ptr [ESI + 0xc]
CALL 0x001aa410
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [ESI + 0x14]
JMP 0x0019325f
SUB ESP,0xc
MOV dword ptr [ESI + 0x1c],0x5
PUSH 0x14
CALL 0x001aa380
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [ESI + 0x14]
JMP 0x0019325f
SUB ESP,0xc
PUSH 0x7fffffff
CALL 0x001aa300
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00193240(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00193240(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00193240(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" else (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_001aa380(0x14);" (assignment_expression "iVar2 = FUN_001aa380(0x14)" identifier = (call_expression "FUN_001aa380(0x14)" identifier (argument_list "(0x14)" ( number_literal )))) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" else (compound_statement "{\n    if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" { (if_statement "if (0x3fffffff < iVar2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }" if (parenthesized_expression "(0x3fffffff < iVar2)" ( (binary_expression "0x3fffffff < iVar2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_001aa300(0x7fffffff);\n    }" { comment (expression_statement "FUN_001aa300(0x7fffffff);" (call_expression "FUN_001aa300(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "*(int *)(param_1 + 0x1c) = iVar2 * 2;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar2 * 2" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);" (assignment_expression "iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" identifier = (call_expression "FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (binary_expression "iVar2 << 3" identifier << number_literal) )))) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }))))) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = 0" (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)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 register_Btype(work_stuff *work)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  iVar2 = work->numb;\n  iVar1 = work->bsize;\n  if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  work->numb = iVar2 + 1;\n  ppcVar3[iVar2] = (char *)0x0;\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3 register_Btype(work_stuff *work)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  iVar2 = work->numb;\n  iVar1 = work->bsize;\n  if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  work->numb = iVar2 + 1;\n  ppcVar3[iVar2] = (char *)0x0;\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "register_Btype(work_stuff *work)" identifier (parameter_list "(work_stuff *work)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  iVar2 = work->numb;\n  iVar1 = work->bsize;\n  if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  work->numb = iVar2 + 1;\n  ppcVar3[iVar2] = (char *)0x0;\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (expression_statement "iVar2 = work->numb;" (assignment_expression "iVar2 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) (expression_statement "iVar1 = work->bsize;" (assignment_expression "iVar1 = work->bsize" identifier = (field_expression "work->bsize" identifier -> field_identifier)) ;) (if_statement "if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n    ppcVar3 = work->btypevec;\n  }" { (expression_statement "ppcVar3 = work->btypevec;" (assignment_expression "ppcVar3 = work->btypevec" identifier = (field_expression "work->btypevec" identifier -> field_identifier)) ;) }) (else_clause "else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" else (if_statement "if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x14);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" { (expression_statement "work->bsize = 5;" (assignment_expression "work->bsize = 5" (field_expression "work->bsize" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppcVar3 = (char **)xmalloc(0x14);" (assignment_expression "ppcVar3 = (char **)xmalloc(0x14)" identifier = (cast_expression "(char **)xmalloc(0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "work->btypevec = ppcVar3;" (assignment_expression "work->btypevec = ppcVar3" (field_expression "work->btypevec" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = work->numb;" (assignment_expression "iVar2 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) }) (else_clause "else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" else (compound_statement "{\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" { (if_statement "if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" 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 "work->bsize = iVar1 * 2;" (assignment_expression "work->bsize = iVar1 * 2" (field_expression "work->bsize" identifier -> field_identifier) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3);" (assignment_expression "ppcVar3 = (char **)xrealloc(work->btypevec,iVar1 << 3)" identifier = (cast_expression "(char **)xrealloc(work->btypevec,iVar1 << 3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(work->btypevec,iVar1 << 3)" identifier (argument_list "(work->btypevec,iVar1 << 3)" ( (field_expression "work->btypevec" identifier -> field_identifier) , (binary_expression "iVar1 << 3" identifier << number_literal) ))))) ;) (expression_statement "work->btypevec = ppcVar3;" (assignment_expression "work->btypevec = ppcVar3" (field_expression "work->btypevec" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = work->numb;" (assignment_expression "iVar2 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) }))))) (expression_statement "work->numb = iVar2 + 1;" (assignment_expression "work->numb = iVar2 + 1" (field_expression "work->numb" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar3[iVar2] = (char *)0x0;" (assignment_expression "ppcVar3[iVar2] = (char *)0x0" (subscript_expression "ppcVar3[iVar2]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_00193240(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00193240(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00193240(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" else (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_001aa380(0x14);" (assignment_expression "iVar2 = FUN_001aa380(0x14)" identifier = (call_expression "FUN_001aa380(0x14)" identifier (argument_list "(0x14)" ( number_literal )))) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" else (compound_statement "{\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" { (if_statement "if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }" if (parenthesized_expression "(0x3fffffff < iVar2)" ( (binary_expression "0x3fffffff < iVar2" number_literal < identifier) )) (compound_statement "{\n                    \n      FUN_001aa300(0x7fffffff);\n    }" { (expression_statement "FUN_001aa300(0x7fffffff);" (call_expression "FUN_001aa300(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "*(int *)(param_1 + 0x1c) = iVar2 * 2;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar2 * 2" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);" (assignment_expression "iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" identifier = (call_expression "FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (binary_expression "iVar2 << 3" identifier << number_literal) )))) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }))))) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = 0" (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)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (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 (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 = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 (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)) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00193240(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00193240(int param_1)" (identifier "FUN_00193240") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  iVar2 = *(int *)(param_1 + 0x1c);\n  if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  *(int *)(param_1 + 0x14) = iVar1 + 1;\n  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;\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 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (iVar1 < iVar2) {\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" (if "if") (parenthesized_expression "(iVar1 < iVar2)" (( "(") (binary_expression "iVar1 < iVar2" (identifier "iVar1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" (else "else") (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x1c) = 5;\n    iVar2 = FUN_001aa380(0x14);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "5")) (; ";")) (expression_statement "iVar2 = FUN_001aa380(0x14);" (assignment_expression "iVar2 = FUN_001aa380(0x14)" (identifier "iVar2") (= "=") (call_expression "FUN_001aa380(0x14)" (identifier "FUN_001aa380") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" (else "else") (compound_statement "{\n    if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x1c) = iVar2 * 2;\n    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);\n    *(int *)(param_1 + 0xc) = iVar2;\n    iVar1 = *(int *)(param_1 + 0x14);\n  }" ({ "{") (if_statement "if (0x3fffffff < iVar2) {\n                    \n      FUN_001aa300(0x7fffffff);\n    }" (if "if") (parenthesized_expression "(0x3fffffff < iVar2)" (( "(") (binary_expression "0x3fffffff < iVar2" (number_literal "0x3fffffff") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n                    \n      FUN_001aa300(0x7fffffff);\n    }" ({ "{") (expression_statement "FUN_001aa300(0x7fffffff);" (call_expression "FUN_001aa300(0x7fffffff)" (identifier "FUN_001aa300") (argument_list "(0x7fffffff)" (( "(") (number_literal "0x7fffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x1c) = iVar2 * 2;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar2 * 2" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);" (assignment_expression "iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" (identifier "iVar2") (= "=") (call_expression "FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" (identifier "FUN_001aa410") (argument_list "(*(undefined4 *)(param_1 + 0xc),iVar2 << 3)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (binary_expression "iVar2 << 3" (identifier "iVar2") (<< "<<") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")))))) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + iVar1 * 4) = 0" (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"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *work)

{
  int var_2;
  int var_1;
  char **ppcVar3;
  
  var_1 = work->numb;
  var_2 = work->bsize;
  if (var_1 < var_2) {
    ppcVar3 = work->btypevec;
  }
  else if (var_2 == 0) {
    work->bsize = 5;
    ppcVar3 = (char **)var_3(0x14);
    work->btypevec = ppcVar3;
    var_1 = work->numb;
  }
  else {
    if (0x3fffffff < var_2) {
                    /* WARNING: Subroutine does not return */
      var_4(0x7fffffff);
    }
    work->bsize = var_2 * 2;
    ppcVar3 = (char **)var_5(work->btypevec,var_2 << 3);
    work->btypevec = ppcVar3;
    var_1 = work->numb;
  }
  work->numb = var_1 + 1;
  ppcVar3[var_1] = (char *)0x0;
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (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)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_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: (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: (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)))))))) 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: (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: (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: (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: (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: (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: (number_literal))) (return_statement))))

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

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 0x14);
  iVar2 = *(int *)(param_1 + 0x1c);
  if (iVar1 < iVar2) {
    iVar2 = *(int *)(param_1 + 0xc);
  }
  else if (iVar2 == 0) {
    *(undefined4 *)(param_1 + 0x1c) = 5;
    iVar2 = FUN_001aa380(0x14);
    *(int *)(param_1 + 0xc) = iVar2;
    iVar1 = *(int *)(param_1 + 0x14);
  }
  else {
    if (0x3fffffff < iVar2) {
                    /* WARNING: Subroutine does not return */
      FUN_001aa300(0x7fffffff);
    }
    *(int *)(param_1 + 0x1c) = iVar2 * 2;
    iVar2 = FUN_001aa410(*(undefined4 *)(param_1 + 0xc),iVar2 << 3);
    *(int *)(param_1 + 0xc) = iVar2;
    iVar1 = *(int *)(param_1 + 0x14);
  }
  *(int *)(param_1 + 0x14) = iVar1 + 1;
  *(undefined4 *)(iVar2 + iVar1 * 4) = 0;
  return;
}

