
/* DWARF original prototype: char * do_filename(Sized_input_reader * this) */

char * __thiscall
gold::Sized_incremental_binary<32,_false>::Sized_input_reader::do_filename(Sized_input_reader *this)

{
  Incremental_inputs_reader<32,_false> *pIVar1;
  
  pIVar1 = (this->reader_).inputs_;
  if (*(uint *)(pIVar1->p_ + (this->reader_).offset_) < (pIVar1->strtab_).usable_size_) {
    return (pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_);
  }
  return (char *)0x0;
}



int FUN_000682d0(int param_1)

{
  int *piVar1;
  uint uVar2;
  
  piVar1 = *(int **)(param_1 + 4);
  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));
  if (uVar2 < (uint)piVar1[2]) {
    return piVar1[1] + uVar2;
  }
  return 0;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX + 0xc]
MOV ECX,dword ptr [EDX]
MOV EBX,dword ptr [EDX + 0x4]
MOV ECX,dword ptr [ECX + EAX*0x1]
LEA EAX,[EBX + ECX*0x1]
CMP ECX,dword ptr [EDX + 0x8]
JNC 0x000682f0
POP EBX
RET
XOR EAX,EAX
POP EBX
RET
(translation_unit "int FUN_000682d0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000682d0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000682d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));" (assignment_expression "uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" identifier = (pointer_expression "*(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" * (cast_expression "(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + *(int *)(param_1 + 0xc))" ( (binary_expression "*piVar1 + *(int *)(param_1 + 0xc)" (pointer_expression "*piVar1" * identifier) + (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ))))) ;) (if_statement "if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }" if (parenthesized_expression "(uVar2 < (uint)piVar1[2])" ( (binary_expression "uVar2 < (uint)piVar1[2]" identifier < (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n    return piVar1[1] + uVar2;\n  }" { (return_statement "return piVar1[1] + uVar2;" return (binary_expression "piVar1[1] + uVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: char * do_filename(Sized_input_reader * this) */\n\nchar * __thiscall\ngold::Sized_incremental_binary<32,_false>::Sized_input_reader::do_filename(Sized_input_reader *this)\n\n{\n  Incremental_inputs_reader<32,_false> *pIVar1;\n  \n  pIVar1 = (this->reader_).inputs_;\n  if (*(uint *)(pIVar1->p_ + (this->reader_).offset_) < (pIVar1->strtab_).usable_size_) {\n    return (pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_);\n  }\n  return (char *)0x0;\n}\n\n" comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Sized_incremental_binary<32,_false>::Sized_input_reader::do_filename(Sized_input_reader *this)" statement_identifier (ERROR "::Sized_incremental_binary<32,_false>::Sized_input_reader:" : : (comma_expression "Sized_incremental_binary<32,_false>::Sized_input_reader" (binary_expression "Sized_incremental_binary<32" identifier < number_literal) , (binary_expression "_false>::Sized_input_reader" identifier > (ERROR "::" : :) identifier)) :) : (expression_statement "do_filename(Sized_input_reader *this)" (call_expression "do_filename(Sized_input_reader *this)" identifier (argument_list "(Sized_input_reader *this)" ( (binary_expression "Sized_input_reader *this" identifier * identifier) ))) ;)) (compound_statement "{\n  Incremental_inputs_reader<32,_false> *pIVar1;\n  \n  pIVar1 = (this->reader_).inputs_;\n  if (*(uint *)(pIVar1->p_ + (this->reader_).offset_) < (pIVar1->strtab_).usable_size_) {\n    return (pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_);\n  }\n  return (char *)0x0;\n}" { (expression_statement "Incremental_inputs_reader<32,_false> *pIVar1;" (comma_expression "Incremental_inputs_reader<32,_false> *pIVar1" (binary_expression "Incremental_inputs_reader<32" identifier < number_literal) , (binary_expression "_false> *pIVar1" identifier > (pointer_expression "*pIVar1" * identifier))) ;) (expression_statement "pIVar1 = (this->reader_).inputs_;" (assignment_expression "pIVar1 = (this->reader_).inputs_" identifier = (field_expression "(this->reader_).inputs_" (parenthesized_expression "(this->reader_)" ( (field_expression "this->reader_" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (*(uint *)(pIVar1->p_ + (this->reader_).offset_) < (pIVar1->strtab_).usable_size_) {\n    return (pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_);\n  }" if (parenthesized_expression "(*(uint *)(pIVar1->p_ + (this->reader_).offset_) < (pIVar1->strtab_).usable_size_)" ( (binary_expression "*(uint *)(pIVar1->p_ + (this->reader_).offset_) < (pIVar1->strtab_).usable_size_" (pointer_expression "*(uint *)(pIVar1->p_ + (this->reader_).offset_)" * (cast_expression "(uint *)(pIVar1->p_ + (this->reader_).offset_)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pIVar1->p_ + (this->reader_).offset_)" ( (binary_expression "pIVar1->p_ + (this->reader_).offset_" (field_expression "pIVar1->p_" identifier -> field_identifier) + (field_expression "(this->reader_).offset_" (parenthesized_expression "(this->reader_)" ( (field_expression "this->reader_" identifier -> field_identifier) )) . field_identifier)) )))) < (field_expression "(pIVar1->strtab_).usable_size_" (parenthesized_expression "(pIVar1->strtab_)" ( (field_expression "pIVar1->strtab_" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n    return (pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_);\n  }" { (return_statement "return (pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_);" return (binary_expression "(pIVar1->strtab_).base_ + *(uint *)(pIVar1->p_ + (this->reader_).offset_)" (field_expression "(pIVar1->strtab_).base_" (parenthesized_expression "(pIVar1->strtab_)" ( (field_expression "pIVar1->strtab_" identifier -> field_identifier) )) . field_identifier) + (pointer_expression "*(uint *)(pIVar1->p_ + (this->reader_).offset_)" * (cast_expression "(uint *)(pIVar1->p_ + (this->reader_).offset_)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pIVar1->p_ + (this->reader_).offset_)" ( (binary_expression "pIVar1->p_ + (this->reader_).offset_" (field_expression "pIVar1->p_" identifier -> field_identifier) + (field_expression "(this->reader_).offset_" (parenthesized_expression "(this->reader_)" ( (field_expression "this->reader_" identifier -> field_identifier) )) . field_identifier)) ))))) ;) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int FUN_000682d0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000682d0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000682d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));" (assignment_expression "uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" identifier = (pointer_expression "*(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" * (cast_expression "(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + *(int *)(param_1 + 0xc))" ( (binary_expression "*piVar1 + *(int *)(param_1 + 0xc)" (pointer_expression "*piVar1" * identifier) + (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ))))) ;) (if_statement "if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }" if (parenthesized_expression "(uVar2 < (uint)piVar1[2])" ( (binary_expression "uVar2 < (uint)piVar1[2]" identifier < (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n    return piVar1[1] + uVar2;\n  }" { (return_statement "return piVar1[1] + uVar2;" return (binary_expression "piVar1[1] + uVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_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 IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_000682d0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_000682d0(int param_1)" (identifier "FUN_000682d0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));\n  if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));" (assignment_expression "uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" (* "*") (cast_expression "(uint *)(*piVar1 + *(int *)(param_1 + 0xc))" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + *(int *)(param_1 + 0xc))" (( "(") (binary_expression "*piVar1 + *(int *)(param_1 + 0xc)" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")"))))) (; ";")) (if_statement "if (uVar2 < (uint)piVar1[2]) {\n    return piVar1[1] + uVar2;\n  }" (if "if") (parenthesized_expression "(uVar2 < (uint)piVar1[2])" (( "(") (binary_expression "uVar2 < (uint)piVar1[2]" (identifier "uVar2") (< "<") (cast_expression "(uint)piVar1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n    return piVar1[1] + uVar2;\n  }" ({ "{") (return_statement "return piVar1[1] + uVar2;" (return "return") (binary_expression "piVar1[1] + uVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "uVar2")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* DWARF original prototype: char * do_filename(Sized_input_reader * this) */

char * __thiscall
gold::Sized_incremental_binary<32,var_5>::var_2::var_1(var_2 *var_3)

{
  var_4<32,var_5> *pIVar1;
  
  pIVar1 = (var_3->reader_).inputs_;
  if (*(type_1 *)(pIVar1->p_ + (var_3->reader_).offset_) < (pIVar1->strtab_).usable_size_) {
    return (pIVar1->strtab_).base_ + *(type_1 *)(pIVar1->p_ + (var_3->reader_).offset_);
  }
  return (char *)0x0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_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: (pointer_expression argument: (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))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (return_statement (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (return_statement (number_literal)))))

int MASKED(int param_1)

{
  int *piVar1;
  uint uVar2;
  
  piVar1 = *(int **)(param_1 + 4);
  uVar2 = *(uint *)(*piVar1 + *(int *)(param_1 + 0xc));
  if (uVar2 < (uint)piVar1[2]) {
    return piVar1[1] + uVar2;
  }
  return 0;
}

