
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void unlock(View * this) */

void __thiscall gold::File_read::View::unlock(View *this)

{
  if (0 < this->lock_count_) {
    this->lock_count_ = this->lock_count_ + -1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/fileread.cc",0xa4,"unlock");
}



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

void FUN_00066770(int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 0x10);
  if (0 < iVar1) {
    *(int *)(param_1 + 0x10) = iVar1 + -1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x32888a
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX + 0x10]
TEST EAX,EAX
JLE 0x00066795
SUB EAX,0x1
MOV dword ptr [EDX + 0x10],EAX
ADD ESP,0x8
POP EBX
RET
PUSH EAX
LEA EAX,[EBX + 0xffef86d0]
PUSH EAX
LEA EAX,[EBX + 0xffef8354]
PUSH 0xa4
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00066770(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}\n\n" comment (function_definition "void FUN_00066770(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}" primitive_type (function_declarator "FUN_00066770(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }" { (expression_statement "*(int *)(param_1 + 0x10) = iVar1 + -1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1 + -1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);" (call_expression "FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1)" identifier (argument_list "("../../gold/fileread.cc",0xa4,"unlock",iVar1)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""unlock"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void unlock(View * this) */\n\nvoid __thiscall gold::File_read::View::unlock(View *this)\n\n{\n  if (0 < this->lock_count_) {\n    this->lock_count_ = this->lock_count_ + -1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/fileread.cc",0xa4,"unlock");\n}\n\n" comment comment (function_definition "void __thiscall gold::File_read::View::unlock(View *this)\n\n{\n  if (0 < this->lock_count_) {\n    this->lock_count_ = this->lock_count_ + -1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/fileread.cc",0xa4,"unlock");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::View::" identifier : : identifier : : identifier : :) (function_declarator "unlock(View *this)" identifier (parameter_list "(View *this)" ( (parameter_declaration "View *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  if (0 < this->lock_count_) {\n    this->lock_count_ = this->lock_count_ + -1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/fileread.cc",0xa4,"unlock");\n}" { (if_statement "if (0 < this->lock_count_) {\n    this->lock_count_ = this->lock_count_ + -1;\n    return;\n  }" if (parenthesized_expression "(0 < this->lock_count_)" ( (binary_expression "0 < this->lock_count_" number_literal < (field_expression "this->lock_count_" identifier -> field_identifier)) )) (compound_statement "{\n    this->lock_count_ = this->lock_count_ + -1;\n    return;\n  }" { (expression_statement "this->lock_count_ = this->lock_count_ + -1;" (assignment_expression "this->lock_count_ = this->lock_count_ + -1" (field_expression "this->lock_count_" identifier -> field_identifier) = (binary_expression "this->lock_count_ + -1" (field_expression "this->lock_count_" identifier -> field_identifier) + number_literal)) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/fileread.cc",0xa4,"unlock");" (call_expression "do_gold_unreachable("../../gold/fileread.cc",0xa4,"unlock")" identifier (argument_list "("../../gold/fileread.cc",0xa4,"unlock")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""unlock"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00066770(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}\n\n" (function_definition "void FUN_00066770(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}" primitive_type (function_declarator "FUN_00066770(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }" { (expression_statement "*(int *)(param_1 + 0x10) = iVar1 + -1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1 + -1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);" (call_expression "FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1)" identifier (argument_list "("../../gold/fileread.cc",0xa4,"unlock",iVar1)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""unlock"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_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 LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_00066770(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}" (primitive_type "void") (function_declarator "FUN_00066770(int param_1)" (identifier "FUN_00066770") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (0 < iVar1) {\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x10) = iVar1 + -1;\n    return;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x10) = iVar1 + -1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1 + -1" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);" (call_expression "FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1)" (identifier "FUN_00069d00") (argument_list "("../../gold/fileread.cc",0xa4,"unlock",iVar1)" (( "(") (string_literal ""../../gold/fileread.cc"" (" """) (string_content "../../gold/fileread.cc") (" """)) (, ",") (number_literal "0xa4") (, ",") (string_literal ""unlock"" (" """) (string_content "unlock") (" """)) (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void unlock(View * this) */

void __thiscall gold::File_read::type_1::function_1(type_1 *this)

{
  if (0 < this->lock_count_) {
    this->lock_count_ = this->lock_count_ + -1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/fileread.cc",0xa4,"unlock");
}


(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: (identifier)) (expression_statement (assignment_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

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

void MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 0x10);
  if (0 < iVar1) {
    *(int *)(param_1 + 0x10) = iVar1 + -1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/fileread.cc",0xa4,"unlock",iVar1);
}

