
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */
/* DWARF original prototype: share_channel * share_add_channel(ssh_sharing_connstate * cs, uint
   downstream_id, uint upstream_id, uint server_id, int state, int maxpkt, ssh_sharing_connstate *
   cs) */

share_channel *
share_add_channel(ssh_sharing_connstate *cs,uint downstream_id,uint upstream_id,uint server_id,
                 int state,int maxpkt,ssh_sharing_connstate *cs_1)

{
  share_channel *e;
  share_channel *psVar1;
  plug_function_table *t;
  
  e = (share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);
  t = cs->fn;
  e->downstream_id = upstream_id;
  e->upstream_id = server_id;
  e->x11_auth_upstream = (X11FakeAuth *)0x0;
  e->server_id = state;
  e->x11_auth_data = (char *)0x0;
  e->x11_auth_datalen = 0;
  e->state = maxpkt;
  e->x11_one_shot = 0;
  e->downstream_maxpkt = (int)cs_1;
  e->x11_auth_proto = -1;
  psVar1 = (share_channel *)add234((tree234 *)t,e);
  if (e != psVar1) {
    (*(code *)PTR_safefree_001112f0)(e);
    return (share_channel *)0x0;
  }
  if ((e->state != 3) &&
     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)) {
    del234((tree234 *)cs->fn,e);
    (*(code *)PTR_safefree_001112f0)(e);
    e = (share_channel *)0x0;
  }
  return e;
}



undefined4 *
FUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);
  uVar3 = *param_1;
  *puVar1 = param_3;
  puVar1[1] = param_4;
  puVar1[5] = 0;
  puVar1[2] = param_5;
  puVar1[7] = 0;
  puVar1[8] = 0;
  puVar1[4] = param_6;
  puVar1[9] = 0;
  puVar1[3] = param_7;
  puVar1[6] = 0xffffffff;
  puVar2 = (undefined4 *)add234(uVar3,puVar1);
  if (puVar1 != puVar2) {
    (*(code *)PTR_safefree_001112f0)(puVar1);
    return (undefined4 *)0x0;
  }
  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {
    del234(*param_1,puVar1);
    (*(code *)PTR_safefree_001112f0)(puVar1);
    puVar1 = (undefined4 *)0x0;
  }
  return puVar1;
}


