
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool match_view(Target * this, uchar * view, section_size_type
   view_size, section_offset_type offset, char * bytes, size_t len) */

bool __thiscall
gold::Target::match_view
          (Target *this,uchar *view,section_size_type view_size,section_offset_type offset,
          char *bytes,size_t len)

{
  int iVar1;
  
  if (offset + len <= view_size) {
    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);
    return iVar1 == 0;
  }
  return false;
}



bool FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,
                 int param_6)

{
  int iVar1;
  
  if ((uint)(param_4 + param_6) <= param_3) {
    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);
    return iVar1 == 0;
  }
  return false;
}


lui gp,0x1f
addiu gp,gp,0x79fc
addu gp,gp,t9
addiu sp,sp,-0x20
lw v1,0x34(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
addu v0,a3,v1
sltu a2,a2,v0
bne a2,zero,0x002d1890
_lw t9,-0x354c(gp)
addu a0,a1,a3
lw a1,0x30(sp)
jalr t9
_or a2,v1,zero
lw ra,0x1c(sp)
sltiu v0,v0,0x1
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
jr ra
_addiu sp,sp,0x20
(translation_unit "bool FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }" if (parenthesized_expression "((uint)(param_4 + param_6) <= param_3)" ( (binary_expression "(uint)(param_4 + param_6) <= param_3" (call_expression "(uint)(param_4 + param_6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 + param_6)" ( (binary_expression "param_4 + param_6" identifier + identifier) ))) <= identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_memcmp_004c5cf4)" ( (pointer_expression "*(code *)PTR_memcmp_004c5cf4" * (cast_expression "(code *)PTR_memcmp_004c5cf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + param_4,param_5,param_6)" ( (binary_expression "param_2 + param_4" identifier + identifier) , identifier , identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: bool match_view(Target * this, uchar * view, section_size_type\n   view_size, section_offset_type offset, char * bytes, size_t len) */\n\nbool __thiscall\ngold::Target::match_view\n          (Target *this,uchar *view,section_size_type view_size,section_offset_type offset,\n          char *bytes,size_t len)\n\n{\n  int iVar1;\n  \n  if (offset + len <= view_size) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);\n    return iVar1 == 0;\n  }\n  return false;\n}\n\n" comment comment (function_definition "bool __thiscall\ngold::Target::match_view\n          (Target *this,uchar *view,section_size_type view_size,section_offset_type offset,\n          char *bytes,size_t len)\n\n{\n  int iVar1;\n  \n  if (offset + len <= view_size) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);\n    return iVar1 == 0;\n  }\n  return false;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Target::" identifier : : identifier : :) (function_declarator "match_view\n          (Target *this,uchar *view,section_size_type view_size,section_offset_type offset,\n          char *bytes,size_t len)" identifier (parameter_list "(Target *this,uchar *view,section_size_type view_size,section_offset_type offset,\n          char *bytes,size_t len)" ( (parameter_declaration "Target *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *view" type_identifier (pointer_declarator "*view" * identifier)) , (parameter_declaration "section_size_type view_size" type_identifier identifier) , (parameter_declaration "section_offset_type offset" type_identifier identifier) , (parameter_declaration "char *bytes" primitive_type (pointer_declarator "*bytes" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (offset + len <= view_size) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);\n    return iVar1 == 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (offset + len <= view_size) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(offset + len <= view_size)" ( (binary_expression "offset + len <= view_size" (binary_expression "offset + len" identifier + identifier) <= identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);\n    return iVar1 == 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len)" identifier = (call_expression "(*(code *)PTR_memcmp_004c5cf4)(view + offset,bytes,len)" (parenthesized_expression "(*(code *)PTR_memcmp_004c5cf4)" ( (pointer_expression "*(code *)PTR_memcmp_004c5cf4" * (cast_expression "(code *)PTR_memcmp_004c5cf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(view + offset,bytes,len)" ( (binary_expression "view + offset" identifier + identifier) , identifier , identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "bool FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }" if (parenthesized_expression "((uint)(param_4 + param_6) <= param_3)" ( (binary_expression "(uint)(param_4 + param_6) <= param_3" (call_expression "(uint)(param_4 + param_6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 + param_6)" ( (binary_expression "param_4 + param_6" identifier + identifier) ))) <= identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_memcmp_004c5cf4)" ( (pointer_expression "*(code *)PTR_memcmp_004c5cf4" * (cast_expression "(code *)PTR_memcmp_004c5cf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + param_4,param_5,param_6)" ( (binary_expression "param_2 + param_4" identifier + identifier) , identifier , identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })) (return_statement return BOOL ;) })))
(function_definition "bool FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}" (primitive_type "bool") (function_declarator "FUN_002d1844(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)" (identifier "FUN_002d1844") (parameter_list "(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,\n                 int param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }\n  return false;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((uint)(param_4 + param_6) <= param_3) {\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }" (if "if") (parenthesized_expression "((uint)(param_4 + param_6) <= param_3)" (( "(") (binary_expression "(uint)(param_4 + param_6) <= param_3" (call_expression "(uint)(param_4 + param_6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 + param_6)" (( "(") (binary_expression "param_4 + param_6" (identifier "param_4") (+ "+") (identifier "param_6")) () ")"))) (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);\n    return iVar1 == 0;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_memcmp_004c5cf4)" (( "(") (pointer_expression "*(code *)PTR_memcmp_004c5cf4" (* "*") (cast_expression "(code *)PTR_memcmp_004c5cf4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_004c5cf4"))) () ")")) (argument_list "(param_2 + param_4,param_5,param_6)" (( "(") (binary_expression "param_2 + param_4" (identifier "param_2") (+ "+") (identifier "param_4")) (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (return_statement "return iVar1 == 0;" (return "return") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier) (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (return_statement (false)))))

bool MASKED(undefined4 param_1,int param_2,uint param_3,int param_4,undefined4 param_5,
                 int param_6)

{
  int iVar1;
  
  if ((uint)(param_4 + param_6) <= param_3) {
    iVar1 = (*(code *)PTR_memcmp_004c5cf4)(param_2 + param_4,param_5,param_6);
    return iVar1 == 0;
  }
  return false;
}

