
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention */

double physmem_total(void)

{
  int iVar1;
  double dVar2;
  long lVar3;
  long lVar4;
  int iVar5;
  int in_GS_OFFSET;
  sysinfo si;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  lVar3 = sysconf(0x55);
  lVar4 = sysconf(0x1e);
  if ((lVar3 < 0) || (lVar4 < 0)) {
    iVar5 = sysinfo((sysinfo *)&si);
    if (iVar5 == 0) {
      dVar2 = (double)si.mem_unit * (double)si.totalram;
    }
    else {
      dVar2 = (double)_DAT_0002a428;
    }
  }
  else {
    dVar2 = (double)lVar4 * (double)lVar3;
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return dVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

longdouble FUN_0001f890(void)

{
  long lVar1;
  long lVar2;
  int iVar3;
  int in_GS_OFFSET;
  longdouble lVar4;
  sysinfo local_50;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x1f897;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  lVar1 = sysconf(0x55);
  lVar2 = sysconf(0x1e);
  if ((lVar1 < 0) || (lVar2 < 0)) {
    iVar3 = sysinfo(&local_50);
    if (iVar3 == 0) {
      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;
    }
    else {
      lVar4 = (longdouble)_DAT_0002a428;
    }
  }
  else {
    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return lVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00027310();
}


PUSH ESI
PUSH EBX
CALL 0x00015920
ADD EBX,0x13769
SUB ESP,0x70
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x68],EAX
XOR EAX,EAX
PUSH 0x55
CALL 0x000121f0
MOV dword ptr [ESP],0x1e
MOV ESI,EAX
CALL 0x000121f0
ADD ESP,0x10
TEST ESI,ESI
JS 0x0001f8cc
TEST EAX,EAX
JNS 0x0001f900
SUB ESP,0xc
LEA EAX,[ESP + 0x28]
PUSH EAX
CALL 0x000123c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001f910
FLD dword ptr [EBX + 0xffff7428]
MOV EAX,dword ptr [ESP + 0x5c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001f934
ADD ESP,0x64
POP EBX
POP ESI
RET
MOV dword ptr [ESP],ESI
FILD dword ptr [ESP]
MOV dword ptr [ESP],EAX
FILD dword ptr [ESP]
FMULP
JMP 0x0001f8e6
MOV EAX,dword ptr [ESP + 0x2c]
XOR EDX,EDX
MOV dword ptr [ESP + 0x4],EDX
XOR EDX,EDX
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [ESP + 0x50]
FILD qword ptr [ESP]
MOV dword ptr [ESP + 0x4],EDX
MOV dword ptr [ESP],EAX
FILD qword ptr [ESP]
FMULP
JMP 0x0001f8e6
FSTP ST0
CALL 0x00027310
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nlongdouble FUN_0001f890(void)\n\n{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00027310();\n}\n\n" comment comment (function_definition "longdouble FUN_0001f890(void)\n\n{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00027310();\n}" type_identifier (function_declarator "FUN_0001f890(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00027310();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "longdouble lVar4;" type_identifier identifier ;) (declaration "sysinfo local_50;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1f897;" (assignment_expression "uStack_c = 0x1f897" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = sysconf(0x55);" (assignment_expression "lVar1 = sysconf(0x55)" identifier = (call_expression "sysconf(0x55)" identifier (argument_list "(0x55)" ( number_literal )))) ;) (expression_statement "lVar2 = sysconf(0x1e);" (assignment_expression "lVar2 = sysconf(0x1e)" identifier = (call_expression "sysconf(0x1e)" identifier (argument_list "(0x1e)" ( number_literal )))) ;) (if_statement "if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" if (parenthesized_expression "((lVar1 < 0) || (lVar2 < 0))" ( (binary_expression "(lVar1 < 0) || (lVar2 < 0)" (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(lVar2 < 0)" ( (binary_expression "lVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }" { (expression_statement "iVar3 = sysinfo(&local_50);" (assignment_expression "iVar3 = sysinfo(&local_50)" identifier = (call_expression "sysinfo(&local_50)" identifier (argument_list "(&local_50)" ( (pointer_expression "&local_50" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }" { (expression_statement "lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;" (assignment_expression "lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram" identifier = (binary_expression "(longdouble)local_50.mem_unit * (longdouble)local_50.totalram" (cast_expression "(longdouble)local_50.mem_unit" ( (type_descriptor "longdouble" type_identifier) ) (field_expression "local_50.mem_unit" identifier . field_identifier)) * (cast_expression "(longdouble)local_50.totalram" ( (type_descriptor "longdouble" type_identifier) ) (field_expression "local_50.totalram" identifier . field_identifier)))) ;) }) (else_clause "else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" else (compound_statement "{\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" { (expression_statement "lVar4 = (longdouble)_DAT_0002a428;" (assignment_expression "lVar4 = (longdouble)_DAT_0002a428" identifier = (cast_expression "(longdouble)_DAT_0002a428" ( (type_descriptor "longdouble" type_identifier) ) identifier)) ;) }))) }) (else_clause "else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" else (compound_statement "{\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" { (expression_statement "lVar4 = (longdouble)lVar2 * (longdouble)lVar1;" (assignment_expression "lVar4 = (longdouble)lVar2 * (longdouble)lVar1" identifier = (binary_expression "(longdouble)lVar2 * (longdouble)lVar1" (cast_expression "(longdouble)lVar2" ( (type_descriptor "longdouble" type_identifier) ) identifier) * (cast_expression "(longdouble)lVar1" ( (type_descriptor "longdouble" type_identifier) ) identifier))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return lVar4;\n  }" { (return_statement "return lVar4;" return identifier ;) })) comment (expression_statement "FUN_00027310();" (call_expression "FUN_00027310()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n/* WARNING: Unknown calling convention */\n\ndouble physmem_total(void)\n\n{\n  int iVar1;\n  double dVar2;\n  long lVar3;\n  long lVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  sysinfo si;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar3 = sysconf(0x55);\n  lVar4 = sysconf(0x1e);\n  if ((lVar3 < 0) || (lVar4 < 0)) {\n    iVar5 = sysinfo((sysinfo *)&si);\n    if (iVar5 == 0) {\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }\n    else {\n      dVar2 = (double)_DAT_0002a428;\n    }\n  }\n  else {\n    dVar2 = (double)lVar4 * (double)lVar3;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return dVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "double physmem_total(void)\n\n{\n  int iVar1;\n  double dVar2;\n  long lVar3;\n  long lVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  sysinfo si;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar3 = sysconf(0x55);\n  lVar4 = sysconf(0x1e);\n  if ((lVar3 < 0) || (lVar4 < 0)) {\n    iVar5 = sysinfo((sysinfo *)&si);\n    if (iVar5 == 0) {\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }\n    else {\n      dVar2 = (double)_DAT_0002a428;\n    }\n  }\n  else {\n    dVar2 = (double)lVar4 * (double)lVar3;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return dVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "physmem_total(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  double dVar2;\n  long lVar3;\n  long lVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  sysinfo si;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar3 = sysconf(0x55);\n  lVar4 = sysconf(0x1e);\n  if ((lVar3 < 0) || (lVar4 < 0)) {\n    iVar5 = sysinfo((sysinfo *)&si);\n    if (iVar5 == 0) {\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }\n    else {\n      dVar2 = (double)_DAT_0002a428;\n    }\n  }\n  else {\n    dVar2 = (double)lVar4 * (double)lVar3;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return dVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sysinfo si;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = sysconf(0x55);" (assignment_expression "lVar3 = sysconf(0x55)" identifier = (call_expression "sysconf(0x55)" identifier (argument_list "(0x55)" ( number_literal )))) ;) (expression_statement "lVar4 = sysconf(0x1e);" (assignment_expression "lVar4 = sysconf(0x1e)" identifier = (call_expression "sysconf(0x1e)" identifier (argument_list "(0x1e)" ( number_literal )))) ;) (if_statement "if ((lVar3 < 0) || (lVar4 < 0)) {\n    iVar5 = sysinfo((sysinfo *)&si);\n    if (iVar5 == 0) {\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }\n    else {\n      dVar2 = (double)_DAT_0002a428;\n    }\n  }\n  else {\n    dVar2 = (double)lVar4 * (double)lVar3;\n  }" if (parenthesized_expression "((lVar3 < 0) || (lVar4 < 0))" ( (binary_expression "(lVar3 < 0) || (lVar4 < 0)" (parenthesized_expression "(lVar3 < 0)" ( (binary_expression "lVar3 < 0" identifier < number_literal) )) || (parenthesized_expression "(lVar4 < 0)" ( (binary_expression "lVar4 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    iVar5 = sysinfo((sysinfo *)&si);\n    if (iVar5 == 0) {\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }\n    else {\n      dVar2 = (double)_DAT_0002a428;\n    }\n  }" { (expression_statement "iVar5 = sysinfo((sysinfo *)&si);" (assignment_expression "iVar5 = sysinfo((sysinfo *)&si)" identifier = (call_expression "sysinfo((sysinfo *)&si)" identifier (argument_list "((sysinfo *)&si)" ( (cast_expression "(sysinfo *)&si" ( (type_descriptor "sysinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&si" & identifier)) )))) ;) (if_statement "if (iVar5 == 0) {\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }\n    else {\n      dVar2 = (double)_DAT_0002a428;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      dVar2 = (double)si.mem_unit * (double)si.totalram;\n    }" { (expression_statement "dVar2 = (double)si.mem_unit * (double)si.totalram;" (assignment_expression "dVar2 = (double)si.mem_unit * (double)si.totalram" identifier = (binary_expression "(double)si.mem_unit * (double)si.totalram" (cast_expression "(double)si.mem_unit" ( (type_descriptor "double" primitive_type) ) (field_expression "si.mem_unit" identifier . field_identifier)) * (cast_expression "(double)si.totalram" ( (type_descriptor "double" primitive_type) ) (field_expression "si.totalram" identifier . field_identifier)))) ;) }) (else_clause "else {\n      dVar2 = (double)_DAT_0002a428;\n    }" else (compound_statement "{\n      dVar2 = (double)_DAT_0002a428;\n    }" { (expression_statement "dVar2 = (double)_DAT_0002a428;" (assignment_expression "dVar2 = (double)_DAT_0002a428" identifier = (cast_expression "(double)_DAT_0002a428" ( (type_descriptor "double" primitive_type) ) identifier)) ;) }))) }) (else_clause "else {\n    dVar2 = (double)lVar4 * (double)lVar3;\n  }" else (compound_statement "{\n    dVar2 = (double)lVar4 * (double)lVar3;\n  }" { (expression_statement "dVar2 = (double)lVar4 * (double)lVar3;" (assignment_expression "dVar2 = (double)lVar4 * (double)lVar3" identifier = (binary_expression "(double)lVar4 * (double)lVar3" (cast_expression "(double)lVar4" ( (type_descriptor "double" primitive_type) ) identifier) * (cast_expression "(double)lVar3" ( (type_descriptor "double" primitive_type) ) identifier))) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return dVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return dVar2;\n  }" { (return_statement "return dVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "longdouble FUN_0001f890(void)\n\n{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    \n  FUN_00027310();\n}\n\n" (function_definition "longdouble FUN_0001f890(void)\n\n{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    \n  FUN_00027310();\n}" type_identifier (function_declarator "FUN_0001f890(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    \n  FUN_00027310();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "longdouble lVar4;" type_identifier identifier ;) (declaration "sysinfo local_50;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1f897;" (assignment_expression "uStack_c = 0x1f897" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = sysconf(0x55);" (assignment_expression "lVar1 = sysconf(0x55)" identifier = (call_expression "sysconf(0x55)" identifier (argument_list "(0x55)" ( number_literal )))) ;) (expression_statement "lVar2 = sysconf(0x1e);" (assignment_expression "lVar2 = sysconf(0x1e)" identifier = (call_expression "sysconf(0x1e)" identifier (argument_list "(0x1e)" ( number_literal )))) ;) (if_statement "if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" if (parenthesized_expression "((lVar1 < 0) || (lVar2 < 0))" ( (binary_expression "(lVar1 < 0) || (lVar2 < 0)" (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(lVar2 < 0)" ( (binary_expression "lVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }" { (expression_statement "iVar3 = sysinfo(&local_50);" (assignment_expression "iVar3 = sysinfo(&local_50)" identifier = (call_expression "sysinfo(&local_50)" identifier (argument_list "(&local_50)" ( (pointer_expression "&local_50" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }" { (expression_statement "lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;" (assignment_expression "lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram" identifier = (binary_expression "(longdouble)local_50.mem_unit * (longdouble)local_50.totalram" (cast_expression "(longdouble)local_50.mem_unit" ( (type_descriptor "longdouble" type_identifier) ) (field_expression "local_50.mem_unit" identifier . field_identifier)) * (cast_expression "(longdouble)local_50.totalram" ( (type_descriptor "longdouble" type_identifier) ) (field_expression "local_50.totalram" identifier . field_identifier)))) ;) }) (else_clause "else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" else (compound_statement "{\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" { (expression_statement "lVar4 = (longdouble)_DAT_0002a428;" (assignment_expression "lVar4 = (longdouble)_DAT_0002a428" identifier = (cast_expression "(longdouble)_DAT_0002a428" ( (type_descriptor "longdouble" type_identifier) ) identifier)) ;) }))) }) (else_clause "else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" else (compound_statement "{\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" { (expression_statement "lVar4 = (longdouble)lVar2 * (longdouble)lVar1;" (assignment_expression "lVar4 = (longdouble)lVar2 * (longdouble)lVar1" identifier = (binary_expression "(longdouble)lVar2 * (longdouble)lVar1" (cast_expression "(longdouble)lVar2" ( (type_descriptor "longdouble" type_identifier) ) identifier) * (cast_expression "(longdouble)lVar1" ( (type_descriptor "longdouble" type_identifier) ) identifier))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return lVar4;\n  }" { (return_statement "return lVar4;" return identifier ;) })) (expression_statement "FUN_00027310();" (call_expression "FUN_00027310()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) * (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "longdouble FUN_0001f890(void)\n\n{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    \n  FUN_00027310();\n}" (type_identifier "longdouble") (function_declarator "FUN_0001f890(void)" (identifier "FUN_0001f890") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  longdouble lVar4;\n  sysinfo local_50;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1f897;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  lVar1 = sysconf(0x55);\n  lVar2 = sysconf(0x1e);\n  if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }\n                    \n  FUN_00027310();\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "longdouble lVar4;" (type_identifier "longdouble") (identifier "lVar4") (; ";")) (declaration "sysinfo local_50;" (type_identifier "sysinfo") (identifier "local_50") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x1f897;" (assignment_expression "uStack_c = 0x1f897" (identifier "uStack_c") (= "=") (number_literal "0x1f897")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "lVar1 = sysconf(0x55);" (assignment_expression "lVar1 = sysconf(0x55)" (identifier "lVar1") (= "=") (call_expression "sysconf(0x55)" (identifier "sysconf") (argument_list "(0x55)" (( "(") (number_literal "0x55") () ")")))) (; ";")) (expression_statement "lVar2 = sysconf(0x1e);" (assignment_expression "lVar2 = sysconf(0x1e)" (identifier "lVar2") (= "=") (call_expression "sysconf(0x1e)" (identifier "sysconf") (argument_list "(0x1e)" (( "(") (number_literal "0x1e") () ")")))) (; ";")) (if_statement "if ((lVar1 < 0) || (lVar2 < 0)) {\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }\n  else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" (if "if") (parenthesized_expression "((lVar1 < 0) || (lVar2 < 0))" (( "(") (binary_expression "(lVar1 < 0) || (lVar2 < 0)" (parenthesized_expression "(lVar1 < 0)" (( "(") (binary_expression "lVar1 < 0" (identifier "lVar1") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(lVar2 < 0)" (( "(") (binary_expression "lVar2 < 0" (identifier "lVar2") (< "<") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = sysinfo(&local_50);\n    if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }\n  }" ({ "{") (expression_statement "iVar3 = sysinfo(&local_50);" (assignment_expression "iVar3 = sysinfo(&local_50)" (identifier "iVar3") (= "=") (call_expression "sysinfo(&local_50)" (identifier "sysinfo") (argument_list "(&local_50)" (( "(") (pointer_expression "&local_50" (& "&") (identifier "local_50")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }\n    else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;\n    }" ({ "{") (expression_statement "lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;" (assignment_expression "lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram" (identifier "lVar4") (= "=") (binary_expression "(longdouble)local_50.mem_unit * (longdouble)local_50.totalram" (cast_expression "(longdouble)local_50.mem_unit" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (field_expression "local_50.mem_unit" (identifier "local_50") (. ".") (field_identifier "mem_unit"))) (* "*") (cast_expression "(longdouble)local_50.totalram" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (field_expression "local_50.totalram" (identifier "local_50") (. ".") (field_identifier "totalram"))))) (; ";")) (} "}")) (else_clause "else {\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" (else "else") (compound_statement "{\n      lVar4 = (longdouble)_DAT_0002a428;\n    }" ({ "{") (expression_statement "lVar4 = (longdouble)_DAT_0002a428;" (assignment_expression "lVar4 = (longdouble)_DAT_0002a428" (identifier "lVar4") (= "=") (cast_expression "(longdouble)_DAT_0002a428" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "_DAT_0002a428"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" (else "else") (compound_statement "{\n    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;\n  }" ({ "{") (expression_statement "lVar4 = (longdouble)lVar2 * (longdouble)lVar1;" (assignment_expression "lVar4 = (longdouble)lVar2 * (longdouble)lVar1" (identifier "lVar4") (= "=") (binary_expression "(longdouble)lVar2 * (longdouble)lVar1" (cast_expression "(longdouble)lVar2" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "lVar2")) (* "*") (cast_expression "(longdouble)lVar1" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "lVar1")))) (; ";")) (} "}")))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return lVar4;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return lVar4;\n  }" ({ "{") (return_statement "return lVar4;" (return "return") (identifier "lVar4") (; ";")) (} "}"))) (expression_statement "FUN_00027310();" (call_expression "FUN_00027310()" (identifier "FUN_00027310") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention */

double function_1(void)

{
  int var_6;
  double dVar2;
  long var_3;
  long var_4;
  int var_5;
  int var_1;
  type_1 si;
  
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = var_2(0x55);
  var_4 = var_2(0x1e);
  if ((var_3 < 0) || (var_4 < 0)) {
    var_5 = type_1((type_1 *)&si);
    if (var_5 == 0) {
      dVar2 = (double)si.mem_unit * (double)si.totalram;
    }
    else {
      dVar2 = (double)_DAT_0002a428;
    }
  }
  else {
    dVar2 = (double)var_4 * (double)var_3;
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return dVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

longdouble MASKED(void)

{
  long lVar1;
  long lVar2;
  int iVar3;
  int in_GS_OFFSET;
  longdouble lVar4;
  sysinfo local_50;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x1f897;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  lVar1 = sysconf(0x55);
  lVar2 = sysconf(0x1e);
  if ((lVar1 < 0) || (lVar2 < 0)) {
    iVar3 = sysinfo(&local_50);
    if (iVar3 == 0) {
      lVar4 = (longdouble)local_50.mem_unit * (longdouble)local_50.totalram;
    }
    else {
      lVar4 = (longdouble)_DAT_0002a428;
    }
  }
  else {
    lVar4 = (longdouble)lVar2 * (longdouble)lVar1;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return lVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00027310();
}

