
/* 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;
  ulong uVar2;
  int iVar3;
  ulong uVar4;
  ulong uVar5;
  
  uVar5 = 0;
  pKVar1 = this->keyword_parsecodes_;
  uVar4 = (long)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;
}



undefined4 FUN_00264860(long *param_1,char *param_2,size_t param_3)

{
  long lVar1;
  char *__s2;
  ulong uVar2;
  int iVar3;
  ulong uVar4;
  undefined8 *puVar5;
  ulong uVar6;
  
  uVar6 = 0;
  lVar1 = *param_1;
  uVar4 = (long)(int)param_1[1];
  do {
    while( true ) {
      uVar2 = uVar4;
      if (uVar2 <= uVar6) {
        return 0;
      }
      uVar4 = uVar6 + uVar2 >> 1;
      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);
      __s2 = (char *)*puVar5;
      iVar3 = strncmp(param_2,__s2,param_3);
      if (iVar3 == 0) break;
      if (-1 < iVar3) {
        uVar6 = uVar4 + 1;
        uVar4 = uVar2;
      }
    }
  } while (__s2[param_3] != '\0');
  return *(undefined4 *)(puVar5 + 1);
}


PUSH R15
XOR R15D,R15D
PUSH R14
PUSH R13
PUSH R12
MOV R12,RDX
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RAX,qword ptr [RDI]
MOVSXD R13,dword ptr [RDI + 0x8]
MOV qword ptr [RSP + 0x8],RSI
MOV qword ptr [RSP],RAX
NOP dword ptr [RAX]
CMP R13,R15
JBE 0x002648da
LEA RBX,[R15 + R13*0x1]
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,R12
SHR RBX,0x1
MOV RBP,RBX
SHL RBP,0x4
ADD RBP,qword ptr [RSP]
MOV R14,qword ptr [RBP]
MOV RSI,R14
CALL 0x001472f0
TEST EAX,EAX
JNZ 0x002648d0
CMP byte ptr [R14 + R12*0x1],0x0
JNZ 0x002648d2
MOV EAX,dword ptr [RBP + 0x8]
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
JNS 0x002648f0
MOV R13,RBX
CMP R13,R15
JA 0x0026488d
ADD RSP,0x18
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA R15,[RBX + 0x1]
JMP 0x00264888
(translation_unit "undefined4 FUN_00264860(long *param_1,char *param_2,size_t param_3)\n\n{\n  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}\n\n" (function_definition "undefined4 FUN_00264860(long *param_1,char *param_2,size_t param_3)\n\n{\n  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}" type_identifier (function_declarator "FUN_00264860(long *param_1,char *param_2,size_t param_3)" identifier (parameter_list "(long *param_1,char *param_2,size_t param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (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  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = (long)(int)param_1[1];" (assignment_expression "uVar4 = (long)(int)param_1[1]" identifier = (cast_expression "(long)(int)param_1[1]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])))) ;) (do_statement "do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');" do (compound_statement "{\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" { (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (if_statement "if (uVar2 <= uVar6) {\n        return 0;\n      }" if (parenthesized_expression "(uVar2 <= uVar6)" ( (binary_expression "uVar2 <= uVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = uVar6 + uVar2 >> 1;" (assignment_expression "uVar4 = uVar6 + uVar2 >> 1" identifier = (binary_expression "uVar6 + uVar2 >> 1" (binary_expression "uVar6 + uVar2" identifier + identifier) >> number_literal)) ;) (expression_statement "puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);" (assignment_expression "puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1)" identifier = (cast_expression "(undefined8 *)(uVar4 * 0x10 + lVar1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 * 0x10 + lVar1)" ( (binary_expression "uVar4 * 0x10 + lVar1" (binary_expression "uVar4 * 0x10" identifier * number_literal) + identifier) )))) ;) (expression_statement "__s2 = (char *)*puVar5;" (assignment_expression "__s2 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "iVar3 = strncmp(param_2,__s2,param_3);" (assignment_expression "iVar3 = 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 (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        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" { (expression_statement "uVar6 = uVar4 + 1;" (assignment_expression "uVar6 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" 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 *(undefined4 *)(puVar5 + 1);" return (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) ;) })))
(translation_unit "/* 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  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  \n  uVar5 = 0;\n  pKVar1 = this->keyword_parsecodes_;\n  uVar4 = (long)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 (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  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  \n  uVar5 = 0;\n  pKVar1 = this->keyword_parsecodes_;\n  uVar4 = (long)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  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  \n  uVar5 = 0;\n  pKVar1 = this->keyword_parsecodes_;\n  uVar4 = (long)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 "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "ulong 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 = (long)this->keyword_count_;" (assignment_expression "uVar4 = (long)this->keyword_count_" identifier = (cast_expression "(long)this->keyword_count_" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (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_00264860(long *param_1,char *param_2,size_t param_3)\n\n{\n  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}\n\n" (function_definition "undefined4 FUN_00264860(long *param_1,char *param_2,size_t param_3)\n\n{\n  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}" type_identifier (function_declarator "FUN_00264860(long *param_1,char *param_2,size_t param_3)" identifier (parameter_list "(long *param_1,char *param_2,size_t param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (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  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = (long)(int)param_1[1];" (assignment_expression "uVar4 = (long)(int)param_1[1]" identifier = (cast_expression "(long)(int)param_1[1]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])))) ;) (do_statement "do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');" do (compound_statement "{\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" { (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (if_statement "if (uVar2 <= uVar6) {\n        return 0;\n      }" if (parenthesized_expression "(uVar2 <= uVar6)" ( (binary_expression "uVar2 <= uVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = uVar6 + uVar2 >> 1;" (assignment_expression "uVar4 = uVar6 + uVar2 >> 1" identifier = (binary_expression "uVar6 + uVar2 >> 1" (binary_expression "uVar6 + uVar2" identifier + identifier) >> number_literal)) ;) (expression_statement "puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);" (assignment_expression "puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1)" identifier = (cast_expression "(undefined8 *)(uVar4 * 0x10 + lVar1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 * 0x10 + lVar1)" ( (binary_expression "uVar4 * 0x10 + lVar1" (binary_expression "uVar4 * 0x10" identifier * number_literal) + identifier) )))) ;) (expression_statement "__s2 = (char *)*puVar5;" (assignment_expression "__s2 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "iVar3 = strncmp(param_2,__s2,param_3);" (assignment_expression "iVar3 = 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 (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        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" { (expression_statement "uVar6 = uVar4 + 1;" (assignment_expression "uVar6 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" 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 *(undefined4 *)(puVar5 + 1);" return (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) (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 (binary_expression IDENT * LIT) + IDENT) )))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))
(function_definition "undefined4 FUN_00264860(long *param_1,char *param_2,size_t param_3)\n\n{\n  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}" (type_identifier "undefined4") (function_declarator "FUN_00264860(long *param_1,char *param_2,size_t param_3)" (identifier "FUN_00264860") (parameter_list "(long *param_1,char *param_2,size_t param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (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  long lVar1;\n  char *__s2;\n  ulong uVar2;\n  int iVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  \n  uVar6 = 0;\n  lVar1 = *param_1;\n  uVar4 = (long)(int)param_1[1];\n  do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');\n  return *(undefined4 *)(puVar5 + 1);\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = (long)(int)param_1[1];" (assignment_expression "uVar4 = (long)(int)param_1[1]" (identifier "uVar4") (= "=") (cast_expression "(long)(int)param_1[1]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))))) (; ";")) (do_statement "do {\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  } while (__s2[param_3] != '\0');" (do "do") (compound_statement "{\n    while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar2 = uVar4;\n      if (uVar2 <= uVar6) {\n        return 0;\n      }\n      uVar4 = uVar6 + uVar2 >> 1;\n      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);\n      __s2 = (char *)*puVar5;\n      iVar3 = strncmp(param_2,__s2,param_3);\n      if (iVar3 == 0) break;\n      if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }\n    }" ({ "{") (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" (identifier "uVar2") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar2 <= uVar6) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(uVar2 <= uVar6)" (( "(") (binary_expression "uVar2 <= uVar6" (identifier "uVar2") (<= "<=") (identifier "uVar6")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = uVar6 + uVar2 >> 1;" (assignment_expression "uVar4 = uVar6 + uVar2 >> 1" (identifier "uVar4") (= "=") (binary_expression "uVar6 + uVar2 >> 1" (binary_expression "uVar6 + uVar2" (identifier "uVar6") (+ "+") (identifier "uVar2")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);" (assignment_expression "puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1)" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)(uVar4 * 0x10 + lVar1)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 * 0x10 + lVar1)" (( "(") (binary_expression "uVar4 * 0x10 + lVar1" (binary_expression "uVar4 * 0x10" (identifier "uVar4") (* "*") (number_literal "0x10")) (+ "+") (identifier "lVar1")) () ")")))) (; ";")) (expression_statement "__s2 = (char *)*puVar5;" (assignment_expression "__s2 = (char *)*puVar5" (identifier "__s2") (= "=") (cast_expression "(char *)*puVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "iVar3 = strncmp(param_2,__s2,param_3);" (assignment_expression "iVar3 = strncmp(param_2,__s2,param_3)" (identifier "iVar3") (= "=") (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 (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (-1 < iVar3) {\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n        uVar6 = uVar4 + 1;\n        uVar4 = uVar2;\n      }" ({ "{") (expression_statement "uVar6 = uVar4 + 1;" (assignment_expression "uVar6 = uVar4 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" (identifier "uVar4") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (} "}"))) (} "}")) (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 *(undefined4 *)(puVar5 + 1);" (return "return") (pointer_expression "*(undefined4 *)(puVar5 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar5 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")))

/* 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 = (long)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: (sized_type_specifier) 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: (sized_type_specifier) 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: (pointer_declarator 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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))

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

{
  long lVar1;
  char *__s2;
  ulong uVar2;
  int iVar3;
  ulong uVar4;
  undefined8 *puVar5;
  ulong uVar6;
  
  uVar6 = 0;
  lVar1 = *param_1;
  uVar4 = (long)(int)param_1[1];
  do {
    while( true ) {
      uVar2 = uVar4;
      if (uVar2 <= uVar6) {
        return 0;
      }
      uVar4 = uVar6 + uVar2 >> 1;
      puVar5 = (undefined8 *)(uVar4 * 0x10 + lVar1);
      __s2 = (char *)*puVar5;
      iVar3 = strncmp(param_2,__s2,param_3);
      if (iVar3 == 0) break;
      if (-1 < iVar3) {
        uVar6 = uVar4 + 1;
        uVar4 = uVar2;
      }
    }
  } while (__s2[param_3] != '\0');
  return *(undefined4 *)(puVar5 + 1);
}

