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

void x11_closing(Plug plug,char *error_msg,int error_code,int calling_back)

{
  char *err_message;
  X11Connection *xconn;
  
  if (error_msg == (char *)0x0) {
    if (plug[0x13] != (plug_function_table *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)PTR_sshfwd_write_eof_00111670)();
      return;
    }
    return;
  }
  if (plug[0x10] == (plug_function_table *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);
    return;
  }
  err_message = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);
  x11_send_init_error((X11Connection *)plug,err_message);
  (*(code *)PTR_safefree_001112f0)(err_message);
                    /* WARNING: Could not recover jumptable at 0x000cb788. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);
  return;
}



void FUN_000cb6d0(int param_1,int param_2)

{
  undefined4 uVar1;
  
  if (param_2 == 0) {
    if (*(int *)(param_1 + 0x4c) != 0) {
      (*(code *)PTR_sshfwd_write_eof_00111670)();
      return;
    }
    return;
  }
  if (*(int *)(param_1 + 0x40) == 0) {
    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);
    return;
  }
  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);
  FUN_000cb4a0(param_1,uVar1);
  (*(code *)PTR_safefree_001112f0)(uVar1);
  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);
  return;
}


lui gp,0x5
addiu gp,gp,-0x2420
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a1,zero,0x000cb790
_sw s0,0x18(sp)
lw v0,0x40(a0)
or s1,a1,zero
bne v0,zero,0x000cb72c
_or s0,a0,zero
lw a0,0x4c(s0)
or a1,s1,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7c44(gp)
jr t9
_addiu sp,sp,0x28
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x199c
or a0,s0,zero
lw gp,0x10(sp)
or a1,v0,zero
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x4b60
bal 0x000cb4a0
_or s2,v0,zero
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s2,zero
or a1,s1,zero
lw gp,0x10(sp)
lw a0,0x4c(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7c44(gp)
jr t9
_addiu sp,sp,0x28
lw a0,0x4c(a0)
beq a0,zero,0x000cb7b4
_lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7c40(gp)
jr t9
_addiu sp,sp,0x28
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_000cb6d0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}\n\n" (function_definition "void FUN_000cb6d0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}" primitive_type (function_declarator "FUN_000cb6d0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) != 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" { (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)();" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)()" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" * (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }" { (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" ( (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" * (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);" (assignment_expression "uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x199c)" ( (binary_expression "PTR_DAT_001112f4 + -0x199c" identifier + number_literal) )))) ;) (expression_statement "FUN_000cb4a0(param_1,uVar1);" (call_expression "FUN_000cb4a0(param_1,uVar1)" identifier (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar1)" (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 "(uVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" ( (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" * (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  char *err_message;\n  X11Connection *xconn;\n  \n  if (error_msg == (char *)0x0) {\n    if (plug[0x13] != (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (plug[0x10] == (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n    return;\n  }\n  err_message = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  x11_send_init_error((X11Connection *)plug,err_message);\n  (*(code *)PTR_safefree_001112f0)(err_message);\n                    /* WARNING: Could not recover jumptable at 0x000cb788. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n  return;\n}\n\n" comment (function_definition "void x11_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  char *err_message;\n  X11Connection *xconn;\n  \n  if (error_msg == (char *)0x0) {\n    if (plug[0x13] != (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (plug[0x10] == (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n    return;\n  }\n  err_message = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  x11_send_init_error((X11Connection *)plug,err_message);\n  (*(code *)PTR_safefree_001112f0)(err_message);\n                    /* WARNING: Could not recover jumptable at 0x000cb788. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n  return;\n}" primitive_type (function_declarator "x11_closing(Plug plug,char *error_msg,int error_code,int calling_back)" identifier (parameter_list "(Plug plug,char *error_msg,int error_code,int calling_back)" ( (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "char *error_msg" primitive_type (pointer_declarator "*error_msg" * identifier)) , (parameter_declaration "int error_code" primitive_type identifier) , (parameter_declaration "int calling_back" primitive_type identifier) ))) (compound_statement "{\n  char *err_message;\n  X11Connection *xconn;\n  \n  if (error_msg == (char *)0x0) {\n    if (plug[0x13] != (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (plug[0x10] == (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n    return;\n  }\n  err_message = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  x11_send_init_error((X11Connection *)plug,err_message);\n  (*(code *)PTR_safefree_001112f0)(err_message);\n                    /* WARNING: Could not recover jumptable at 0x000cb788. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n  return;\n}" { (declaration "char *err_message;" primitive_type (pointer_declarator "*err_message" * identifier) ;) (declaration "X11Connection *xconn;" type_identifier (pointer_declarator "*xconn" * identifier) ;) (if_statement "if (error_msg == (char *)0x0) {\n    if (plug[0x13] != (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" if (parenthesized_expression "(error_msg == (char *)0x0)" ( (binary_expression "error_msg == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (plug[0x13] != (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" { (if_statement "if (plug[0x13] != (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" if (parenthesized_expression "(plug[0x13] != (plug_function_table *)0x0)" ( (binary_expression "plug[0x13] != (plug_function_table *)0x0" (subscript_expression "plug[0x13]" identifier [ number_literal ]) != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" { comment comment (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)();" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)()" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" * (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (if_statement "if (plug[0x10] == (plug_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n    return;\n  }" if (parenthesized_expression "(plug[0x10] == (plug_function_table *)0x0)" ( (binary_expression "plug[0x10] == (plug_function_table *)0x0" (subscript_expression "plug[0x10]" identifier [ number_literal ]) == (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);\n    return;\n  }" { comment comment (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" ( (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" * (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(plug[0x13],error_msg)" ( (subscript_expression "plug[0x13]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "err_message = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);" (assignment_expression "err_message = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x199c)" ( (binary_expression "PTR_DAT_001112f4 + -0x199c" identifier + number_literal) ))))) ;) (expression_statement "x11_send_init_error((X11Connection *)plug,err_message);" (call_expression "x11_send_init_error((X11Connection *)plug,err_message)" identifier (argument_list "((X11Connection *)plug,err_message)" ( (cast_expression "(X11Connection *)plug" ( (type_descriptor "X11Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(err_message);" (call_expression "(*(code *)PTR_safefree_001112f0)(err_message)" (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 "(err_message)" ( identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],error_msg)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" ( (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" * (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(plug[0x13],error_msg)" ( (subscript_expression "plug[0x13]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000cb6d0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}\n\n" (function_definition "void FUN_000cb6d0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}" primitive_type (function_declarator "FUN_000cb6d0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) != 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" { (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)();" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)()" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" * (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }" { (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" ( (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" * (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);" (assignment_expression "uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x199c)" ( (binary_expression "PTR_DAT_001112f4 + -0x199c" identifier + number_literal) )))) ;) (expression_statement "FUN_000cb4a0(param_1,uVar1);" (call_expression "FUN_000cb4a0(param_1,uVar1)" identifier (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar1)" (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 "(uVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" ( (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" * (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" 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) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000cb6d0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000cb6d0(int param_1,int param_2)" (identifier "FUN_000cb6d0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }\n  if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }\n  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);\n  FUN_000cb4a0(param_1,uVar1);\n  (*(code *)PTR_safefree_001112f0)(uVar1);\n  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_2 == 0) {\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x4c) != 0) {\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x4c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) != 0" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_sshfwd_write_eof_00111670)();\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)();" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)()" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" (* "*") (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_write_eof_00111670"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x40) == 0) {\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" (* "*") (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_unclean_close_0011166c"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);" (assignment_expression "uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x199c)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x199c" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x199c")) () ")")))) (; ";")) (expression_statement "FUN_000cb4a0(param_1,uVar1);" (call_expression "FUN_000cb4a0(param_1,uVar1)" (identifier "FUN_000cb4a0") (argument_list "(param_1,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar1)" (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 "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);" (call_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2)" (parenthesized_expression "(*(code *)PTR_sshfwd_unclean_close_0011166c)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_unclean_close_0011166c" (* "*") (cast_expression "(code *)PTR_sshfwd_unclean_close_0011166c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_unclean_close_0011166c"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 plug,char *var_1,int error_code,int calling_back)

{
  char *err_message;
  type_2 *xconn;
  
  if (var_1 == (char *)0x0) {
    if (plug[0x13] != (type_3 *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000cb7ac. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(type_4 *)PTR_sshfwd_write_eof_00111670)();
      return;
    }
    return;
  }
  if (plug[0x10] == (type_3 *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000cb724. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(type_4 *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],var_1);
    return;
  }
  err_message = (char *)(*(type_4 *)PTR_dupprintf_001113a8)(var_2 + -0x199c);
  var_3((type_2 *)plug,err_message);
  (*(type_4 *)PTR_safefree_001112f0)(err_message);
                    /* WARNING: Could not recover jumptable at 0x000cb788. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_4 *)PTR_sshfwd_unclean_close_0011166c)(plug[0x13],var_1);
  return;
}


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

void MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  
  if (param_2 == 0) {
    if (*(int *)(param_1 + 0x4c) != 0) {
      (*(code *)PTR_sshfwd_write_eof_00111670)();
      return;
    }
    return;
  }
  if (*(int *)(param_1 + 0x40) == 0) {
    (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);
    return;
  }
  uVar1 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x199c);
  FUN_000cb4a0(param_1,uVar1);
  (*(code *)PTR_safefree_001112f0)(uVar1);
  (*(code *)PTR_sshfwd_unclean_close_0011166c)(*(undefined4 *)(param_1 + 0x4c),param_2);
  return;
}

