
/* std::string::_S_compare(unsigned long, unsigned long) */

ulong std::string::_S_compare(ulong param_1,ulong param_2)

{
  ulong uVar1;
  ulong uVar2;
  
  uVar2 = param_1 - param_2;
  uVar1 = 0x7fffffff;
  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {
    uVar1 = uVar2 & 0xffffffff;
  }
  return uVar1;
}



ulong FUN_0030cc20(long param_1,long param_2)

{
  ulong uVar1;
  ulong uVar2;
  
  uVar2 = param_1 - param_2;
  uVar1 = 0x7fffffff;
  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {
    uVar1 = uVar2 & 0xffffffff;
  }
  return uVar1;
}


SUB RDI,RSI
MOV EAX,0x7fffffff
CMP RDI,0x7fffffff
JG 0x0030cc3e
CMP RDI,-0x80000000
LEA EAX,[RAX + 0x1]
CMOVGE EAX,EDI
RET
(translation_unit "ulong FUN_0030cc20(long param_1,long param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_0030cc20(long param_1,long param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0030cc20(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1 - param_2;" (assignment_expression "uVar2 = param_1 - param_2" identifier = (binary_expression "param_1 - param_2" identifier - identifier)) ;) (expression_statement "uVar1 = 0x7fffffff;" (assignment_expression "uVar1 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }" if (parenthesized_expression "(((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2))" ( (binary_expression "((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" (parenthesized_expression "((long)uVar2 < 0x80000000)" ( (binary_expression "(long)uVar2 < 0x80000000" (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) && (parenthesized_expression "(uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" ( (comma_expression "uVar1 = 0x80000000, -0x80000001 < (long)uVar2" (assignment_expression "uVar1 = 0x80000000" identifier = number_literal) , (binary_expression "-0x80000001 < (long)uVar2" number_literal < (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ))) )) (compound_statement "{\n    uVar1 = uVar2 & 0xffffffff;\n  }" { (expression_statement "uVar1 = uVar2 & 0xffffffff;" (assignment_expression "uVar1 = uVar2 & 0xffffffff" identifier = (binary_expression "uVar2 & 0xffffffff" identifier & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* std::string::_S_compare(unsigned long, unsigned long) */\n\nulong std::string::_S_compare(ulong param_1,ulong param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}\n\n" comment (function_definition "ulong std::string::_S_compare(ulong param_1,ulong param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" type_identifier (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_S_compare(ulong param_1,ulong param_2)" identifier (parameter_list "(ulong param_1,ulong param_2)" ( (parameter_declaration "ulong param_1" type_identifier identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1 - param_2;" (assignment_expression "uVar2 = param_1 - param_2" identifier = (binary_expression "param_1 - param_2" identifier - identifier)) ;) (expression_statement "uVar1 = 0x7fffffff;" (assignment_expression "uVar1 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }" if (parenthesized_expression "(((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2))" ( (binary_expression "((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" (parenthesized_expression "((long)uVar2 < 0x80000000)" ( (binary_expression "(long)uVar2 < 0x80000000" (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) && (parenthesized_expression "(uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" ( (comma_expression "uVar1 = 0x80000000, -0x80000001 < (long)uVar2" (assignment_expression "uVar1 = 0x80000000" identifier = number_literal) , (binary_expression "-0x80000001 < (long)uVar2" number_literal < (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ))) )) (compound_statement "{\n    uVar1 = uVar2 & 0xffffffff;\n  }" { (expression_statement "uVar1 = uVar2 & 0xffffffff;" (assignment_expression "uVar1 = uVar2 & 0xffffffff" identifier = (binary_expression "uVar2 & 0xffffffff" identifier & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "ulong FUN_0030cc20(long param_1,long param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_0030cc20(long param_1,long param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0030cc20(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1 - param_2;" (assignment_expression "uVar2 = param_1 - param_2" identifier = (binary_expression "param_1 - param_2" identifier - identifier)) ;) (expression_statement "uVar1 = 0x7fffffff;" (assignment_expression "uVar1 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }" if (parenthesized_expression "(((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2))" ( (binary_expression "((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" (parenthesized_expression "((long)uVar2 < 0x80000000)" ( (binary_expression "(long)uVar2 < 0x80000000" (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) && (parenthesized_expression "(uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" ( (comma_expression "uVar1 = 0x80000000, -0x80000001 < (long)uVar2" (assignment_expression "uVar1 = 0x80000000" identifier = number_literal) , (binary_expression "-0x80000001 < (long)uVar2" number_literal < (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ))) )) (compound_statement "{\n    uVar1 = uVar2 & 0xffffffff;\n  }" { (expression_statement "uVar1 = uVar2 & 0xffffffff;" (assignment_expression "uVar1 = uVar2 & 0xffffffff" identifier = (binary_expression "uVar2 & 0xffffffff" identifier & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) < LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_0030cc20(long param_1,long param_2)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" (type_identifier "ulong") (function_declarator "FUN_0030cc20(long param_1,long param_2)" (identifier "FUN_0030cc20") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 - param_2;\n  uVar1 = 0x7fffffff;\n  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }\n  return uVar1;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = param_1 - param_2;" (assignment_expression "uVar2 = param_1 - param_2" (identifier "uVar2") (= "=") (binary_expression "param_1 - param_2" (identifier "param_1") (- "-") (identifier "param_2"))) (; ";")) (expression_statement "uVar1 = 0x7fffffff;" (assignment_expression "uVar1 = 0x7fffffff" (identifier "uVar1") (= "=") (number_literal "0x7fffffff")) (; ";")) (if_statement "if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {\n    uVar1 = uVar2 & 0xffffffff;\n  }" (if "if") (parenthesized_expression "(((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2))" (( "(") (binary_expression "((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" (parenthesized_expression "((long)uVar2 < 0x80000000)" (( "(") (binary_expression "(long)uVar2 < 0x80000000" (cast_expression "(long)uVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "uVar2")) (< "<") (number_literal "0x80000000")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = 0x80000000, -0x80000001 < (long)uVar2)" (( "(") (comma_expression "uVar1 = 0x80000000, -0x80000001 < (long)uVar2" (assignment_expression "uVar1 = 0x80000000" (identifier "uVar1") (= "=") (number_literal "0x80000000")) (, ",") (binary_expression "-0x80000001 < (long)uVar2" (number_literal "-0x80000001") (< "<") (cast_expression "(long)uVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "uVar2")))) () ")"))) () ")")) (compound_statement "{\n    uVar1 = uVar2 & 0xffffffff;\n  }" ({ "{") (expression_statement "uVar1 = uVar2 & 0xffffffff;" (assignment_expression "uVar1 = uVar2 & 0xffffffff" (identifier "uVar1") (= "=") (binary_expression "uVar2 & 0xffffffff" (identifier "uVar2") (& "&") (number_literal "0xffffffff"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* std::string::_S_compare(unsigned long, unsigned long) */

type_1 std::string::function_1(type_1 var_1,type_1 var_2)

{
  type_1 uVar1;
  type_1 var_3;
  
  var_3 = var_1 - var_2;
  uVar1 = 0x7fffffff;
  if (((long)var_3 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)var_3)) {
    uVar1 = var_3 & 0xffffffff;
  }
  return uVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

ulong MASKED(long param_1,long param_2)

{
  ulong uVar1;
  ulong uVar2;
  
  uVar2 = param_1 - param_2;
  uVar1 = 0x7fffffff;
  if (((long)uVar2 < 0x80000000) && (uVar1 = 0x80000000, -0x80000001 < (long)uVar2)) {
    uVar1 = uVar2 & 0xffffffff;
  }
  return uVar1;
}

