
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

char * term_get_ttymode(Terminal *term,char *mode)

{
  wchar_t wVar1;
  long lVar2;
  byte *pbVar3;
  char *pcVar4;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  
  bVar5 = &stack0x00000000 < (undefined1 *)0x8;
  bVar7 = &stack0x00000000 == (undefined1 *)0x8;
  lVar2 = 6;
  pcVar4 = "WERASE";
  pbVar3 = (byte *)mode;
  do {
    pcVar4 = (char *)((byte *)pcVar4 + 1);
    if (lVar2 == 0) break;
    lVar2 = lVar2 + -1;
    bVar5 = *pbVar3 < (byte)*pcVar4;
    bVar7 = *pbVar3 == *pcVar4;
    pbVar3 = pbVar3 + 1;
  } while (bVar7);
  bVar6 = false;
  bVar5 = (!bVar5 && !bVar7) == bVar5;
  if (bVar5) {
    pcVar4 = "^?";
    if (term->bksp_is_delete == L'\0') {
      pcVar4 = "^H";
    }
  }
  else {
    lVar2 = 6;
    pbVar3 = (byte *)"IUTF8";
    do {
      if (lVar2 == 0) break;
      lVar2 = lVar2 + -1;
      bVar6 = (byte)*mode < *pbVar3;
      bVar5 = *mode == *pbVar3;
      mode = (char *)((byte *)mode + 1);
      pbVar3 = pbVar3 + 1;
    } while (bVar5);
    pcVar4 = (char *)0x0;
    if ((!bVar6 && !bVar5) == bVar6) {
      wVar1 = frontend_is_utf8(term->frontend);
      pcVar4 = "yes";
      if (wVar1 == L'\0') {
        pcVar4 = "no";
      }
    }
  }
  pcVar4 = dupstr(pcVar4);
  return pcVar4;
}



void FUN_00171f69(long param_1,byte *param_2)

{
  int iVar1;
  long lVar2;
  byte *pbVar3;
  char *pcVar4;
  undefined *puVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  
  bVar6 = &stack0x00000000 < (undefined1 *)0x8;
  bVar8 = &stack0x00000000 == (undefined1 *)0x8;
  lVar2 = 6;
  pcVar4 = "WERASE";
  pbVar3 = param_2;
  do {
    pcVar4 = (char *)((byte *)pcVar4 + 1);
    if (lVar2 == 0) break;
    lVar2 = lVar2 + -1;
    bVar6 = *pbVar3 < (byte)*pcVar4;
    bVar8 = *pbVar3 == *pcVar4;
    pbVar3 = pbVar3 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (bVar6) {
    puVar5 = &DAT_001c80b3;
    if (*(int *)(param_1 + 0x11b8) == 0) {
      puVar5 = &DAT_001c80b6;
    }
  }
  else {
    lVar2 = 6;
    pbVar3 = (byte *)"IUTF8";
    do {
      if (lVar2 == 0) break;
      lVar2 = lVar2 + -1;
      bVar7 = *param_2 < *pbVar3;
      bVar6 = *param_2 == *pbVar3;
      param_2 = param_2 + 1;
      pbVar3 = pbVar3 + 1;
    } while (bVar6);
    puVar5 = (undefined *)0x0;
    if ((!bVar7 && !bVar6) == bVar7) {
      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));
      puVar5 = &DAT_001bc0bd;
      if (iVar1 == 0) {
        puVar5 = &DAT_001bc0c6;
      }
    }
  }
  FUN_0012698b(puVar5);
  return;
}


