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

NODE * do_isarray(int nargs)

{
  STACK_ITEM *pSVar1;
  char **ppcVar2;
  double dVar3;
  NODE *pNVar4;
  
  pSVar1 = stack_ptr + -1;
  pNVar4 = stack_ptr->rptr;
  stack_ptr = pSVar1;
  if (pNVar4->type == Node_var_array) {
    dVar3 = 1.0;
  }
  else {
    if (pNVar4->type == Node_val) {
      ppcVar2 = &(pNVar4->sub).nodep.name;
      *ppcVar2 = *ppcVar2 + -1;
      if (*ppcVar2 == (char *)0x0) {
        r_unref(pNVar4);
      }
    }
    dVar3 = 0.0;
  }
  pNVar4 = (*make_number)(dVar3);
  return pNVar4;
}



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

void FUN_0002e0d0(void)

{
  int *piVar1;
  int iVar2;
  undefined8 uVar3;
  
  piVar1 = DAT_000df3c8 + -1;
  iVar2 = *DAT_000df3c8;
  DAT_000df3c8 = piVar1;
  if (*(int *)(iVar2 + 0x28) == 5) {
    uVar3 = 0x3ff0000000000000;
  }
  else {
    if (*(int *)(iVar2 + 0x28) == 1) {
      piVar1 = (int *)(iVar2 + 0x10);
      *piVar1 = *piVar1 + -1;
      if (*piVar1 == 0) {
        FUN_00075360(iVar2);
      }
    }
    uVar3 = 0;
  }
  (*(code *)PTR_FUN_000dd94c)(uVar3);
  return;
}


