
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void update_NR(void)

{
  wchar_t wVar1;
  double dVar2;
  NODE *pNVar3;
  NODE *pNVar4;
  
  pNVar4 = NR_node;
  dVar2 = (double)NR;
  pNVar3 = *(NODE **)&NR_node->sub;
  if ((pNVar3->sub).val.fltnum != dVar2) {
    wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';
    (pNVar3->sub).val.sref = wVar1;
    if (wVar1 < L'\x01') {
      r_unref(pNVar3);
      dVar2 = (double)NR;
      pNVar4 = NR_node;
    }
    pNVar3 = (*make_number)(dVar2);
    (pNVar4->sub).nodep.l.lptr = pNVar3;
  }
  return;
}



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

void FUN_000491f0(void)

{
  double *pdVar1;
  int iVar2;
  double dVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  puVar5 = DAT_000c49f0;
  dVar3 = (double)DAT_000c49c4;
  pdVar1 = (double *)*DAT_000c49f0;
  if (*pdVar1 != dVar3) {
    iVar2 = *(int *)(pdVar1 + 2);
    *(int *)(pdVar1 + 2) = iVar2 + -1;
    if (iVar2 + -1 < 1) {
      FUN_000668b0(pdVar1);
      dVar3 = (double)DAT_000c49c4;
      puVar5 = DAT_000c49f0;
    }
    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);
    *puVar5 = uVar4;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016f50
ADD EBX,0x75aeb
SUB ESP,0xc
LEA EDI,[EBX + 0x5d0c]
LEA EBP,[EBX + 0x5ce0]
MOV ESI,dword ptr [EDI]
FILD dword ptr [EBP]
MOV EAX,dword ptr [ESI]
FLD qword ptr [EAX]
FUCOMIP ST0,ST1
JP 0x0004921d
JZ 0x00049240
MOV ECX,dword ptr [EAX + 0x10]
LEA EDX,[ECX + -0x1]
TEST EDX,EDX
MOV dword ptr [EAX + 0x10],EDX
JLE 0x00049250
LEA EAX,[EBX + 0xc68]
SUB ESP,0x10
FSTP qword ptr [ESP]
CALL dword ptr [EAX]
ADD ESP,0x10
MOV dword ptr [ESI],EAX
JMP 0x00049242
FSTP ST0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
FSTP ST0
SUB ESP,0xc
PUSH EAX
CALL 0x000668b0
MOV ESI,dword ptr [EDI]
FILD dword ptr [EBP]
ADD ESP,0x10
JMP 0x0004922a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000491f0(void)\n\n{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000491f0(void)\n\n{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000491f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}" { (declaration "double *pdVar1;" primitive_type (pointer_declarator "*pdVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar5 = DAT_000c49f0;" (assignment_expression "puVar5 = DAT_000c49f0" identifier = identifier) ;) (expression_statement "dVar3 = (double)DAT_000c49c4;" (assignment_expression "dVar3 = (double)DAT_000c49c4" identifier = (cast_expression "(double)DAT_000c49c4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "pdVar1 = (double *)*DAT_000c49f0;" (assignment_expression "pdVar1 = (double *)*DAT_000c49f0" identifier = (cast_expression "(double *)*DAT_000c49f0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_000c49f0" * identifier))) ;) (if_statement "if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }" if (parenthesized_expression "(*pdVar1 != dVar3)" ( (binary_expression "*pdVar1 != dVar3" (pointer_expression "*pdVar1" * identifier) != identifier) )) (compound_statement "{\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }" { (expression_statement "iVar2 = *(int *)(pdVar1 + 2);" (assignment_expression "iVar2 = *(int *)(pdVar1 + 2)" identifier = (pointer_expression "*(int *)(pdVar1 + 2)" * (cast_expression "(int *)(pdVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 2)" ( (binary_expression "pdVar1 + 2" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(pdVar1 + 2) = iVar2 + -1;" (assignment_expression "*(int *)(pdVar1 + 2) = iVar2 + -1" (pointer_expression "*(int *)(pdVar1 + 2)" * (cast_expression "(int *)(pdVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 2)" ( (binary_expression "pdVar1 + 2" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }" if (parenthesized_expression "(iVar2 + -1 < 1)" ( (binary_expression "iVar2 + -1 < 1" (binary_expression "iVar2 + -1" identifier + number_literal) < number_literal) )) (compound_statement "{\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }" { (expression_statement "FUN_000668b0(pdVar1);" (call_expression "FUN_000668b0(pdVar1)" identifier (argument_list "(pdVar1)" ( identifier ))) ;) (expression_statement "dVar3 = (double)DAT_000c49c4;" (assignment_expression "dVar3 = (double)DAT_000c49c4" identifier = (cast_expression "(double)DAT_000c49c4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "puVar5 = DAT_000c49f0;" (assignment_expression "puVar5 = DAT_000c49f0" identifier = identifier) ;) })) (expression_statement "uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);" (assignment_expression "uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3)" identifier = (call_expression "(*(code *)PTR_FUN_000bf94c)(dVar3)" (parenthesized_expression "(*(code *)PTR_FUN_000bf94c)" ( (pointer_expression "*(code *)PTR_FUN_000bf94c" * (cast_expression "(code *)PTR_FUN_000bf94c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dVar3)" ( identifier )))) ;) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" * identifier) = 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 -- yet parameter storage is locked */\n\nvoid update_NR(void)\n\n{\n  wchar_t wVar1;\n  double dVar2;\n  NODE *pNVar3;\n  NODE *pNVar4;\n  \n  pNVar4 = NR_node;\n  dVar2 = (double)NR;\n  pNVar3 = *(NODE **)&NR_node->sub;\n  if ((pNVar3->sub).val.fltnum != dVar2) {\n    wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';\n    (pNVar3->sub).val.sref = wVar1;\n    if (wVar1 < L'\x01') {\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }\n    pNVar3 = (*make_number)(dVar2);\n    (pNVar4->sub).nodep.l.lptr = pNVar3;\n  }\n  return;\n}\n\n" comment comment (function_definition "void update_NR(void)\n\n{\n  wchar_t wVar1;\n  double dVar2;\n  NODE *pNVar3;\n  NODE *pNVar4;\n  \n  pNVar4 = NR_node;\n  dVar2 = (double)NR;\n  pNVar3 = *(NODE **)&NR_node->sub;\n  if ((pNVar3->sub).val.fltnum != dVar2) {\n    wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';\n    (pNVar3->sub).val.sref = wVar1;\n    if (wVar1 < L'\x01') {\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }\n    pNVar3 = (*make_number)(dVar2);\n    (pNVar4->sub).nodep.l.lptr = pNVar3;\n  }\n  return;\n}" primitive_type (function_declarator "update_NR(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  wchar_t wVar1;\n  double dVar2;\n  NODE *pNVar3;\n  NODE *pNVar4;\n  \n  pNVar4 = NR_node;\n  dVar2 = (double)NR;\n  pNVar3 = *(NODE **)&NR_node->sub;\n  if ((pNVar3->sub).val.fltnum != dVar2) {\n    wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';\n    (pNVar3->sub).val.sref = wVar1;\n    if (wVar1 < L'\x01') {\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }\n    pNVar3 = (*make_number)(dVar2);\n    (pNVar4->sub).nodep.l.lptr = pNVar3;\n  }\n  return;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "NODE *pNVar3;" type_identifier (pointer_declarator "*pNVar3" * identifier) ;) (declaration "NODE *pNVar4;" type_identifier (pointer_declarator "*pNVar4" * identifier) ;) (expression_statement "pNVar4 = NR_node;" (assignment_expression "pNVar4 = NR_node" identifier = identifier) ;) (expression_statement "dVar2 = (double)NR;" (assignment_expression "dVar2 = (double)NR" identifier = (cast_expression "(double)NR" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "pNVar3 = *(NODE **)&NR_node->sub;" (assignment_expression "pNVar3 = *(NODE **)&NR_node->sub" identifier = (pointer_expression "*(NODE **)&NR_node->sub" * (cast_expression "(NODE **)&NR_node->sub" ( (type_descriptor "NODE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&NR_node->sub" & (field_expression "NR_node->sub" identifier -> field_identifier))))) ;) (if_statement "if ((pNVar3->sub).val.fltnum != dVar2) {\n    wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';\n    (pNVar3->sub).val.sref = wVar1;\n    if (wVar1 < L'\x01') {\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }\n    pNVar3 = (*make_number)(dVar2);\n    (pNVar4->sub).nodep.l.lptr = pNVar3;\n  }" if (parenthesized_expression "((pNVar3->sub).val.fltnum != dVar2)" ( (binary_expression "(pNVar3->sub).val.fltnum != dVar2" (field_expression "(pNVar3->sub).val.fltnum" (field_expression "(pNVar3->sub).val" (parenthesized_expression "(pNVar3->sub)" ( (field_expression "pNVar3->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) != identifier) )) (compound_statement "{\n    wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';\n    (pNVar3->sub).val.sref = wVar1;\n    if (wVar1 < L'\x01') {\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }\n    pNVar3 = (*make_number)(dVar2);\n    (pNVar4->sub).nodep.l.lptr = pNVar3;\n  }" { (expression_statement "wVar1 = (pNVar3->sub).val.sref + L'\xffffffff';" (assignment_expression "wVar1 = (pNVar3->sub).val.sref + L'\xffffffff'" identifier = (binary_expression "(pNVar3->sub).val.sref + L'\xffffffff'" (field_expression "(pNVar3->sub).val.sref" (field_expression "(pNVar3->sub).val" (parenthesized_expression "(pNVar3->sub)" ( (field_expression "pNVar3->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) + (char_literal "L'\xffffffff'" L' escape_sequence character character character character '))) ;) (expression_statement "(pNVar3->sub).val.sref = wVar1;" (assignment_expression "(pNVar3->sub).val.sref = wVar1" (field_expression "(pNVar3->sub).val.sref" (field_expression "(pNVar3->sub).val" (parenthesized_expression "(pNVar3->sub)" ( (field_expression "pNVar3->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (if_statement "if (wVar1 < L'\x01') {\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }" if (parenthesized_expression "(wVar1 < L'\x01')" ( (binary_expression "wVar1 < L'\x01'" identifier < (char_literal "L'\x01'" L' escape_sequence ')) )) (compound_statement "{\n      r_unref(pNVar3);\n      dVar2 = (double)NR;\n      pNVar4 = NR_node;\n    }" { (expression_statement "r_unref(pNVar3);" (call_expression "r_unref(pNVar3)" identifier (argument_list "(pNVar3)" ( identifier ))) ;) (expression_statement "dVar2 = (double)NR;" (assignment_expression "dVar2 = (double)NR" identifier = (cast_expression "(double)NR" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "pNVar4 = NR_node;" (assignment_expression "pNVar4 = NR_node" identifier = identifier) ;) })) (expression_statement "pNVar3 = (*make_number)(dVar2);" (assignment_expression "pNVar3 = (*make_number)(dVar2)" identifier = (call_expression "(*make_number)(dVar2)" (parenthesized_expression "(*make_number)" ( (pointer_expression "*make_number" * identifier) )) (argument_list "(dVar2)" ( identifier )))) ;) (expression_statement "(pNVar4->sub).nodep.l.lptr = pNVar3;" (assignment_expression "(pNVar4->sub).nodep.l.lptr = pNVar3" (field_expression "(pNVar4->sub).nodep.l.lptr" (field_expression "(pNVar4->sub).nodep.l" (field_expression "(pNVar4->sub).nodep" (parenthesized_expression "(pNVar4->sub)" ( (field_expression "pNVar4->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000491f0(void)\n\n{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000491f0(void)\n\n{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000491f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}" { (declaration "double *pdVar1;" primitive_type (pointer_declarator "*pdVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar5 = DAT_000c49f0;" (assignment_expression "puVar5 = DAT_000c49f0" identifier = identifier) ;) (expression_statement "dVar3 = (double)DAT_000c49c4;" (assignment_expression "dVar3 = (double)DAT_000c49c4" identifier = (cast_expression "(double)DAT_000c49c4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "pdVar1 = (double *)*DAT_000c49f0;" (assignment_expression "pdVar1 = (double *)*DAT_000c49f0" identifier = (cast_expression "(double *)*DAT_000c49f0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_000c49f0" * identifier))) ;) (if_statement "if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }" if (parenthesized_expression "(*pdVar1 != dVar3)" ( (binary_expression "*pdVar1 != dVar3" (pointer_expression "*pdVar1" * identifier) != identifier) )) (compound_statement "{\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }" { (expression_statement "iVar2 = *(int *)(pdVar1 + 2);" (assignment_expression "iVar2 = *(int *)(pdVar1 + 2)" identifier = (pointer_expression "*(int *)(pdVar1 + 2)" * (cast_expression "(int *)(pdVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 2)" ( (binary_expression "pdVar1 + 2" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(pdVar1 + 2) = iVar2 + -1;" (assignment_expression "*(int *)(pdVar1 + 2) = iVar2 + -1" (pointer_expression "*(int *)(pdVar1 + 2)" * (cast_expression "(int *)(pdVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 2)" ( (binary_expression "pdVar1 + 2" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }" if (parenthesized_expression "(iVar2 + -1 < 1)" ( (binary_expression "iVar2 + -1 < 1" (binary_expression "iVar2 + -1" identifier + number_literal) < number_literal) )) (compound_statement "{\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }" { (expression_statement "FUN_000668b0(pdVar1);" (call_expression "FUN_000668b0(pdVar1)" identifier (argument_list "(pdVar1)" ( identifier ))) ;) (expression_statement "dVar3 = (double)DAT_000c49c4;" (assignment_expression "dVar3 = (double)DAT_000c49c4" identifier = (cast_expression "(double)DAT_000c49c4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "puVar5 = DAT_000c49f0;" (assignment_expression "puVar5 = DAT_000c49f0" identifier = identifier) ;) })) (expression_statement "uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);" (assignment_expression "uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3)" identifier = (call_expression "(*(code *)PTR_FUN_000bf94c)(dVar3)" (parenthesized_expression "(*(code *)PTR_FUN_000bf94c)" ( (pointer_expression "*(code *)PTR_FUN_000bf94c" * (cast_expression "(code *)PTR_FUN_000bf94c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dVar3)" ( identifier )))) ;) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" * identifier) = 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 ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_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) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000491f0(void)\n\n{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000491f0(void)" (identifier "FUN_000491f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  double *pdVar1;\n  int iVar2;\n  double dVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = DAT_000c49f0;\n  dVar3 = (double)DAT_000c49c4;\n  pdVar1 = (double *)*DAT_000c49f0;\n  if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }\n  return;\n}" ({ "{") (declaration "double *pdVar1;" (primitive_type "double") (pointer_declarator "*pdVar1" (* "*") (identifier "pdVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "double dVar3;" (primitive_type "double") (identifier "dVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar5 = DAT_000c49f0;" (assignment_expression "puVar5 = DAT_000c49f0" (identifier "puVar5") (= "=") (identifier "DAT_000c49f0")) (; ";")) (expression_statement "dVar3 = (double)DAT_000c49c4;" (assignment_expression "dVar3 = (double)DAT_000c49c4" (identifier "dVar3") (= "=") (cast_expression "(double)DAT_000c49c4" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_000c49c4"))) (; ";")) (expression_statement "pdVar1 = (double *)*DAT_000c49f0;" (assignment_expression "pdVar1 = (double *)*DAT_000c49f0" (identifier "pdVar1") (= "=") (cast_expression "(double *)*DAT_000c49f0" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_000c49f0" (* "*") (identifier "DAT_000c49f0")))) (; ";")) (if_statement "if (*pdVar1 != dVar3) {\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }" (if "if") (parenthesized_expression "(*pdVar1 != dVar3)" (( "(") (binary_expression "*pdVar1 != dVar3" (pointer_expression "*pdVar1" (* "*") (identifier "pdVar1")) (!= "!=") (identifier "dVar3")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(pdVar1 + 2);\n    *(int *)(pdVar1 + 2) = iVar2 + -1;\n    if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }\n    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);\n    *puVar5 = uVar4;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(pdVar1 + 2);" (assignment_expression "iVar2 = *(int *)(pdVar1 + 2)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(pdVar1 + 2)" (* "*") (cast_expression "(int *)(pdVar1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pdVar1 + 2)" (( "(") (binary_expression "pdVar1 + 2" (identifier "pdVar1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "*(int *)(pdVar1 + 2) = iVar2 + -1;" (assignment_expression "*(int *)(pdVar1 + 2) = iVar2 + -1" (pointer_expression "*(int *)(pdVar1 + 2)" (* "*") (cast_expression "(int *)(pdVar1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pdVar1 + 2)" (( "(") (binary_expression "pdVar1 + 2" (identifier "pdVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar2 + -1 < 1) {\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }" (if "if") (parenthesized_expression "(iVar2 + -1 < 1)" (( "(") (binary_expression "iVar2 + -1 < 1" (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      FUN_000668b0(pdVar1);\n      dVar3 = (double)DAT_000c49c4;\n      puVar5 = DAT_000c49f0;\n    }" ({ "{") (expression_statement "FUN_000668b0(pdVar1);" (call_expression "FUN_000668b0(pdVar1)" (identifier "FUN_000668b0") (argument_list "(pdVar1)" (( "(") (identifier "pdVar1") () ")"))) (; ";")) (expression_statement "dVar3 = (double)DAT_000c49c4;" (assignment_expression "dVar3 = (double)DAT_000c49c4" (identifier "dVar3") (= "=") (cast_expression "(double)DAT_000c49c4" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_000c49c4"))) (; ";")) (expression_statement "puVar5 = DAT_000c49f0;" (assignment_expression "puVar5 = DAT_000c49f0" (identifier "puVar5") (= "=") (identifier "DAT_000c49f0")) (; ";")) (} "}"))) (expression_statement "uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);" (assignment_expression "uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_FUN_000bf94c)(dVar3)" (parenthesized_expression "(*(code *)PTR_FUN_000bf94c)" (( "(") (pointer_expression "*(code *)PTR_FUN_000bf94c" (* "*") (cast_expression "(code *)PTR_FUN_000bf94c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000bf94c"))) () ")")) (argument_list "(dVar3)" (( "(") (identifier "dVar3") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 var_2;
  double var_1;
  type_2 *pNVar3;
  type_2 *pNVar4;
  
  pNVar4 = NR_node;
  var_1 = (double)NR;
  pNVar3 = *(type_2 **)&NR_node->sub;
  if ((pNVar3->sub).val.fltnum != var_1) {
    var_2 = (pNVar3->sub).val.sref + L'\xffffffff';
    (pNVar3->sub).val.sref = var_2;
    if (var_2 < L'\x01') {
      var_3(pNVar3);
      var_1 = (double)NR;
      pNVar4 = NR_node;
    }
    pNVar3 = (*make_number)(var_1);
    (pNVar4->sub).nodep.l.lptr = pNVar3;
  }
  return;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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))))))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement))))

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

void MASKED(void)

{
  double *pdVar1;
  int iVar2;
  double dVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  puVar5 = DAT_000c49f0;
  dVar3 = (double)DAT_000c49c4;
  pdVar1 = (double *)*DAT_000c49f0;
  if (*pdVar1 != dVar3) {
    iVar2 = *(int *)(pdVar1 + 2);
    *(int *)(pdVar1 + 2) = iVar2 + -1;
    if (iVar2 + -1 < 1) {
      FUN_000668b0(pdVar1);
      dVar3 = (double)DAT_000c49c4;
      puVar5 = DAT_000c49f0;
    }
    uVar4 = (*(code *)PTR_FUN_000bf94c)(dVar3);
    *puVar5 = uVar4;
  }
  return;
}

