
_Bool hard_locale(int category)

{
  byte *pbVar1;
  long lVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  _Bool _Var8;
  byte bVar9;
  
  bVar9 = 0;
  pbVar1 = (byte *)setlocale(category,(char *)0x0);
  _Var8 = true;
  bVar5 = false;
  bVar7 = pbVar1 == (byte *)0x0;
  if (!bVar7) {
    lVar2 = 2;
    pbVar3 = pbVar1;
    pbVar4 = &DAT_00106ec0;
    do {
      if (lVar2 == 0) break;
      lVar2 = lVar2 + -1;
      bVar5 = *pbVar3 < *pbVar4;
      bVar7 = *pbVar3 == *pbVar4;
      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;
      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;
    } while (bVar7);
    _Var8 = false;
    bVar6 = false;
    bVar5 = (!bVar5 && !bVar7) == bVar5;
    if (!bVar5) {
      lVar2 = 6;
      pbVar3 = (byte *)"POSIX";
      do {
        if (lVar2 == 0) break;
        lVar2 = lVar2 + -1;
        bVar6 = *pbVar1 < *pbVar3;
        bVar5 = *pbVar1 == *pbVar3;
        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;
        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;
      } while (bVar5);
      _Var8 = (!bVar6 && !bVar5) != bVar6;
    }
  }
  return _Var8;
}



bool FUN_00104e1a(int param_1)

{
  byte *pbVar1;
  long lVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);
  bVar8 = true;
  bVar5 = false;
  bVar7 = pbVar1 == (byte *)0x0;
  if (!bVar7) {
    lVar2 = 2;
    pbVar3 = pbVar1;
    pbVar4 = &DAT_00106ec0;
    do {
      if (lVar2 == 0) break;
      lVar2 = lVar2 + -1;
      bVar5 = *pbVar3 < *pbVar4;
      bVar7 = *pbVar3 == *pbVar4;
      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;
      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;
    } while (bVar7);
    bVar8 = false;
    bVar6 = false;
    bVar5 = (!bVar5 && !bVar7) == bVar5;
    if (!bVar5) {
      lVar2 = 6;
      pbVar3 = (byte *)"POSIX";
      do {
        if (lVar2 == 0) break;
        lVar2 = lVar2 + -1;
        bVar6 = *pbVar1 < *pbVar3;
        bVar5 = *pbVar1 == *pbVar3;
        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;
        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;
      } while (bVar5);
      bVar8 = (!bVar6 && !bVar5) != bVar6;
    }
  }
  return bVar8;
}


