
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void advance_to_column(Mapfile * this, size_t from, size_t to) */

void __thiscall gold::Mapfile::advance_to_column(Mapfile *this,size_t from,size_t to)

{
  if (to - 1 <= from) {
    from = 0;
    putc(10,(FILE *)this->map_file_);
  }
  if (from < to) {
    do {
      from = from + 1;
      putc(0x20,(FILE *)this->map_file_);
    } while (to != from);
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)

{
  if (param_3 - 1 <= param_2) {
    param_2 = 0;
    putc(10,(FILE *)*param_1);
  }
  if (param_2 < param_3) {
    do {
      param_2 = param_2 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (param_3 != param_2);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x2816f7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x24]
MOV EBP,dword ptr [ESP + 0x20]
LEA EAX,[EDI + -0x1]
CMP EAX,ESI
JBE 0x000bd950
CMP EDI,ESI
JBE 0x000bd947
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [EBP]
ADD ESI,0x1
PUSH 0x20
CALL 0x00028950
ADD ESP,0x10
CMP EDI,ESI
JNZ 0x000bd930
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [EBP]
XOR ESI,ESI
PUSH 0xa
CALL 0x00028950
ADD ESP,0x10
JMP 0x000bd925
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}" { (if_statement "if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }" if (parenthesized_expression "(param_3 - 1 <= param_2)" ( (binary_expression "param_3 - 1 <= param_2" (binary_expression "param_3 - 1" identifier - number_literal) <= identifier) )) (compound_statement "{\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (expression_statement "putc(10,(FILE *)*param_1);" (call_expression "putc(10,(FILE *)*param_1)" identifier (argument_list "(10,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (if_statement "if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }" { (do_statement "do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);" do (compound_statement "{\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" identifier (argument_list "(0x20,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) }) while (parenthesized_expression "(param_3 != param_2)" ( (binary_expression "param_3 != param_2" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void advance_to_column(Mapfile * this, size_t from, size_t to) */\n\nvoid __thiscall gold::Mapfile::advance_to_column(Mapfile *this,size_t from,size_t to)\n\n{\n  if (to - 1 <= from) {\n    from = 0;\n    putc(10,(FILE *)this->map_file_);\n  }\n  if (from < to) {\n    do {\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    } while (to != from);\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Mapfile::advance_to_column(Mapfile *this,size_t from,size_t to)\n\n{\n  if (to - 1 <= from) {\n    from = 0;\n    putc(10,(FILE *)this->map_file_);\n  }\n  if (from < to) {\n    do {\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    } while (to != from);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Mapfile::" identifier : : identifier : :) (function_declarator "advance_to_column(Mapfile *this,size_t from,size_t to)" identifier (parameter_list "(Mapfile *this,size_t from,size_t to)" ( (parameter_declaration "Mapfile *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "size_t from" primitive_type identifier) , (parameter_declaration "size_t to" primitive_type identifier) ))) (compound_statement "{\n  if (to - 1 <= from) {\n    from = 0;\n    putc(10,(FILE *)this->map_file_);\n  }\n  if (from < to) {\n    do {\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    } while (to != from);\n  }\n  return;\n}" { (if_statement "if (to - 1 <= from) {\n    from = 0;\n    putc(10,(FILE *)this->map_file_);\n  }" if (parenthesized_expression "(to - 1 <= from)" ( (binary_expression "to - 1 <= from" (binary_expression "to - 1" identifier - number_literal) <= identifier) )) (compound_statement "{\n    from = 0;\n    putc(10,(FILE *)this->map_file_);\n  }" { (expression_statement "from = 0;" (assignment_expression "from = 0" identifier = number_literal) ;) (expression_statement "putc(10,(FILE *)this->map_file_);" (call_expression "putc(10,(FILE *)this->map_file_)" identifier (argument_list "(10,(FILE *)this->map_file_)" ( number_literal , (cast_expression "(FILE *)this->map_file_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->map_file_" identifier -> field_identifier)) ))) ;) })) (if_statement "if (from < to) {\n    do {\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    } while (to != from);\n  }" if (parenthesized_expression "(from < to)" ( (binary_expression "from < to" identifier < identifier) )) (compound_statement "{\n    do {\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    } while (to != from);\n  }" { (do_statement "do {\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    } while (to != from);" do (compound_statement "{\n      from = from + 1;\n      putc(0x20,(FILE *)this->map_file_);\n    }" { (expression_statement "from = from + 1;" (assignment_expression "from = from + 1" identifier = (binary_expression "from + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)this->map_file_);" (call_expression "putc(0x20,(FILE *)this->map_file_)" identifier (argument_list "(0x20,(FILE *)this->map_file_)" ( number_literal , (cast_expression "(FILE *)this->map_file_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->map_file_" identifier -> field_identifier)) ))) ;) }) while (parenthesized_expression "(to != from)" ( (binary_expression "to != from" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}" { (if_statement "if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }" if (parenthesized_expression "(param_3 - 1 <= param_2)" ( (binary_expression "param_3 - 1 <= param_2" (binary_expression "param_3 - 1" identifier - number_literal) <= identifier) )) (compound_statement "{\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (expression_statement "putc(10,(FILE *)*param_1);" (call_expression "putc(10,(FILE *)*param_1)" identifier (argument_list "(10,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (if_statement "if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }" { (do_statement "do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);" do (compound_statement "{\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" identifier (argument_list "(0x20,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) }) while (parenthesized_expression "(param_3 != param_2)" ( (binary_expression "param_3 != param_2" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000bd900(undefined4 *param_1,uint param_2,uint param_3)" (identifier "FUN_000bd900") (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }\n  if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }\n  return;\n}" ({ "{") (if_statement "if (param_3 - 1 <= param_2) {\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }" (if "if") (parenthesized_expression "(param_3 - 1 <= param_2)" (( "(") (binary_expression "param_3 - 1 <= param_2" (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1")) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    param_2 = 0;\n    putc(10,(FILE *)*param_1);\n  }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (expression_statement "putc(10,(FILE *)*param_1);" (call_expression "putc(10,(FILE *)*param_1)" (identifier "putc") (argument_list "(10,(FILE *)*param_1)" (( "(") (number_literal "10") (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 < param_3) {\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);\n  }" ({ "{") (do_statement "do {\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (param_3 != param_2);" (do "do") (compound_statement "{\n      param_2 = param_2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" (identifier "putc") (argument_list "(0x20,(FILE *)*param_1)" (( "(") (number_literal "0x20") (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != param_2)" (( "(") (binary_expression "param_3 != param_2" (identifier "param_3") (!= "!=") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void advance_to_column(Mapfile * this, size_t from, size_t to) */

void __thiscall gold::type_1::function_1(type_1 *this,size_t var_2,size_t var_1)

{
  if (var_1 - 1 <= var_2) {
    var_2 = 0;
    var_3(10,(type_2 *)this->map_file_);
  }
  if (var_2 < var_1) {
    do {
      var_2 = var_2 + 1;
      var_3(0x20,(type_2 *)this->map_file_);
    } while (var_1 != var_2);
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1,uint param_2,uint param_3)

{
  if (param_3 - 1 <= param_2) {
    param_2 = 0;
    putc(10,(FILE *)*param_1);
  }
  if (param_2 < param_3) {
    do {
      param_2 = param_2 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (param_3 != param_2);
  }
  return;
}