lui gp,0x9
addiu gp,gp,0x176c
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7fc4(gp)
sw s3,0x24(sp)
or s3,a1,zero
sw s1,0x1c(sp)
li a1,0x28
or s1,a0,zero
sw gp,0x10(sp)
li a0,0x1
sw ra,0x2c(sp)
sw s4,0x28(sp)
or s4,a2,zero
sw s2,0x20(sp)
or s2,a3,zero
jalr t9
_sw s0,0x18(sp)
lw gp,0x10(sp)
or s0,v0,zero
lw a0,0x0(s1)
or a1,v0,zero
sw s4,0x0(v0)
sw s2,0x4(v0)
lw v0,0x40(sp)
lw t9,-0x7e94(gp)
sw zero,0x14(s0)
sw v0,0x8(s0)
lw v0,0x44(sp)
sw zero,0x1c(s0)
sw zero,0x20(s0)
sw v0,0x10(s0)
lw v0,0x48(sp)
sw zero,0x24(s0)
sw v0,0xc(s0)
li v0,-0x1
bal 0x0009faf8
_sw v0,0x18(s0)
bne s0,v0,0x00087c5c
_lw gp,0x10(sp)
lw v1,0x10(s0)
li v0,0x3
bne v1,v0,0x00087c1c
_lw t9,-0x7e94(gp)
lw ra,0x2c(sp)
or v0,s0,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
or a1,s0,zero
bal 0x0009faf8
_lw a0,0x0(s3)
beq s0,v0,0x00087bf8
_lw gp,0x10(sp)
lw t9,-0x7e90(gp)
or a1,s0,zero
bal 0x0009fff0
_lw a0,0x0(s1)
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or s0,zero,zero
b 0x00087bfc
_lw ra,0x2c(sp)
lw t9,-0x7fc0(gp)
or a0,s0,zero
jalr t9
_or s0,zero,zero
or v0,s0,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined4 *\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}\n\n" (function_definition "undefined4 *\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "*\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" * (function_declarator "FUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_4;" (assignment_expression "puVar1[1] = param_4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = param_5;" (assignment_expression "puVar1[2] = param_5" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = param_6;" (assignment_expression "puVar1[4] = param_6" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = param_7;" (assignment_expression "puVar1[3] = param_7" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = 0xffffffff;" (assignment_expression "puVar1[6] = 0xffffffff" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)add234(uVar3,puVar1);" (assignment_expression "puVar2 = (undefined4 *)add234(uVar3,puVar1)" identifier = (cast_expression "(undefined4 *)add234(uVar3,puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "add234(uVar3,puVar1)" identifier (argument_list "(uVar3,puVar1)" ( identifier , identifier ))))) ;) (if_statement "if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(puVar1 != puVar2)" ( (binary_expression "puVar1 != puVar2" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }" if (parenthesized_expression "((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2))" ( (binary_expression "(puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)" (parenthesized_expression "(puVar1[4] != 3)" ( (binary_expression "puVar1[4] != 3" (subscript_expression "puVar1[4]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)" ( (comma_expression "puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2" (assignment_expression "puVar2 = (undefined4 *)add234(*param_2,puVar1)" identifier = (cast_expression "(undefined4 *)add234(*param_2,puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "add234(*param_2,puVar1)" identifier (argument_list "(*param_2,puVar1)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) , (binary_expression "puVar1 != puVar2" identifier != identifier)) ))) )) (compound_statement "{\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }" { (expression_statement "del234(*param_1,puVar1);" (call_expression "del234(*param_1,puVar1)" identifier (argument_list "(*param_1,puVar1)" ( (pointer_expression "*param_1" * identifier) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)0x0;" (assignment_expression "puVar1 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n/* DWARF original prototype: share_channel * share_add_channel(ssh_sharing_connstate * cs, uint\n   downstream_id, uint upstream_id, uint server_id, int state, int maxpkt, ssh_sharing_connstate *\n   cs) */\n\nshare_channel *\nshare_add_channel(ssh_sharing_connstate *cs,uint downstream_id,uint upstream_id,uint server_id,\n                 int state,int maxpkt,ssh_sharing_connstate *cs_1)\n\n{\n  share_channel *e;\n  share_channel *psVar1;\n  plug_function_table *t;\n  \n  e = (share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  t = cs->fn;\n  e->downstream_id = upstream_id;\n  e->upstream_id = server_id;\n  e->x11_auth_upstream = (X11FakeAuth *)0x0;\n  e->server_id = state;\n  e->x11_auth_data = (char *)0x0;\n  e->x11_auth_datalen = 0;\n  e->state = maxpkt;\n  e->x11_one_shot = 0;\n  e->downstream_maxpkt = (int)cs_1;\n  e->x11_auth_proto = -1;\n  psVar1 = (share_channel *)add234((tree234 *)t,e);\n  if (e != psVar1) {\n    (*(code *)PTR_safefree_001112f0)(e);\n    return (share_channel *)0x0;\n  }\n  if ((e->state != 3) &&\n     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)) {\n    del234((tree234 *)cs->fn,e);\n    (*(code *)PTR_safefree_001112f0)(e);\n    e = (share_channel *)0x0;\n  }\n  return e;\n}\n\n" comment comment (function_definition "share_channel *\nshare_add_channel(ssh_sharing_connstate *cs,uint downstream_id,uint upstream_id,uint server_id,\n                 int state,int maxpkt,ssh_sharing_connstate *cs_1)\n\n{\n  share_channel *e;\n  share_channel *psVar1;\n  plug_function_table *t;\n  \n  e = (share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  t = cs->fn;\n  e->downstream_id = upstream_id;\n  e->upstream_id = server_id;\n  e->x11_auth_upstream = (X11FakeAuth *)0x0;\n  e->server_id = state;\n  e->x11_auth_data = (char *)0x0;\n  e->x11_auth_datalen = 0;\n  e->state = maxpkt;\n  e->x11_one_shot = 0;\n  e->downstream_maxpkt = (int)cs_1;\n  e->x11_auth_proto = -1;\n  psVar1 = (share_channel *)add234((tree234 *)t,e);\n  if (e != psVar1) {\n    (*(code *)PTR_safefree_001112f0)(e);\n    return (share_channel *)0x0;\n  }\n  if ((e->state != 3) &&\n     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)) {\n    del234((tree234 *)cs->fn,e);\n    (*(code *)PTR_safefree_001112f0)(e);\n    e = (share_channel *)0x0;\n  }\n  return e;\n}" type_identifier (pointer_declarator "*\nshare_add_channel(ssh_sharing_connstate *cs,uint downstream_id,uint upstream_id,uint server_id,\n                 int state,int maxpkt,ssh_sharing_connstate *cs_1)" * (function_declarator "share_add_channel(ssh_sharing_connstate *cs,uint downstream_id,uint upstream_id,uint server_id,\n                 int state,int maxpkt,ssh_sharing_connstate *cs_1)" identifier (parameter_list "(ssh_sharing_connstate *cs,uint downstream_id,uint upstream_id,uint server_id,\n                 int state,int maxpkt,ssh_sharing_connstate *cs_1)" ( (parameter_declaration "ssh_sharing_connstate *cs" type_identifier (pointer_declarator "*cs" * identifier)) , (parameter_declaration "uint downstream_id" type_identifier identifier) , (parameter_declaration "uint upstream_id" type_identifier identifier) , (parameter_declaration "uint server_id" type_identifier identifier) , (parameter_declaration "int state" primitive_type identifier) , (parameter_declaration "int maxpkt" primitive_type identifier) , (parameter_declaration "ssh_sharing_connstate *cs_1" type_identifier (pointer_declarator "*cs_1" * identifier)) )))) (compound_statement "{\n  share_channel *e;\n  share_channel *psVar1;\n  plug_function_table *t;\n  \n  e = (share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  t = cs->fn;\n  e->downstream_id = upstream_id;\n  e->upstream_id = server_id;\n  e->x11_auth_upstream = (X11FakeAuth *)0x0;\n  e->server_id = state;\n  e->x11_auth_data = (char *)0x0;\n  e->x11_auth_datalen = 0;\n  e->state = maxpkt;\n  e->x11_one_shot = 0;\n  e->downstream_maxpkt = (int)cs_1;\n  e->x11_auth_proto = -1;\n  psVar1 = (share_channel *)add234((tree234 *)t,e);\n  if (e != psVar1) {\n    (*(code *)PTR_safefree_001112f0)(e);\n    return (share_channel *)0x0;\n  }\n  if ((e->state != 3) &&\n     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)) {\n    del234((tree234 *)cs->fn,e);\n    (*(code *)PTR_safefree_001112f0)(e);\n    e = (share_channel *)0x0;\n  }\n  return e;\n}" { (declaration "share_channel *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (declaration "share_channel *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "plug_function_table *t;" type_identifier (pointer_declarator "*t" * identifier) ;) (expression_statement "e = (share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);" (assignment_expression "e = (share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" identifier = (cast_expression "(share_channel *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "t = cs->fn;" (assignment_expression "t = cs->fn" identifier = (field_expression "cs->fn" identifier -> field_identifier)) ;) (expression_statement "e->downstream_id = upstream_id;" (assignment_expression "e->downstream_id = upstream_id" (field_expression "e->downstream_id" identifier -> field_identifier) = identifier) ;) (expression_statement "e->upstream_id = server_id;" (assignment_expression "e->upstream_id = server_id" (field_expression "e->upstream_id" identifier -> field_identifier) = identifier) ;) (expression_statement "e->x11_auth_upstream = (X11FakeAuth *)0x0;" (assignment_expression "e->x11_auth_upstream = (X11FakeAuth *)0x0" (field_expression "e->x11_auth_upstream" identifier -> field_identifier) = (cast_expression "(X11FakeAuth *)0x0" ( (type_descriptor "X11FakeAuth *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "e->server_id = state;" (assignment_expression "e->server_id = state" (field_expression "e->server_id" identifier -> field_identifier) = identifier) ;) (expression_statement "e->x11_auth_data = (char *)0x0;" (assignment_expression "e->x11_auth_data = (char *)0x0" (field_expression "e->x11_auth_data" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "e->x11_auth_datalen = 0;" (assignment_expression "e->x11_auth_datalen = 0" (field_expression "e->x11_auth_datalen" identifier -> field_identifier) = number_literal) ;) (expression_statement "e->state = maxpkt;" (assignment_expression "e->state = maxpkt" (field_expression "e->state" identifier -> field_identifier) = identifier) ;) (expression_statement "e->x11_one_shot = 0;" (assignment_expression "e->x11_one_shot = 0" (field_expression "e->x11_one_shot" identifier -> field_identifier) = number_literal) ;) (expression_statement "e->downstream_maxpkt = (int)cs_1;" (assignment_expression "e->downstream_maxpkt = (int)cs_1" (field_expression "e->downstream_maxpkt" identifier -> field_identifier) = (cast_expression "(int)cs_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "e->x11_auth_proto = -1;" (assignment_expression "e->x11_auth_proto = -1" (field_expression "e->x11_auth_proto" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar1 = (share_channel *)add234((tree234 *)t,e);" (assignment_expression "psVar1 = (share_channel *)add234((tree234 *)t,e)" identifier = (cast_expression "(share_channel *)add234((tree234 *)t,e)" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "add234((tree234 *)t,e)" identifier (argument_list "((tree234 *)t,e)" ( (cast_expression "(tree234 *)t" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))))) ;) (if_statement "if (e != psVar1) {\n    (*(code *)PTR_safefree_001112f0)(e);\n    return (share_channel *)0x0;\n  }" if (parenthesized_expression "(e != psVar1)" ( (binary_expression "e != psVar1" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR_safefree_001112f0)(e);\n    return (share_channel *)0x0;\n  }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(e);" (call_expression "(*(code *)PTR_safefree_001112f0)(e)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(e)" ( identifier ))) ;) (return_statement "return (share_channel *)0x0;" return (cast_expression "(share_channel *)0x0" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((e->state != 3) &&\n     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)) {\n    del234((tree234 *)cs->fn,e);\n    (*(code *)PTR_safefree_001112f0)(e);\n    e = (share_channel *)0x0;\n  }" if (parenthesized_expression "((e->state != 3) &&\n     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1))" ( (binary_expression "(e->state != 3) &&\n     (psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)" (parenthesized_expression "(e->state != 3)" ( (binary_expression "e->state != 3" (field_expression "e->state" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1)" ( (comma_expression "psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e), e != psVar1" (assignment_expression "psVar1 = (share_channel *)add234(*(tree234 **)downstream_id,e)" identifier = (cast_expression "(share_channel *)add234(*(tree234 **)downstream_id,e)" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "add234(*(tree234 **)downstream_id,e)" identifier (argument_list "(*(tree234 **)downstream_id,e)" ( (pointer_expression "*(tree234 **)downstream_id" * (cast_expression "(tree234 **)downstream_id" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))))) , (binary_expression "e != psVar1" identifier != identifier)) ))) )) (compound_statement "{\n    del234((tree234 *)cs->fn,e);\n    (*(code *)PTR_safefree_001112f0)(e);\n    e = (share_channel *)0x0;\n  }" { (expression_statement "del234((tree234 *)cs->fn,e);" (call_expression "del234((tree234 *)cs->fn,e)" identifier (argument_list "((tree234 *)cs->fn,e)" ( (cast_expression "(tree234 *)cs->fn" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cs->fn" identifier -> field_identifier)) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(e);" (call_expression "(*(code *)PTR_safefree_001112f0)(e)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(e)" ( identifier ))) ;) (expression_statement "e = (share_channel *)0x0;" (assignment_expression "e = (share_channel *)0x0" identifier = (cast_expression "(share_channel *)0x0" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return e;" return identifier ;) })))
(translation_unit "undefined4 *\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}\n\n" (function_definition "undefined4 *\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "*\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" * (function_declarator "FUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_4;" (assignment_expression "puVar1[1] = param_4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = param_5;" (assignment_expression "puVar1[2] = param_5" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = param_6;" (assignment_expression "puVar1[4] = param_6" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = param_7;" (assignment_expression "puVar1[3] = param_7" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = 0xffffffff;" (assignment_expression "puVar1[6] = 0xffffffff" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)add234(uVar3,puVar1);" (assignment_expression "puVar2 = (undefined4 *)add234(uVar3,puVar1)" identifier = (cast_expression "(undefined4 *)add234(uVar3,puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "add234(uVar3,puVar1)" identifier (argument_list "(uVar3,puVar1)" ( identifier , identifier ))))) ;) (if_statement "if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(puVar1 != puVar2)" ( (binary_expression "puVar1 != puVar2" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }" if (parenthesized_expression "((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2))" ( (binary_expression "(puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)" (parenthesized_expression "(puVar1[4] != 3)" ( (binary_expression "puVar1[4] != 3" (subscript_expression "puVar1[4]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)" ( (comma_expression "puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2" (assignment_expression "puVar2 = (undefined4 *)add234(*param_2,puVar1)" identifier = (cast_expression "(undefined4 *)add234(*param_2,puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "add234(*param_2,puVar1)" identifier (argument_list "(*param_2,puVar1)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) , (binary_expression "puVar1 != puVar2" identifier != identifier)) ))) )) (compound_statement "{\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }" { (expression_statement "del234(*param_1,puVar1);" (call_expression "del234(*param_1,puVar1)" identifier (argument_list "(*param_1,puVar1)" ( (pointer_expression "*param_1" * identifier) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)0x0;" (assignment_expression "puVar1 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))))) , (binary_expression IDENT != IDENT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (* "*") (function_declarator "FUN_00087b44(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (identifier "FUN_00087b44") (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (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")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);\n  uVar3 = *param_1;\n  *puVar1 = param_3;\n  puVar1[1] = param_4;\n  puVar1[5] = 0;\n  puVar1[2] = param_5;\n  puVar1[7] = 0;\n  puVar1[8] = 0;\n  puVar1[4] = param_6;\n  puVar1[9] = 0;\n  puVar1[3] = param_7;\n  puVar1[6] = 0xffffffff;\n  puVar2 = (undefined4 *)add234(uVar3,puVar1);\n  if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }\n  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(1,0x28)" (( "(") (number_literal "1") (, ",") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[1] = param_4;" (assignment_expression "puVar1[1] = param_4" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = param_5;" (assignment_expression "puVar1[2] = param_5" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[4] = param_6;" (assignment_expression "puVar1[4] = param_6" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = param_7;" (assignment_expression "puVar1[3] = param_7" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_7")) (; ";")) (expression_statement "puVar1[6] = 0xffffffff;" (assignment_expression "puVar1[6] = 0xffffffff" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar2 = (undefined4 *)add234(uVar3,puVar1);" (assignment_expression "puVar2 = (undefined4 *)add234(uVar3,puVar1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)add234(uVar3,puVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "add234(uVar3,puVar1)" (identifier "add234") (argument_list "(uVar3,puVar1)" (( "(") (identifier "uVar3") (, ",") (identifier "puVar1") () ")"))))) (; ";")) (if_statement "if (puVar1 != puVar2) {\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "(puVar1 != puVar2)" (( "(") (binary_expression "puVar1 != puVar2" (identifier "puVar1") (!= "!=") (identifier "puVar2")) () ")")) (compound_statement "{\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    return (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2))" (( "(") (binary_expression "(puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)" (parenthesized_expression "(puVar1[4] != 3)" (( "(") (binary_expression "puVar1[4] != 3" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "3")) () ")")) (&& "&&") (parenthesized_expression "(puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)" (( "(") (comma_expression "puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2" (assignment_expression "puVar2 = (undefined4 *)add234(*param_2,puVar1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)add234(*param_2,puVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "add234(*param_2,puVar1)" (identifier "add234") (argument_list "(*param_2,puVar1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "puVar1") () ")"))))) (, ",") (binary_expression "puVar1 != puVar2" (identifier "puVar1") (!= "!=") (identifier "puVar2"))) () ")"))) () ")")) (compound_statement "{\n    del234(*param_1,puVar1);\n    (*(code *)PTR_safefree_001112f0)(puVar1);\n    puVar1 = (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "del234(*param_1,puVar1);" (call_expression "del234(*param_1,puVar1)" (identifier "del234") (argument_list "(*param_1,puVar1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)0x0;" (assignment_expression "puVar1 = (undefined4 *)0x0" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator 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))) (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 (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (return_statement (identifier)))))

undefined4 *
MASKED(undefined4 *param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(1,0x28);
  uVar3 = *param_1;
  *puVar1 = param_3;
  puVar1[1] = param_4;
  puVar1[5] = 0;
  puVar1[2] = param_5;
  puVar1[7] = 0;
  puVar1[8] = 0;
  puVar1[4] = param_6;
  puVar1[9] = 0;
  puVar1[3] = param_7;
  puVar1[6] = 0xffffffff;
  puVar2 = (undefined4 *)add234(uVar3,puVar1);
  if (puVar1 != puVar2) {
    (*(code *)PTR_safefree_001112f0)(puVar1);
    return (undefined4 *)0x0;
  }
  if ((puVar1[4] != 3) && (puVar2 = (undefined4 *)add234(*param_2,puVar1), puVar1 != puVar2)) {
    del234(*param_1,puVar1);
    (*(code *)PTR_safefree_001112f0)(puVar1);
    puVar1 = (undefined4 *)0x0;
  }
  return puVar1;
}

