
bool gold::Stringpool_template<short_unsigned_int>::is_suffix
               (ushort *s1,size_t len1,ushort *s2,size_t len2)

{
  int iVar1;
  
  if (len1 <= len2) {
    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);
    return iVar1 == 0;
  }
  return false;
}



undefined8 FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)

{
  int iVar1;
  undefined4 extraout_var;
  
  if (param_2 <= param_4) {
    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);
    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);
  }
  return 0;
}


CMP RSI,RCX
JA 0x00245960
MOV RAX,RDX
SUB RCX,RSI
LEA RDX,[RSI + RSI*0x1]
SUB RSP,0x8
LEA RSI,[RAX + RCX*0x2]
CALL 0x00144830
TEST EAX,EAX
SETZ AL
ADD RSP,0x8
RET
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)" identifier (parameter_list "(void *param_1,ulong param_2,long param_3,ulong param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (if_statement "if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }" if (parenthesized_expression "(param_2 <= param_4)" ( (binary_expression "param_2 <= param_4" identifier <= identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }" { (expression_statement "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);" (assignment_expression "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier = (call_expression "memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier (argument_list "(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" ( identifier , (cast_expression "(void *)(param_3 + (param_4 - param_2) * 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + (param_4 - param_2) * 2)" ( (binary_expression "param_3 + (param_4 - param_2) * 2" identifier + (binary_expression "(param_4 - param_2) * 2" (parenthesized_expression "(param_4 - param_2)" ( (binary_expression "param_4 - param_2" identifier - identifier) )) * number_literal)) ))) , (binary_expression "param_2 * 2" identifier * number_literal) )))) ;) (return_statement "return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);" return (call_expression "CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0)" identifier (argument_list "((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0)" ( (call_expression "(int7)(CONCAT44(extraout_var,iVar1) >> 8)" (parenthesized_expression "(int7)" ( identifier )) (argument_list "(CONCAT44(extraout_var,iVar1) >> 8)" ( (binary_expression "CONCAT44(extraout_var,iVar1) >> 8" (call_expression "CONCAT44(extraout_var,iVar1)" identifier (argument_list "(extraout_var,iVar1)" ( identifier , identifier ))) >> number_literal) ))) , (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool gold::Stringpool_template<short_unsigned_int>::is_suffix\n               (ushort *s1,size_t len1,ushort *s2,size_t len2)\n\n{\n  int iVar1;\n  \n  if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    return iVar1 == 0;\n  }\n  return false;\n}\n\n" (function_definition "bool gold::Stringpool_template<short_unsigned_int>::is_suffix\n               (ushort *s1,size_t len1,ushort *s2,size_t len2)\n\n{\n  int iVar1;\n  \n  if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    return iVar1 == 0;\n  }\n  return false;\n}" primitive_type (ERROR "gold::Stringpool_template<short_unsigned_int>::" identifier : : identifier < identifier > : :) (function_declarator "is_suffix\n               (ushort *s1,size_t len1,ushort *s2,size_t len2)" identifier (parameter_list "(ushort *s1,size_t len1,ushort *s2,size_t len2)" ( (parameter_declaration "ushort *s1" type_identifier (pointer_declarator "*s1" * identifier)) , (parameter_declaration "size_t len1" primitive_type identifier) , (parameter_declaration "ushort *s2" type_identifier (pointer_declarator "*s2" * identifier)) , (parameter_declaration "size_t len2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    return iVar1 == 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (len1 <= len2) {\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(len1 <= len2)" ( (binary_expression "len1 <= len2" identifier <= identifier) )) (compound_statement "{\n    iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);\n    return iVar1 == 0;\n  }" { (expression_statement "iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2);" (assignment_expression "iVar1 = memcmp(s1,s2 + (len2 - len1),len1 * 2)" identifier = (call_expression "memcmp(s1,s2 + (len2 - len1),len1 * 2)" identifier (argument_list "(s1,s2 + (len2 - len1),len1 * 2)" ( identifier , (binary_expression "s2 + (len2 - len1)" identifier + (parenthesized_expression "(len2 - len1)" ( (binary_expression "len2 - len1" identifier - identifier) ))) , (binary_expression "len1 * 2" identifier * number_literal) )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "undefined8 FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)" identifier (parameter_list "(void *param_1,ulong param_2,long param_3,ulong param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (if_statement "if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }" if (parenthesized_expression "(param_2 <= param_4)" ( (binary_expression "param_2 <= param_4" identifier <= identifier) )) (compound_statement "{\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }" { (expression_statement "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);" (assignment_expression "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier = (call_expression "memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" identifier (argument_list "(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" ( identifier , (cast_expression "(void *)(param_3 + (param_4 - param_2) * 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + (param_4 - param_2) * 2)" ( (binary_expression "param_3 + (param_4 - param_2) * 2" identifier + (binary_expression "(param_4 - param_2) * 2" (parenthesized_expression "(param_4 - param_2)" ( (binary_expression "param_4 - param_2" identifier - identifier) )) * number_literal)) ))) , (binary_expression "param_2 * 2" identifier * number_literal) )))) ;) (return_statement "return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);" return (call_expression "CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0)" identifier (argument_list "((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0)" ( (call_expression "(int7)(CONCAT44(extraout_var,iVar1) >> 8)" (parenthesized_expression "(int7)" ( identifier )) (argument_list "(CONCAT44(extraout_var,iVar1) >> 8)" ( (binary_expression "CONCAT44(extraout_var,iVar1) >> 8" (call_expression "CONCAT44(extraout_var,iVar1)" identifier (argument_list "(extraout_var,iVar1)" ( identifier , identifier ))) >> number_literal) ))) , (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) ))) , (binary_expression IDENT * LIT) )))) ;) (return_statement return (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) >> LIT) ))) , (binary_expression IDENT == LIT) ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00245930(void *param_1,ulong param_2,long param_3,ulong param_4)" (identifier "FUN_00245930") (parameter_list "(void *param_1,ulong param_2,long param_3,ulong param_4)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "ulong param_4" (type_identifier "ulong") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 extraout_var;\n  \n  if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 extraout_var;" (type_identifier "undefined4") (identifier "extraout_var") (; ";")) (if_statement "if (param_2 <= param_4) {\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }" (if "if") (parenthesized_expression "(param_2 <= param_4)" (( "(") (binary_expression "param_2 <= param_4" (identifier "param_2") (<= "<=") (identifier "param_4")) () ")")) (compound_statement "{\n    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);\n    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);\n  }" ({ "{") (expression_statement "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);" (assignment_expression "iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" (identifier "iVar1") (= "=") (call_expression "memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" (identifier "memcmp") (argument_list "(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2)" (( "(") (identifier "param_1") (, ",") (cast_expression "(void *)(param_3 + (param_4 - param_2) * 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + (param_4 - param_2) * 2)" (( "(") (binary_expression "param_3 + (param_4 - param_2) * 2" (identifier "param_3") (+ "+") (binary_expression "(param_4 - param_2) * 2" (parenthesized_expression "(param_4 - param_2)" (( "(") (binary_expression "param_4 - param_2" (identifier "param_4") (- "-") (identifier "param_2")) () ")")) (* "*") (number_literal "2"))) () ")"))) (, ",") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")) () ")")))) (; ";")) (return_statement "return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);" (return "return") (call_expression "CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0)" (identifier "CONCAT71") (argument_list "((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0)" (( "(") (call_expression "(int7)(CONCAT44(extraout_var,iVar1) >> 8)" (parenthesized_expression "(int7)" (( "(") (identifier "int7") () ")")) (argument_list "(CONCAT44(extraout_var,iVar1) >> 8)" (( "(") (binary_expression "CONCAT44(extraout_var,iVar1) >> 8" (call_expression "CONCAT44(extraout_var,iVar1)" (identifier "CONCAT44") (argument_list "(extraout_var,iVar1)" (( "(") (identifier "extraout_var") (, ",") (identifier "iVar1") () ")"))) (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

bool gold::Stringpool_template<short_unsigned_int>::function_1
               (type_1 *s1,size_t var_1,type_1 *var_4,size_t var_2)

{
  int var_5;
  
  if (var_1 <= var_2) {
    var_5 = var_3(s1,var_4 + (var_2 - var_1),var_1 * 2);
    return var_5 == 0;
  }
  return false;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (number_literal)))) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (number_literal)))))

undefined8 MASKED(void *param_1,ulong param_2,long param_3,ulong param_4)

{
  int iVar1;
  undefined4 extraout_var;
  
  if (param_2 <= param_4) {
    iVar1 = memcmp(param_1,(void *)(param_3 + (param_4 - param_2) * 2),param_2 * 2);
    return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);
  }
  return 0;
}

