
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int pthreadMutexTry(sqlite3_mutex *p)

{
  int rc;
  int iVar1;
  
  iVar1 = pthread_mutex_trylock((pthread_mutex_t *)p);
  if (iVar1 != 0) {
    iVar1 = 5;
  }
  return iVar1;
}



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

int FUN_00021ab0(pthread_mutex_t *param_1)

{
  int iVar1;
  
  iVar1 = pthread_mutex_trylock(param_1);
  if (iVar1 != 0) {
    iVar1 = 5;
  }
  return iVar1;
}


PUSH EBX
CALL 0x0001ddf0
ADD EBX,0xe454a
SUB ESP,0x14
PUSH dword ptr [ESP + 0x1c]
CALL 0x000164d0
MOV EDX,0x5
TEST EAX,EAX
CMOVNZ EAX,EDX
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00021ab0(pthread_mutex_t *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00021ab0(pthread_mutex_t *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00021ab0(pthread_mutex_t *param_1)" identifier (parameter_list "(pthread_mutex_t *param_1)" ( (parameter_declaration "pthread_mutex_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = pthread_mutex_trylock(param_1);" (assignment_expression "iVar1 = pthread_mutex_trylock(param_1)" identifier = (call_expression "pthread_mutex_trylock(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = 5;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 5;\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint pthreadMutexTry(sqlite3_mutex *p)\n\n{\n  int rc;\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock((pthread_mutex_t *)p);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int pthreadMutexTry(sqlite3_mutex *p)\n\n{\n  int rc;\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock((pthread_mutex_t *)p);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "pthreadMutexTry(sqlite3_mutex *p)" identifier (parameter_list "(sqlite3_mutex *p)" ( (parameter_declaration "sqlite3_mutex *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int rc;\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock((pthread_mutex_t *)p);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" { (declaration "int rc;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = pthread_mutex_trylock((pthread_mutex_t *)p);" (assignment_expression "iVar1 = pthread_mutex_trylock((pthread_mutex_t *)p)" identifier = (call_expression "pthread_mutex_trylock((pthread_mutex_t *)p)" identifier (argument_list "((pthread_mutex_t *)p)" ( (cast_expression "(pthread_mutex_t *)p" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = 5;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 5;\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00021ab0(pthread_mutex_t *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00021ab0(pthread_mutex_t *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00021ab0(pthread_mutex_t *param_1)" identifier (parameter_list "(pthread_mutex_t *param_1)" ( (parameter_declaration "pthread_mutex_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = pthread_mutex_trylock(param_1);" (assignment_expression "iVar1 = pthread_mutex_trylock(param_1)" identifier = (call_expression "pthread_mutex_trylock(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = 5;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 5;\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00021ab0(pthread_mutex_t *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00021ab0(pthread_mutex_t *param_1)" (identifier "FUN_00021ab0") (parameter_list "(pthread_mutex_t *param_1)" (( "(") (parameter_declaration "pthread_mutex_t *param_1" (type_identifier "pthread_mutex_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_mutex_trylock(param_1);\n  if (iVar1 != 0) {\n    iVar1 = 5;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = pthread_mutex_trylock(param_1);" (assignment_expression "iVar1 = pthread_mutex_trylock(param_1)" (identifier "iVar1") (= "=") (call_expression "pthread_mutex_trylock(param_1)" (identifier "pthread_mutex_trylock") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = 5;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 5;\n  }" ({ "{") (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" (identifier "iVar1") (= "=") (number_literal "5")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(type_1 *p)

{
  int rc;
  int var_2;
  
  var_2 = var_1((type_2 *)p);
  if (var_2 != 0) {
    var_2 = 5;
  }
  return var_2;
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

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

int MASKED(pthread_mutex_t *param_1)

{
  int iVar1;
  
  iVar1 = pthread_mutex_trylock(param_1);
  if (iVar1 != 0) {
    iVar1 = 5;
  }
  return iVar1;
}

