
/* DWARF original prototype: char * get_string(Dwarf_info_reader * this, off_t str_off, uint
   string_shndx) */

char * __thiscall
gold::Dwarf_info_reader::get_string(Dwarf_info_reader *this,off_t str_off,uint string_shndx)

{
  bool bVar1;
  uint uVar2;
  char *pcVar3;
  
  if (((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))
     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)) {
    return (char *)0x0;
  }
  uVar2 = (int)str_off - (int)this->string_output_section_offset_;
  pcVar3 = this->string_buffer_ + uVar2;
  if ((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)) {
    return pcVar3;
  }
  return (char *)0x0;
}



uint FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)

{
  char cVar1;
  uint uVar2;
  uint uVar3;
  
  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))
     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {
    return 0;
  }
  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);
  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);
  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {
    return uVar3;
  }
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EBX + 0x28]
TEST EDX,EDX
JZ 0x00056bae
CMP EAX,EDX
JZ 0x00056bbf
TEST EAX,EAX
JZ 0x00056bbf
SUB ESP,0x8
PUSH EAX
PUSH EBX
CALL 0x000569a0
ADD ESP,0x10
TEST AL,AL
JZ 0x00056be0
MOV EAX,ESI
SUB EAX,dword ptr [EBX + 0x4bc]
ADD EAX,dword ptr [EBX + 0x4b0]
JC 0x00056be0
CMP dword ptr [EBX + 0x4b4],EAX
JBE 0x00056be0
POP EBX
POP ESI
POP EDI
RET
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
(translation_unit "uint FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }" if (parenthesized_expression "(((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0'))" ( (binary_expression "((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')" (parenthesized_expression "((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))" ( (binary_expression "(*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)))" (parenthesized_expression "(*(int *)(param_1 + 0x28) == 0)" ( (binary_expression "*(int *)(param_1 + 0x28) == 0" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)))" ( (parenthesized_expression "(param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))" ( (binary_expression "param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)" (binary_expression "param_4 != *(int *)(param_1 + 0x28)" identifier != (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) && (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) ))) )) ))) )) && (parenthesized_expression "(cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')" ( (comma_expression "cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0'" (assignment_expression "cVar1 = FUN_000569a0(param_1,param_4)" identifier = (call_expression "FUN_000569a0(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier )))) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_2 - *(int *)(param_1 + 0x4bc);" (assignment_expression "uVar2 = param_2 - *(int *)(param_1 + 0x4bc)" identifier = (binary_expression "param_2 - *(int *)(param_1 + 0x4bc)" identifier - (pointer_expression "*(int *)(param_1 + 0x4bc)" * (cast_expression "(int *)(param_1 + 0x4bc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4bc)" ( (binary_expression "param_1 + 0x4bc" identifier + number_literal) )))))) ;) (expression_statement "uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);" (assignment_expression "uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0)" identifier = (binary_expression "uVar2 + *(uint *)(param_1 + 0x4b0)" identifier + (pointer_expression "*(uint *)(param_1 + 0x4b0)" * (cast_expression "(uint *)(param_1 + 0x4b0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b0)" ( (binary_expression "param_1 + 0x4b0" identifier + number_literal) )))))) ;) (if_statement "if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }" if (parenthesized_expression "((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4)))" ( (binary_expression "(!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))" (parenthesized_expression "(!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0)))" ( (unary_expression "!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))" ! (call_expression "CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))" identifier (argument_list "(uVar2,*(uint *)(param_1 + 0x4b0))" ( identifier , (pointer_expression "*(uint *)(param_1 + 0x4b0)" * (cast_expression "(uint *)(param_1 + 0x4b0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b0)" ( (binary_expression "param_1 + 0x4b0" identifier + number_literal) )))) )))) )) && (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x4b4))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x4b4)" identifier < (pointer_expression "*(uint *)(param_1 + 0x4b4)" * (cast_expression "(uint *)(param_1 + 0x4b4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b4)" ( (binary_expression "param_1 + 0x4b4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: char * get_string(Dwarf_info_reader * this, off_t str_off, uint\n   string_shndx) */\n\nchar * __thiscall\ngold::Dwarf_info_reader::get_string(Dwarf_info_reader *this,off_t str_off,uint string_shndx)\n\n{\n  bool bVar1;\n  uint uVar2;\n  char *pcVar3;\n  \n  if (((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)) {\n    return (char *)0x0;\n  }\n  uVar2 = (int)str_off - (int)this->string_output_section_offset_;\n  pcVar3 = this->string_buffer_ + uVar2;\n  if ((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)) {\n    return pcVar3;\n  }\n  return (char *)0x0;\n}\n\n" comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Dwarf_info_reader::get_string(Dwarf_info_reader *this,off_t str_off,uint string_shndx)\n\n{\n  bool bVar1;\n  uint uVar2;\n  char *pcVar3;\n  \n  if (((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)) {\n    return (char *)0x0;\n  }\n  uVar2 = (int)str_off - (int)this->string_output_section_offset_;\n  pcVar3 = this->string_buffer_ + uVar2;\n  if ((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)) {\n    return pcVar3;\n  }\n  return (char *)0x0;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "Dwarf_info_reader::get_string(Dwarf_info_reader *this,off_t str_off,uint string_shndx)\n\n{\n  bool bVar1;\n  uint uVar2;\n  char *pcVar3;\n  \n  if (((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)) {\n    return (char *)0x0;\n  }\n  uVar2 = (int)str_off - (int)this->string_output_section_offset_;\n  pcVar3 = this->string_buffer_ + uVar2;\n  if ((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)) {\n    return pcVar3;\n  }\n  return (char *)0x0;\n}" statement_identifier : (ERROR ":get_string(Dwarf_info_reader *this,off_t str_off,uint string_shndx)" : (call_expression "get_string(Dwarf_info_reader *this,off_t str_off,uint string_shndx)" identifier (argument_list "(Dwarf_info_reader *this,off_t str_off,uint string_shndx)" ( (binary_expression "Dwarf_info_reader *this" identifier * identifier) , (ERROR "off_t" identifier) identifier , (ERROR "uint" identifier) identifier )))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  char *pcVar3;\n  \n  if (((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)) {\n    return (char *)0x0;\n  }\n  uVar2 = (int)str_off - (int)this->string_output_section_offset_;\n  pcVar3 = this->string_buffer_ + uVar2;\n  if ((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)) {\n    return pcVar3;\n  }\n  return (char *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1))" ( (binary_expression "((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))\n     && (bVar1 = do_read_string_table(this,string_shndx), !bVar1)" (parenthesized_expression "((this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0))))" ( (binary_expression "(this->string_shndx_ == 0) || ((string_shndx != this->string_shndx_ && (string_shndx != 0)))" (parenthesized_expression "(this->string_shndx_ == 0)" ( (binary_expression "this->string_shndx_ == 0" (field_expression "this->string_shndx_" identifier -> field_identifier) == number_literal) )) || (parenthesized_expression "((string_shndx != this->string_shndx_ && (string_shndx != 0)))" ( (parenthesized_expression "(string_shndx != this->string_shndx_ && (string_shndx != 0))" ( (binary_expression "string_shndx != this->string_shndx_ && (string_shndx != 0)" (binary_expression "string_shndx != this->string_shndx_" identifier != (field_expression "this->string_shndx_" identifier -> field_identifier)) && (parenthesized_expression "(string_shndx != 0)" ( (binary_expression "string_shndx != 0" identifier != number_literal) ))) )) ))) )) && (parenthesized_expression "(bVar1 = do_read_string_table(this,string_shndx), !bVar1)" ( (comma_expression "bVar1 = do_read_string_table(this,string_shndx), !bVar1" (assignment_expression "bVar1 = do_read_string_table(this,string_shndx)" identifier = (call_expression "do_read_string_table(this,string_shndx)" identifier (argument_list "(this,string_shndx)" ( identifier , identifier )))) , (unary_expression "!bVar1" ! identifier)) ))) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar2 = (int)str_off - (int)this->string_output_section_offset_;" (assignment_expression "uVar2 = (int)str_off - (int)this->string_output_section_offset_" identifier = (binary_expression "(int)str_off - (int)this->string_output_section_offset_" (cast_expression "(int)str_off" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)this->string_output_section_offset_" ( (type_descriptor "int" primitive_type) ) (field_expression "this->string_output_section_offset_" identifier -> field_identifier)))) ;) (expression_statement "pcVar3 = this->string_buffer_ + uVar2;" (assignment_expression "pcVar3 = this->string_buffer_ + uVar2" identifier = (binary_expression "this->string_buffer_ + uVar2" (field_expression "this->string_buffer_" identifier -> field_identifier) + identifier)) ;) (if_statement "if ((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)) {\n    return pcVar3;\n  }" if (parenthesized_expression "((!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_))" ( (binary_expression "(!CARRY4(uVar2,(uint)this->string_buffer_)) && (pcVar3 < this->string_buffer_end_)" (parenthesized_expression "(!CARRY4(uVar2,(uint)this->string_buffer_))" ( (unary_expression "!CARRY4(uVar2,(uint)this->string_buffer_)" ! (call_expression "CARRY4(uVar2,(uint)this->string_buffer_)" identifier (argument_list "(uVar2,(uint)this->string_buffer_)" ( identifier , (cast_expression "(uint)this->string_buffer_" ( (type_descriptor "uint" type_identifier) ) (field_expression "this->string_buffer_" identifier -> field_identifier)) )))) )) && (parenthesized_expression "(pcVar3 < this->string_buffer_end_)" ( (binary_expression "pcVar3 < this->string_buffer_end_" identifier < (field_expression "this->string_buffer_end_" identifier -> field_identifier)) ))) )) (compound_statement "{\n    return pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))))
(translation_unit "uint FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }" if (parenthesized_expression "(((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0'))" ( (binary_expression "((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')" (parenthesized_expression "((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))" ( (binary_expression "(*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)))" (parenthesized_expression "(*(int *)(param_1 + 0x28) == 0)" ( (binary_expression "*(int *)(param_1 + 0x28) == 0" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)))" ( (parenthesized_expression "(param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))" ( (binary_expression "param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)" (binary_expression "param_4 != *(int *)(param_1 + 0x28)" identifier != (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) && (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) ))) )) ))) )) && (parenthesized_expression "(cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')" ( (comma_expression "cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0'" (assignment_expression "cVar1 = FUN_000569a0(param_1,param_4)" identifier = (call_expression "FUN_000569a0(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier )))) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_2 - *(int *)(param_1 + 0x4bc);" (assignment_expression "uVar2 = param_2 - *(int *)(param_1 + 0x4bc)" identifier = (binary_expression "param_2 - *(int *)(param_1 + 0x4bc)" identifier - (pointer_expression "*(int *)(param_1 + 0x4bc)" * (cast_expression "(int *)(param_1 + 0x4bc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4bc)" ( (binary_expression "param_1 + 0x4bc" identifier + number_literal) )))))) ;) (expression_statement "uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);" (assignment_expression "uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0)" identifier = (binary_expression "uVar2 + *(uint *)(param_1 + 0x4b0)" identifier + (pointer_expression "*(uint *)(param_1 + 0x4b0)" * (cast_expression "(uint *)(param_1 + 0x4b0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b0)" ( (binary_expression "param_1 + 0x4b0" identifier + number_literal) )))))) ;) (if_statement "if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }" if (parenthesized_expression "((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4)))" ( (binary_expression "(!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))" (parenthesized_expression "(!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0)))" ( (unary_expression "!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))" ! (call_expression "CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))" identifier (argument_list "(uVar2,*(uint *)(param_1 + 0x4b0))" ( identifier , (pointer_expression "*(uint *)(param_1 + 0x4b0)" * (cast_expression "(uint *)(param_1 + 0x4b0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b0)" ( (binary_expression "param_1 + 0x4b0" identifier + number_literal) )))) )))) )) && (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x4b4))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x4b4)" identifier < (pointer_expression "*(uint *)(param_1 + 0x4b4)" * (cast_expression "(uint *)(param_1 + 0x4b4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b4)" ( (binary_expression "param_1 + 0x4b4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (unary_expression ! (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_00056b90(int param_1,int param_2,undefined4 param_3,int param_4)" (identifier "FUN_00056b90") (parameter_list "(int param_1,int param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }\n  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);\n  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);\n  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0'))" (( "(") (binary_expression "((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))\n     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')" (parenthesized_expression "((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))" (( "(") (binary_expression "(*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)))" (parenthesized_expression "(*(int *)(param_1 + 0x28) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x28) == 0" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)))" (( "(") (parenthesized_expression "(param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))" (( "(") (binary_expression "param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0)" (binary_expression "param_4 != *(int *)(param_1 + 0x28)" (identifier "param_4") (!= "!=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (&& "&&") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')" (( "(") (comma_expression "cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0'" (assignment_expression "cVar1 = FUN_000569a0(param_1,param_4)" (identifier "cVar1") (= "=") (call_expression "FUN_000569a0(param_1,param_4)" (identifier "FUN_000569a0") (argument_list "(param_1,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") () ")")))) (, ",") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = param_2 - *(int *)(param_1 + 0x4bc);" (assignment_expression "uVar2 = param_2 - *(int *)(param_1 + 0x4bc)" (identifier "uVar2") (= "=") (binary_expression "param_2 - *(int *)(param_1 + 0x4bc)" (identifier "param_2") (- "-") (pointer_expression "*(int *)(param_1 + 0x4bc)" (* "*") (cast_expression "(int *)(param_1 + 0x4bc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4bc)" (( "(") (binary_expression "param_1 + 0x4bc" (identifier "param_1") (+ "+") (number_literal "0x4bc")) () ")")))))) (; ";")) (expression_statement "uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);" (assignment_expression "uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0)" (identifier "uVar3") (= "=") (binary_expression "uVar2 + *(uint *)(param_1 + 0x4b0)" (identifier "uVar2") (+ "+") (pointer_expression "*(uint *)(param_1 + 0x4b0)" (* "*") (cast_expression "(uint *)(param_1 + 0x4b0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4b0)" (( "(") (binary_expression "param_1 + 0x4b0" (identifier "param_1") (+ "+") (number_literal "0x4b0")) () ")")))))) (; ";")) (if_statement "if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4)))" (( "(") (binary_expression "(!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))" (parenthesized_expression "(!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0)))" (( "(") (unary_expression "!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))" (! "!") (call_expression "CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))" (identifier "CARRY4") (argument_list "(uVar2,*(uint *)(param_1 + 0x4b0))" (( "(") (identifier "uVar2") (, ",") (pointer_expression "*(uint *)(param_1 + 0x4b0)" (* "*") (cast_expression "(uint *)(param_1 + 0x4b0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4b0)" (( "(") (binary_expression "param_1 + 0x4b0" (identifier "param_1") (+ "+") (number_literal "0x4b0")) () ")")))) () ")")))) () ")")) (&& "&&") (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x4b4))" (( "(") (binary_expression "uVar3 < *(uint *)(param_1 + 0x4b4)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(param_1 + 0x4b4)" (* "*") (cast_expression "(uint *)(param_1 + 0x4b4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4b4)" (( "(") (binary_expression "param_1 + 0x4b4" (identifier "param_1") (+ "+") (number_literal "0x4b4")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* DWARF original prototype: char * get_string(Dwarf_info_reader * this, off_t str_off, uint
   string_shndx) */

char * __thiscall
gold::Dwarf_info_reader::get_string(Dwarf_info_reader *this,off_t str_off,type_1 var_1)

{
  bool bVar1;
  type_1 var_3;
  char *var_5;
  
  if (((this->string_shndx_ == 0) || ((var_1 != this->string_shndx_ && (var_1 != 0))))
     && (bVar1 = var_2(this,var_1), !bVar1)) {
    return (char *)0x0;
  }
  var_3 = (int)str_off - (int)this->string_output_section_offset_;
  var_5 = this->string_buffer_ + var_3;
  if ((!var_4(var_3,(type_1)this->string_buffer_)) && (var_5 < this->string_buffer_end_)) {
    return var_5;
  }
  return (char *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (return_statement (identifier)))) (return_statement (number_literal)))))

uint MASKED(int param_1,int param_2,undefined4 param_3,int param_4)

{
  char cVar1;
  uint uVar2;
  uint uVar3;
  
  if (((*(int *)(param_1 + 0x28) == 0) || ((param_4 != *(int *)(param_1 + 0x28) && (param_4 != 0))))
     && (cVar1 = FUN_000569a0(param_1,param_4), cVar1 == '\0')) {
    return 0;
  }
  uVar2 = param_2 - *(int *)(param_1 + 0x4bc);
  uVar3 = uVar2 + *(uint *)(param_1 + 0x4b0);
  if ((!CARRY4(uVar2,*(uint *)(param_1 + 0x4b0))) && (uVar3 < *(uint *)(param_1 + 0x4b4))) {
    return uVar3;
  }
  return 0;
}

