
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int check_special(char *name)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  char *__s2;
  int iVar4;
  int iVar5;
  int iVar6;
  
  iVar4 = 0x45;
  iVar5 = 0x45;
  uVar2 = ~-(uint)((do_flags & 0x10U) == 0) & 0x400;
  if ((do_flags & 0x20U) != 0) {
    uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;
  }
  iVar6 = 0;
  cVar1 = *name;
  __s2 = "index";
  do {
    iVar5 = iVar5 >> 1;
    if ((int)cVar1 == (int)*__s2) {
      iVar3 = strcmp(name,__s2);
      if (iVar3 < 0) goto LAB_000247af;
      if (iVar3 == 0) {
        if ((tokentab[iVar5].flags & uVar2) != 0) {
          iVar5 = -1;
        }
        return iVar5;
      }
LAB_0002478e:
      iVar6 = iVar5 + 1;
      if (iVar4 < iVar6) {
        return -1;
      }
    }
    else {
      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;
LAB_000247af:
      iVar4 = iVar5 + -1;
      if (iVar4 < iVar6) {
        return -1;
      }
    }
    iVar5 = iVar6 + iVar4;
    __s2 = tokentab[iVar5 >> 1].operator;
  } while( true );
}



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

int FUN_00024700(char *param_1)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  char *__s2;
  int iVar4;
  int iVar5;
  int iVar6;
  
  iVar4 = 0x45;
  iVar5 = 0x45;
  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;
  if ((DAT_000e1760 & 0x20) != 0) {
    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;
  }
  iVar6 = 0;
  cVar1 = *param_1;
  __s2 = "index";
  do {
    iVar5 = iVar5 >> 1;
    if ((int)cVar1 == (int)*__s2) {
      iVar3 = strcmp(param_1,__s2);
      if (iVar3 < 0) goto LAB_000247af;
      if (iVar3 == 0) {
        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {
          iVar5 = -1;
        }
        return iVar5;
      }
LAB_0002478e:
      iVar6 = iVar5 + 1;
      if (iVar4 < iVar6) {
        return -1;
      }
    }
    else {
      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;
LAB_000247af:
      iVar4 = iVar5 + -1;
      if (iVar4 < iVar6) {
        return -1;
      }
    }
    iVar5 = iVar6 + iVar4;
    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];
  } while( true );
}


