
int charset_from_xenc(char *name)

{
  byte bVar1;
  __int32_t **pp_Var2;
  byte *pbVar3;
  byte *pbVar4;
  int iVar5;
  anon_struct_16_2_f9e0d5ac *paVar6;
  
  paVar6 = xencs;
  iVar5 = 0;
  do {
    pbVar3 = (byte *)paVar6->name;
    pbVar4 = (byte *)name;
    while( true ) {
      bVar1 = *pbVar4;
      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;
      pp_Var2 = __ctype_tolower_loc();
      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;
      pbVar4 = pbVar4 + 1;
      pbVar3 = pbVar3 + 1;
    }
    if (bVar1 == 0) {
LAB_00113085:
      if (*pbVar3 == 0) {
        return xencs[iVar5].charset;
      }
    }
    iVar5 = iVar5 + 1;
    paVar6 = paVar6 + 1;
    if (iVar5 == 0x22) {
      return 0;
    }
  } while( true );
}



undefined4 FUN_00113037(byte *param_1)

{
  byte bVar1;
  __int32_t **pp_Var2;
  byte *pbVar3;
  byte *pbVar4;
  int iVar5;
  undefined **ppuVar6;
  
  ppuVar6 = &PTR_s_iso8859_1_00196d00;
  iVar5 = 0;
  do {
    pbVar3 = *ppuVar6;
    pbVar4 = param_1;
    while( true ) {
      bVar1 = *pbVar4;
      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;
      pp_Var2 = __ctype_tolower_loc();
      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;
      pbVar4 = pbVar4 + 1;
      pbVar3 = pbVar3 + 1;
    }
    if (bVar1 == 0) {
LAB_00113085:
      if (*pbVar3 == 0) {
        return (&DAT_00196d08)[(long)iVar5 * 4];
      }
    }
    iVar5 = iVar5 + 1;
    ppuVar6 = ppuVar6 + 2;
    if (iVar5 == 0x22) {
      return 0;
    }
  } while( true );
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R15,RDI
LEA R14,[0x196d00]
MOV R13D,0x0
JMP 0x001130b2
CALL 0x00110180
MOV RDX,qword ptr [RAX]
MOVZX EAX,BPL
MOVZX ECX,byte ptr [RBX]
MOV ESI,dword ptr [RDX + RCX*0x4]
CMP dword ptr [RDX + RAX*0x4],ESI
JNZ 0x0011309f
ADD R12,0x1
ADD RBX,0x1
MOVZX EBP,byte ptr [R12]
TEST BPL,BPL
JNZ 0x00113057
CMP byte ptr [RBX],0x0
JNZ 0x00113057
CMP byte ptr [RBX],0x0
JNZ 0x001130a4
MOVSXD R13,R13D
SHL R13,0x4
LEA RAX,[0x196d00]
MOV EAX,dword ptr [RAX + R13*0x1 + 0x8]
JMP 0x001130bf
TEST BPL,BPL
JZ 0x00113085
ADD R13D,0x1
ADD R14,0x10
CMP R13D,0x22
JZ 0x001130ba
MOV RBX,qword ptr [R14]
MOV R12,R15
JMP 0x00113076
MOV EAX,0x0
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "undefined4 FUN_00113037(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00113037(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_00113037(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "__int32_t **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined **ppuVar6;" type_identifier (pointer_declarator "**ppuVar6" * (pointer_declarator "*ppuVar6" * identifier)) ;) (expression_statement "ppuVar6 = &PTR_s_iso8859_1_00196d00;" (assignment_expression "ppuVar6 = &PTR_s_iso8859_1_00196d00" identifier = (pointer_expression "&PTR_s_iso8859_1_00196d00" & identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  }" { (expression_statement "pbVar3 = *ppuVar6;" (assignment_expression "pbVar3 = *ppuVar6" identifier = (pointer_expression "*ppuVar6" * identifier)) ;) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;" if (parenthesized_expression "((bVar1 == 0) && (*pbVar3 == 0))" ( (binary_expression "(bVar1 == 0) && (*pbVar3 == 0)" (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*pbVar3 == 0)" ( (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" * identifier) == number_literal) ))) )) (goto_statement "goto LAB_00113085;" goto statement_identifier ;)) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" identifier = (call_expression "__ctype_tolower_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;" if (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3])" ( (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ identifier ]) != (subscript_expression "(*pp_Var2)[*pbVar3]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ (pointer_expression "*pbVar3" * identifier) ])) )) (break_statement "break;" break ;)) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) })) (if_statement "if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }" { (labeled_statement "LAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" statement_identifier : (if_statement "if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" if (parenthesized_expression "(*pbVar3 == 0)" ( (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" * identifier) == number_literal) )) (compound_statement "{\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" { (return_statement "return (&DAT_00196d08)[(long)iVar5 * 4];" return (subscript_expression "(&DAT_00196d08)[(long)iVar5 * 4]" (parenthesized_expression "(&DAT_00196d08)" ( (pointer_expression "&DAT_00196d08" & identifier) )) [ (binary_expression "(long)iVar5 * 4" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) ]) ;) }))) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" identifier = (binary_expression "ppuVar6 + 2" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0x22) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0x22)" ( (binary_expression "iVar5 == 0x22" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int charset_from_xenc(char *name)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  anon_struct_16_2_f9e0d5ac *paVar6;\n  \n  paVar6 = xencs;\n  iVar5 = 0;\n  do {\n    pbVar3 = (byte *)paVar6->name;\n    pbVar4 = (byte *)name;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    paVar6 = paVar6 + 1;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "int charset_from_xenc(char *name)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  anon_struct_16_2_f9e0d5ac *paVar6;\n  \n  paVar6 = xencs;\n  iVar5 = 0;\n  do {\n    pbVar3 = (byte *)paVar6->name;\n    pbVar4 = (byte *)name;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    paVar6 = paVar6 + 1;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" primitive_type (function_declarator "charset_from_xenc(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  anon_struct_16_2_f9e0d5ac *paVar6;\n  \n  paVar6 = xencs;\n  iVar5 = 0;\n  do {\n    pbVar3 = (byte *)paVar6->name;\n    pbVar4 = (byte *)name;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    paVar6 = paVar6 + 1;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "__int32_t **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "anon_struct_16_2_f9e0d5ac *paVar6;" type_identifier (pointer_declarator "*paVar6" * identifier) ;) (expression_statement "paVar6 = xencs;" (assignment_expression "paVar6 = xencs" identifier = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    pbVar3 = (byte *)paVar6->name;\n    pbVar4 = (byte *)name;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    paVar6 = paVar6 + 1;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    pbVar3 = (byte *)paVar6->name;\n    pbVar4 = (byte *)name;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    paVar6 = paVar6 + 1;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  }" { (expression_statement "pbVar3 = (byte *)paVar6->name;" (assignment_expression "pbVar3 = (byte *)paVar6->name" identifier = (cast_expression "(byte *)paVar6->name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "paVar6->name" identifier -> field_identifier))) ;) (expression_statement "pbVar4 = (byte *)name;" (assignment_expression "pbVar4 = (byte *)name" identifier = (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;" if (parenthesized_expression "((bVar1 == 0) && (*pbVar3 == 0))" ( (binary_expression "(bVar1 == 0) && (*pbVar3 == 0)" (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*pbVar3 == 0)" ( (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" * identifier) == number_literal) ))) )) (goto_statement "goto LAB_00113085;" goto statement_identifier ;)) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" identifier = (call_expression "__ctype_tolower_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;" if (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3])" ( (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ identifier ]) != (subscript_expression "(*pp_Var2)[*pbVar3]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ (pointer_expression "*pbVar3" * identifier) ])) )) (break_statement "break;" break ;)) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) })) (if_statement "if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }\n    }" { (labeled_statement "LAB_00113085:\n      if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }" statement_identifier : (if_statement "if (*pbVar3 == 0) {\n        return xencs[iVar5].charset;\n      }" if (parenthesized_expression "(*pbVar3 == 0)" ( (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" * identifier) == number_literal) )) (compound_statement "{\n        return xencs[iVar5].charset;\n      }" { (return_statement "return xencs[iVar5].charset;" return (field_expression "xencs[iVar5].charset" (subscript_expression "xencs[iVar5]" identifier [ identifier ]) . field_identifier) ;) }))) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "paVar6 = paVar6 + 1;" (assignment_expression "paVar6 = paVar6 + 1" identifier = (binary_expression "paVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0x22) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0x22)" ( (binary_expression "iVar5 == 0x22" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_00113037(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00113037(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_00113037(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "__int32_t **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined **ppuVar6;" type_identifier (pointer_declarator "**ppuVar6" * (pointer_declarator "*ppuVar6" * identifier)) ;) (expression_statement "ppuVar6 = &PTR_s_iso8859_1_00196d00;" (assignment_expression "ppuVar6 = &PTR_s_iso8859_1_00196d00" identifier = (pointer_expression "&PTR_s_iso8859_1_00196d00" & identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  }" { (expression_statement "pbVar3 = *ppuVar6;" (assignment_expression "pbVar3 = *ppuVar6" identifier = (pointer_expression "*ppuVar6" * identifier)) ;) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;" if (parenthesized_expression "((bVar1 == 0) && (*pbVar3 == 0))" ( (binary_expression "(bVar1 == 0) && (*pbVar3 == 0)" (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*pbVar3 == 0)" ( (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" * identifier) == number_literal) ))) )) (goto_statement "goto LAB_00113085;" goto statement_identifier ;)) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" identifier = (call_expression "__ctype_tolower_loc()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;" if (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3])" ( (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ identifier ]) != (subscript_expression "(*pp_Var2)[*pbVar3]" (parenthesized_expression "(*pp_Var2)" ( (pointer_expression "*pp_Var2" * identifier) )) [ (pointer_expression "*pbVar3" * identifier) ])) )) (break_statement "break;" break ;)) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) })) (if_statement "if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }" { (labeled_statement "LAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" statement_identifier : (if_statement "if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" if (parenthesized_expression "(*pbVar3 == 0)" ( (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" * identifier) == number_literal) )) (compound_statement "{\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" { (return_statement "return (&DAT_00196d08)[(long)iVar5 * 4];" return (subscript_expression "(&DAT_00196d08)[(long)iVar5 * 4]" (parenthesized_expression "(&DAT_00196d08)" ( (pointer_expression "&DAT_00196d08" & identifier) )) [ (binary_expression "(long)iVar5 * 4" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) ]) ;) }))) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" identifier = (binary_expression "ppuVar6 + 2" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0x22) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0x22)" ( (binary_expression "iVar5 == 0x22" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ IDENT ]) != (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ (pointer_expression * IDENT) ])) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT) ]) ;) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_00113037(byte *param_1)\n\n{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_00113037(byte *param_1)" (identifier "FUN_00113037") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  __int32_t **pp_Var2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  undefined **ppuVar6;\n  \n  ppuVar6 = &PTR_s_iso8859_1_00196d00;\n  iVar5 = 0;\n  do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "__int32_t **pp_Var2;" (type_identifier "__int32_t") (pointer_declarator "**pp_Var2" (* "*") (pointer_declarator "*pp_Var2" (* "*") (identifier "pp_Var2"))) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined **ppuVar6;" (type_identifier "undefined") (pointer_declarator "**ppuVar6" (* "*") (pointer_declarator "*ppuVar6" (* "*") (identifier "ppuVar6"))) (; ";")) (expression_statement "ppuVar6 = &PTR_s_iso8859_1_00196d00;" (assignment_expression "ppuVar6 = &PTR_s_iso8859_1_00196d00" (identifier "ppuVar6") (= "=") (pointer_expression "&PTR_s_iso8859_1_00196d00" (& "&") (identifier "PTR_s_iso8859_1_00196d00"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    pbVar3 = *ppuVar6;\n    pbVar4 = param_1;\n    while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }\n    if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }\n    iVar5 = iVar5 + 1;\n    ppuVar6 = ppuVar6 + 2;\n    if (iVar5 == 0x22) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "pbVar3 = *ppuVar6;" (assignment_expression "pbVar3 = *ppuVar6" (identifier "pbVar3") (= "=") (pointer_expression "*ppuVar6" (* "*") (identifier "ppuVar6"))) (; ";")) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" (identifier "pbVar4") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      bVar1 = *pbVar4;\n      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;\n      pp_Var2 = __ctype_tolower_loc();\n      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;\n      pbVar4 = pbVar4 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" ({ "{") (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" (identifier "bVar1") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;" (if "if") (parenthesized_expression "((bVar1 == 0) && (*pbVar3 == 0))" (( "(") (binary_expression "(bVar1 == 0) && (*pbVar3 == 0)" (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*pbVar3 == 0)" (( "(") (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00113085;" (goto "goto") (statement_identifier "LAB_00113085") (; ";"))) (expression_statement "pp_Var2 = __ctype_tolower_loc();" (assignment_expression "pp_Var2 = __ctype_tolower_loc()" (identifier "pp_Var2") (= "=") (call_expression "__ctype_tolower_loc()" (identifier "__ctype_tolower_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;" (if "if") (parenthesized_expression "((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3])" (( "(") (binary_expression "(*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]" (subscript_expression "(*pp_Var2)[bVar1]" (parenthesized_expression "(*pp_Var2)" (( "(") (pointer_expression "*pp_Var2" (* "*") (identifier "pp_Var2")) () ")")) ([ "[") (identifier "bVar1") (] "]")) (!= "!=") (subscript_expression "(*pp_Var2)[*pbVar3]" (parenthesized_expression "(*pp_Var2)" (( "(") (pointer_expression "*pp_Var2" (* "*") (identifier "pp_Var2")) () ")")) ([ "[") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (] "]"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (bVar1 == 0) {\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }\n    }" ({ "{") (labeled_statement "LAB_00113085:\n      if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" (statement_identifier "LAB_00113085") (: ":") (if_statement "if (*pbVar3 == 0) {\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" (if "if") (parenthesized_expression "(*pbVar3 == 0)" (( "(") (binary_expression "*pbVar3 == 0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return (&DAT_00196d08)[(long)iVar5 * 4];\n      }" ({ "{") (return_statement "return (&DAT_00196d08)[(long)iVar5 * 4];" (return "return") (subscript_expression "(&DAT_00196d08)[(long)iVar5 * 4]" (parenthesized_expression "(&DAT_00196d08)" (( "(") (pointer_expression "&DAT_00196d08" (& "&") (identifier "DAT_00196d08")) () ")")) ([ "[") (binary_expression "(long)iVar5 * 4" (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5")) (* "*") (number_literal "4")) (] "]")) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" (identifier "ppuVar6") (= "=") (binary_expression "ppuVar6 + 2" (identifier "ppuVar6") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (iVar5 == 0x22) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0x22)" (( "(") (binary_expression "iVar5 == 0x22" (identifier "iVar5") (== "==") (number_literal "0x22")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int function_1(char *name)

{
  type_1 var_1;
  type_2 **pp_Var2;
  type_1 *var_4;
  type_1 *var_3;
  int var_5;
  type_3 *var_6;
  
  var_6 = xencs;
  var_5 = 0;
  do {
    var_4 = (type_1 *)var_6->name;
    var_3 = (type_1 *)name;
    while( true ) {
      var_1 = *var_3;
      if ((var_1 == 0) && (*var_4 == 0)) goto LAB_00113085;
      pp_Var2 = var_2();
      if ((*pp_Var2)[var_1] != (*pp_Var2)[*var_4]) break;
      var_3 = var_3 + 1;
      var_4 = var_4 + 1;
    }
    if (var_1 == 0) {
LAB_00113085:
      if (*var_4 == 0) {
        return xencs[var_5].charset;
      }
    }
    var_5 = var_5 + 1;
    var_6 = var_6 + 1;
    if (var_5 == 0x22) {
      return 0;
    }
  } while( true );
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator 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: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (pointer_expression argument: (identifier))))) 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: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) condition: (parenthesized_expression (true))))))

undefined4 MASKED(byte *param_1)

{
  byte bVar1;
  __int32_t **pp_Var2;
  byte *pbVar3;
  byte *pbVar4;
  int iVar5;
  undefined **ppuVar6;
  
  ppuVar6 = &PTR_s_iso8859_1_00196d00;
  iVar5 = 0;
  do {
    pbVar3 = *ppuVar6;
    pbVar4 = param_1;
    while( true ) {
      bVar1 = *pbVar4;
      if ((bVar1 == 0) && (*pbVar3 == 0)) goto LAB_00113085;
      pp_Var2 = __ctype_tolower_loc();
      if ((*pp_Var2)[bVar1] != (*pp_Var2)[*pbVar3]) break;
      pbVar4 = pbVar4 + 1;
      pbVar3 = pbVar3 + 1;
    }
    if (bVar1 == 0) {
LAB_00113085:
      if (*pbVar3 == 0) {
        return (&DAT_00196d08)[(long)iVar5 * 4];
      }
    }
    iVar5 = iVar5 + 1;
    ppuVar6 = ppuVar6 + 2;
    if (iVar5 == 0x22) {
      return 0;
    }
  } while( true );
}

