
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: int keyword_to_parsecode(Keyword_to_parsecode * this, char * keyword,
   size_t len) */

int __thiscall
gold::Keyword_to_parsecode::keyword_to_parsecode
          (Keyword_to_parsecode *this,char *keyword,size_t len)

{
  Keyword_parsecode *pKVar1;
  char *__s2;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  
  uVar5 = 0;
  pKVar1 = this->keyword_parsecodes_;
  uVar4 = this->keyword_count_;
  do {
    while( true ) {
      uVar2 = uVar4;
      if (uVar2 <= uVar5) {
        return 0;
      }
      uVar4 = uVar5 + uVar2 >> 1;
      __s2 = pKVar1[uVar4].keyword;
      iVar3 = strncmp(keyword,__s2,len);
      if (iVar3 == 0) break;
      if (-1 < iVar3) {
        uVar5 = uVar4 + 1;
        uVar4 = uVar2;
      }
    }
  } while (__s2[len] != '\0');
  return pKVar1[uVar4].parsecode;
}



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

undefined4 FUN_00141360(int *param_1,char *param_2,size_t param_3)

{
  undefined4 *puVar1;
  int iVar2;
  char *__s2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  
  uVar6 = 0;
  iVar2 = *param_1;
  uVar5 = param_1[1];
  do {
    while( true ) {
      uVar3 = uVar5;
      if (uVar3 <= uVar6) {
        return 0;
      }
      uVar5 = uVar6 + uVar3 >> 1;
      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);
      __s2 = (char *)*puVar1;
      iVar4 = strncmp(param_2,__s2,param_3);
      if (iVar4 == 0) break;
      if (-1 < iVar4) {
        uVar6 = uVar5 + 1;
        uVar5 = uVar3;
      }
    }
  } while (__s2[param_3] != '\0');
  return puVar1[1];
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1fdc95
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0xc],EAX
CMP ECX,EDI
JBE 0x001413e2
MOV dword ptr [ESP + 0x4],EDI
MOV EDI,ECX
MOV EAX,dword ptr [ESP + 0x4]
SUB ESP,0x4
LEA ESI,[EAX + EDI*0x1]
MOV EAX,dword ptr [ESP + 0x10]
SHR ESI,0x1
LEA EDX,[EAX + ESI*0x8]
MOV EBP,dword ptr [EDX]
MOV dword ptr [ESP + 0xc],EDX
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
PUSH dword ptr [ESP + 0x40]
CALL 0x00028990
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001413d8
MOV EAX,dword ptr [ESP + 0x38]
CMP byte ptr [EBP + EAX*0x1],0x0
JNZ 0x001413da
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x4]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
JNS 0x001413f0
MOV EDI,ESI
CMP ESI,dword ptr [ESP + 0x4]
JA 0x0014138b
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EDI
LEA EDI,[ESI + 0x1]
JMP 0x00141381
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00141360(int *param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}\n\n" comment (function_definition "undefined4 FUN_00141360(int *param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}" type_identifier (function_declarator "FUN_00141360(int *param_1,char *param_2,size_t param_3)" identifier (parameter_list "(int *param_1,char *param_2,size_t param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');" do (compound_statement "{\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }" { (expression_statement "uVar3 = uVar5;" (assignment_expression "uVar3 = uVar5" identifier = identifier) ;) (if_statement "if (uVar3 <= uVar6) {\n        return 0;\n      }" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = uVar6 + uVar3 >> 1;" (assignment_expression "uVar5 = uVar6 + uVar3 >> 1" identifier = (binary_expression "uVar6 + uVar3 >> 1" (binary_expression "uVar6 + uVar3" identifier + identifier) >> number_literal)) ;) (expression_statement "puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);" (assignment_expression "puVar1 = (undefined4 *)(iVar2 + uVar5 * 8)" identifier = (cast_expression "(undefined4 *)(iVar2 + uVar5 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + uVar5 * 8)" ( (binary_expression "iVar2 + uVar5 * 8" identifier + (binary_expression "uVar5 * 8" identifier * number_literal)) )))) ;) (expression_statement "__s2 = (char *)*puVar1;" (assignment_expression "__s2 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "iVar4 = strncmp(param_2,__s2,param_3);" (assignment_expression "iVar4 = strncmp(param_2,__s2,param_3)" identifier = (call_expression "strncmp(param_2,__s2,param_3)" identifier (argument_list "(param_2,__s2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }" { (expression_statement "uVar6 = uVar5 + 1;" (assignment_expression "uVar6 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) })) })) }) while (parenthesized_expression "(__s2[param_3] != '\0')" ( (binary_expression "__s2[param_3] != '\0'" (subscript_expression "__s2[param_3]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return puVar1[1];" return (subscript_expression "puVar1[1]" identifier [ number_literal ]) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: int keyword_to_parsecode(Keyword_to_parsecode * this, char * keyword,\n   size_t len) */\n\nint __thiscall\ngold::Keyword_to_parsecode::keyword_to_parsecode\n          (Keyword_to_parsecode *this,char *keyword,size_t len)\n\n{\n  Keyword_parsecode *pKVar1;\n  char *__s2;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar5 = 0;\n  pKVar1 = this->keyword_parsecodes_;\n  uVar4 = this->keyword_count_;\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[len] != '\0');\n  return pKVar1[uVar4].parsecode;\n}\n\n" comment comment (function_definition "int __thiscall\ngold::Keyword_to_parsecode::keyword_to_parsecode\n          (Keyword_to_parsecode *this,char *keyword,size_t len)\n\n{\n  Keyword_parsecode *pKVar1;\n  char *__s2;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar5 = 0;\n  pKVar1 = this->keyword_parsecodes_;\n  uVar4 = this->keyword_count_;\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[len] != '\0');\n  return pKVar1[uVar4].parsecode;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Keyword_to_parsecode::" identifier : : identifier : :) (function_declarator "keyword_to_parsecode\n          (Keyword_to_parsecode *this,char *keyword,size_t len)" identifier (parameter_list "(Keyword_to_parsecode *this,char *keyword,size_t len)" ( (parameter_declaration "Keyword_to_parsecode *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *keyword" primitive_type (pointer_declarator "*keyword" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  Keyword_parsecode *pKVar1;\n  char *__s2;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar5 = 0;\n  pKVar1 = this->keyword_parsecodes_;\n  uVar4 = this->keyword_count_;\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[len] != '\0');\n  return pKVar1[uVar4].parsecode;\n}" { (declaration "Keyword_parsecode *pKVar1;" type_identifier (pointer_declarator "*pKVar1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "pKVar1 = this->keyword_parsecodes_;" (assignment_expression "pKVar1 = this->keyword_parsecodes_" identifier = (field_expression "this->keyword_parsecodes_" identifier -> field_identifier)) ;) (expression_statement "uVar4 = this->keyword_count_;" (assignment_expression "uVar4 = this->keyword_count_" identifier = (field_expression "this->keyword_count_" identifier -> field_identifier)) ;) (do_statement "do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[len] != '\0');" do (compound_statement "{\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar2 = uVar4;\n      if (uVar2 <= uVar5) {\n        return 0;\n      }\n      uVar4 = uVar5 + uVar2 >> 1;\n      __s2 = pKVar1[uVar4].keyword;\n      iVar3 = strncmp(keyword,__s2,len);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" { (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (if_statement "if (uVar2 <= uVar5) {\n        return 0;\n      }" if (parenthesized_expression "(uVar2 <= uVar5)" ( (binary_expression "uVar2 <= uVar5" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = uVar5 + uVar2 >> 1;" (assignment_expression "uVar4 = uVar5 + uVar2 >> 1" identifier = (binary_expression "uVar5 + uVar2 >> 1" (binary_expression "uVar5 + uVar2" identifier + identifier) >> number_literal)) ;) (expression_statement "__s2 = pKVar1[uVar4].keyword;" (assignment_expression "__s2 = pKVar1[uVar4].keyword" identifier = (field_expression "pKVar1[uVar4].keyword" (subscript_expression "pKVar1[uVar4]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "iVar3 = strncmp(keyword,__s2,len);" (assignment_expression "iVar3 = strncmp(keyword,__s2,len)" identifier = (call_expression "strncmp(keyword,__s2,len)" identifier (argument_list "(keyword,__s2,len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (-1 < iVar3) {\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n        uVar5 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" { (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) })) })) }) while (parenthesized_expression "(__s2[len] != '\0')" ( (binary_expression "__s2[len] != '\0'" (subscript_expression "__s2[len]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return pKVar1[uVar4].parsecode;" return (field_expression "pKVar1[uVar4].parsecode" (subscript_expression "pKVar1[uVar4]" identifier [ identifier ]) . field_identifier) ;) })))
(translation_unit "undefined4 FUN_00141360(int *param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}\n\n" (function_definition "undefined4 FUN_00141360(int *param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}" type_identifier (function_declarator "FUN_00141360(int *param_1,char *param_2,size_t param_3)" identifier (parameter_list "(int *param_1,char *param_2,size_t param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');" do (compound_statement "{\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }" { (expression_statement "uVar3 = uVar5;" (assignment_expression "uVar3 = uVar5" identifier = identifier) ;) (if_statement "if (uVar3 <= uVar6) {\n        return 0;\n      }" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = uVar6 + uVar3 >> 1;" (assignment_expression "uVar5 = uVar6 + uVar3 >> 1" identifier = (binary_expression "uVar6 + uVar3 >> 1" (binary_expression "uVar6 + uVar3" identifier + identifier) >> number_literal)) ;) (expression_statement "puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);" (assignment_expression "puVar1 = (undefined4 *)(iVar2 + uVar5 * 8)" identifier = (cast_expression "(undefined4 *)(iVar2 + uVar5 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + uVar5 * 8)" ( (binary_expression "iVar2 + uVar5 * 8" identifier + (binary_expression "uVar5 * 8" identifier * number_literal)) )))) ;) (expression_statement "__s2 = (char *)*puVar1;" (assignment_expression "__s2 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "iVar4 = strncmp(param_2,__s2,param_3);" (assignment_expression "iVar4 = strncmp(param_2,__s2,param_3)" identifier = (call_expression "strncmp(param_2,__s2,param_3)" identifier (argument_list "(param_2,__s2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }" { (expression_statement "uVar6 = uVar5 + 1;" (assignment_expression "uVar6 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) })) })) }) while (parenthesized_expression "(__s2[param_3] != '\0')" ( (binary_expression "__s2[param_3] != '\0'" (subscript_expression "__s2[param_3]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return puVar1[1];" return (subscript_expression "puVar1[1]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != (char_literal ' escape_sequence ')) )) ;) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "undefined4 FUN_00141360(int *param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}" (type_identifier "undefined4") (function_declarator "FUN_00141360(int *param_1,char *param_2,size_t param_3)" (identifier "FUN_00141360") (parameter_list "(int *param_1,char *param_2,size_t param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  uVar6 = 0;\n  iVar2 = *param_1;\n  uVar5 = param_1[1];\n  do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return puVar1[1];\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" (identifier "uVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  } while (__s2[param_3] != '\0');" (do "do") (compound_statement "{\n    while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar3 = uVar5;\n      if (uVar3 <= uVar6) {\n        return 0;\n      }\n      uVar5 = uVar6 + uVar3 >> 1;\n      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);\n      __s2 = (char *)*puVar1;\n      iVar4 = strncmp(param_2,__s2,param_3);\n      if (iVar4 == 0) break;\n      if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }\n    }" ({ "{") (expression_statement "uVar3 = uVar5;" (assignment_expression "uVar3 = uVar5" (identifier "uVar3") (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (uVar3 <= uVar6) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(uVar3 <= uVar6)" (( "(") (binary_expression "uVar3 <= uVar6" (identifier "uVar3") (<= "<=") (identifier "uVar6")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar5 = uVar6 + uVar3 >> 1;" (assignment_expression "uVar5 = uVar6 + uVar3 >> 1" (identifier "uVar5") (= "=") (binary_expression "uVar6 + uVar3 >> 1" (binary_expression "uVar6 + uVar3" (identifier "uVar6") (+ "+") (identifier "uVar3")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);" (assignment_expression "puVar1 = (undefined4 *)(iVar2 + uVar5 * 8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(iVar2 + uVar5 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + uVar5 * 8)" (( "(") (binary_expression "iVar2 + uVar5 * 8" (identifier "iVar2") (+ "+") (binary_expression "uVar5 * 8" (identifier "uVar5") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "__s2 = (char *)*puVar1;" (assignment_expression "__s2 = (char *)*puVar1" (identifier "__s2") (= "=") (cast_expression "(char *)*puVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "iVar4 = strncmp(param_2,__s2,param_3);" (assignment_expression "iVar4 = strncmp(param_2,__s2,param_3)" (identifier "iVar4") (= "=") (call_expression "strncmp(param_2,__s2,param_3)" (identifier "strncmp") (argument_list "(param_2,__s2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "__s2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (-1 < iVar4) {\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        uVar6 = uVar5 + 1;\n        uVar5 = uVar3;\n      }" ({ "{") (expression_statement "uVar6 = uVar5 + 1;" (assignment_expression "uVar6 = uVar5 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" (identifier "uVar5") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(__s2[param_3] != '\0')" (( "(") (binary_expression "__s2[param_3] != '\0'" (subscript_expression "__s2[param_3]" (identifier "__s2") ([ "[") (identifier "param_3") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (return_statement "return puVar1[1];" (return "return") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: int keyword_to_parsecode(Keyword_to_parsecode * this, char * keyword,
   size_t len) */

int __thiscall
gold::type_1::function_1
          (type_1 *this,char *keyword,size_t len)

{
  type_2 *pKVar1;
  char *__s2;
  type_3 var_1;
  int var_4;
  type_3 var_5;
  type_3 var_2;
  
  var_2 = 0;
  pKVar1 = this->keyword_parsecodes_;
  var_5 = this->keyword_count_;
  do {
    while( true ) {
      var_1 = var_5;
      if (var_1 <= var_2) {
        return 0;
      }
      var_5 = var_2 + var_1 >> 1;
      __s2 = pKVar1[var_5].keyword;
      var_4 = var_3(keyword,__s2,len);
      if (var_4 == 0) break;
      if (-1 < var_4) {
        var_2 = var_5 + 1;
        var_5 = var_1;
      }
    }
  } while (__s2[len] != '\0');
  return pKVar1[var_5].parsecode;
}


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

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

undefined4 MASKED(int *param_1,char *param_2,size_t param_3)

{
  undefined4 *puVar1;
  int iVar2;
  char *__s2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  
  uVar6 = 0;
  iVar2 = *param_1;
  uVar5 = param_1[1];
  do {
    while( true ) {
      uVar3 = uVar5;
      if (uVar3 <= uVar6) {
        return 0;
      }
      uVar5 = uVar6 + uVar3 >> 1;
      puVar1 = (undefined4 *)(iVar2 + uVar5 * 8);
      __s2 = (char *)*puVar1;
      iVar4 = strncmp(param_2,__s2,param_3);
      if (iVar4 == 0) break;
      if (-1 < iVar4) {
        uVar6 = uVar5 + 1;
        uVar5 = uVar3;
      }
    }
  } while (__s2[param_3] != '\0');
  return puVar1[1];
}

