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

int pfd_send(PortForwarding *pf,char *data,int len)

{
  int iVar1;
  
  if (pf != (PortForwarding *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(*pf->s)->write)(pf->s,data,len);
    return iVar1;
  }
  return 0;
}



undefined4 FUN_0001f670(int param_1)

{
  undefined4 uVar1;
  
  if (param_1 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();
    return uVar1;
  }
  return 0;
}


MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x0001f688
MOV EAX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4],EAX
JMP dword ptr [EDX + 0x8]
XOR EAX,EAX
RET
(translation_unit "undefined4 FUN_0001f670(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001f670(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f670(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }" { comment comment (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))()" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint pfd_send(PortForwarding *pf,char *data,int len)\n\n{\n  int iVar1;\n  \n  if (pf != (PortForwarding *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(*pf->s)->write)(pf->s,data,len);\n    return iVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int pfd_send(PortForwarding *pf,char *data,int len)\n\n{\n  int iVar1;\n  \n  if (pf != (PortForwarding *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(*pf->s)->write)(pf->s,data,len);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "pfd_send(PortForwarding *pf,char *data,int len)" identifier (parameter_list "(PortForwarding *pf,char *data,int len)" ( (parameter_declaration "PortForwarding *pf" type_identifier (pointer_declarator "*pf" * identifier)) , (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (pf != (PortForwarding *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(*pf->s)->write)(pf->s,data,len);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (pf != (PortForwarding *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(*pf->s)->write)(pf->s,data,len);\n    return iVar1;\n  }" if (parenthesized_expression "(pf != (PortForwarding *)0x0)" ( (binary_expression "pf != (PortForwarding *)0x0" identifier != (cast_expression "(PortForwarding *)0x0" ( (type_descriptor "PortForwarding *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(*pf->s)->write)(pf->s,data,len);\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (*(*pf->s)->write)(pf->s,data,len);" (assignment_expression "iVar1 = (*(*pf->s)->write)(pf->s,data,len)" identifier = (call_expression "(*(*pf->s)->write)(pf->s,data,len)" (parenthesized_expression "(*(*pf->s)->write)" ( (pointer_expression "*(*pf->s)->write" * (field_expression "(*pf->s)->write" (parenthesized_expression "(*pf->s)" ( (pointer_expression "*pf->s" * (field_expression "pf->s" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(pf->s,data,len)" ( (field_expression "pf->s" identifier -> field_identifier) , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001f670(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001f670(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f670(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }" { (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))()" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001f670(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f670(int param_1)" (identifier "FUN_0001f670") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))()" (identifier "uVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *var_1,char *data,int len)

{
  int iVar1;
  
  if (var_1 != (type_1 *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(*var_1->s)->write)(var_1->s,data,len);
    return iVar1;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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 (expression_statement (assignment_expression left: (identifier) right: (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)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  if (param_1 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0001f681. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 8))();
    return uVar1;
  }
  return 0;
}

