
int __regparm2 termchars_equal(termchar *a,termchar *b)

{
  int iVar1;
  ulong in_stack_00000004;
  
  if ((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)) {
    iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);
    return iVar1;
  }
  return 0;
}



undefined4 __regparm3 FUN_00031df0(int *param_1,int *param_2)

{
  undefined4 uVar1;
  
  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {
    uVar1 = FUN_00031db0();
    return uVar1;
  }
  return 0;
}


MOV ECX,dword ptr [EAX]
CMP dword ptr [EDX],ECX
JNZ 0x00031e10
MOV ECX,dword ptr [EDX + 0x4]
XOR ECX,dword ptr [EAX + 0x4]
AND ECX,0xfffffff
JNZ 0x00031e10
JMP 0x00031db0
XOR EAX,EAX
RET
(translation_unit "undefined4 __regparm3 FUN_00031df0(int *param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00031df0(int *param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00031df0(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  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }" if (parenthesized_expression "((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0))" ( (binary_expression "(*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)" (parenthesized_expression "(*param_2 == *param_1)" ( (binary_expression "*param_2 == *param_1" (pointer_expression "*param_2" * identifier) == (pointer_expression "*param_1" * identifier)) )) && (parenthesized_expression "(((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)" ( (binary_expression "((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0" (parenthesized_expression "((param_2[1] ^ param_1[1]) & 0xfffffffU)" ( (binary_expression "(param_2[1] ^ param_1[1]) & 0xfffffffU" (parenthesized_expression "(param_2[1] ^ param_1[1])" ( (binary_expression "param_2[1] ^ param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) ^ (subscript_expression "param_1[1]" identifier [ number_literal ])) )) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_00031db0();" (assignment_expression "uVar1 = FUN_00031db0()" identifier = (call_expression "FUN_00031db0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm2 termchars_equal(termchar *a,termchar *b)\n\n{\n  int iVar1;\n  ulong in_stack_00000004;\n  \n  if ((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)) {\n    iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm2 termchars_equal(termchar *a,termchar *b)\n\n{\n  int iVar1;\n  ulong in_stack_00000004;\n  \n  if ((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)) {\n    iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "termchars_equal(termchar *a,termchar *b)" identifier (parameter_list "(termchar *a,termchar *b)" ( (parameter_declaration "termchar *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "termchar *b" type_identifier (pointer_declarator "*b" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  ulong in_stack_00000004;\n  \n  if ((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)) {\n    iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong in_stack_00000004;" type_identifier identifier ;) (if_statement "if ((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)) {\n    iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);\n    return iVar1;\n  }" if (parenthesized_expression "((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0))" ( (binary_expression "(b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)" (parenthesized_expression "(b->chr == a->chr)" ( (binary_expression "b->chr == a->chr" (field_expression "b->chr" identifier -> field_identifier) == (field_expression "a->chr" identifier -> field_identifier)) )) && (parenthesized_expression "(((b->attr ^ a->attr) & 0xfffffff) == 0)" ( (binary_expression "((b->attr ^ a->attr) & 0xfffffff) == 0" (parenthesized_expression "((b->attr ^ a->attr) & 0xfffffff)" ( (binary_expression "(b->attr ^ a->attr) & 0xfffffff" (parenthesized_expression "(b->attr ^ a->attr)" ( (binary_expression "b->attr ^ a->attr" (field_expression "b->attr" identifier -> field_identifier) ^ (field_expression "a->attr" identifier -> field_identifier)) )) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);\n    return iVar1;\n  }" { (expression_statement "iVar1 = termchars_equal_override(a,b,0,in_stack_00000004);" (assignment_expression "iVar1 = termchars_equal_override(a,b,0,in_stack_00000004)" identifier = (call_expression "termchars_equal_override(a,b,0,in_stack_00000004)" identifier (argument_list "(a,b,0,in_stack_00000004)" ( identifier , identifier , number_literal , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00031df0(int *param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00031df0(int *param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00031df0(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  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }" if (parenthesized_expression "((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0))" ( (binary_expression "(*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)" (parenthesized_expression "(*param_2 == *param_1)" ( (binary_expression "*param_2 == *param_1" (pointer_expression "*param_2" * identifier) == (pointer_expression "*param_1" * identifier)) )) && (parenthesized_expression "(((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)" ( (binary_expression "((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0" (parenthesized_expression "((param_2[1] ^ param_1[1]) & 0xfffffffU)" ( (binary_expression "(param_2[1] ^ param_1[1]) & 0xfffffffU" (parenthesized_expression "(param_2[1] ^ param_1[1])" ( (binary_expression "param_2[1] ^ param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) ^ (subscript_expression "param_1[1]" identifier [ number_literal ])) )) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_00031db0();" (assignment_expression "uVar1 = FUN_00031db0()" identifier = (call_expression "FUN_00031db0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) ^ (subscript_expression IDENT [ LIT ])) )) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00031df0(int *param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00031df0(int *param_1,int *param_2)" (identifier "FUN_00031df0") (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  undefined4 uVar1;\n  \n  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0))" (( "(") (binary_expression "(*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)" (parenthesized_expression "(*param_2 == *param_1)" (( "(") (binary_expression "*param_2 == *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (&& "&&") (parenthesized_expression "(((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)" (( "(") (binary_expression "((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0" (parenthesized_expression "((param_2[1] ^ param_1[1]) & 0xfffffffU)" (( "(") (binary_expression "(param_2[1] ^ param_1[1]) & 0xfffffffU" (parenthesized_expression "(param_2[1] ^ param_1[1])" (( "(") (binary_expression "param_2[1] ^ param_1[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (^ "^") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (& "&") (number_literal "0xfffffffU")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = FUN_00031db0();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00031db0();" (assignment_expression "uVar1 = FUN_00031db0()" (identifier "uVar1") (= "=") (call_expression "FUN_00031db0()" (identifier "FUN_00031db0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm2 function_1(type_1 *a,type_1 *b)

{
  int iVar1;
  type_2 in_stack_00000004;
  
  if ((b->chr == a->chr) && (((b->attr ^ a->attr) & 0xfffffff) == 0)) {
    iVar1 = var_1(a,b,0,in_stack_00000004);
    return iVar1;
  }
  return 0;
}


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

undefined4 __regparm3 MASKED(int *param_1,int *param_2)

{
  undefined4 uVar1;
  
  if ((*param_2 == *param_1) && (((param_2[1] ^ param_1[1]) & 0xfffffffU) == 0)) {
    uVar1 = FUN_00031db0();
    return uVar1;
  }
  return 0;
}