PUSH EBX
CALL 0x00016f80
ADD EBX,0xaec0e
SUB ESP,0x8
LEA EDX,[EBX + 0x26e4]
MOV EAX,dword ptr [EDX]
LEA ECX,[EAX + -0x4]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + 0x28]
CMP EAX,0x5
JZ 0x0002e128
CMP EAX,0x1
JZ 0x0002e110
FLDZ
LEA EAX,[EBX + 0xc68]
SUB ESP,0x10
FSTP qword ptr [ESP]
CALL dword ptr [EAX]
ADD ESP,0x18
POP EBX
RET
SUB dword ptr [EDX + 0x10],0x1
JNZ 0x0002e0fb
SUB ESP,0xc
PUSH EDX
CALL 0x00075360
ADD ESP,0x10
JMP 0x0002e0fb
FLD1
JMP 0x0002e0fd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002e0d0(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}\n\n" comment (function_definition "void FUN_0002e0d0(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}" primitive_type (function_declarator "FUN_0002e0d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "piVar1 = DAT_000df3c8 + -1;" (assignment_expression "piVar1 = DAT_000df3c8 + -1" identifier = (binary_expression "DAT_000df3c8 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = *DAT_000df3c8;" (assignment_expression "iVar2 = *DAT_000df3c8" identifier = (pointer_expression "*DAT_000df3c8" * identifier)) ;) (expression_statement "DAT_000df3c8 = piVar1;" (assignment_expression "DAT_000df3c8 = piVar1" identifier = identifier) ;) (if_statement "if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 0x28) == 5)" ( (binary_expression "*(int *)(iVar2 + 0x28) == 5" (pointer_expression "*(int *)(iVar2 + 0x28)" * (cast_expression "(int *)(iVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0x3ff0000000000000;\n  }" { (expression_statement "uVar3 = 0x3ff0000000000000;" (assignment_expression "uVar3 = 0x3ff0000000000000" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" else (compound_statement "{\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" { (if_statement "if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x28) == 1)" ( (binary_expression "*(int *)(iVar2 + 0x28) == 1" (pointer_expression "*(int *)(iVar2 + 0x28)" * (cast_expression "(int *)(iVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }" { (expression_statement "piVar1 = (int *)(iVar2 + 0x10);" (assignment_expression "piVar1 = (int *)(iVar2 + 0x10)" identifier = (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n        FUN_00075360(iVar2);\n      }" { (expression_statement "FUN_00075360(iVar2);" (call_expression "FUN_00075360(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "(*(code *)PTR_FUN_000dd94c)(uVar3);" (call_expression "(*(code *)PTR_FUN_000dd94c)(uVar3)" (parenthesized_expression "(*(code *)PTR_FUN_000dd94c)" ( (pointer_expression "*(code *)PTR_FUN_000dd94c" * (cast_expression "(code *)PTR_FUN_000dd94c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nNODE * do_isarray(int nargs)\n\n{\n  STACK_ITEM *pSVar1;\n  char **ppcVar2;\n  double dVar3;\n  NODE *pNVar4;\n  \n  pSVar1 = stack_ptr + -1;\n  pNVar4 = stack_ptr->rptr;\n  stack_ptr = pSVar1;\n  if (pNVar4->type == Node_var_array) {\n    dVar3 = 1.0;\n  }\n  else {\n    if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }\n    dVar3 = 0.0;\n  }\n  pNVar4 = (*make_number)(dVar3);\n  return pNVar4;\n}\n\n" comment comment (function_definition "NODE * do_isarray(int nargs)\n\n{\n  STACK_ITEM *pSVar1;\n  char **ppcVar2;\n  double dVar3;\n  NODE *pNVar4;\n  \n  pSVar1 = stack_ptr + -1;\n  pNVar4 = stack_ptr->rptr;\n  stack_ptr = pSVar1;\n  if (pNVar4->type == Node_var_array) {\n    dVar3 = 1.0;\n  }\n  else {\n    if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }\n    dVar3 = 0.0;\n  }\n  pNVar4 = (*make_number)(dVar3);\n  return pNVar4;\n}" type_identifier (pointer_declarator "* do_isarray(int nargs)" * (function_declarator "do_isarray(int nargs)" identifier (parameter_list "(int nargs)" ( (parameter_declaration "int nargs" primitive_type identifier) )))) (compound_statement "{\n  STACK_ITEM *pSVar1;\n  char **ppcVar2;\n  double dVar3;\n  NODE *pNVar4;\n  \n  pSVar1 = stack_ptr + -1;\n  pNVar4 = stack_ptr->rptr;\n  stack_ptr = pSVar1;\n  if (pNVar4->type == Node_var_array) {\n    dVar3 = 1.0;\n  }\n  else {\n    if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }\n    dVar3 = 0.0;\n  }\n  pNVar4 = (*make_number)(dVar3);\n  return pNVar4;\n}" { (declaration "STACK_ITEM *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "NODE *pNVar4;" type_identifier (pointer_declarator "*pNVar4" * identifier) ;) (expression_statement "pSVar1 = stack_ptr + -1;" (assignment_expression "pSVar1 = stack_ptr + -1" identifier = (binary_expression "stack_ptr + -1" identifier + number_literal)) ;) (expression_statement "pNVar4 = stack_ptr->rptr;" (assignment_expression "pNVar4 = stack_ptr->rptr" identifier = (field_expression "stack_ptr->rptr" identifier -> field_identifier)) ;) (expression_statement "stack_ptr = pSVar1;" (assignment_expression "stack_ptr = pSVar1" identifier = identifier) ;) (if_statement "if (pNVar4->type == Node_var_array) {\n    dVar3 = 1.0;\n  }\n  else {\n    if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }\n    dVar3 = 0.0;\n  }" if (parenthesized_expression "(pNVar4->type == Node_var_array)" ( (binary_expression "pNVar4->type == Node_var_array" (field_expression "pNVar4->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    dVar3 = 1.0;\n  }" { (expression_statement "dVar3 = 1.0;" (assignment_expression "dVar3 = 1.0" identifier = number_literal) ;) }) (else_clause "else {\n    if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }\n    dVar3 = 0.0;\n  }" else (compound_statement "{\n    if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }\n    dVar3 = 0.0;\n  }" { (if_statement "if (pNVar4->type == Node_val) {\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }" if (parenthesized_expression "(pNVar4->type == Node_val)" ( (binary_expression "pNVar4->type == Node_val" (field_expression "pNVar4->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      ppcVar2 = &(pNVar4->sub).nodep.name;\n      *ppcVar2 = *ppcVar2 + -1;\n      if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }\n    }" { (expression_statement "ppcVar2 = &(pNVar4->sub).nodep.name;" (assignment_expression "ppcVar2 = &(pNVar4->sub).nodep.name" identifier = (pointer_expression "&(pNVar4->sub).nodep.name" & (field_expression "(pNVar4->sub).nodep.name" (field_expression "(pNVar4->sub).nodep" (parenthesized_expression "(pNVar4->sub)" ( (field_expression "pNVar4->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (expression_statement "*ppcVar2 = *ppcVar2 + -1;" (assignment_expression "*ppcVar2 = *ppcVar2 + -1" (pointer_expression "*ppcVar2" * identifier) = (binary_expression "*ppcVar2 + -1" (pointer_expression "*ppcVar2" * identifier) + number_literal)) ;) (if_statement "if (*ppcVar2 == (char *)0x0) {\n        r_unref(pNVar4);\n      }" if (parenthesized_expression "(*ppcVar2 == (char *)0x0)" ( (binary_expression "*ppcVar2 == (char *)0x0" (pointer_expression "*ppcVar2" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        r_unref(pNVar4);\n      }" { (expression_statement "r_unref(pNVar4);" (call_expression "r_unref(pNVar4)" identifier (argument_list "(pNVar4)" ( identifier ))) ;) })) })) (expression_statement "dVar3 = 0.0;" (assignment_expression "dVar3 = 0.0" identifier = number_literal) ;) }))) (expression_statement "pNVar4 = (*make_number)(dVar3);" (assignment_expression "pNVar4 = (*make_number)(dVar3)" identifier = (call_expression "(*make_number)(dVar3)" (parenthesized_expression "(*make_number)" ( (pointer_expression "*make_number" * identifier) )) (argument_list "(dVar3)" ( identifier )))) ;) (return_statement "return pNVar4;" return identifier ;) })))
(translation_unit "void FUN_0002e0d0(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}\n\n" (function_definition "void FUN_0002e0d0(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}" primitive_type (function_declarator "FUN_0002e0d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "piVar1 = DAT_000df3c8 + -1;" (assignment_expression "piVar1 = DAT_000df3c8 + -1" identifier = (binary_expression "DAT_000df3c8 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = *DAT_000df3c8;" (assignment_expression "iVar2 = *DAT_000df3c8" identifier = (pointer_expression "*DAT_000df3c8" * identifier)) ;) (expression_statement "DAT_000df3c8 = piVar1;" (assignment_expression "DAT_000df3c8 = piVar1" identifier = identifier) ;) (if_statement "if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 0x28) == 5)" ( (binary_expression "*(int *)(iVar2 + 0x28) == 5" (pointer_expression "*(int *)(iVar2 + 0x28)" * (cast_expression "(int *)(iVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0x3ff0000000000000;\n  }" { (expression_statement "uVar3 = 0x3ff0000000000000;" (assignment_expression "uVar3 = 0x3ff0000000000000" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" else (compound_statement "{\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" { (if_statement "if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x28) == 1)" ( (binary_expression "*(int *)(iVar2 + 0x28) == 1" (pointer_expression "*(int *)(iVar2 + 0x28)" * (cast_expression "(int *)(iVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }" { (expression_statement "piVar1 = (int *)(iVar2 + 0x10);" (assignment_expression "piVar1 = (int *)(iVar2 + 0x10)" identifier = (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n        FUN_00075360(iVar2);\n      }" { (expression_statement "FUN_00075360(iVar2);" (call_expression "FUN_00075360(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "(*(code *)PTR_FUN_000dd94c)(uVar3);" (call_expression "(*(code *)PTR_FUN_000dd94c)(uVar3)" (parenthesized_expression "(*(code *)PTR_FUN_000dd94c)" ( (pointer_expression "*(code *)PTR_FUN_000dd94c" * (cast_expression "(code *)PTR_FUN_000dd94c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0002e0d0(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002e0d0(void)" (identifier "FUN_0002e0d0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  piVar1 = DAT_000df3c8 + -1;\n  iVar2 = *DAT_000df3c8;\n  DAT_000df3c8 = piVar1;\n  if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }\n  (*(code *)PTR_FUN_000dd94c)(uVar3);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "piVar1 = DAT_000df3c8 + -1;" (assignment_expression "piVar1 = DAT_000df3c8 + -1" (identifier "piVar1") (= "=") (binary_expression "DAT_000df3c8 + -1" (identifier "DAT_000df3c8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = *DAT_000df3c8;" (assignment_expression "iVar2 = *DAT_000df3c8" (identifier "iVar2") (= "=") (pointer_expression "*DAT_000df3c8" (* "*") (identifier "DAT_000df3c8"))) (; ";")) (expression_statement "DAT_000df3c8 = piVar1;" (assignment_expression "DAT_000df3c8 = piVar1" (identifier "DAT_000df3c8") (= "=") (identifier "piVar1")) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x28) == 5) {\n    uVar3 = 0x3ff0000000000000;\n  }\n  else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x28) == 5)" (( "(") (binary_expression "*(int *)(iVar2 + 0x28) == 5" (pointer_expression "*(int *)(iVar2 + 0x28)" (* "*") (cast_expression "(int *)(iVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x28)" (( "(") (binary_expression "iVar2 + 0x28" (identifier "iVar2") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "5")) () ")")) (compound_statement "{\n    uVar3 = 0x3ff0000000000000;\n  }" ({ "{") (expression_statement "uVar3 = 0x3ff0000000000000;" (assignment_expression "uVar3 = 0x3ff0000000000000" (identifier "uVar3") (= "=") (number_literal "0x3ff0000000000000")) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }\n    uVar3 = 0;\n  }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0x28) == 1) {\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x28) == 1)" (( "(") (binary_expression "*(int *)(iVar2 + 0x28) == 1" (pointer_expression "*(int *)(iVar2 + 0x28)" (* "*") (cast_expression "(int *)(iVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x28)" (( "(") (binary_expression "iVar2 + 0x28" (identifier "iVar2") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      piVar1 = (int *)(iVar2 + 0x10);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }\n    }" ({ "{") (expression_statement "piVar1 = (int *)(iVar2 + 0x10);" (assignment_expression "piVar1 = (int *)(iVar2 + 0x10)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*piVar1 == 0) {\n        FUN_00075360(iVar2);\n      }" (if "if") (parenthesized_expression "(*piVar1 == 0)" (( "(") (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00075360(iVar2);\n      }" ({ "{") (expression_statement "FUN_00075360(iVar2);" (call_expression "FUN_00075360(iVar2)" (identifier "FUN_00075360") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_FUN_000dd94c)(uVar3);" (call_expression "(*(code *)PTR_FUN_000dd94c)(uVar3)" (parenthesized_expression "(*(code *)PTR_FUN_000dd94c)" (( "(") (pointer_expression "*(code *)PTR_FUN_000dd94c" (* "*") (cast_expression "(code *)PTR_FUN_000dd94c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000dd94c"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 * function_1(int nargs)

{
  type_2 *pSVar1;
  char **ppcVar2;
  double dVar3;
  type_1 *pNVar4;
  
  pSVar1 = var_1 + -1;
  pNVar4 = var_1->rptr;
  var_1 = pSVar1;
  if (pNVar4->type == var_2) {
    dVar3 = 1.0;
  }
  else {
    if (pNVar4->type == var_3) {
      ppcVar2 = &(pNVar4->sub).nodep.name;
      *ppcVar2 = *ppcVar2 + -1;
      if (*ppcVar2 == (char *)0x0) {
        var_4(pNVar4);
      }
    }
    dVar3 = 0.0;
  }
  pNVar4 = (*make_number)(dVar3);
  return pNVar4;
}


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

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

void MASKED(void)

{
  int *piVar1;
  int iVar2;
  undefined8 uVar3;
  
  piVar1 = DAT_000df3c8 + -1;
  iVar2 = *DAT_000df3c8;
  DAT_000df3c8 = piVar1;
  if (*(int *)(iVar2 + 0x28) == 5) {
    uVar3 = 0x3ff0000000000000;
  }
  else {
    if (*(int *)(iVar2 + 0x28) == 1) {
      piVar1 = (int *)(iVar2 + 0x10);
      *piVar1 = *piVar1 + -1;
      if (*piVar1 == 0) {
        FUN_00075360(iVar2);
      }
    }
    uVar3 = 0;
  }
  (*(code *)PTR_FUN_000dd94c)(uVar3);
  return;
}

