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

Plug sk_localproxy_plug(Socket s,Plug p)

{
  socket_function_table *psVar1;
  
  psVar1 = s[5];
  if (p != (Plug)0x0) {
    s[5] = (socket_function_table *)p;
  }
  return (Plug)psVar1;
}



undefined4 FUN_000691b0(int param_1,int param_2)

{
  undefined4 uVar1;
  
  uVar1 = *(undefined4 *)(param_1 + 0x14);
  if (param_2 != 0) {
    *(int *)(param_1 + 0x14) = param_2;
  }
  return uVar1;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x14]
TEST ECX,ECX
JZ 0x000691c2
MOV dword ptr [EDX + 0x14],ECX
RET
(translation_unit "undefined4 FUN_000691b0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000691b0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000691b0(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  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(param_1 + 0x14) = param_2;\n  }" { (expression_statement "*(int *)(param_1 + 0x14) = param_2;" (assignment_expression "*(int *)(param_1 + 0x14) = param_2" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nPlug sk_localproxy_plug(Socket s,Plug p)\n\n{\n  socket_function_table *psVar1;\n  \n  psVar1 = s[5];\n  if (p != (Plug)0x0) {\n    s[5] = (socket_function_table *)p;\n  }\n  return (Plug)psVar1;\n}\n\n" comment (function_definition "Plug sk_localproxy_plug(Socket s,Plug p)\n\n{\n  socket_function_table *psVar1;\n  \n  psVar1 = s[5];\n  if (p != (Plug)0x0) {\n    s[5] = (socket_function_table *)p;\n  }\n  return (Plug)psVar1;\n}" type_identifier (function_declarator "sk_localproxy_plug(Socket s,Plug p)" identifier (parameter_list "(Socket s,Plug p)" ( (parameter_declaration "Socket s" type_identifier identifier) , (parameter_declaration "Plug p" type_identifier identifier) ))) (compound_statement "{\n  socket_function_table *psVar1;\n  \n  psVar1 = s[5];\n  if (p != (Plug)0x0) {\n    s[5] = (socket_function_table *)p;\n  }\n  return (Plug)psVar1;\n}" { (declaration "socket_function_table *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = s[5];" (assignment_expression "psVar1 = s[5]" identifier = (subscript_expression "s[5]" identifier [ number_literal ])) ;) (if_statement "if (p != (Plug)0x0) {\n    s[5] = (socket_function_table *)p;\n  }" if (parenthesized_expression "(p != (Plug)0x0)" ( (binary_expression "p != (Plug)0x0" identifier != (cast_expression "(Plug)0x0" ( (type_descriptor "Plug" type_identifier) ) number_literal)) )) (compound_statement "{\n    s[5] = (socket_function_table *)p;\n  }" { (expression_statement "s[5] = (socket_function_table *)p;" (assignment_expression "s[5] = (socket_function_table *)p" (subscript_expression "s[5]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)p" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return (Plug)psVar1;" return (cast_expression "(Plug)psVar1" ( (type_descriptor "Plug" type_identifier) ) identifier) ;) })))
(translation_unit "undefined4 FUN_000691b0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000691b0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000691b0(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  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(param_1 + 0x14) = param_2;\n  }" { (expression_statement "*(int *)(param_1 + 0x14) = param_2;" (assignment_expression "*(int *)(param_1 + 0x14) = param_2" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000691b0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000691b0(int param_1,int param_2)" (identifier "FUN_000691b0") (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  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 != 0) {\n    *(int *)(param_1 + 0x14) = param_2;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x14) = param_2;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x14) = param_2;" (assignment_expression "*(int *)(param_1 + 0x14) = param_2" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

type_1 function_1(type_2 s,type_1 var_1)

{
  type_3 *psVar1;
  
  psVar1 = s[5];
  if (var_1 != (type_1)0x0) {
    s[5] = (type_3 *)var_1;
  }
  return (type_1)psVar1;
}


(translation_unit (function_definition type: (type_identifier) 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)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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: (identifier))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  
  uVar1 = *(undefined4 *)(param_1 + 0x14);
  if (param_2 != 0) {
    *(int *)(param_1 + 0x14) = param_2;
  }
  return uVar1;
}

