
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void sshfwd_x11_sharing_handover
               (ssh_channel *c,void *share_cs,void *share_chan,char *peer_addr,int peer_port,
               int endian,int protomajor,int protominor,void *initial_data,int initial_len)

{
  c->type = 4;
  (c->u).a.inbuffer.head = (bufchain_granule *)share_cs;
  share_setup_x11_channel
            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,
             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,
             initial_len);
  return;
}



void FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,
                 undefined8 param_9,undefined4 param_10)

{
  *(undefined4 *)(param_1 + 0x10) = 4;
  *(undefined8 *)(param_1 + 0x70) = param_2;
  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),
               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),
               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,
               param_10);
  return;
}


SUB RSP,0x8
MOV RAX,RSI
MOV RSI,RDX
MOV dword ptr [RDI + 0x10],0x4
MOV qword ptr [RDI + 0x70],RAX
MOV R10D,dword ptr [RDI + 0x8]
MOV EDX,dword ptr [RDI + 0xc]
MOV R11D,dword ptr [RSP + 0x28]
PUSH R11
PUSH qword ptr [RSP + 0x28]
MOV R11D,dword ptr [RSP + 0x28]
PUSH R11
MOV R11D,dword ptr [RSP + 0x28]
PUSH R11
PUSH R9
PUSH R8
PUSH RCX
MOV ECX,dword ptr [RDI + 0x48]
PUSH RCX
MOV R9D,dword ptr [RDI + 0x44]
MOV R8D,dword ptr [RDI + 0x40]
MOV ECX,R10D
MOV RDI,RAX
CALL 0x00162c34
ADD RSP,0x48
RET
(translation_unit "void FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)\n\n{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}\n\n" (function_definition "void FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)\n\n{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}" primitive_type (function_declarator "FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) , (parameter_declaration "undefined4 param_10" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x70) = param_2;" (assignment_expression "*(undefined8 *)(param_1 + 0x70) = param_2" (pointer_expression "*(undefined8 *)(param_1 + 0x70)" * (cast_expression "(undefined8 *)(param_1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);" (call_expression "FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10)" identifier (argument_list "(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid sshfwd_x11_sharing_handover\n               (ssh_channel *c,void *share_cs,void *share_chan,char *peer_addr,int peer_port,\n               int endian,int protomajor,int protominor,void *initial_data,int initial_len)\n\n{\n  c->type = 4;\n  (c->u).a.inbuffer.head = (bufchain_granule *)share_cs;\n  share_setup_x11_channel\n            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,\n             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,\n             initial_len);\n  return;\n}\n\n" comment (function_definition "void sshfwd_x11_sharing_handover\n               (ssh_channel *c,void *share_cs,void *share_chan,char *peer_addr,int peer_port,\n               int endian,int protomajor,int protominor,void *initial_data,int initial_len)\n\n{\n  c->type = 4;\n  (c->u).a.inbuffer.head = (bufchain_granule *)share_cs;\n  share_setup_x11_channel\n            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,\n             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,\n             initial_len);\n  return;\n}" primitive_type (function_declarator "sshfwd_x11_sharing_handover\n               (ssh_channel *c,void *share_cs,void *share_chan,char *peer_addr,int peer_port,\n               int endian,int protomajor,int protominor,void *initial_data,int initial_len)" identifier (parameter_list "(ssh_channel *c,void *share_cs,void *share_chan,char *peer_addr,int peer_port,\n               int endian,int protomajor,int protominor,void *initial_data,int initial_len)" ( (parameter_declaration "ssh_channel *c" type_identifier (pointer_declarator "*c" * 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)) , (parameter_declaration "char *peer_addr" primitive_type (pointer_declarator "*peer_addr" * identifier)) , (parameter_declaration "int peer_port" primitive_type identifier) , (parameter_declaration "int endian" primitive_type identifier) , (parameter_declaration "int protomajor" primitive_type identifier) , (parameter_declaration "int protominor" primitive_type identifier) , (parameter_declaration "void *initial_data" primitive_type (pointer_declarator "*initial_data" * identifier)) , (parameter_declaration "int initial_len" primitive_type identifier) ))) (compound_statement "{\n  c->type = 4;\n  (c->u).a.inbuffer.head = (bufchain_granule *)share_cs;\n  share_setup_x11_channel\n            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,\n             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,\n             initial_len);\n  return;\n}" { (expression_statement "c->type = 4;" (assignment_expression "c->type = 4" (field_expression "c->type" identifier -> field_identifier) = number_literal) ;) (expression_statement "(c->u).a.inbuffer.head = (bufchain_granule *)share_cs;" (assignment_expression "(c->u).a.inbuffer.head = (bufchain_granule *)share_cs" (field_expression "(c->u).a.inbuffer.head" (field_expression "(c->u).a.inbuffer" (field_expression "(c->u).a" (parenthesized_expression "(c->u)" ( (field_expression "c->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(bufchain_granule *)share_cs" ( (type_descriptor "bufchain_granule *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "share_setup_x11_channel\n            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,\n             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,\n             initial_len);" (call_expression "share_setup_x11_channel\n            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,\n             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,\n             initial_len)" identifier (argument_list "(share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,\n             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,\n             initial_len)" ( identifier , identifier , (field_expression "c->localid" identifier -> field_identifier) , (field_expression "c->remoteid" identifier -> field_identifier) , (field_expression "(c->v).v2.remwindow" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(c->v).v2.remmaxpkt" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(c->v).v2.locwindow" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)\n\n{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}\n\n" (function_definition "void FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)\n\n{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}" primitive_type (function_declarator "FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) , (parameter_declaration "undefined4 param_10" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x70) = param_2;" (assignment_expression "*(undefined8 *)(param_1 + 0x70) = param_2" (pointer_expression "*(undefined8 *)(param_1 + 0x70)" * (cast_expression "(undefined8 *)(param_1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);" (call_expression "FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10)" identifier (argument_list "(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)\n\n{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001366fd(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)" (identifier "FUN_001366fd") (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,\n                 undefined8 param_9,undefined4 param_10)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "undefined8 param_9" (type_identifier "undefined8") (identifier "param_9")) (, ",") (parameter_declaration "undefined4 param_10" (type_identifier "undefined4") (identifier "param_10")) () ")"))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x10) = 4;\n  *(undefined8 *)(param_1 + 0x70) = param_2;\n  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);\n  return;\n}" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x70) = param_2;" (assignment_expression "*(undefined8 *)(param_1 + 0x70) = param_2" (pointer_expression "*(undefined8 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10);" (call_expression "FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10)" (identifier "FUN_00162c34") (argument_list "(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),\n               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),\n               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,\n               param_10)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (identifier "param_10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1
               (type_1 *c,void *share_cs,void *share_chan,char *peer_addr,int peer_port,
               int endian,int protomajor,int protominor,void *initial_data,int initial_len)

{
  c->type = 4;
  (c->u).a.inbuffer.head = (type_2 *)share_cs;
  var_1
            (share_cs,share_chan,c->localid,c->remoteid,(c->v).v2.remwindow,(c->v).v2.remmaxpkt,
             (c->v).v2.locwindow,peer_addr,peer_port,endian,protomajor,protominor,initial_data,
             initial_len);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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 (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: (number_literal))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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))))) (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))))) (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))))) (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))))) (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) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (return_statement))))

void MASKED(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined4 param_7,undefined4 param_8,
                 undefined8 param_9,undefined4 param_10)

{
  *(undefined4 *)(param_1 + 0x10) = 4;
  *(undefined8 *)(param_1 + 0x70) = param_2;
  FUN_00162c34(param_2,param_3,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 8),
               *(undefined4 *)(param_1 + 0x40),*(undefined4 *)(param_1 + 0x44),
               *(undefined4 *)(param_1 + 0x48),param_4,param_5,param_6,param_7,param_8,param_9,
               param_10);
  return;
}

