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

MagickBooleanType CreateMagickThreadKey(MagickThreadKey *key,_func_void_void_ptr *destructor)

{
  int iVar1;
  
  iVar1 = pthread_key_create(key,(__destr_function *)destructor);
  return (uint)(iVar1 == 0);
}



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

bool CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)

{
  int iVar1;
  
  iVar1 = pthread_key_create(param_1,param_2);
  return iVar1 == 0;
}


PUSH EBX
CALL 0x00038830
ADD EBX,0x239d5a
SUB ESP,0x10
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x00033a60
TEST EAX,EAX
SETZ AL
ADD ESP,0x18
MOVZX EAX,AL
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}\n\n" comment (function_definition "bool CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}" primitive_type (function_declarator "CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)" identifier (parameter_list "(pthread_key_t *param_1,__destr_function *param_2)" ( (parameter_declaration "pthread_key_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "__destr_function *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = pthread_key_create(param_1,param_2);" (assignment_expression "iVar1 = pthread_key_create(param_1,param_2)" identifier = (call_expression "pthread_key_create(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nMagickBooleanType CreateMagickThreadKey(MagickThreadKey *key,_func_void_void_ptr *destructor)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(key,(__destr_function *)destructor);\n  return (uint)(iVar1 == 0);\n}\n\n" comment comment (function_definition "MagickBooleanType CreateMagickThreadKey(MagickThreadKey *key,_func_void_void_ptr *destructor)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(key,(__destr_function *)destructor);\n  return (uint)(iVar1 == 0);\n}" type_identifier (function_declarator "CreateMagickThreadKey(MagickThreadKey *key,_func_void_void_ptr *destructor)" identifier (parameter_list "(MagickThreadKey *key,_func_void_void_ptr *destructor)" ( (parameter_declaration "MagickThreadKey *key" type_identifier (pointer_declarator "*key" * identifier)) , (parameter_declaration "_func_void_void_ptr *destructor" type_identifier (pointer_declarator "*destructor" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(key,(__destr_function *)destructor);\n  return (uint)(iVar1 == 0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = pthread_key_create(key,(__destr_function *)destructor);" (assignment_expression "iVar1 = pthread_key_create(key,(__destr_function *)destructor)" identifier = (call_expression "pthread_key_create(key,(__destr_function *)destructor)" identifier (argument_list "(key,(__destr_function *)destructor)" ( identifier , (cast_expression "(__destr_function *)destructor" ( (type_descriptor "__destr_function *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (return_statement "return (uint)(iVar1 == 0);" return (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "bool CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}\n\n" (function_definition "bool CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}" primitive_type (function_declarator "CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)" identifier (parameter_list "(pthread_key_t *param_1,__destr_function *param_2)" ( (parameter_declaration "pthread_key_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "__destr_function *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = pthread_key_create(param_1,param_2);" (assignment_expression "iVar1 = pthread_key_create(param_1,param_2)" identifier = (call_expression "pthread_key_create(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}" (primitive_type "bool") (function_declarator "CreateMagickThreadKey(pthread_key_t *param_1,__destr_function *param_2)" (identifier "CreateMagickThreadKey") (parameter_list "(pthread_key_t *param_1,__destr_function *param_2)" (( "(") (parameter_declaration "pthread_key_t *param_1" (type_identifier "pthread_key_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "__destr_function *param_2" (type_identifier "__destr_function") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = pthread_key_create(param_1,param_2);\n  return iVar1 == 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = pthread_key_create(param_1,param_2);" (assignment_expression "iVar1 = pthread_key_create(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "pthread_key_create(param_1,param_2)" (identifier "pthread_key_create") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar1 == 0;" (return "return") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (; ";")) (} "}")))

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

type_1 function_1(type_2 *key,type_3 *destructor)

{
  int var_2;
  
  var_2 = var_1(key,(type_4 *)destructor);
  return (uint)(var_2 == 0);
}


(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: (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) (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

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

bool MASKED(pthread_key_t *param_1,__destr_function *param_2)

{
  int iVar1;
  
  iVar1 = pthread_key_create(param_1,param_2);
  return iVar1 == 0;
}

