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

void plug_proxy_closing(Plug p,char *error_msg,int error_code,int calling_back)

{
  plug_function_table *ppVar1;
  
  ppVar1 = p[1];
  if (ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0) {
    (**(code **)(*(int *)ppVar1->sent + 4))();
  }
  else {
    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;
    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;
    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;
    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);
  }
  return;
}



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

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (*(int *)(iVar1 + 0x44) == 0) {
    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();
  }
  else {
    *(undefined4 *)(iVar1 + 0x50) = param_2;
    *(undefined4 *)(iVar1 + 0x54) = param_3;
    *(undefined4 *)(iVar1 + 0x58) = param_4;
    (**(code **)(iVar1 + 0x4c))(iVar1,0);
  }
  return;
}


addiu sp,sp,-0x20
sw ra,0x1c(sp)
lw a0,0x4(a0)
lw v0,0x44(a0)
beq v0,zero,0x0002450c
_nop
sw a1,0x50(a0)
sw a2,0x54(a0)
sw a3,0x58(a0)
lw t9,0x4c(a0)
or a1,zero,zero
jalr t9
_nop
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw a0,0xc(a0)
lw v0,0x0(a0)
lw t9,0x4(v0)
jalr t9
_nop
b 0x00024504
_lw ra,0x1c(sp)
(translation_unit "void FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x44) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x44) == 0" (pointer_expression "*(int *)(iVar1 + 0x44)" * (cast_expression "(int *)(iVar1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }" { (expression_statement "(**(code **)(**(int **)(iVar1 + 0xc) + 4))();" (call_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 4))()" (parenthesized_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(iVar1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(iVar1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(iVar1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar1 + 0xc) + 4)" ( (binary_expression "**(int **)(iVar1 + 0xc) + 4" (pointer_expression "**(int **)(iVar1 + 0xc)" * (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x50) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x50) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x50)" * (cast_expression "(undefined4 *)(iVar1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x54) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x54) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" * (cast_expression "(undefined4 *)(iVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x58) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x58) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x58)" * (cast_expression "(undefined4 *)(iVar1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x58)" ( (binary_expression "iVar1 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "(**(code **)(iVar1 + 0x4c))(iVar1,0);" (call_expression "(**(code **)(iVar1 + 0x4c))(iVar1,0)" (parenthesized_expression "(**(code **)(iVar1 + 0x4c))" ( (pointer_expression "**(code **)(iVar1 + 0x4c)" * (pointer_expression "*(code **)(iVar1 + 0x4c)" * (cast_expression "(code **)(iVar1 + 0x4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) ))))) )) (argument_list "(iVar1,0)" ( identifier , number_literal ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid plug_proxy_closing(Plug p,char *error_msg,int error_code,int calling_back)\n\n{\n  plug_function_table *ppVar1;\n  \n  ppVar1 = p[1];\n  if (ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0) {\n    (**(code **)(*(int *)ppVar1->sent + 4))();\n  }\n  else {\n    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;\n    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;\n    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;\n    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);\n  }\n  return;\n}\n\n" comment (function_definition "void plug_proxy_closing(Plug p,char *error_msg,int error_code,int calling_back)\n\n{\n  plug_function_table *ppVar1;\n  \n  ppVar1 = p[1];\n  if (ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0) {\n    (**(code **)(*(int *)ppVar1->sent + 4))();\n  }\n  else {\n    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;\n    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;\n    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;\n    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);\n  }\n  return;\n}" primitive_type (function_declarator "plug_proxy_closing(Plug p,char *error_msg,int error_code,int calling_back)" identifier (parameter_list "(Plug p,char *error_msg,int error_code,int calling_back)" ( (parameter_declaration "Plug p" 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  plug_function_table *ppVar1;\n  \n  ppVar1 = p[1];\n  if (ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0) {\n    (**(code **)(*(int *)ppVar1->sent + 4))();\n  }\n  else {\n    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;\n    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;\n    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;\n    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);\n  }\n  return;\n}" { (declaration "plug_function_table *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (expression_statement "ppVar1 = p[1];" (assignment_expression "ppVar1 = p[1]" identifier = (subscript_expression "p[1]" identifier [ number_literal ])) ;) (if_statement "if (ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0) {\n    (**(code **)(*(int *)ppVar1->sent + 4))();\n  }\n  else {\n    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;\n    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;\n    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;\n    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);\n  }" if (parenthesized_expression "(ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0)" ( (binary_expression "ppVar1[3].receive == (_func_void_Plug_int_char_ptr_int *)0x0" (field_expression "ppVar1[3].receive" (subscript_expression "ppVar1[3]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(_func_void_Plug_int_char_ptr_int *)0x0" ( (type_descriptor "_func_void_Plug_int_char_ptr_int *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(*(int *)ppVar1->sent + 4))();\n  }" { (expression_statement "(**(code **)(*(int *)ppVar1->sent + 4))();" (call_expression "(**(code **)(*(int *)ppVar1->sent + 4))()" (parenthesized_expression "(**(code **)(*(int *)ppVar1->sent + 4))" ( (pointer_expression "**(code **)(*(int *)ppVar1->sent + 4)" * (pointer_expression "*(code **)(*(int *)ppVar1->sent + 4)" * (cast_expression "(code **)(*(int *)ppVar1->sent + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)ppVar1->sent + 4)" ( (binary_expression "*(int *)ppVar1->sent + 4" (pointer_expression "*(int *)ppVar1->sent" * (cast_expression "(int *)ppVar1->sent" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "ppVar1->sent" identifier -> field_identifier))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;\n    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;\n    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;\n    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);\n  }" else (compound_statement "{\n    ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;\n    ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;\n    ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;\n    (*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);\n  }" { (expression_statement "ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg;" (assignment_expression "ppVar1[4].log = (_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg" (field_expression "ppVar1[4].log" (subscript_expression "ppVar1[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_func_void_Plug_int_SockAddr_int_char_ptr_int *)error_msg" ( (type_descriptor "_func_void_Plug_int_SockAddr_int_char_ptr_int *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code;" (assignment_expression "ppVar1[4].closing = (_func_void_Plug_char_ptr_int_int *)error_code" (field_expression "ppVar1[4].closing" (subscript_expression "ppVar1[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_func_void_Plug_char_ptr_int_int *)error_code" ( (type_descriptor "_func_void_Plug_char_ptr_int_int *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back;" (assignment_expression "ppVar1[4].receive = (_func_void_Plug_int_char_ptr_int *)calling_back" (field_expression "ppVar1[4].receive" (subscript_expression "ppVar1[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_func_void_Plug_int_char_ptr_int *)calling_back" ( (type_descriptor "_func_void_Plug_int_char_ptr_int *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code);" (call_expression "(*ppVar1[3].accepting)((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code)" (parenthesized_expression "(*ppVar1[3].accepting)" ( (pointer_expression "*ppVar1[3].accepting" * (field_expression "ppVar1[3].accepting" (subscript_expression "ppVar1[3]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "((Plug)ppVar1,(accept_fn_t)0x0,(accept_ctx_t)error_code)" ( (cast_expression "(Plug)ppVar1" ( (type_descriptor "Plug" type_identifier) ) identifier) , (cast_expression "(accept_fn_t)0x0" ( (type_descriptor "accept_fn_t" type_identifier) ) number_literal) , (cast_expression "(accept_ctx_t)error_code" ( (type_descriptor "accept_ctx_t" type_identifier) ) identifier) ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x44) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x44) == 0" (pointer_expression "*(int *)(iVar1 + 0x44)" * (cast_expression "(int *)(iVar1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }" { (expression_statement "(**(code **)(**(int **)(iVar1 + 0xc) + 4))();" (call_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 4))()" (parenthesized_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(iVar1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(iVar1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(iVar1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar1 + 0xc) + 4)" ( (binary_expression "**(int **)(iVar1 + 0xc) + 4" (pointer_expression "**(int **)(iVar1 + 0xc)" * (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x50) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x50) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x50)" * (cast_expression "(undefined4 *)(iVar1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x54) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x54) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" * (cast_expression "(undefined4 *)(iVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x58) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x58) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x58)" * (cast_expression "(undefined4 *)(iVar1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x58)" ( (binary_expression "iVar1 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "(**(code **)(iVar1 + 0x4c))(iVar1,0);" (call_expression "(**(code **)(iVar1 + 0x4c))(iVar1,0)" (parenthesized_expression "(**(code **)(iVar1 + 0x4c))" ( (pointer_expression "**(code **)(iVar1 + 0x4c)" * (pointer_expression "*(code **)(iVar1 + 0x4c)" * (cast_expression "(code **)(iVar1 + 0x4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) ))))) )) (argument_list "(iVar1,0)" ( identifier , number_literal ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000244cc(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000244cc") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x44) == 0) {\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x44) == 0" (pointer_expression "*(int *)(iVar1 + 0x44)" (* "*") (cast_expression "(int *)(iVar1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x44)" (( "(") (binary_expression "iVar1 + 0x44" (identifier "iVar1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(iVar1 + 0xc) + 4))();" (call_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 4))()" (parenthesized_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(iVar1 + 0xc) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(iVar1 + 0xc) + 4)" (* "*") (cast_expression "(code **)(**(int **)(iVar1 + 0xc) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(iVar1 + 0xc) + 4)" (( "(") (binary_expression "**(int **)(iVar1 + 0xc) + 4" (pointer_expression "**(int **)(iVar1 + 0xc)" (* "*") (pointer_expression "*(int **)(iVar1 + 0xc)" (* "*") (cast_expression "(int **)(iVar1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x50) = param_2;\n    *(undefined4 *)(iVar1 + 0x54) = param_3;\n    *(undefined4 *)(iVar1 + 0x58) = param_4;\n    (**(code **)(iVar1 + 0x4c))(iVar1,0);\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x50) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x50) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x50)" (( "(") (binary_expression "iVar1 + 0x50" (identifier "iVar1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x54) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x54) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x58) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x58) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x58)" (( "(") (binary_expression "iVar1 + 0x58" (identifier "iVar1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "(**(code **)(iVar1 + 0x4c))(iVar1,0);" (call_expression "(**(code **)(iVar1 + 0x4c))(iVar1,0)" (parenthesized_expression "(**(code **)(iVar1 + 0x4c))" (( "(") (pointer_expression "**(code **)(iVar1 + 0x4c)" (* "*") (pointer_expression "*(code **)(iVar1 + 0x4c)" (* "*") (cast_expression "(code **)(iVar1 + 0x4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x4c)" (( "(") (binary_expression "iVar1 + 0x4c" (identifier "iVar1") (+ "+") (number_literal "0x4c")) () ")"))))) () ")")) (argument_list "(iVar1,0)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 p,char *error_msg,int error_code,int calling_back)

{
  type_2 *ppVar1;
  
  ppVar1 = p[1];
  if (ppVar1[3].receive == (type_3 *)0x0) {
    (**(type_4 **)(*(int *)ppVar1->sent + 4))();
  }
  else {
    ppVar1[4].log = (type_5 *)error_msg;
    ppVar1[4].closing = (type_6 *)error_code;
    ppVar1[4].receive = (type_3 *)calling_back;
    (*ppVar1[3].accepting)((type_1)ppVar1,(type_7)0x0,(type_8)error_code);
  }
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal))))))) (return_statement))))

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

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (*(int *)(iVar1 + 0x44) == 0) {
    (**(code **)(**(int **)(iVar1 + 0xc) + 4))();
  }
  else {
    *(undefined4 *)(iVar1 + 0x50) = param_2;
    *(undefined4 *)(iVar1 + 0x54) = param_3;
    *(undefined4 *)(iVar1 + 0x58) = param_4;
    (**(code **)(iVar1 + 0x4c))(iVar1,0);
  }
  return;
}