PUSH EBP
PUSH EDI
MOV EBP,0x45
PUSH ESI
PUSH EBX
MOV ESI,0x45
CALL 0x00016f80
ADD EBX,0xb85d1
SUB ESP,0x1c
LEA EAX,[EBX + 0x4a7c]
MOV EDX,dword ptr [EAX]
MOV ECX,EDX
AND ECX,0x10
CMP ECX,0x1
SBB EAX,EAX
NOT EAX
AND EAX,0x400
CMP ECX,0x1
SBB ECX,ECX
AND ECX,0xfffffc00
ADD ECX,0x600
AND EDX,0x20
LEA EDX,[EBX + 0xfffff39c]
CMOVNZ EAX,ECX
XOR EDI,EDI
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOVSX EAX,byte ptr [EAX]
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[EBX + 0xfffccef5]
JMP 0x000247a2
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x00013d90
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0x8]
JS 0x000247af
JZ 0x000247c8
LEA EDI,[ESI + 0x1]
CMP EDI,EBP
JG 0x000247b6
LEA ESI,[EDI + EBP*0x1]
MOV EAX,ESI
SAR EAX,0x1
LEA EAX,[EAX + EAX*0x2]
MOV EAX,dword ptr [EDX + EAX*0x8]
MOVSX ECX,byte ptr [EAX]
SAR ESI,0x1
CMP dword ptr [ESP + 0x4],ECX
JZ 0x00024770
JNS 0x0002478e
LEA EBP,[ESI + -0x1]
CMP EDI,EBP
JLE 0x00024795
ADD ESP,0x1c
MOV ESI,0xffffffff
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + ESI*0x2]
MOV EDX,dword ptr [ESP + 0xc]
TEST dword ptr [EBX + EAX*0x8 + 0xfffff3a8],EDX
MOV EAX,0xffffffff
CMOVNZ ESI,EAX
ADD ESP,0x1c
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00024700(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}\n\n" comment (function_definition "int FUN_00024700(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}" primitive_type (function_declarator "FUN_00024700(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = 0x45;" (assignment_expression "iVar4 = 0x45" identifier = number_literal) ;) (expression_statement "iVar5 = 0x45;" (assignment_expression "iVar5 = 0x45" identifier = number_literal) ;) (expression_statement "uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;" (assignment_expression "uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400" identifier = (binary_expression "~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400" (unary_expression "~-(uint)((DAT_000e1760 & 0x10) == 0)" ~ (unary_expression "-(uint)((DAT_000e1760 & 0x10) == 0)" - (call_expression "(uint)((DAT_000e1760 & 0x10) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_000e1760 & 0x10) == 0)" ( (binary_expression "(DAT_000e1760 & 0x10) == 0" (parenthesized_expression "(DAT_000e1760 & 0x10)" ( (binary_expression "DAT_000e1760 & 0x10" identifier & number_literal) )) == number_literal) ))))) & number_literal)) ;) (if_statement "if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }" if (parenthesized_expression "((DAT_000e1760 & 0x20) != 0)" ( (binary_expression "(DAT_000e1760 & 0x20) != 0" (parenthesized_expression "(DAT_000e1760 & 0x20)" ( (binary_expression "DAT_000e1760 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }" { (expression_statement "uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;" (assignment_expression "uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600" identifier = (binary_expression "(-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600" (parenthesized_expression "(-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00)" ( (binary_expression "-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00" (unary_expression "-(uint)((DAT_000e1760 & 0x10) == 0)" - (call_expression "(uint)((DAT_000e1760 & 0x10) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_000e1760 & 0x10) == 0)" ( (binary_expression "(DAT_000e1760 & 0x10) == 0" (parenthesized_expression "(DAT_000e1760 & 0x10)" ( (binary_expression "DAT_000e1760 & 0x10" identifier & number_literal) )) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "__s2 = "index";" (assignment_expression "__s2 = "index"" identifier = (string_literal ""index"" " string_content ")) ;) (do_statement "do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );" do (compound_statement "{\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  }" { (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" identifier = (binary_expression "iVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" if (parenthesized_expression "((int)cVar1 == (int)*__s2)" ( (binary_expression "(int)cVar1 == (int)*__s2" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) == (cast_expression "(int)*__s2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__s2" * identifier))) )) (compound_statement "{\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" { (expression_statement "iVar3 = strcmp(param_1,__s2);" (assignment_expression "iVar3 = strcmp(param_1,__s2)" identifier = (call_expression "strcmp(param_1,__s2)" identifier (argument_list "(param_1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) goto LAB_000247af;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) (if_statement "if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" { (if_statement "if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }" if (parenthesized_expression "(((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0)" ( (binary_expression "((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0" (parenthesized_expression "((&DAT_000dc08c)[iVar5 * 6] & uVar2)" ( (binary_expression "(&DAT_000dc08c)[iVar5 * 6] & uVar2" (subscript_expression "(&DAT_000dc08c)[iVar5 * 6]" (parenthesized_expression "(&DAT_000dc08c)" ( (pointer_expression "&DAT_000dc08c" & identifier) )) [ (binary_expression "iVar5 * 6" identifier * number_literal) ]) & identifier) )) != number_literal) )) (compound_statement "{\n          iVar5 = -1;\n        }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) })) (return_statement "return iVar5;" return identifier ;) })) (labeled_statement "LAB_0002478e:\n      iVar6 = iVar5 + 1;" statement_identifier : (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" if (parenthesized_expression "(iVar4 < iVar6)" ( (binary_expression "iVar4 < iVar6" identifier < identifier) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) }) (else_clause "else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" else (compound_statement "{\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" { (if_statement "if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;" if (parenthesized_expression "(-1 < (int)cVar1 - (int)*__s2)" ( (binary_expression "-1 < (int)cVar1 - (int)*__s2" number_literal < (binary_expression "(int)cVar1 - (int)*__s2" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)*__s2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__s2" * identifier)))) )) (goto_statement "goto LAB_0002478e;" goto statement_identifier ;)) (labeled_statement "LAB_000247af:\n      iVar4 = iVar5 + -1;" statement_identifier : (expression_statement "iVar4 = iVar5 + -1;" (assignment_expression "iVar4 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;)) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" if (parenthesized_expression "(iVar4 < iVar6)" ( (binary_expression "iVar4 < iVar6" identifier < identifier) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) }))) (expression_statement "iVar5 = iVar6 + iVar4;" (assignment_expression "iVar5 = iVar6 + iVar4" identifier = (binary_expression "iVar6 + iVar4" identifier + identifier)) ;) (expression_statement "__s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];" (assignment_expression "__s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6]" identifier = (subscript_expression "(&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6]" (parenthesized_expression "(&PTR_s_BEGIN_000dc080)" ( (pointer_expression "&PTR_s_BEGIN_000dc080" & identifier) )) [ (binary_expression "(iVar5 >> 1) * 6" (parenthesized_expression "(iVar5 >> 1)" ( (binary_expression "iVar5 >> 1" identifier >> number_literal) )) * number_literal) ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint check_special(char *name)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((do_flags & 0x10U) == 0) & 0x400;\n  if ((do_flags & 0x20U) != 0) {\n    uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *name;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = tokentab[iVar5 >> 1].operator;\n  } while( true );\n}\n\n" comment comment (function_definition "int check_special(char *name)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((do_flags & 0x10U) == 0) & 0x400;\n  if ((do_flags & 0x20U) != 0) {\n    uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *name;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = tokentab[iVar5 >> 1].operator;\n  } while( true );\n}" primitive_type (function_declarator "check_special(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((do_flags & 0x10U) == 0) & 0x400;\n  if ((do_flags & 0x20U) != 0) {\n    uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *name;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = tokentab[iVar5 >> 1].operator;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = 0x45;" (assignment_expression "iVar4 = 0x45" identifier = number_literal) ;) (expression_statement "iVar5 = 0x45;" (assignment_expression "iVar5 = 0x45" identifier = number_literal) ;) (expression_statement "uVar2 = ~-(uint)((do_flags & 0x10U) == 0) & 0x400;" (assignment_expression "uVar2 = ~-(uint)((do_flags & 0x10U) == 0) & 0x400" identifier = (binary_expression "~-(uint)((do_flags & 0x10U) == 0) & 0x400" (unary_expression "~-(uint)((do_flags & 0x10U) == 0)" ~ (unary_expression "-(uint)((do_flags & 0x10U) == 0)" - (call_expression "(uint)((do_flags & 0x10U) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((do_flags & 0x10U) == 0)" ( (binary_expression "(do_flags & 0x10U) == 0" (parenthesized_expression "(do_flags & 0x10U)" ( (binary_expression "do_flags & 0x10U" identifier & number_literal) )) == number_literal) ))))) & number_literal)) ;) (if_statement "if ((do_flags & 0x20U) != 0) {\n    uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;\n  }" if (parenthesized_expression "((do_flags & 0x20U) != 0)" ( (binary_expression "(do_flags & 0x20U) != 0" (parenthesized_expression "(do_flags & 0x20U)" ( (binary_expression "do_flags & 0x20U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;\n  }" { (expression_statement "uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600;" (assignment_expression "uVar2 = (-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600" identifier = (binary_expression "(-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00) + 0x600" (parenthesized_expression "(-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00)" ( (binary_expression "-(uint)((do_flags & 0x10U) == 0) & 0xfffffc00" (unary_expression "-(uint)((do_flags & 0x10U) == 0)" - (call_expression "(uint)((do_flags & 0x10U) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((do_flags & 0x10U) == 0)" ( (binary_expression "(do_flags & 0x10U) == 0" (parenthesized_expression "(do_flags & 0x10U)" ( (binary_expression "do_flags & 0x10U" identifier & number_literal) )) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *name;" (assignment_expression "cVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (expression_statement "__s2 = "index";" (assignment_expression "__s2 = "index"" identifier = (string_literal ""index"" " string_content ")) ;) (do_statement "do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = tokentab[iVar5 >> 1].operator;\n  } while( true );" do (compound_statement "{\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = tokentab[iVar5 >> 1].operator;\n  }" { (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" identifier = (binary_expression "iVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" if (parenthesized_expression "((int)cVar1 == (int)*__s2)" ( (binary_expression "(int)cVar1 == (int)*__s2" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) == (cast_expression "(int)*__s2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__s2" * identifier))) )) (compound_statement "{\n      iVar3 = strcmp(name,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" { (expression_statement "iVar3 = strcmp(name,__s2);" (assignment_expression "iVar3 = strcmp(name,__s2)" identifier = (call_expression "strcmp(name,__s2)" identifier (argument_list "(name,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) goto LAB_000247af;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) (if_statement "if (iVar3 == 0) {\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" { (if_statement "if ((tokentab[iVar5].flags & uVar2) != 0) {\n          iVar5 = -1;\n        }" if (parenthesized_expression "((tokentab[iVar5].flags & uVar2) != 0)" ( (binary_expression "(tokentab[iVar5].flags & uVar2) != 0" (parenthesized_expression "(tokentab[iVar5].flags & uVar2)" ( (binary_expression "tokentab[iVar5].flags & uVar2" (field_expression "tokentab[iVar5].flags" (subscript_expression "tokentab[iVar5]" identifier [ identifier ]) . field_identifier) & identifier) )) != number_literal) )) (compound_statement "{\n          iVar5 = -1;\n        }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) })) (return_statement "return iVar5;" return identifier ;) })) (labeled_statement "LAB_0002478e:\n      iVar6 = iVar5 + 1;" statement_identifier : (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" if (parenthesized_expression "(iVar4 < iVar6)" ( (binary_expression "iVar4 < iVar6" identifier < identifier) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) }) (else_clause "else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" else (compound_statement "{\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" { (if_statement "if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;" if (parenthesized_expression "(-1 < (int)cVar1 - (int)*__s2)" ( (binary_expression "-1 < (int)cVar1 - (int)*__s2" number_literal < (binary_expression "(int)cVar1 - (int)*__s2" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)*__s2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__s2" * identifier)))) )) (goto_statement "goto LAB_0002478e;" goto statement_identifier ;)) (labeled_statement "LAB_000247af:\n      iVar4 = iVar5 + -1;" statement_identifier : (expression_statement "iVar4 = iVar5 + -1;" (assignment_expression "iVar4 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;)) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" if (parenthesized_expression "(iVar4 < iVar6)" ( (binary_expression "iVar4 < iVar6" identifier < identifier) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) }))) (expression_statement "iVar5 = iVar6 + iVar4;" (assignment_expression "iVar5 = iVar6 + iVar4" identifier = (binary_expression "iVar6 + iVar4" identifier + identifier)) ;) (expression_statement "__s2 = tokentab[iVar5 >> 1].operator;" (assignment_expression "__s2 = tokentab[iVar5 >> 1].operator" identifier = (field_expression "tokentab[iVar5 >> 1].operator" (subscript_expression "tokentab[iVar5 >> 1]" identifier [ (binary_expression "iVar5 >> 1" identifier >> number_literal) ]) . field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_00024700(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}\n\n" (function_definition "int FUN_00024700(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}" primitive_type (function_declarator "FUN_00024700(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = 0x45;" (assignment_expression "iVar4 = 0x45" identifier = number_literal) ;) (expression_statement "iVar5 = 0x45;" (assignment_expression "iVar5 = 0x45" identifier = number_literal) ;) (expression_statement "uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;" (assignment_expression "uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400" identifier = (binary_expression "~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400" (unary_expression "~-(uint)((DAT_000e1760 & 0x10) == 0)" ~ (unary_expression "-(uint)((DAT_000e1760 & 0x10) == 0)" - (call_expression "(uint)((DAT_000e1760 & 0x10) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_000e1760 & 0x10) == 0)" ( (binary_expression "(DAT_000e1760 & 0x10) == 0" (parenthesized_expression "(DAT_000e1760 & 0x10)" ( (binary_expression "DAT_000e1760 & 0x10" identifier & number_literal) )) == number_literal) ))))) & number_literal)) ;) (if_statement "if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }" if (parenthesized_expression "((DAT_000e1760 & 0x20) != 0)" ( (binary_expression "(DAT_000e1760 & 0x20) != 0" (parenthesized_expression "(DAT_000e1760 & 0x20)" ( (binary_expression "DAT_000e1760 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }" { (expression_statement "uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;" (assignment_expression "uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600" identifier = (binary_expression "(-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600" (parenthesized_expression "(-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00)" ( (binary_expression "-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00" (unary_expression "-(uint)((DAT_000e1760 & 0x10) == 0)" - (call_expression "(uint)((DAT_000e1760 & 0x10) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_000e1760 & 0x10) == 0)" ( (binary_expression "(DAT_000e1760 & 0x10) == 0" (parenthesized_expression "(DAT_000e1760 & 0x10)" ( (binary_expression "DAT_000e1760 & 0x10" identifier & number_literal) )) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "__s2 = "index";" (assignment_expression "__s2 = "index"" identifier = (string_literal ""index"" " string_content ")) ;) (do_statement "do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );" do (compound_statement "{\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  }" { (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" identifier = (binary_expression "iVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" if (parenthesized_expression "((int)cVar1 == (int)*__s2)" ( (binary_expression "(int)cVar1 == (int)*__s2" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) == (cast_expression "(int)*__s2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__s2" * identifier))) )) (compound_statement "{\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" { (expression_statement "iVar3 = strcmp(param_1,__s2);" (assignment_expression "iVar3 = strcmp(param_1,__s2)" identifier = (call_expression "strcmp(param_1,__s2)" identifier (argument_list "(param_1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) goto LAB_000247af;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) (if_statement "if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" { (if_statement "if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }" if (parenthesized_expression "(((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0)" ( (binary_expression "((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0" (parenthesized_expression "((&DAT_000dc08c)[iVar5 * 6] & uVar2)" ( (binary_expression "(&DAT_000dc08c)[iVar5 * 6] & uVar2" (subscript_expression "(&DAT_000dc08c)[iVar5 * 6]" (parenthesized_expression "(&DAT_000dc08c)" ( (pointer_expression "&DAT_000dc08c" & identifier) )) [ (binary_expression "iVar5 * 6" identifier * number_literal) ]) & identifier) )) != number_literal) )) (compound_statement "{\n          iVar5 = -1;\n        }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) })) (return_statement "return iVar5;" return identifier ;) })) (labeled_statement "LAB_0002478e:\n      iVar6 = iVar5 + 1;" statement_identifier : (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" if (parenthesized_expression "(iVar4 < iVar6)" ( (binary_expression "iVar4 < iVar6" identifier < identifier) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) }) (else_clause "else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" else (compound_statement "{\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" { (if_statement "if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;" if (parenthesized_expression "(-1 < (int)cVar1 - (int)*__s2)" ( (binary_expression "-1 < (int)cVar1 - (int)*__s2" number_literal < (binary_expression "(int)cVar1 - (int)*__s2" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)*__s2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*__s2" * identifier)))) )) (goto_statement "goto LAB_0002478e;" goto statement_identifier ;)) (labeled_statement "LAB_000247af:\n      iVar4 = iVar5 + -1;" statement_identifier : (expression_statement "iVar4 = iVar5 + -1;" (assignment_expression "iVar4 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;)) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" if (parenthesized_expression "(iVar4 < iVar6)" ( (binary_expression "iVar4 < iVar6" identifier < identifier) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) }))) (expression_statement "iVar5 = iVar6 + iVar4;" (assignment_expression "iVar5 = iVar6 + iVar4" identifier = (binary_expression "iVar6 + iVar4" identifier + identifier)) ;) (expression_statement "__s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];" (assignment_expression "__s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6]" identifier = (subscript_expression "(&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6]" (parenthesized_expression "(&PTR_s_BEGIN_000dc080)" ( (pointer_expression "&PTR_s_BEGIN_000dc080" & identifier) )) [ (binary_expression "(iVar5 >> 1) * 6" (parenthesized_expression "(iVar5 >> 1)" ( (binary_expression "iVar5 >> 1" identifier >> number_literal) )) * 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )))) & LIT) )) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]) & IDENT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) * LIT) ])) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_00024700(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_00024700(char *param_1)" (identifier "FUN_00024700") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *__s2;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = 0x45;\n  iVar5 = 0x45;\n  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;\n  if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }\n  iVar6 = 0;\n  cVar1 = *param_1;\n  __s2 = "index";\n  do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar4 = 0x45;" (assignment_expression "iVar4 = 0x45" (identifier "iVar4") (= "=") (number_literal "0x45")) (; ";")) (expression_statement "iVar5 = 0x45;" (assignment_expression "iVar5 = 0x45" (identifier "iVar5") (= "=") (number_literal "0x45")) (; ";")) (expression_statement "uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;" (assignment_expression "uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400" (identifier "uVar2") (= "=") (binary_expression "~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400" (unary_expression "~-(uint)((DAT_000e1760 & 0x10) == 0)" (~ "~") (unary_expression "-(uint)((DAT_000e1760 & 0x10) == 0)" (- "-") (call_expression "(uint)((DAT_000e1760 & 0x10) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((DAT_000e1760 & 0x10) == 0)" (( "(") (binary_expression "(DAT_000e1760 & 0x10) == 0" (parenthesized_expression "(DAT_000e1760 & 0x10)" (( "(") (binary_expression "DAT_000e1760 & 0x10" (identifier "DAT_000e1760") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")"))))) (& "&") (number_literal "0x400"))) (; ";")) (if_statement "if ((DAT_000e1760 & 0x20) != 0) {\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }" (if "if") (parenthesized_expression "((DAT_000e1760 & 0x20) != 0)" (( "(") (binary_expression "(DAT_000e1760 & 0x20) != 0" (parenthesized_expression "(DAT_000e1760 & 0x20)" (( "(") (binary_expression "DAT_000e1760 & 0x20" (identifier "DAT_000e1760") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;\n  }" ({ "{") (expression_statement "uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;" (assignment_expression "uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600" (identifier "uVar2") (= "=") (binary_expression "(-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600" (parenthesized_expression "(-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00)" (( "(") (binary_expression "-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00" (unary_expression "-(uint)((DAT_000e1760 & 0x10) == 0)" (- "-") (call_expression "(uint)((DAT_000e1760 & 0x10) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((DAT_000e1760 & 0x10) == 0)" (( "(") (binary_expression "(DAT_000e1760 & 0x10) == 0" (parenthesized_expression "(DAT_000e1760 & 0x10)" (( "(") (binary_expression "DAT_000e1760 & 0x10" (identifier "DAT_000e1760") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "0xfffffc00")) () ")")) (+ "+") (number_literal "0x600"))) (; ";")) (} "}"))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "__s2 = "index";" (assignment_expression "__s2 = "index"" (identifier "__s2") (= "=") (string_literal ""index"" (" """) (string_content "index") (" """))) (; ";")) (do_statement "do {\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  } while( true );" (do "do") (compound_statement "{\n    iVar5 = iVar5 >> 1;\n    if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    iVar5 = iVar6 + iVar4;\n    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];\n  }" ({ "{") (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 >> 1" (identifier "iVar5") (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if ((int)cVar1 == (int)*__s2) {\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }\n    else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" (if "if") (parenthesized_expression "((int)cVar1 == (int)*__s2)" (( "(") (binary_expression "(int)cVar1 == (int)*__s2" (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) (== "==") (cast_expression "(int)*__s2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*__s2" (* "*") (identifier "__s2")))) () ")")) (compound_statement "{\n      iVar3 = strcmp(param_1,__s2);\n      if (iVar3 < 0) goto LAB_000247af;\n      if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }\nLAB_0002478e:\n      iVar6 = iVar5 + 1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" ({ "{") (expression_statement "iVar3 = strcmp(param_1,__s2);" (assignment_expression "iVar3 = strcmp(param_1,__s2)" (identifier "iVar3") (= "=") (call_expression "strcmp(param_1,__s2)" (identifier "strcmp") (argument_list "(param_1,__s2)" (( "(") (identifier "param_1") (, ",") (identifier "__s2") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) goto LAB_000247af;" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_000247af;" (goto "goto") (statement_identifier "LAB_000247af") (; ";"))) (if_statement "if (iVar3 == 0) {\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }\n        return iVar5;\n      }" ({ "{") (if_statement "if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {\n          iVar5 = -1;\n        }" (if "if") (parenthesized_expression "(((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0)" (( "(") (binary_expression "((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0" (parenthesized_expression "((&DAT_000dc08c)[iVar5 * 6] & uVar2)" (( "(") (binary_expression "(&DAT_000dc08c)[iVar5 * 6] & uVar2" (subscript_expression "(&DAT_000dc08c)[iVar5 * 6]" (parenthesized_expression "(&DAT_000dc08c)" (( "(") (pointer_expression "&DAT_000dc08c" (& "&") (identifier "DAT_000dc08c")) () ")")) ([ "[") (binary_expression "iVar5 * 6" (identifier "iVar5") (* "*") (number_literal "6")) (] "]")) (& "&") (identifier "uVar2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar5 = -1;\n        }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (labeled_statement "LAB_0002478e:\n      iVar6 = iVar5 + 1;" (statement_identifier "LAB_0002478e") (: ":") (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" (if "if") (parenthesized_expression "(iVar4 < iVar6)" (( "(") (binary_expression "iVar4 < iVar6" (identifier "iVar4") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n        return -1;\n      }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" (else "else") (compound_statement "{\n      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;\nLAB_000247af:\n      iVar4 = iVar5 + -1;\n      if (iVar4 < iVar6) {\n        return -1;\n      }\n    }" ({ "{") (if_statement "if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;" (if "if") (parenthesized_expression "(-1 < (int)cVar1 - (int)*__s2)" (( "(") (binary_expression "-1 < (int)cVar1 - (int)*__s2" (number_literal "-1") (< "<") (binary_expression "(int)cVar1 - (int)*__s2" (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) (- "-") (cast_expression "(int)*__s2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*__s2" (* "*") (identifier "__s2"))))) () ")")) (goto_statement "goto LAB_0002478e;" (goto "goto") (statement_identifier "LAB_0002478e") (; ";"))) (labeled_statement "LAB_000247af:\n      iVar4 = iVar5 + -1;" (statement_identifier "LAB_000247af") (: ":") (expression_statement "iVar4 = iVar5 + -1;" (assignment_expression "iVar4 = iVar5 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";"))) (if_statement "if (iVar4 < iVar6) {\n        return -1;\n      }" (if "if") (parenthesized_expression "(iVar4 < iVar6)" (( "(") (binary_expression "iVar4 < iVar6" (identifier "iVar4") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n        return -1;\n      }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar5 = iVar6 + iVar4;" (assignment_expression "iVar5 = iVar6 + iVar4" (identifier "iVar5") (= "=") (binary_expression "iVar6 + iVar4" (identifier "iVar6") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "__s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];" (assignment_expression "__s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6]" (identifier "__s2") (= "=") (subscript_expression "(&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6]" (parenthesized_expression "(&PTR_s_BEGIN_000dc080)" (( "(") (pointer_expression "&PTR_s_BEGIN_000dc080" (& "&") (identifier "PTR_s_BEGIN_000dc080")) () ")")) ([ "[") (binary_expression "(iVar5 >> 1) * 6" (parenthesized_expression "(iVar5 >> 1)" (( "(") (binary_expression "iVar5 >> 1" (identifier "iVar5") (>> ">>") (number_literal "1")) () ")")) (* "*") (number_literal "6")) (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *name)

{
  char cVar1;
  type_1 var_5;
  int var_4;
  char *__s2;
  int var_6;
  int var_2;
  int var_7;
  
  var_6 = 0x45;
  var_2 = 0x45;
  var_5 = ~-(type_1)((var_1 & 0x10U) == 0) & 0x400;
  if ((var_1 & 0x20U) != 0) {
    var_5 = (-(type_1)((var_1 & 0x10U) == 0) & 0xfffffc00) + 0x600;
  }
  var_7 = 0;
  cVar1 = *name;
  __s2 = "index";
  do {
    var_2 = var_2 >> 1;
    if ((int)cVar1 == (int)*__s2) {
      var_4 = var_3(name,__s2);
      if (var_4 < 0) goto LAB_000247af;
      if (var_4 == 0) {
        if ((tokentab[var_2].flags & var_5) != 0) {
          var_2 = -1;
        }
        return var_2;
      }
LAB_0002478e:
      var_7 = var_2 + 1;
      if (var_6 < var_7) {
        return -1;
      }
    }
    else {
      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;
LAB_000247af:
      var_6 = var_2 + -1;
      if (var_6 < var_7) {
        return -1;
      }
    }
    var_2 = var_7 + var_6;
    __s2 = tokentab[var_2 >> 1].operator;
  } while( true );
}


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

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

int MASKED(char *param_1)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  char *__s2;
  int iVar4;
  int iVar5;
  int iVar6;
  
  iVar4 = 0x45;
  iVar5 = 0x45;
  uVar2 = ~-(uint)((DAT_000e1760 & 0x10) == 0) & 0x400;
  if ((DAT_000e1760 & 0x20) != 0) {
    uVar2 = (-(uint)((DAT_000e1760 & 0x10) == 0) & 0xfffffc00) + 0x600;
  }
  iVar6 = 0;
  cVar1 = *param_1;
  __s2 = "index";
  do {
    iVar5 = iVar5 >> 1;
    if ((int)cVar1 == (int)*__s2) {
      iVar3 = strcmp(param_1,__s2);
      if (iVar3 < 0) goto LAB_000247af;
      if (iVar3 == 0) {
        if (((&DAT_000dc08c)[iVar5 * 6] & uVar2) != 0) {
          iVar5 = -1;
        }
        return iVar5;
      }
LAB_0002478e:
      iVar6 = iVar5 + 1;
      if (iVar4 < iVar6) {
        return -1;
      }
    }
    else {
      if (-1 < (int)cVar1 - (int)*__s2) goto LAB_0002478e;
LAB_000247af:
      iVar4 = iVar5 + -1;
      if (iVar4 < iVar6) {
        return -1;
      }
    }
    iVar5 = iVar6 + iVar4;
    __s2 = (&PTR_s_BEGIN_000dc080)[(iVar5 >> 1) * 6];
  } while( true );
}

