
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::_Rb_tree_black_count(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base const*) */

int std::_Rb_tree_black_count(_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2)

{
  int iVar1;
  
  iVar1 = 0;
  if (param_1 != (_Rb_tree_node_base *)0x0) {
    for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;
        param_1 = param_1->_M_parent) {
    }
  }
  return iVar1;
}



int FUN_0024a080(int *param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = 0;
  if (param_1 != (int *)0x0) {
    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {
    }
  }
  return iVar1;
}


PUSH EBX
MOV EDX,dword ptr [ESP + 0x8]
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JNZ 0x0024a09b
JMP 0x0024a0a9
MOV EDX,dword ptr [EDX + 0x4]
XOR ECX,ECX
CMP dword ptr [EDX],0x1
SETZ CL
ADD EAX,ECX
CMP EDX,EBX
JNZ 0x0024a098
POP EBX
RET
(translation_unit "int FUN_0024a080(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0024a080(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0024a080(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }" { (for_statement "for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }" for ( ; (comma_expression "iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2" (assignment_expression "iVar1 = iVar1 + (uint)(*param_1 == 1)" identifier = (binary_expression "iVar1 + (uint)(*param_1 == 1)" identifier + (call_expression "(uint)(*param_1 == 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 == 1)" ( (binary_expression "*param_1 == 1" (pointer_expression "*param_1" * identifier) == number_literal) ))))) , (binary_expression "param_1 != param_2" identifier != identifier)) ; (assignment_expression "param_1 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ) (compound_statement "{\n    }" { })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::_Rb_tree_black_count(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base const*) */\n\nint std::_Rb_tree_black_count(_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (_Rb_tree_node_base *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;\n        param_1 = param_1->_M_parent) {\n    }\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int std::_Rb_tree_black_count(_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (_Rb_tree_node_base *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;\n        param_1 = param_1->_M_parent) {\n    }\n  }\n  return iVar1;\n}" primitive_type (ERROR "std::" identifier : :) (function_declarator "_Rb_tree_black_count(_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2)" identifier (parameter_list "(_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2)" ( (parameter_declaration "_Rb_tree_node_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "_Rb_tree_node_base *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (_Rb_tree_node_base *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;\n        param_1 = param_1->_M_parent) {\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (_Rb_tree_node_base *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;\n        param_1 = param_1->_M_parent) {\n    }\n  }" if (parenthesized_expression "(param_1 != (_Rb_tree_node_base *)0x0)" ( (binary_expression "param_1 != (_Rb_tree_node_base *)0x0" identifier != (cast_expression "(_Rb_tree_node_base *)0x0" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;\n        param_1 = param_1->_M_parent) {\n    }\n  }" { (for_statement "for (; iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2;\n        param_1 = param_1->_M_parent) {\n    }" for ( ; (comma_expression "iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black), param_1 != param_2" (assignment_expression "iVar1 = iVar1 + (uint)(param_1->_M_color == _S_black)" identifier = (binary_expression "iVar1 + (uint)(param_1->_M_color == _S_black)" identifier + (call_expression "(uint)(param_1->_M_color == _S_black)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1->_M_color == _S_black)" ( (binary_expression "param_1->_M_color == _S_black" (field_expression "param_1->_M_color" identifier -> field_identifier) == identifier) ))))) , (binary_expression "param_1 != param_2" identifier != identifier)) ; (assignment_expression "param_1 = param_1->_M_parent" identifier = (field_expression "param_1->_M_parent" identifier -> field_identifier)) ) (compound_statement "{\n    }" { })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0024a080(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0024a080(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0024a080(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }" { (for_statement "for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }" for ( ; (comma_expression "iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2" (assignment_expression "iVar1 = iVar1 + (uint)(*param_1 == 1)" identifier = (binary_expression "iVar1 + (uint)(*param_1 == 1)" identifier + (call_expression "(uint)(*param_1 == 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 == 1)" ( (binary_expression "*param_1 == 1" (pointer_expression "*param_1" * identifier) == number_literal) ))))) , (binary_expression "param_1 != param_2" identifier != identifier)) ; (assignment_expression "param_1 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ) (compound_statement "{\n    }" { })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (for_statement for ( ; (comma_expression (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) == LIT) ))))) , (binary_expression IDENT != IDENT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0024a080(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0024a080(int *param_1,int *param_2)" (identifier "FUN_0024a080") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != (int *)0x0) {\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }\n  }" ({ "{") (for_statement "for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {\n    }" (for "for") (( "(") (; ";") (comma_expression "iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2" (assignment_expression "iVar1 = iVar1 + (uint)(*param_1 == 1)" (identifier "iVar1") (= "=") (binary_expression "iVar1 + (uint)(*param_1 == 1)" (identifier "iVar1") (+ "+") (call_expression "(uint)(*param_1 == 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_1 == 1)" (( "(") (binary_expression "*param_1 == 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "1")) () ")"))))) (, ",") (binary_expression "param_1 != param_2" (identifier "param_1") (!= "!=") (identifier "param_2"))) (; ";") (assignment_expression "param_1 = (int *)param_1[1]" (identifier "param_1") (= "=") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")") (compound_statement "{\n    }" ({ "{") (} "}"))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::_Rb_tree_black_count(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base const*) */

int std::function_1(type_1 *var_1,type_1 *var_4)

{
  int var_2;
  
  var_2 = 0;
  if (var_1 != (type_1 *)0x0) {
    for (; var_2 = var_2 + (uint)(var_1->_M_color == var_3), var_1 != var_4;
        var_1 = var_1->_M_parent) {
    }
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (for_statement condition: (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) right: (binary_expression left: (identifier) right: (identifier))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) body: (compound_statement)))) (return_statement (identifier)))))

int MASKED(int *param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = 0;
  if (param_1 != (int *)0x0) {
    for (; iVar1 = iVar1 + (uint)(*param_1 == 1), param_1 != param_2; param_1 = (int *)param_1[1]) {
    }
  }
  return iVar1;
}