SUB RSP,0x8
MOV ESI,0x0
CALL 0x001021e0
MOV RDX,RAX
MOV EAX,0x1
TEST RDX,RDX
JZ 0x00104e70
MOV ECX,0x2
LEA RDI,[0x106ec0]
MOV RSI,RDX
CMPSB.REPE RDI,RSI
SETA CL
SBB CL,0x0
MOV EAX,0x0
TEST CL,CL
JZ 0x00104e70
MOV ECX,0x6
LEA RDI,[0x106ec2]
MOV RSI,RDX
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
SETNZ AL
ADD RSP,0x8
RET
(translation_unit "bool FUN_00104e1a(int param_1)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}\n\n" (function_definition "bool FUN_00104e1a(int param_1)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}" primitive_type (function_declarator "FUN_00104e1a(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "pbVar1 = (byte *)setlocale(param_1,(char *)0x0);" (assignment_expression "pbVar1 = (byte *)setlocale(param_1,(char *)0x0)" identifier = (cast_expression "(byte *)setlocale(param_1,(char *)0x0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "setlocale(param_1,(char *)0x0)" identifier (argument_list "(param_1,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))))) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar7 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar1 == (byte *)0x0" identifier = (binary_expression "pbVar1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" { (expression_statement "lVar2 = 2;" (assignment_expression "lVar2 = 2" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar4 = &DAT_00106ec0;" (assignment_expression "pbVar4 = &DAT_00106ec0" identifier = (pointer_expression "&DAT_00106ec0" & identifier)) ;) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);" do (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" identifier = (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" ( (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (compound_statement "{\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }" { (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);" do (compound_statement "{\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar1 < *pbVar3;" (assignment_expression "bVar6 = *pbVar1 < *pbVar3" identifier = (binary_expression "*pbVar1 < *pbVar3" (pointer_expression "*pbVar1" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *pbVar1 == *pbVar3;" (assignment_expression "bVar5 = *pbVar1 == *pbVar3" identifier = (binary_expression "*pbVar1 == *pbVar3" (pointer_expression "*pbVar1" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar1 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar1 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (expression_statement "bVar8 = (!bVar6 && !bVar5) != bVar6;" (assignment_expression "bVar8 = (!bVar6 && !bVar5) != bVar6" identifier = (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" ( (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier)) ;) })) })) (return_statement "return bVar8;" return identifier ;) })))
(translation_unit "_Bool hard_locale(int category)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  _Bool _Var8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(category,(char *)0x0);\n  _Var8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    _Var8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return _Var8;\n}\n\n" (function_definition "_Bool hard_locale(int category)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  _Bool _Var8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(category,(char *)0x0);\n  _Var8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    _Var8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return _Var8;\n}" type_identifier (function_declarator "hard_locale(int category)" identifier (parameter_list "(int category)" ( (parameter_declaration "int category" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  _Bool _Var8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(category,(char *)0x0);\n  _Var8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    _Var8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return _Var8;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "_Bool _Var8;" type_identifier identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "pbVar1 = (byte *)setlocale(category,(char *)0x0);" (assignment_expression "pbVar1 = (byte *)setlocale(category,(char *)0x0)" identifier = (cast_expression "(byte *)setlocale(category,(char *)0x0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "setlocale(category,(char *)0x0)" identifier (argument_list "(category,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))))) ;) (expression_statement "_Var8 = true;" (assignment_expression "_Var8 = true" identifier = true) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar7 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar1 == (byte *)0x0" identifier = (binary_expression "pbVar1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    _Var8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    _Var8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" { (expression_statement "lVar2 = 2;" (assignment_expression "lVar2 = 2" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar4 = &DAT_00106ec0;" (assignment_expression "pbVar4 = &DAT_00106ec0" identifier = (pointer_expression "&DAT_00106ec0" & identifier)) ;) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);" do (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "_Var8 = false;" (assignment_expression "_Var8 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" identifier = (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" ( (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (compound_statement "{\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      _Var8 = (!bVar6 && !bVar5) != bVar6;\n    }" { (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);" do (compound_statement "{\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar1 < *pbVar3;" (assignment_expression "bVar6 = *pbVar1 < *pbVar3" identifier = (binary_expression "*pbVar1 < *pbVar3" (pointer_expression "*pbVar1" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *pbVar1 == *pbVar3;" (assignment_expression "bVar5 = *pbVar1 == *pbVar3" identifier = (binary_expression "*pbVar1 == *pbVar3" (pointer_expression "*pbVar1" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar1 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar1 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (expression_statement "_Var8 = (!bVar6 && !bVar5) != bVar6;" (assignment_expression "_Var8 = (!bVar6 && !bVar5) != bVar6" identifier = (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" ( (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier)) ;) })) })) (return_statement "return _Var8;" return identifier ;) })))
(translation_unit "bool FUN_00104e1a(int param_1)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}\n\n" (function_definition "bool FUN_00104e1a(int param_1)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}" primitive_type (function_declarator "FUN_00104e1a(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "pbVar1 = (byte *)setlocale(param_1,(char *)0x0);" (assignment_expression "pbVar1 = (byte *)setlocale(param_1,(char *)0x0)" identifier = (cast_expression "(byte *)setlocale(param_1,(char *)0x0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "setlocale(param_1,(char *)0x0)" identifier (argument_list "(param_1,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))))) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar7 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar1 == (byte *)0x0" identifier = (binary_expression "pbVar1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" { (expression_statement "lVar2 = 2;" (assignment_expression "lVar2 = 2" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar4 = &DAT_00106ec0;" (assignment_expression "pbVar4 = &DAT_00106ec0" identifier = (pointer_expression "&DAT_00106ec0" & identifier)) ;) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);" do (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar4 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" identifier = (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" ( (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (compound_statement "{\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }" { (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" identifier = (cast_expression "(byte *)"POSIX"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""POSIX"" " string_content "))) ;) (do_statement "do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);" do (compound_statement "{\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar1 < *pbVar3;" (assignment_expression "bVar6 = *pbVar1 < *pbVar3" identifier = (binary_expression "*pbVar1 < *pbVar3" (pointer_expression "*pbVar1" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *pbVar1 == *pbVar3;" (assignment_expression "bVar5 = *pbVar1 == *pbVar3" identifier = (binary_expression "*pbVar1 == *pbVar3" (pointer_expression "*pbVar1" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar1 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar1 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (expression_statement "bVar8 = (!bVar6 && !bVar5) != bVar6;" (assignment_expression "bVar8 = (!bVar6 && !bVar5) != bVar6" identifier = (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" ( (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier)) ;) })) })) (return_statement "return bVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_00104e1a(int param_1)\n\n{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}" (primitive_type "bool") (function_declarator "FUN_00104e1a(int param_1)" (identifier "FUN_00104e1a") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);\n  bVar8 = true;\n  bVar5 = false;\n  bVar7 = pbVar1 == (byte *)0x0;\n  if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }\n  return bVar8;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar1 = (byte *)setlocale(param_1,(char *)0x0);" (assignment_expression "pbVar1 = (byte *)setlocale(param_1,(char *)0x0)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)setlocale(param_1,(char *)0x0)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "setlocale(param_1,(char *)0x0)" (identifier "setlocale") (argument_list "(param_1,(char *)0x0)" (( "(") (identifier "param_1") (, ",") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))))) (; ";")) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" (identifier "bVar8") (= "=") (true "true")) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar7 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar1 == (byte *)0x0" (identifier "bVar7") (= "=") (binary_expression "pbVar1 == (byte *)0x0" (identifier "pbVar1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (!bVar7) {\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar7)" (( "(") (unary_expression "!bVar7" (! "!") (identifier "bVar7")) () ")")) (compound_statement "{\n    lVar2 = 2;\n    pbVar3 = pbVar1;\n    pbVar4 = &DAT_00106ec0;\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);\n    bVar8 = false;\n    bVar6 = false;\n    bVar5 = (!bVar5 && !bVar7) == bVar5;\n    if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }\n  }" ({ "{") (expression_statement "lVar2 = 2;" (assignment_expression "lVar2 = 2" (identifier "lVar2") (= "=") (number_literal "2")) (; ";")) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" (identifier "pbVar3") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "pbVar4 = &DAT_00106ec0;" (assignment_expression "pbVar4 = &DAT_00106ec0" (identifier "pbVar4") (= "=") (pointer_expression "&DAT_00106ec0" (& "&") (identifier "DAT_00106ec0"))) (; ";")) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    } while (bVar7);" (do "do") (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar5 = *pbVar3 < *pbVar4;\n      bVar7 = *pbVar3 == *pbVar4;\n      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;\n    }" ({ "{") (if_statement "if (lVar2 == 0) break;" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + -1" (identifier "lVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" (identifier "bVar5") (= "=") (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" (identifier "bVar7") (= "=") (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar9 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (; ";")) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" (identifier "bVar5") (= "=") (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" (( "(") (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar7" (! "!") (identifier "bVar7"))) () ")")) (== "==") (identifier "bVar5"))) (; ";")) (if_statement "if (!bVar5) {\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }" (if "if") (parenthesized_expression "(!bVar5)" (( "(") (unary_expression "!bVar5" (! "!") (identifier "bVar5")) () ")")) (compound_statement "{\n      lVar2 = 6;\n      pbVar3 = (byte *)"POSIX";\n      do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);\n      bVar8 = (!bVar6 && !bVar5) != bVar6;\n    }" ({ "{") (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" (identifier "lVar2") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar3 = (byte *)"POSIX";" (assignment_expression "pbVar3 = (byte *)"POSIX"" (identifier "pbVar3") (= "=") (cast_expression "(byte *)"POSIX"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""POSIX"" (" """) (string_content "POSIX") (" """)))) (; ";")) (do_statement "do {\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      } while (bVar5);" (do "do") (compound_statement "{\n        if (lVar2 == 0) break;\n        lVar2 = lVar2 + -1;\n        bVar6 = *pbVar1 < *pbVar3;\n        bVar5 = *pbVar1 == *pbVar3;\n        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;\n        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar2 == 0) break;" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + -1" (identifier "lVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *pbVar1 < *pbVar3;" (assignment_expression "bVar6 = *pbVar1 < *pbVar3" (identifier "bVar6") (= "=") (binary_expression "*pbVar1 < *pbVar3" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar5 = *pbVar1 == *pbVar3;" (assignment_expression "bVar5 = *pbVar1 == *pbVar3" (identifier "bVar5") (= "=") (binary_expression "*pbVar1 == *pbVar3" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar1 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar1 + (ulong)bVar9 * -2" (identifier "pbVar1") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar3 + (ulong)bVar9 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (; ";")) (expression_statement "bVar8 = (!bVar6 && !bVar5) != bVar6;" (assignment_expression "bVar8 = (!bVar6 && !bVar5) != bVar6" (identifier "bVar8") (= "=") (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" (( "(") (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar5" (! "!") (identifier "bVar5"))) () ")")) (!= "!=") (identifier "bVar6"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return bVar8;" (return "return") (identifier "bVar8") (; ";")) (} "}")))

type_1 function_1(int category)

{
  type_2 *var_2;
  long var_3;
  type_2 *var_4;
  type_2 *var_5;
  bool var_6;
  bool var_7;
  bool bVar7;
  type_1 _Var8;
  type_2 bVar9;
  
  bVar9 = 0;
  var_2 = (type_2 *)var_1(category,(char *)0x0);
  _Var8 = true;
  var_6 = false;
  bVar7 = var_2 == (type_2 *)0x0;
  if (!bVar7) {
    var_3 = 2;
    var_4 = var_2;
    var_5 = &DAT_00106ec0;
    do {
      if (var_3 == 0) break;
      var_3 = var_3 + -1;
      var_6 = *var_4 < *var_5;
      bVar7 = *var_4 == *var_5;
      var_4 = var_4 + (type_3)bVar9 * -2 + 1;
      var_5 = var_5 + (type_3)bVar9 * -2 + 1;
    } while (bVar7);
    _Var8 = false;
    var_7 = false;
    var_6 = (!var_6 && !bVar7) == var_6;
    if (!var_6) {
      var_3 = 6;
      var_4 = (type_2 *)"POSIX";
      do {
        if (var_3 == 0) break;
        var_3 = var_3 + -1;
        var_7 = *var_2 < *var_4;
        var_6 = *var_2 == *var_4;
        var_2 = var_2 + (type_3)bVar9 * -2 + 1;
        var_4 = var_4 + (type_3)bVar9 * -2 + 1;
      } while (var_6);
      _Var8 = (!var_7 && !var_6) != var_7;
    }
  }
  return _Var8;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier)))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier)))))))) (return_statement (identifier)))))

bool MASKED(int param_1)

{
  byte *pbVar1;
  long lVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  pbVar1 = (byte *)setlocale(param_1,(char *)0x0);
  bVar8 = true;
  bVar5 = false;
  bVar7 = pbVar1 == (byte *)0x0;
  if (!bVar7) {
    lVar2 = 2;
    pbVar3 = pbVar1;
    pbVar4 = &DAT_00106ec0;
    do {
      if (lVar2 == 0) break;
      lVar2 = lVar2 + -1;
      bVar5 = *pbVar3 < *pbVar4;
      bVar7 = *pbVar3 == *pbVar4;
      pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;
      pbVar4 = pbVar4 + (ulong)bVar9 * -2 + 1;
    } while (bVar7);
    bVar8 = false;
    bVar6 = false;
    bVar5 = (!bVar5 && !bVar7) == bVar5;
    if (!bVar5) {
      lVar2 = 6;
      pbVar3 = (byte *)"POSIX";
      do {
        if (lVar2 == 0) break;
        lVar2 = lVar2 + -1;
        bVar6 = *pbVar1 < *pbVar3;
        bVar5 = *pbVar1 == *pbVar3;
        pbVar1 = pbVar1 + (ulong)bVar9 * -2 + 1;
        pbVar3 = pbVar3 + (ulong)bVar9 * -2 + 1;
      } while (bVar5);
      bVar8 = (!bVar6 && !bVar5) != bVar6;
    }
  }
  return bVar8;
}

