
size_t ck_getdelim(char **text,size_t *buflen,char buffer_delimiter,FILE *stream)

{
  int *piVar1;
  char *pcVar2;
  char *pcVar3;
  char *str;
  size_t sVar4;
  
  if ((stream->_flags & 0x20) == 0) {
    sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);
    if ((stream->_flags & 0x20) == 0) {
      return sVar4;
    }
  }
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  pcVar3 = utils_fp_name(stream);
  str = (char *)dcgettext(0,"read error on %s: %s",5);
                    /* WARNING: Subroutine does not return */
  panic(str,pcVar3,pcVar2);
}



void FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)

{
  int *piVar1;
  char *pcVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  if ((param_4->_flags & 0x20) == 0) {
    getdelim(param_1,param_2,(int)param_3,param_4);
    if ((param_4->_flags & 0x20) == 0) {
      return;
    }
  }
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  uVar3 = FUN_0010a915(param_4);
  uVar4 = dcgettext(0,"read error on %s: %s",5);
                    /* WARNING: Subroutine does not return */
  FUN_0010aa39(uVar4,uVar3,pcVar2);
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RCX
TEST byte ptr [RCX],0x20
JZ 0x0010af20
CALL 0x001030b0
MOV EDI,dword ptr [RAX]
CALL 0x00103640
MOV RBP,RAX
MOV RDI,RBX
CALL 0x0010a915
MOV RBX,RAX
MOV EDX,0x5
LEA RSI,[0x116e68]
MOV EDI,0x0
CALL 0x00103190
MOV RDX,RBP
MOV RSI,RBX
MOV RDI,RAX
MOV EAX,0x0
CALL 0x0010aa39
MOVSX EDX,DL
CALL 0x00103660
TEST byte ptr [RBX],0x20
JNZ 0x0010aedd
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}\n\n" (function_definition "void FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}" primitive_type (function_declarator "FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)" identifier (parameter_list "(char **param_1,size_t *param_2,char param_3,FILE *param_4)" ( (parameter_declaration "char **param_1" primitive_type (pointer_declarator "**param_1" * (pointer_declarator "*param_1" * identifier))) , (parameter_declaration "size_t *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "FILE *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (if_statement "if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((param_4->_flags & 0x20) == 0)" ( (binary_expression "(param_4->_flags & 0x20) == 0" (parenthesized_expression "(param_4->_flags & 0x20)" ( (binary_expression "param_4->_flags & 0x20" (field_expression "param_4->_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }" { (expression_statement "getdelim(param_1,param_2,(int)param_3,param_4);" (call_expression "getdelim(param_1,param_2,(int)param_3,param_4)" identifier (argument_list "(param_1,param_2,(int)param_3,param_4)" ( identifier , identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (if_statement "if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }" if (parenthesized_expression "((param_4->_flags & 0x20) == 0)" ( (binary_expression "(param_4->_flags & 0x20) == 0" (parenthesized_expression "(param_4->_flags & 0x20)" ( (binary_expression "param_4->_flags & 0x20" (field_expression "param_4->_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "uVar3 = FUN_0010a915(param_4);" (assignment_expression "uVar3 = FUN_0010a915(param_4)" identifier = (call_expression "FUN_0010a915(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"read error on %s: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"read error on %s: %s",5)" identifier = (call_expression "dcgettext(0,"read error on %s: %s",5)" identifier (argument_list "(0,"read error on %s: %s",5)" ( number_literal , (string_literal ""read error on %s: %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "FUN_0010aa39(uVar4,uVar3,pcVar2);" (call_expression "FUN_0010aa39(uVar4,uVar3,pcVar2)" identifier (argument_list "(uVar4,uVar3,pcVar2)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "size_t ck_getdelim(char **text,size_t *buflen,char buffer_delimiter,FILE *stream)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *str;\n  size_t sVar4;\n  \n  if ((stream->_flags & 0x20) == 0) {\n    sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);\n    if ((stream->_flags & 0x20) == 0) {\n      return sVar4;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  pcVar3 = utils_fp_name(stream);\n  str = (char *)dcgettext(0,"read error on %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  panic(str,pcVar3,pcVar2);\n}\n\n" (function_definition "size_t ck_getdelim(char **text,size_t *buflen,char buffer_delimiter,FILE *stream)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *str;\n  size_t sVar4;\n  \n  if ((stream->_flags & 0x20) == 0) {\n    sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);\n    if ((stream->_flags & 0x20) == 0) {\n      return sVar4;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  pcVar3 = utils_fp_name(stream);\n  str = (char *)dcgettext(0,"read error on %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  panic(str,pcVar3,pcVar2);\n}" primitive_type (function_declarator "ck_getdelim(char **text,size_t *buflen,char buffer_delimiter,FILE *stream)" identifier (parameter_list "(char **text,size_t *buflen,char buffer_delimiter,FILE *stream)" ( (parameter_declaration "char **text" primitive_type (pointer_declarator "**text" * (pointer_declarator "*text" * identifier))) , (parameter_declaration "size_t *buflen" primitive_type (pointer_declarator "*buflen" * identifier)) , (parameter_declaration "char buffer_delimiter" primitive_type identifier) , (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *str;\n  size_t sVar4;\n  \n  if ((stream->_flags & 0x20) == 0) {\n    sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);\n    if ((stream->_flags & 0x20) == 0) {\n      return sVar4;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  pcVar3 = utils_fp_name(stream);\n  str = (char *)dcgettext(0,"read error on %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  panic(str,pcVar3,pcVar2);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *str;" primitive_type (pointer_declarator "*str" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (if_statement "if ((stream->_flags & 0x20) == 0) {\n    sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);\n    if ((stream->_flags & 0x20) == 0) {\n      return sVar4;\n    }\n  }" if (parenthesized_expression "((stream->_flags & 0x20) == 0)" ( (binary_expression "(stream->_flags & 0x20) == 0" (parenthesized_expression "(stream->_flags & 0x20)" ( (binary_expression "stream->_flags & 0x20" (field_expression "stream->_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);\n    if ((stream->_flags & 0x20) == 0) {\n      return sVar4;\n    }\n  }" { (expression_statement "sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream);" (assignment_expression "sVar4 = getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream)" identifier = (call_expression "getdelim(text,buflen,(int)buffer_delimiter,(FILE *)stream)" identifier (argument_list "(text,buflen,(int)buffer_delimiter,(FILE *)stream)" ( identifier , identifier , (cast_expression "(int)buffer_delimiter" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(FILE *)stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if ((stream->_flags & 0x20) == 0) {\n      return sVar4;\n    }" if (parenthesized_expression "((stream->_flags & 0x20) == 0)" ( (binary_expression "(stream->_flags & 0x20) == 0" (parenthesized_expression "(stream->_flags & 0x20)" ( (binary_expression "stream->_flags & 0x20" (field_expression "stream->_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return sVar4;\n    }" { (return_statement "return sVar4;" return identifier ;) })) })) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "pcVar3 = utils_fp_name(stream);" (assignment_expression "pcVar3 = utils_fp_name(stream)" identifier = (call_expression "utils_fp_name(stream)" identifier (argument_list "(stream)" ( identifier )))) ;) (expression_statement "str = (char *)dcgettext(0,"read error on %s: %s",5);" (assignment_expression "str = (char *)dcgettext(0,"read error on %s: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"read error on %s: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"read error on %s: %s",5)" identifier (argument_list "(0,"read error on %s: %s",5)" ( number_literal , (string_literal ""read error on %s: %s"" " string_content ") , number_literal ))))) ;) comment (expression_statement "panic(str,pcVar3,pcVar2);" (call_expression "panic(str,pcVar3,pcVar2)" identifier (argument_list "(str,pcVar3,pcVar2)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    \n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}\n\n" (function_definition "void FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    \n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}" primitive_type (function_declarator "FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)" identifier (parameter_list "(char **param_1,size_t *param_2,char param_3,FILE *param_4)" ( (parameter_declaration "char **param_1" primitive_type (pointer_declarator "**param_1" * (pointer_declarator "*param_1" * identifier))) , (parameter_declaration "size_t *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "FILE *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    \n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (if_statement "if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((param_4->_flags & 0x20) == 0)" ( (binary_expression "(param_4->_flags & 0x20) == 0" (parenthesized_expression "(param_4->_flags & 0x20)" ( (binary_expression "param_4->_flags & 0x20" (field_expression "param_4->_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }" { (expression_statement "getdelim(param_1,param_2,(int)param_3,param_4);" (call_expression "getdelim(param_1,param_2,(int)param_3,param_4)" identifier (argument_list "(param_1,param_2,(int)param_3,param_4)" ( identifier , identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (if_statement "if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }" if (parenthesized_expression "((param_4->_flags & 0x20) == 0)" ( (binary_expression "(param_4->_flags & 0x20) == 0" (parenthesized_expression "(param_4->_flags & 0x20)" ( (binary_expression "param_4->_flags & 0x20" (field_expression "param_4->_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "uVar3 = FUN_0010a915(param_4);" (assignment_expression "uVar3 = FUN_0010a915(param_4)" identifier = (call_expression "FUN_0010a915(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"read error on %s: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"read error on %s: %s",5)" identifier = (call_expression "dcgettext(0,"read error on %s: %s",5)" identifier (argument_list "(0,"read error on %s: %s",5)" ( number_literal , (string_literal ""read error on %s: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0010aa39(uVar4,uVar3,pcVar2);" (call_expression "FUN_0010aa39(uVar4,uVar3,pcVar2)" identifier (argument_list "(uVar4,uVar3,pcVar2)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * (pointer_declarator * IDENT))) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) & LIT) )) == LIT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    \n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}" (primitive_type "void") (function_declarator "FUN_0010aecf(char **param_1,size_t *param_2,char param_3,FILE *param_4)" (identifier "FUN_0010aecf") (parameter_list "(char **param_1,size_t *param_2,char param_3,FILE *param_4)" (( "(") (parameter_declaration "char **param_1" (primitive_type "char") (pointer_declarator "**param_1" (* "*") (pointer_declarator "*param_1" (* "*") (identifier "param_1")))) (, ",") (parameter_declaration "size_t *param_2" (primitive_type "size_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) (, ",") (parameter_declaration "FILE *param_4" (type_identifier "FILE") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }\n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = FUN_0010a915(param_4);\n  uVar4 = dcgettext(0,"read error on %s: %s",5);\n                    \n  FUN_0010aa39(uVar4,uVar3,pcVar2);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (if_statement "if ((param_4->_flags & 0x20) == 0) {\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_4->_flags & 0x20) == 0)" (( "(") (binary_expression "(param_4->_flags & 0x20) == 0" (parenthesized_expression "(param_4->_flags & 0x20)" (( "(") (binary_expression "param_4->_flags & 0x20" (field_expression "param_4->_flags" (identifier "param_4") (-> "->") (field_identifier "_flags")) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    getdelim(param_1,param_2,(int)param_3,param_4);\n    if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }\n  }" ({ "{") (expression_statement "getdelim(param_1,param_2,(int)param_3,param_4);" (call_expression "getdelim(param_1,param_2,(int)param_3,param_4)" (identifier "getdelim") (argument_list "(param_1,param_2,(int)param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (, ",") (identifier "param_4") () ")"))) (; ";")) (if_statement "if ((param_4->_flags & 0x20) == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "((param_4->_flags & 0x20) == 0)" (( "(") (binary_expression "(param_4->_flags & 0x20) == 0" (parenthesized_expression "(param_4->_flags & 0x20)" (( "(") (binary_expression "param_4->_flags & 0x20" (field_expression "param_4->_flags" (identifier "param_4") (-> "->") (field_identifier "_flags")) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" (identifier "pcVar2") (= "=") (call_expression "strerror(*piVar1)" (identifier "strerror") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_0010a915(param_4);" (assignment_expression "uVar3 = FUN_0010a915(param_4)" (identifier "uVar3") (= "=") (call_expression "FUN_0010a915(param_4)" (identifier "FUN_0010a915") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"read error on %s: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"read error on %s: %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"read error on %s: %s",5)" (identifier "dcgettext") (argument_list "(0,"read error on %s: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""read error on %s: %s"" (" """) (string_content "read error on %s: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0010aa39(uVar4,uVar3,pcVar2);" (call_expression "FUN_0010aa39(uVar4,uVar3,pcVar2)" (identifier "FUN_0010aa39") (argument_list "(uVar4,uVar3,pcVar2)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (} "}")))

size_t function_1(char **text,size_t *buflen,char buffer_delimiter,type_1 *stream)

{
  int *piVar1;
  char *pcVar2;
  char *pcVar3;
  char *str;
  size_t sVar4;
  
  if ((stream->_flags & 0x20) == 0) {
    sVar4 = var_1(text,buflen,(int)buffer_delimiter,(type_1 *)stream);
    if ((stream->_flags & 0x20) == 0) {
      return sVar4;
    }
  }
  piVar1 = var_2();
  pcVar2 = var_3(*piVar1);
  pcVar3 = var_4(stream);
  str = (char *)var_5(0,"read error on %s: %s",5);
                    /* WARNING: Subroutine does not return */
  var_6(str,pcVar3,pcVar2);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement))))) (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 (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))

void MASKED(char **param_1,size_t *param_2,char param_3,FILE *param_4)

{
  int *piVar1;
  char *pcVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  if ((param_4->_flags & 0x20) == 0) {
    getdelim(param_1,param_2,(int)param_3,param_4);
    if ((param_4->_flags & 0x20) == 0) {
      return;
    }
  }
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  uVar3 = FUN_0010a915(param_4);
  uVar4 = dcgettext(0,"read error on %s: %s",5);
                    /* WARNING: Subroutine does not return */
  FUN_0010aa39(uVar4,uVar3,pcVar2);
}

