
FILE * open_socket(len_and_sockaddr *lsa)

{
  int __fd;
  FILE *pFVar1;
  
  __fd = xconnect_stream(lsa);
  pFVar1 = fdopen(__fd,"r+");
  if (pFVar1 == (FILE *)0x0) {
                    /* WARNING: Subroutine does not return */
    bb_die_memory_exhausted();
  }
  return (FILE *)pFVar1;
}



void FUN_00134f52(void)

{
  int __fd;
  FILE *pFVar1;
  
  __fd = FUN_001a707c();
  pFVar1 = fdopen(__fd,"r+");
  if (pFVar1 == (FILE *)0x0) {
    FUN_0010e583();
  }
  return;
}


SUB RSP,0x8
CALL 0x001a707c
LEA RSI,[0x1b87f6]
MOV EDI,EAX
CALL 0x0010bee0
TEST RAX,RAX
JNZ 0x00134f73
CALL 0x0010e583
ADD RSP,0x8
RET
(translation_unit "void FUN_00134f52(void)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00134f52(void)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00134f52(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "FILE *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (expression_statement "__fd = FUN_001a707c();" (assignment_expression "__fd = FUN_001a707c()" identifier = (call_expression "FUN_001a707c()" identifier (argument_list "()" ( )))) ;) (expression_statement "pFVar1 = fdopen(__fd,"r+");" (assignment_expression "pFVar1 = fdopen(__fd,"r+")" identifier = (call_expression "fdopen(__fd,"r+")" identifier (argument_list "(__fd,"r+")" ( identifier , (string_literal ""r+"" " string_content ") )))) ;) (if_statement "if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }" if (parenthesized_expression "(pFVar1 == (FILE *)0x0)" ( (binary_expression "pFVar1 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_0010e583();\n  }" { (expression_statement "FUN_0010e583();" (call_expression "FUN_0010e583()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "FILE * open_socket(len_and_sockaddr *lsa)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = xconnect_stream(lsa);\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bb_die_memory_exhausted();\n  }\n  return (FILE *)pFVar1;\n}\n\n" (function_definition "FILE * open_socket(len_and_sockaddr *lsa)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = xconnect_stream(lsa);\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bb_die_memory_exhausted();\n  }\n  return (FILE *)pFVar1;\n}" type_identifier (pointer_declarator "* open_socket(len_and_sockaddr *lsa)" * (function_declarator "open_socket(len_and_sockaddr *lsa)" identifier (parameter_list "(len_and_sockaddr *lsa)" ( (parameter_declaration "len_and_sockaddr *lsa" type_identifier (pointer_declarator "*lsa" * identifier)) )))) (compound_statement "{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = xconnect_stream(lsa);\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bb_die_memory_exhausted();\n  }\n  return (FILE *)pFVar1;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "FILE *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (expression_statement "__fd = xconnect_stream(lsa);" (assignment_expression "__fd = xconnect_stream(lsa)" identifier = (call_expression "xconnect_stream(lsa)" identifier (argument_list "(lsa)" ( identifier )))) ;) (expression_statement "pFVar1 = fdopen(__fd,"r+");" (assignment_expression "pFVar1 = fdopen(__fd,"r+")" identifier = (call_expression "fdopen(__fd,"r+")" identifier (argument_list "(__fd,"r+")" ( identifier , (string_literal ""r+"" " string_content ") )))) ;) (if_statement "if (pFVar1 == (FILE *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bb_die_memory_exhausted();\n  }" if (parenthesized_expression "(pFVar1 == (FILE *)0x0)" ( (binary_expression "pFVar1 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    bb_die_memory_exhausted();\n  }" { comment (expression_statement "bb_die_memory_exhausted();" (call_expression "bb_die_memory_exhausted()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return (FILE *)pFVar1;" return (cast_expression "(FILE *)pFVar1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "void FUN_00134f52(void)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00134f52(void)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00134f52(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "FILE *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (expression_statement "__fd = FUN_001a707c();" (assignment_expression "__fd = FUN_001a707c()" identifier = (call_expression "FUN_001a707c()" identifier (argument_list "()" ( )))) ;) (expression_statement "pFVar1 = fdopen(__fd,"r+");" (assignment_expression "pFVar1 = fdopen(__fd,"r+")" identifier = (call_expression "fdopen(__fd,"r+")" identifier (argument_list "(__fd,"r+")" ( identifier , (string_literal ""r+"" " string_content ") )))) ;) (if_statement "if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }" if (parenthesized_expression "(pFVar1 == (FILE *)0x0)" ( (binary_expression "pFVar1 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_0010e583();\n  }" { (expression_statement "FUN_0010e583();" (call_expression "FUN_0010e583()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00134f52(void)\n\n{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00134f52(void)" (identifier "FUN_00134f52") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int __fd;\n  FILE *pFVar1;\n  \n  __fd = FUN_001a707c();\n  pFVar1 = fdopen(__fd,"r+");\n  if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }\n  return;\n}" ({ "{") (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "FILE *pFVar1;" (type_identifier "FILE") (pointer_declarator "*pFVar1" (* "*") (identifier "pFVar1")) (; ";")) (expression_statement "__fd = FUN_001a707c();" (assignment_expression "__fd = FUN_001a707c()" (identifier "__fd") (= "=") (call_expression "FUN_001a707c()" (identifier "FUN_001a707c") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pFVar1 = fdopen(__fd,"r+");" (assignment_expression "pFVar1 = fdopen(__fd,"r+")" (identifier "pFVar1") (= "=") (call_expression "fdopen(__fd,"r+")" (identifier "fdopen") (argument_list "(__fd,"r+")" (( "(") (identifier "__fd") (, ",") (string_literal ""r+"" (" """) (string_content "r+") (" """)) () ")")))) (; ";")) (if_statement "if (pFVar1 == (FILE *)0x0) {\n    FUN_0010e583();\n  }" (if "if") (parenthesized_expression "(pFVar1 == (FILE *)0x0)" (( "(") (binary_expression "pFVar1 == (FILE *)0x0" (identifier "pFVar1") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_0010e583();\n  }" ({ "{") (expression_statement "FUN_0010e583();" (call_expression "FUN_0010e583()" (identifier "FUN_0010e583") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 * function_1(type_2 *lsa)

{
  int __fd;
  type_1 *var_3;
  
  __fd = var_1(lsa);
  var_3 = var_2(__fd,"r+");
  if (var_3 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_4();
  }
  return (type_1 *)var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

void MASKED(void)

{
  int __fd;
  FILE *pFVar1;
  
  __fd = FUN_001a707c();
  pFVar1 = fdopen(__fd,"r+");
  if (pFVar1 == (FILE *)0x0) {
    FUN_0010e583();
  }
  return;
}

