
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

X11FakeAuth *
ssh_sharing_add_x11_display(Ssh_conflict ssh,int authtype,void *share_cs,void *share_chan)

{
  X11FakeAuth *pXVar1;
  
  pXVar1 = x11_invent_fake_auth(ssh->x11authtree,authtype);
  pXVar1->share_cs = share_cs;
  pXVar1->share_chan = share_chan;
  return pXVar1;
}



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

void FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);
  *(undefined4 *)(iVar1 + 0x20) = param_3;
  *(undefined4 *)(iVar1 + 0x24) = param_4;
  return;
}


PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xd121a
SUB ESP,0x10
PUSH dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0x194]
CALL 0x000a1ef0
MOV EDX,dword ptr [ESP + 0x28]
MOV dword ptr [EAX + 0x20],EDX
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [EAX + 0x24],EDX
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}\n\n" comment (function_definition "void FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);" (assignment_expression "iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2)" identifier = (call_expression "FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x194),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x194)" * (cast_expression "(undefined4 *)(param_1 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x194)" ( (binary_expression "param_1 + 0x194" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nX11FakeAuth *\nssh_sharing_add_x11_display(Ssh_conflict ssh,int authtype,void *share_cs,void *share_chan)\n\n{\n  X11FakeAuth *pXVar1;\n  \n  pXVar1 = x11_invent_fake_auth(ssh->x11authtree,authtype);\n  pXVar1->share_cs = share_cs;\n  pXVar1->share_chan = share_chan;\n  return pXVar1;\n}\n\n" comment comment comment (function_definition "X11FakeAuth *\nssh_sharing_add_x11_display(Ssh_conflict ssh,int authtype,void *share_cs,void *share_chan)\n\n{\n  X11FakeAuth *pXVar1;\n  \n  pXVar1 = x11_invent_fake_auth(ssh->x11authtree,authtype);\n  pXVar1->share_cs = share_cs;\n  pXVar1->share_chan = share_chan;\n  return pXVar1;\n}" type_identifier (pointer_declarator "*\nssh_sharing_add_x11_display(Ssh_conflict ssh,int authtype,void *share_cs,void *share_chan)" * (function_declarator "ssh_sharing_add_x11_display(Ssh_conflict ssh,int authtype,void *share_cs,void *share_chan)" identifier (parameter_list "(Ssh_conflict ssh,int authtype,void *share_cs,void *share_chan)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "int authtype" primitive_type identifier) , (parameter_declaration "void *share_cs" primitive_type (pointer_declarator "*share_cs" * identifier)) , (parameter_declaration "void *share_chan" primitive_type (pointer_declarator "*share_chan" * identifier)) )))) (compound_statement "{\n  X11FakeAuth *pXVar1;\n  \n  pXVar1 = x11_invent_fake_auth(ssh->x11authtree,authtype);\n  pXVar1->share_cs = share_cs;\n  pXVar1->share_chan = share_chan;\n  return pXVar1;\n}" { (declaration "X11FakeAuth *pXVar1;" type_identifier (pointer_declarator "*pXVar1" * identifier) ;) (expression_statement "pXVar1 = x11_invent_fake_auth(ssh->x11authtree,authtype);" (assignment_expression "pXVar1 = x11_invent_fake_auth(ssh->x11authtree,authtype)" identifier = (call_expression "x11_invent_fake_auth(ssh->x11authtree,authtype)" identifier (argument_list "(ssh->x11authtree,authtype)" ( (field_expression "ssh->x11authtree" identifier -> field_identifier) , identifier )))) ;) (expression_statement "pXVar1->share_cs = share_cs;" (assignment_expression "pXVar1->share_cs = share_cs" (field_expression "pXVar1->share_cs" identifier -> field_identifier) = identifier) ;) (expression_statement "pXVar1->share_chan = share_chan;" (assignment_expression "pXVar1->share_chan = share_chan" (field_expression "pXVar1->share_chan" identifier -> field_identifier) = identifier) ;) (return_statement "return pXVar1;" return identifier ;) })))
(translation_unit "void FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}\n\n" (function_definition "void FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);" (assignment_expression "iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2)" identifier = (call_expression "FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x194),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x194)" * (cast_expression "(undefined4 *)(param_1 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x194)" ( (binary_expression "param_1 + 0x194" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003f530(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0003f530") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);\n  *(undefined4 *)(iVar1 + 0x20) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = param_4;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);" (assignment_expression "iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2)" (identifier "FUN_000a1ef0") (argument_list "(*(undefined4 *)(param_1 + 0x194),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x194)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x194)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x194)" (( "(") (binary_expression "param_1 + 0x194" (identifier "param_1") (+ "+") (number_literal "0x194")) () ")")))) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 *
function_1(type_2 ssh,int authtype,void *share_cs,void *share_chan)

{
  type_1 *pXVar1;
  
  pXVar1 = var_1(ssh->x11authtree,authtype);
  pXVar1->share_cs = share_cs;
  pXVar1->share_chan = share_chan;
  return pXVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  iVar1 = FUN_000a1ef0(*(undefined4 *)(param_1 + 0x194),param_2);
  *(undefined4 *)(iVar1 + 0x20) = param_3;
  *(undefined4 *)(iVar1 + 0x24) = param_4;
  return;
}