SUB RSP,0x8
MOV R8,RDI
MOV RDX,RSI
MOV ECX,0x6
LEA RDI,[0x1bb559]
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00171fae
CMP dword ptr [R8 + 0x11b8],0x0
LEA RDI,[0x1c80b3]
LEA RAX,[0x1c80b6]
CMOVZ RDI,RAX
CALL 0x0012698b
ADD RSP,0x8
RET
MOV ECX,0x6
LEA RDI,[0x1bb409]
MOV RSI,RDX
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
MOV EDI,0x0
TEST AL,AL
JNZ 0x00171fa4
MOV RDI,qword ptr [R8 + 0x1108]
CALL 0x001869bf
TEST EAX,EAX
LEA RDI,[0x1bc0bd]
LEA RAX,[0x1bc0c6]
CMOVZ RDI,RAX
JMP 0x00171fa4
(translation_unit "void FUN_00171f69(long param_1,byte *param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}\n\n" (function_definition "void FUN_00171f69(long param_1,byte *param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}" primitive_type (function_declarator "FUN_00171f69(long param_1,byte *param_2)" identifier (parameter_list "(long param_1,byte *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "bVar6 = &stack0x00000000 < (undefined1 *)0x8;" (assignment_expression "bVar6 = &stack0x00000000 < (undefined1 *)0x8" identifier = (binary_expression "&stack0x00000000 < (undefined1 *)0x8" (pointer_expression "&stack0x00000000" & identifier) < (cast_expression "(undefined1 *)0x8" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x8;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x8" identifier = (binary_expression "&stack0x00000000 == (undefined1 *)0x8" (pointer_expression "&stack0x00000000" & identifier) == (cast_expression "(undefined1 *)0x8" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pcVar4 = "WERASE";" (assignment_expression "pcVar4 = "WERASE"" identifier = (string_literal ""WERASE"" " string_content ")) ;) (expression_statement "pbVar3 = param_2;" (assignment_expression "pbVar3 = param_2" identifier = identifier) ;) (do_statement "do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);" do (compound_statement "{\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  }" { (expression_statement "pcVar4 = (char *)((byte *)pcVar4 + 1);" (assignment_expression "pcVar4 = (char *)((byte *)pcVar4 + 1)" identifier = (cast_expression "(char *)((byte *)pcVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pcVar4 + 1)" ( (binary_expression "(byte *)pcVar4 + 1" (cast_expression "(byte *)pcVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (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 = *pbVar3 < (byte)*pcVar4;" (assignment_expression "bVar6 = *pbVar3 < (byte)*pcVar4" identifier = (binary_expression "*pbVar3 < (byte)*pcVar4" (pointer_expression "*pbVar3" * identifier) < (binary_expression "(byte)*pcVar4" (parenthesized_expression "(byte)" ( identifier )) * identifier))) ;) (expression_statement "bVar8 = *pbVar3 == *pcVar4;" (assignment_expression "bVar8 = *pbVar3 == *pcVar4" identifier = (binary_expression "*pbVar3 == *pcVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pcVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }" { (expression_statement "puVar5 = &DAT_001c80b3;" (assignment_expression "puVar5 = &DAT_001c80b3" identifier = (pointer_expression "&DAT_001c80b3" & identifier)) ;) (if_statement "if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x11b8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x11b8) == 0" (pointer_expression "*(int *)(param_1 + 0x11b8)" * (cast_expression "(int *)(param_1 + 0x11b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11b8)" ( (binary_expression "param_1 + 0x11b8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      puVar5 = &DAT_001c80b6;\n    }" { (expression_statement "puVar5 = &DAT_001c80b6;" (assignment_expression "puVar5 = &DAT_001c80b6" identifier = (pointer_expression "&DAT_001c80b6" & identifier)) ;) })) }) (else_clause "else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" else (compound_statement "{\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" { (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)"IUTF8";" (assignment_expression "pbVar3 = (byte *)"IUTF8"" identifier = (cast_expression "(byte *)"IUTF8"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""IUTF8"" " string_content "))) ;) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 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 "bVar7 = *param_2 < *pbVar3;" (assignment_expression "bVar7 = *param_2 < *pbVar3" identifier = (binary_expression "*param_2 < *pbVar3" (pointer_expression "*param_2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *param_2 == *pbVar3;" (assignment_expression "bVar6 = *param_2 == *pbVar3" identifier = (binary_expression "*param_2 == *pbVar3" (pointer_expression "*param_2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) == bVar7)" ( (binary_expression "(!bVar7 && !bVar6) == bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier) )) (compound_statement "{\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }" { (expression_statement "iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));" (assignment_expression "iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108))" identifier = (call_expression "FUN_001869bf(*(undefined8 *)(param_1 + 0x1108))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1108))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1108)" * (cast_expression "(undefined8 *)(param_1 + 0x1108)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1108)" ( (binary_expression "param_1 + 0x1108" identifier + number_literal) )))) )))) ;) (expression_statement "puVar5 = &DAT_001bc0bd;" (assignment_expression "puVar5 = &DAT_001bc0bd" identifier = (pointer_expression "&DAT_001bc0bd" & identifier)) ;) (if_statement "if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar5 = &DAT_001bc0c6;\n      }" { (expression_statement "puVar5 = &DAT_001bc0c6;" (assignment_expression "puVar5 = &DAT_001bc0c6" identifier = (pointer_expression "&DAT_001bc0c6" & identifier)) ;) })) })) }))) (expression_statement "FUN_0012698b(puVar5);" (call_expression "FUN_0012698b(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nchar * term_get_ttymode(Terminal *term,char *mode)\n\n{\n  wchar_t wVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  bVar5 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar7 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = (byte *)mode;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar5 = *pbVar3 < (byte)*pcVar4;\n    bVar7 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar7);\n  bVar6 = false;\n  bVar5 = (!bVar5 && !bVar7) == bVar5;\n  if (bVar5) {\n    pcVar4 = "^?";\n    if (term->bksp_is_delete == L'\0') {\n      pcVar4 = "^H";\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);\n    pcVar4 = (char *)0x0;\n    if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }\n  }\n  pcVar4 = dupstr(pcVar4);\n  return pcVar4;\n}\n\n" comment (function_definition "char * term_get_ttymode(Terminal *term,char *mode)\n\n{\n  wchar_t wVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  bVar5 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar7 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = (byte *)mode;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar5 = *pbVar3 < (byte)*pcVar4;\n    bVar7 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar7);\n  bVar6 = false;\n  bVar5 = (!bVar5 && !bVar7) == bVar5;\n  if (bVar5) {\n    pcVar4 = "^?";\n    if (term->bksp_is_delete == L'\0') {\n      pcVar4 = "^H";\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);\n    pcVar4 = (char *)0x0;\n    if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }\n  }\n  pcVar4 = dupstr(pcVar4);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* term_get_ttymode(Terminal *term,char *mode)" * (function_declarator "term_get_ttymode(Terminal *term,char *mode)" identifier (parameter_list "(Terminal *term,char *mode)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) , (parameter_declaration "char *mode" primitive_type (pointer_declarator "*mode" * identifier)) )))) (compound_statement "{\n  wchar_t wVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  bVar5 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar7 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = (byte *)mode;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar5 = *pbVar3 < (byte)*pcVar4;\n    bVar7 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar7);\n  bVar6 = false;\n  bVar5 = (!bVar5 && !bVar7) == bVar5;\n  if (bVar5) {\n    pcVar4 = "^?";\n    if (term->bksp_is_delete == L'\0') {\n      pcVar4 = "^H";\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);\n    pcVar4 = (char *)0x0;\n    if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }\n  }\n  pcVar4 = dupstr(pcVar4);\n  return pcVar4;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "bVar5 = &stack0x00000000 < (undefined1 *)0x8;" (assignment_expression "bVar5 = &stack0x00000000 < (undefined1 *)0x8" identifier = (binary_expression "&stack0x00000000 < (undefined1 *)0x8" (pointer_expression "&stack0x00000000" & identifier) < (cast_expression "(undefined1 *)0x8" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "bVar7 = &stack0x00000000 == (undefined1 *)0x8;" (assignment_expression "bVar7 = &stack0x00000000 == (undefined1 *)0x8" identifier = (binary_expression "&stack0x00000000 == (undefined1 *)0x8" (pointer_expression "&stack0x00000000" & identifier) == (cast_expression "(undefined1 *)0x8" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pcVar4 = "WERASE";" (assignment_expression "pcVar4 = "WERASE"" identifier = (string_literal ""WERASE"" " string_content ")) ;) (expression_statement "pbVar3 = (byte *)mode;" (assignment_expression "pbVar3 = (byte *)mode" identifier = (cast_expression "(byte *)mode" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar5 = *pbVar3 < (byte)*pcVar4;\n    bVar7 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar7);" do (compound_statement "{\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar5 = *pbVar3 < (byte)*pcVar4;\n    bVar7 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  }" { (expression_statement "pcVar4 = (char *)((byte *)pcVar4 + 1);" (assignment_expression "pcVar4 = (char *)((byte *)pcVar4 + 1)" identifier = (cast_expression "(char *)((byte *)pcVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pcVar4 + 1)" ( (binary_expression "(byte *)pcVar4 + 1" (cast_expression "(byte *)pcVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (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 < (byte)*pcVar4;" (assignment_expression "bVar5 = *pbVar3 < (byte)*pcVar4" identifier = (binary_expression "*pbVar3 < (byte)*pcVar4" (pointer_expression "*pbVar3" * identifier) < (binary_expression "(byte)*pcVar4" (parenthesized_expression "(byte)" ( identifier )) * identifier))) ;) (expression_statement "bVar7 = *pbVar3 == *pcVar4;" (assignment_expression "bVar7 = *pbVar3 == *pcVar4" identifier = (binary_expression "*pbVar3 == *pcVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pcVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (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    pcVar4 = "^?";\n    if (term->bksp_is_delete == L'\0') {\n      pcVar4 = "^H";\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);\n    pcVar4 = (char *)0x0;\n    if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    pcVar4 = "^?";\n    if (term->bksp_is_delete == L'\0') {\n      pcVar4 = "^H";\n    }\n  }" { (expression_statement "pcVar4 = "^?";" (assignment_expression "pcVar4 = "^?"" identifier = (string_literal ""^?"" " string_content ")) ;) (if_statement "if (term->bksp_is_delete == L'\0') {\n      pcVar4 = "^H";\n    }" if (parenthesized_expression "(term->bksp_is_delete == L'\0')" ( (binary_expression "term->bksp_is_delete == L'\0'" (field_expression "term->bksp_is_delete" identifier -> field_identifier) == (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n      pcVar4 = "^H";\n    }" { (expression_statement "pcVar4 = "^H";" (assignment_expression "pcVar4 = "^H"" identifier = (string_literal ""^H"" " string_content ")) ;) })) }) (else_clause "else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);\n    pcVar4 = (char *)0x0;\n    if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }\n  }" else (compound_statement "{\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);\n    pcVar4 = (char *)0x0;\n    if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }\n  }" { (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)"IUTF8";" (assignment_expression "pbVar3 = (byte *)"IUTF8"" identifier = (cast_expression "(byte *)"IUTF8"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""IUTF8"" " string_content "))) ;) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 1;\n    } while (bVar5);" do (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar6 = (byte)*mode < *pbVar3;\n      bVar5 = *mode == *pbVar3;\n      mode = (char *)((byte *)mode + 1);\n      pbVar3 = pbVar3 + 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 = (byte)*mode < *pbVar3;" (assignment_expression "bVar6 = (byte)*mode < *pbVar3" identifier = (binary_expression "(byte)*mode < *pbVar3" (binary_expression "(byte)*mode" (parenthesized_expression "(byte)" ( identifier )) * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *mode == *pbVar3;" (assignment_expression "bVar5 = *mode == *pbVar3" identifier = (binary_expression "*mode == *pbVar3" (pointer_expression "*mode" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "mode = (char *)((byte *)mode + 1);" (assignment_expression "mode = (char *)((byte *)mode + 1)" identifier = (cast_expression "(char *)((byte *)mode + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)mode + 1)" ( (binary_expression "(byte *)mode + 1" (cast_expression "(byte *)mode" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((!bVar6 && !bVar5) == bVar6) {\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }" if (parenthesized_expression "((!bVar6 && !bVar5) == bVar6)" ( (binary_expression "(!bVar6 && !bVar5) == bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" ( (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) == identifier) )) (compound_statement "{\n      wVar1 = frontend_is_utf8(term->frontend);\n      pcVar4 = "yes";\n      if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }\n    }" { (expression_statement "wVar1 = frontend_is_utf8(term->frontend);" (assignment_expression "wVar1 = frontend_is_utf8(term->frontend)" identifier = (call_expression "frontend_is_utf8(term->frontend)" identifier (argument_list "(term->frontend)" ( (field_expression "term->frontend" identifier -> field_identifier) )))) ;) (expression_statement "pcVar4 = "yes";" (assignment_expression "pcVar4 = "yes"" identifier = (string_literal ""yes"" " string_content ")) ;) (if_statement "if (wVar1 == L'\0') {\n        pcVar4 = "no";\n      }" if (parenthesized_expression "(wVar1 == L'\0')" ( (binary_expression "wVar1 == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n        pcVar4 = "no";\n      }" { (expression_statement "pcVar4 = "no";" (assignment_expression "pcVar4 = "no"" identifier = (string_literal ""no"" " string_content ")) ;) })) })) }))) (expression_statement "pcVar4 = dupstr(pcVar4);" (assignment_expression "pcVar4 = dupstr(pcVar4)" identifier = (call_expression "dupstr(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "void FUN_00171f69(long param_1,byte *param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}\n\n" (function_definition "void FUN_00171f69(long param_1,byte *param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}" primitive_type (function_declarator "FUN_00171f69(long param_1,byte *param_2)" identifier (parameter_list "(long param_1,byte *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "bVar6 = &stack0x00000000 < (undefined1 *)0x8;" (assignment_expression "bVar6 = &stack0x00000000 < (undefined1 *)0x8" identifier = (binary_expression "&stack0x00000000 < (undefined1 *)0x8" (pointer_expression "&stack0x00000000" & identifier) < (cast_expression "(undefined1 *)0x8" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x8;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x8" identifier = (binary_expression "&stack0x00000000 == (undefined1 *)0x8" (pointer_expression "&stack0x00000000" & identifier) == (cast_expression "(undefined1 *)0x8" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pcVar4 = "WERASE";" (assignment_expression "pcVar4 = "WERASE"" identifier = (string_literal ""WERASE"" " string_content ")) ;) (expression_statement "pbVar3 = param_2;" (assignment_expression "pbVar3 = param_2" identifier = identifier) ;) (do_statement "do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);" do (compound_statement "{\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  }" { (expression_statement "pcVar4 = (char *)((byte *)pcVar4 + 1);" (assignment_expression "pcVar4 = (char *)((byte *)pcVar4 + 1)" identifier = (cast_expression "(char *)((byte *)pcVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pcVar4 + 1)" ( (binary_expression "(byte *)pcVar4 + 1" (cast_expression "(byte *)pcVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (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 = *pbVar3 < (byte)*pcVar4;" (assignment_expression "bVar6 = *pbVar3 < (byte)*pcVar4" identifier = (binary_expression "*pbVar3 < (byte)*pcVar4" (pointer_expression "*pbVar3" * identifier) < (binary_expression "(byte)*pcVar4" (parenthesized_expression "(byte)" ( identifier )) * identifier))) ;) (expression_statement "bVar8 = *pbVar3 == *pcVar4;" (assignment_expression "bVar8 = *pbVar3 == *pcVar4" identifier = (binary_expression "*pbVar3 == *pcVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pcVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" identifier = (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" ( (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }" { (expression_statement "puVar5 = &DAT_001c80b3;" (assignment_expression "puVar5 = &DAT_001c80b3" identifier = (pointer_expression "&DAT_001c80b3" & identifier)) ;) (if_statement "if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x11b8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x11b8) == 0" (pointer_expression "*(int *)(param_1 + 0x11b8)" * (cast_expression "(int *)(param_1 + 0x11b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11b8)" ( (binary_expression "param_1 + 0x11b8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      puVar5 = &DAT_001c80b6;\n    }" { (expression_statement "puVar5 = &DAT_001c80b6;" (assignment_expression "puVar5 = &DAT_001c80b6" identifier = (pointer_expression "&DAT_001c80b6" & identifier)) ;) })) }) (else_clause "else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" else (compound_statement "{\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" { (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)"IUTF8";" (assignment_expression "pbVar3 = (byte *)"IUTF8"" identifier = (cast_expression "(byte *)"IUTF8"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""IUTF8"" " string_content "))) ;) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);" do (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 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 "bVar7 = *param_2 < *pbVar3;" (assignment_expression "bVar7 = *param_2 < *pbVar3" identifier = (binary_expression "*param_2 < *pbVar3" (pointer_expression "*param_2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *param_2 == *pbVar3;" (assignment_expression "bVar6 = *param_2 == *pbVar3" identifier = (binary_expression "*param_2 == *pbVar3" (pointer_expression "*param_2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }" if (parenthesized_expression "((!bVar7 && !bVar6) == bVar7)" ( (binary_expression "(!bVar7 && !bVar6) == bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" ( (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier) )) (compound_statement "{\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }" { (expression_statement "iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));" (assignment_expression "iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108))" identifier = (call_expression "FUN_001869bf(*(undefined8 *)(param_1 + 0x1108))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1108))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1108)" * (cast_expression "(undefined8 *)(param_1 + 0x1108)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1108)" ( (binary_expression "param_1 + 0x1108" identifier + number_literal) )))) )))) ;) (expression_statement "puVar5 = &DAT_001bc0bd;" (assignment_expression "puVar5 = &DAT_001bc0bd" identifier = (pointer_expression "&DAT_001bc0bd" & identifier)) ;) (if_statement "if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar5 = &DAT_001bc0c6;\n      }" { (expression_statement "puVar5 = &DAT_001bc0c6;" (assignment_expression "puVar5 = &DAT_001bc0c6" identifier = (pointer_expression "&DAT_001bc0c6" & identifier)) ;) })) })) }))) (expression_statement "FUN_0012698b(puVar5);" (call_expression "FUN_0012698b(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression & IDENT) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression & IDENT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) + LIT) )))) ;) (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) < (binary_expression (parenthesized_expression ( IDENT )) * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (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 ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) }) (else_clause else (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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00171f69(long param_1,byte *param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00171f69(long param_1,byte *param_2)" (identifier "FUN_00171f69") (parameter_list "(long param_1,byte *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  bool bVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  bVar6 = &stack0x00000000 < (undefined1 *)0x8;\n  bVar8 = &stack0x00000000 == (undefined1 *)0x8;\n  lVar2 = 6;\n  pcVar4 = "WERASE";\n  pbVar3 = param_2;\n  do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);\n  bVar7 = false;\n  bVar6 = (!bVar6 && !bVar8) == bVar6;\n  if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }\n  FUN_0012698b(puVar5);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (expression_statement "bVar6 = &stack0x00000000 < (undefined1 *)0x8;" (assignment_expression "bVar6 = &stack0x00000000 < (undefined1 *)0x8" (identifier "bVar6") (= "=") (binary_expression "&stack0x00000000 < (undefined1 *)0x8" (pointer_expression "&stack0x00000000" (& "&") (identifier "stack0x00000000")) (< "<") (cast_expression "(undefined1 *)0x8" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x8")))) (; ";")) (expression_statement "bVar8 = &stack0x00000000 == (undefined1 *)0x8;" (assignment_expression "bVar8 = &stack0x00000000 == (undefined1 *)0x8" (identifier "bVar8") (= "=") (binary_expression "&stack0x00000000 == (undefined1 *)0x8" (pointer_expression "&stack0x00000000" (& "&") (identifier "stack0x00000000")) (== "==") (cast_expression "(undefined1 *)0x8" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x8")))) (; ";")) (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" (identifier "lVar2") (= "=") (number_literal "6")) (; ";")) (expression_statement "pcVar4 = "WERASE";" (assignment_expression "pcVar4 = "WERASE"" (identifier "pcVar4") (= "=") (string_literal ""WERASE"" (" """) (string_content "WERASE") (" """))) (; ";")) (expression_statement "pbVar3 = param_2;" (assignment_expression "pbVar3 = param_2" (identifier "pbVar3") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar8);" (do "do") (compound_statement "{\n    pcVar4 = (char *)((byte *)pcVar4 + 1);\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    bVar6 = *pbVar3 < (byte)*pcVar4;\n    bVar8 = *pbVar3 == *pcVar4;\n    pbVar3 = pbVar3 + 1;\n  }" ({ "{") (expression_statement "pcVar4 = (char *)((byte *)pcVar4 + 1);" (assignment_expression "pcVar4 = (char *)((byte *)pcVar4 + 1)" (identifier "pcVar4") (= "=") (cast_expression "(char *)((byte *)pcVar4 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((byte *)pcVar4 + 1)" (( "(") (binary_expression "(byte *)pcVar4 + 1" (cast_expression "(byte *)pcVar4" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pcVar4")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (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 = *pbVar3 < (byte)*pcVar4;" (assignment_expression "bVar6 = *pbVar3 < (byte)*pcVar4" (identifier "bVar6") (= "=") (binary_expression "*pbVar3 < (byte)*pcVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (binary_expression "(byte)*pcVar4" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "pcVar4")))) (; ";")) (expression_statement "bVar8 = *pbVar3 == *pcVar4;" (assignment_expression "bVar8 = *pbVar3 == *pcVar4" (identifier "bVar8") (= "=") (binary_expression "*pbVar3 == *pcVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = (!bVar6 && !bVar8) == bVar6;" (assignment_expression "bVar6 = (!bVar6 && !bVar8) == bVar6" (identifier "bVar6") (= "=") (binary_expression "(!bVar6 && !bVar8) == bVar6" (parenthesized_expression "(!bVar6 && !bVar8)" (( "(") (binary_expression "!bVar6 && !bVar8" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar8" (! "!") (identifier "bVar8"))) () ")")) (== "==") (identifier "bVar6"))) (; ";")) (if_statement "if (bVar6) {\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }\n  else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (compound_statement "{\n    puVar5 = &DAT_001c80b3;\n    if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }\n  }" ({ "{") (expression_statement "puVar5 = &DAT_001c80b3;" (assignment_expression "puVar5 = &DAT_001c80b3" (identifier "puVar5") (= "=") (pointer_expression "&DAT_001c80b3" (& "&") (identifier "DAT_001c80b3"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x11b8) == 0) {\n      puVar5 = &DAT_001c80b6;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x11b8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x11b8) == 0" (pointer_expression "*(int *)(param_1 + 0x11b8)" (* "*") (cast_expression "(int *)(param_1 + 0x11b8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11b8)" (( "(") (binary_expression "param_1 + 0x11b8" (identifier "param_1") (+ "+") (number_literal "0x11b8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar5 = &DAT_001c80b6;\n    }" ({ "{") (expression_statement "puVar5 = &DAT_001c80b6;" (assignment_expression "puVar5 = &DAT_001c80b6" (identifier "puVar5") (= "=") (pointer_expression "&DAT_001c80b6" (& "&") (identifier "DAT_001c80b6"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    lVar2 = 6;\n    pbVar3 = (byte *)"IUTF8";\n    do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);\n    puVar5 = (undefined *)0x0;\n    if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }\n  }" ({ "{") (expression_statement "lVar2 = 6;" (assignment_expression "lVar2 = 6" (identifier "lVar2") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar3 = (byte *)"IUTF8";" (assignment_expression "pbVar3 = (byte *)"IUTF8"" (identifier "pbVar3") (= "=") (cast_expression "(byte *)"IUTF8"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""IUTF8"" (" """) (string_content "IUTF8") (" """)))) (; ";")) (do_statement "do {\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar6);" (do "do") (compound_statement "{\n      if (lVar2 == 0) break;\n      lVar2 = lVar2 + -1;\n      bVar7 = *param_2 < *pbVar3;\n      bVar6 = *param_2 == *pbVar3;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 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 "bVar7 = *param_2 < *pbVar3;" (assignment_expression "bVar7 = *param_2 < *pbVar3" (identifier "bVar7") (= "=") (binary_expression "*param_2 < *pbVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar6 = *param_2 == *pbVar3;" (assignment_expression "bVar6 = *param_2 == *pbVar3" (identifier "bVar6") (= "=") (binary_expression "*param_2 == *pbVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if ((!bVar7 && !bVar6) == bVar7) {\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }" (if "if") (parenthesized_expression "((!bVar7 && !bVar6) == bVar7)" (( "(") (binary_expression "(!bVar7 && !bVar6) == bVar7" (parenthesized_expression "(!bVar7 && !bVar6)" (( "(") (binary_expression "!bVar7 && !bVar6" (unary_expression "!bVar7" (! "!") (identifier "bVar7")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (== "==") (identifier "bVar7")) () ")")) (compound_statement "{\n      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));\n      puVar5 = &DAT_001bc0bd;\n      if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));" (assignment_expression "iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108))" (identifier "iVar1") (= "=") (call_expression "FUN_001869bf(*(undefined8 *)(param_1 + 0x1108))" (identifier "FUN_001869bf") (argument_list "(*(undefined8 *)(param_1 + 0x1108))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1108)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1108)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1108)" (( "(") (binary_expression "param_1 + 0x1108" (identifier "param_1") (+ "+") (number_literal "0x1108")) () ")")))) () ")")))) (; ";")) (expression_statement "puVar5 = &DAT_001bc0bd;" (assignment_expression "puVar5 = &DAT_001bc0bd" (identifier "puVar5") (= "=") (pointer_expression "&DAT_001bc0bd" (& "&") (identifier "DAT_001bc0bd"))) (; ";")) (if_statement "if (iVar1 == 0) {\n        puVar5 = &DAT_001bc0c6;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar5 = &DAT_001bc0c6;\n      }" ({ "{") (expression_statement "puVar5 = &DAT_001bc0c6;" (assignment_expression "puVar5 = &DAT_001bc0c6" (identifier "puVar5") (= "=") (pointer_expression "&DAT_001bc0c6" (& "&") (identifier "DAT_001bc0c6"))) (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "FUN_0012698b(puVar5);" (call_expression "FUN_0012698b(puVar5)" (identifier "FUN_0012698b") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

char * function_1(type_1 *term,char *var_5)

{
  type_2 var_8;
  long var_1;
  type_3 *var_3;
  char *var_2;
  bool var_4;
  bool var_6;
  bool bVar7;
  
  var_4 = &stack0x00000000 < (type_4 *)0x8;
  bVar7 = &stack0x00000000 == (type_4 *)0x8;
  var_1 = 6;
  var_2 = "WERASE";
  var_3 = (type_3 *)var_5;
  do {
    var_2 = (char *)((type_3 *)var_2 + 1);
    if (var_1 == 0) break;
    var_1 = var_1 + -1;
    var_4 = *var_3 < (type_3)*var_2;
    bVar7 = *var_3 == *var_2;
    var_3 = var_3 + 1;
  } while (bVar7);
  var_6 = false;
  var_4 = (!var_4 && !bVar7) == var_4;
  if (var_4) {
    var_2 = "^?";
    if (term->bksp_is_delete == L'\0') {
      var_2 = "^H";
    }
  }
  else {
    var_1 = 6;
    var_3 = (type_3 *)"IUTF8";
    do {
      if (var_1 == 0) break;
      var_1 = var_1 + -1;
      var_6 = (type_3)*var_5 < *var_3;
      var_4 = *var_5 == *var_3;
      var_5 = (char *)((type_3 *)var_5 + 1);
      var_3 = var_3 + 1;
    } while (var_4);
    var_2 = (char *)0x0;
    if ((!var_6 && !var_4) == var_6) {
      var_8 = var_7(term->frontend);
      var_2 = "yes";
      if (var_8 == L'\0') {
        var_2 = "no";
      }
    }
  }
  var_2 = var_9(var_2);
  return var_2;
}


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

void MASKED(long param_1,byte *param_2)

{
  int iVar1;
  long lVar2;
  byte *pbVar3;
  char *pcVar4;
  undefined *puVar5;
  bool bVar6;
  bool bVar7;
  bool bVar8;
  
  bVar6 = &stack0x00000000 < (undefined1 *)0x8;
  bVar8 = &stack0x00000000 == (undefined1 *)0x8;
  lVar2 = 6;
  pcVar4 = "WERASE";
  pbVar3 = param_2;
  do {
    pcVar4 = (char *)((byte *)pcVar4 + 1);
    if (lVar2 == 0) break;
    lVar2 = lVar2 + -1;
    bVar6 = *pbVar3 < (byte)*pcVar4;
    bVar8 = *pbVar3 == *pcVar4;
    pbVar3 = pbVar3 + 1;
  } while (bVar8);
  bVar7 = false;
  bVar6 = (!bVar6 && !bVar8) == bVar6;
  if (bVar6) {
    puVar5 = &DAT_001c80b3;
    if (*(int *)(param_1 + 0x11b8) == 0) {
      puVar5 = &DAT_001c80b6;
    }
  }
  else {
    lVar2 = 6;
    pbVar3 = (byte *)"IUTF8";
    do {
      if (lVar2 == 0) break;
      lVar2 = lVar2 + -1;
      bVar7 = *param_2 < *pbVar3;
      bVar6 = *param_2 == *pbVar3;
      param_2 = param_2 + 1;
      pbVar3 = pbVar3 + 1;
    } while (bVar6);
    puVar5 = (undefined *)0x0;
    if ((!bVar7 && !bVar6) == bVar7) {
      iVar1 = FUN_001869bf(*(undefined8 *)(param_1 + 0x1108));
      puVar5 = &DAT_001bc0bd;
      if (iVar1 == 0) {
        puVar5 = &DAT_001bc0c6;
      }
    }
  }
  FUN_0012698b(puVar5);
  return;
}

