
socklen_t sockaddr_size(sockaddr *sa)

{
  if (sa->sa_family == 2) {
    return 0x10;
  }
  if (sa->sa_family == 10) {
    return 0x1c;
  }
                    /* WARNING: Subroutine does not return */
  abort();
}



undefined8 FUN_0010cf95(short *param_1)

{
  if (*param_1 == 2) {
    return 0x10;
  }
  if (*param_1 == 10) {
    return 0x1c;
  }
                    /* WARNING: Subroutine does not return */
  abort();
}


MOVZX EAX,word ptr [RDI]
CMP AX,0x2
JZ 0x0010cfb3
CMP AX,0xa
JNZ 0x0010cfaa
MOV EAX,0x1c
RET
SUB RSP,0x8
CALL 0x0010c1b0
MOV EAX,0x10
RET
(translation_unit "undefined8 FUN_0010cf95(short *param_1)\n\n{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" (function_definition "undefined8 FUN_0010cf95(short *param_1)\n\n{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" type_identifier (function_declarator "FUN_0010cf95(short *param_1)" identifier (parameter_list "(short *param_1)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (if_statement "if (*param_1 == 2) {\n    return 0x10;\n  }" if (parenthesized_expression "(*param_1 == 2)" ( (binary_expression "*param_1 == 2" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    return 0x10;\n  }" { (return_statement "return 0x10;" return number_literal ;) })) (if_statement "if (*param_1 == 10) {\n    return 0x1c;\n  }" if (parenthesized_expression "(*param_1 == 10)" ( (binary_expression "*param_1 == 10" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    return 0x1c;\n  }" { (return_statement "return 0x1c;" return number_literal ;) })) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "socklen_t sockaddr_size(sockaddr *sa)\n\n{\n  if (sa->sa_family == 2) {\n    return 0x10;\n  }\n  if (sa->sa_family == 10) {\n    return 0x1c;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" (function_definition "socklen_t sockaddr_size(sockaddr *sa)\n\n{\n  if (sa->sa_family == 2) {\n    return 0x10;\n  }\n  if (sa->sa_family == 10) {\n    return 0x1c;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" type_identifier (function_declarator "sockaddr_size(sockaddr *sa)" identifier (parameter_list "(sockaddr *sa)" ( (parameter_declaration "sockaddr *sa" type_identifier (pointer_declarator "*sa" * identifier)) ))) (compound_statement "{\n  if (sa->sa_family == 2) {\n    return 0x10;\n  }\n  if (sa->sa_family == 10) {\n    return 0x1c;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (if_statement "if (sa->sa_family == 2) {\n    return 0x10;\n  }" if (parenthesized_expression "(sa->sa_family == 2)" ( (binary_expression "sa->sa_family == 2" (field_expression "sa->sa_family" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    return 0x10;\n  }" { (return_statement "return 0x10;" return number_literal ;) })) (if_statement "if (sa->sa_family == 10) {\n    return 0x1c;\n  }" if (parenthesized_expression "(sa->sa_family == 10)" ( (binary_expression "sa->sa_family == 10" (field_expression "sa->sa_family" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    return 0x1c;\n  }" { (return_statement "return 0x1c;" return number_literal ;) })) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 FUN_0010cf95(short *param_1)\n\n{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    \n  abort();\n}\n\n" (function_definition "undefined8 FUN_0010cf95(short *param_1)\n\n{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    \n  abort();\n}" type_identifier (function_declarator "FUN_0010cf95(short *param_1)" identifier (parameter_list "(short *param_1)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    \n  abort();\n}" { (if_statement "if (*param_1 == 2) {\n    return 0x10;\n  }" if (parenthesized_expression "(*param_1 == 2)" ( (binary_expression "*param_1 == 2" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    return 0x10;\n  }" { (return_statement "return 0x10;" return number_literal ;) })) (if_statement "if (*param_1 == 10) {\n    return 0x1c;\n  }" if (parenthesized_expression "(*param_1 == 10)" ( (binary_expression "*param_1 == 10" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    return 0x1c;\n  }" { (return_statement "return 0x1c;" return number_literal ;) })) (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 FUN_0010cf95(short *param_1)\n\n{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    \n  abort();\n}" (type_identifier "undefined8") (function_declarator "FUN_0010cf95(short *param_1)" (identifier "FUN_0010cf95") (parameter_list "(short *param_1)" (( "(") (parameter_declaration "short *param_1" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (*param_1 == 2) {\n    return 0x10;\n  }\n  if (*param_1 == 10) {\n    return 0x1c;\n  }\n                    \n  abort();\n}" ({ "{") (if_statement "if (*param_1 == 2) {\n    return 0x10;\n  }" (if "if") (parenthesized_expression "(*param_1 == 2)" (( "(") (binary_expression "*param_1 == 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    return 0x10;\n  }" ({ "{") (return_statement "return 0x10;" (return "return") (number_literal "0x10") (; ";")) (} "}"))) (if_statement "if (*param_1 == 10) {\n    return 0x1c;\n  }" (if "if") (parenthesized_expression "(*param_1 == 10)" (( "(") (binary_expression "*param_1 == 10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "10")) () ")")) (compound_statement "{\n    return 0x1c;\n  }" ({ "{") (return_statement "return 0x1c;" (return "return") (number_literal "0x1c") (; ";")) (} "}"))) (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 *sa)

{
  if (sa->sa_family == 2) {
    return 0x10;
  }
  if (sa->sa_family == 10) {
    return 0x1c;
  }
                    /* WARNING: Subroutine does not return */
  var_1();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined8 MASKED(short *param_1)

{
  if (*param_1 == 2) {
    return 0x10;
  }
  if (*param_1 == 10) {
    return 0x1c;
  }
                    /* WARNING: Subroutine does not return */
  abort();
}

