
int bb_cat(char **argv)

{
  int fd1;
  off_t oVar1;
  int iVar2;
  
  if (*argv == (char *)0x0) {
    argv = (char **)bb_argv_dash;
  }
  iVar2 = 0;
  do {
    fd1 = open_or_warn_stdin(*argv);
    if (fd1 < 0) {
      iVar2 = 1;
    }
    else {
      oVar1 = bb_copyfd_eof(fd1,1);
      if (fd1 != 0) {
        close(fd1);
      }
      if (oVar1 < 0) {
        iVar2 = 1;
      }
    }
    argv = argv + 1;
  } while (*argv != (char *)0x0);
  return iVar2;
}



undefined4 FUN_0019895f(undefined **param_1)

{
  int __fd;
  long lVar1;
  undefined4 uVar2;
  
  if (*param_1 == (undefined *)0x0) {
    param_1 = &PTR_DAT_001c4ac0;
  }
  uVar2 = 0;
  do {
    __fd = FUN_001a61bf(*param_1);
    if (__fd < 0) {
      uVar2 = 1;
    }
    else {
      lVar1 = FUN_0010f4f0(__fd,1);
      if (__fd != 0) {
        close(__fd);
      }
      if (lVar1 < 0) {
        uVar2 = 1;
      }
    }
    param_1 = param_1 + 1;
  } while (*param_1 != (undefined *)0x0);
  return uVar2;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
CMP qword ptr [RDI],0x0
LEA RAX,[0x1c4ac0]
CMOVZ RBX,RAX
MOV EBP,0x0
MOV RDI,qword ptr [RBX]
CALL 0x001a61bf
MOV R12D,EAX
TEST EAX,EAX
JS 0x001989cd
MOV ESI,0x1
MOV EDI,EAX
CALL 0x0010f4f0
MOV R13,RAX
TEST R12D,R12D
JZ 0x001989ab
MOV EDI,R12D
CALL 0x0010b7d0
TEST R13,R13
MOV EAX,0x1
CMOVS EBP,EAX
ADD RBX,0x8
CMP qword ptr [RBX],0x0
JNZ 0x00198980
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EBP,0x1
JMP 0x001989b6
(translation_unit "undefined4 FUN_0019895f(undefined **param_1)\n\n{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0019895f(undefined **param_1)\n\n{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0019895f(undefined **param_1)" identifier (parameter_list "(undefined **param_1)" ( (parameter_declaration "undefined **param_1" type_identifier (pointer_declarator "**param_1" * (pointer_declarator "*param_1" * identifier))) ))) (compound_statement "{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }" if (parenthesized_expression "(*param_1 == (undefined *)0x0)" ( (binary_expression "*param_1 == (undefined *)0x0" (pointer_expression "*param_1" * identifier) == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = &PTR_DAT_001c4ac0;\n  }" { (expression_statement "param_1 = &PTR_DAT_001c4ac0;" (assignment_expression "param_1 = &PTR_DAT_001c4ac0" identifier = (pointer_expression "&PTR_DAT_001c4ac0" & identifier)) ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);" do (compound_statement "{\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  }" { (expression_statement "__fd = FUN_001a61bf(*param_1);" (assignment_expression "__fd = FUN_001a61bf(*param_1)" identifier = (call_expression "FUN_001a61bf(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" else (compound_statement "{\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" { (expression_statement "lVar1 = FUN_0010f4f0(__fd,1);" (assignment_expression "lVar1 = FUN_0010f4f0(__fd,1)" identifier = (call_expression "FUN_0010f4f0(__fd,1)" identifier (argument_list "(__fd,1)" ( identifier , number_literal )))) ;) (if_statement "if (__fd != 0) {\n        close(__fd);\n      }" if (parenthesized_expression "(__fd != 0)" ( (binary_expression "__fd != 0" identifier != number_literal) )) (compound_statement "{\n        close(__fd);\n      }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) })) (if_statement "if (lVar1 < 0) {\n        uVar2 = 1;\n      }" if (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        uVar2 = 1;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) }))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*param_1 != (undefined *)0x0)" ( (binary_expression "*param_1 != (undefined *)0x0" (pointer_expression "*param_1" * identifier) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int bb_cat(char **argv)\n\n{\n  int fd1;\n  off_t oVar1;\n  int iVar2;\n  \n  if (*argv == (char *)0x0) {\n    argv = (char **)bb_argv_dash;\n  }\n  iVar2 = 0;\n  do {\n    fd1 = open_or_warn_stdin(*argv);\n    if (fd1 < 0) {\n      iVar2 = 1;\n    }\n    else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }\n    argv = argv + 1;\n  } while (*argv != (char *)0x0);\n  return iVar2;\n}\n\n" (function_definition "int bb_cat(char **argv)\n\n{\n  int fd1;\n  off_t oVar1;\n  int iVar2;\n  \n  if (*argv == (char *)0x0) {\n    argv = (char **)bb_argv_dash;\n  }\n  iVar2 = 0;\n  do {\n    fd1 = open_or_warn_stdin(*argv);\n    if (fd1 < 0) {\n      iVar2 = 1;\n    }\n    else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }\n    argv = argv + 1;\n  } while (*argv != (char *)0x0);\n  return iVar2;\n}" primitive_type (function_declarator "bb_cat(char **argv)" identifier (parameter_list "(char **argv)" ( (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int fd1;\n  off_t oVar1;\n  int iVar2;\n  \n  if (*argv == (char *)0x0) {\n    argv = (char **)bb_argv_dash;\n  }\n  iVar2 = 0;\n  do {\n    fd1 = open_or_warn_stdin(*argv);\n    if (fd1 < 0) {\n      iVar2 = 1;\n    }\n    else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }\n    argv = argv + 1;\n  } while (*argv != (char *)0x0);\n  return iVar2;\n}" { (declaration "int fd1;" primitive_type identifier ;) (declaration "off_t oVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*argv == (char *)0x0) {\n    argv = (char **)bb_argv_dash;\n  }" if (parenthesized_expression "(*argv == (char *)0x0)" ( (binary_expression "*argv == (char *)0x0" (pointer_expression "*argv" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    argv = (char **)bb_argv_dash;\n  }" { (expression_statement "argv = (char **)bb_argv_dash;" (assignment_expression "argv = (char **)bb_argv_dash" identifier = (cast_expression "(char **)bb_argv_dash" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    fd1 = open_or_warn_stdin(*argv);\n    if (fd1 < 0) {\n      iVar2 = 1;\n    }\n    else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }\n    argv = argv + 1;\n  } while (*argv != (char *)0x0);" do (compound_statement "{\n    fd1 = open_or_warn_stdin(*argv);\n    if (fd1 < 0) {\n      iVar2 = 1;\n    }\n    else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }\n    argv = argv + 1;\n  }" { (expression_statement "fd1 = open_or_warn_stdin(*argv);" (assignment_expression "fd1 = open_or_warn_stdin(*argv)" identifier = (call_expression "open_or_warn_stdin(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (if_statement "if (fd1 < 0) {\n      iVar2 = 1;\n    }\n    else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }" if (parenthesized_expression "(fd1 < 0)" ( (binary_expression "fd1 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = 1;\n    }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }" else (compound_statement "{\n      oVar1 = bb_copyfd_eof(fd1,1);\n      if (fd1 != 0) {\n        close(fd1);\n      }\n      if (oVar1 < 0) {\n        iVar2 = 1;\n      }\n    }" { (expression_statement "oVar1 = bb_copyfd_eof(fd1,1);" (assignment_expression "oVar1 = bb_copyfd_eof(fd1,1)" identifier = (call_expression "bb_copyfd_eof(fd1,1)" identifier (argument_list "(fd1,1)" ( identifier , number_literal )))) ;) (if_statement "if (fd1 != 0) {\n        close(fd1);\n      }" if (parenthesized_expression "(fd1 != 0)" ( (binary_expression "fd1 != 0" identifier != number_literal) )) (compound_statement "{\n        close(fd1);\n      }" { (expression_statement "close(fd1);" (call_expression "close(fd1)" identifier (argument_list "(fd1)" ( identifier ))) ;) })) (if_statement "if (oVar1 < 0) {\n        iVar2 = 1;\n      }" if (parenthesized_expression "(oVar1 < 0)" ( (binary_expression "oVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 1;\n      }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) }))) (expression_statement "argv = argv + 1;" (assignment_expression "argv = argv + 1" identifier = (binary_expression "argv + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*argv != (char *)0x0)" ( (binary_expression "*argv != (char *)0x0" (pointer_expression "*argv" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0019895f(undefined **param_1)\n\n{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0019895f(undefined **param_1)\n\n{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0019895f(undefined **param_1)" identifier (parameter_list "(undefined **param_1)" ( (parameter_declaration "undefined **param_1" type_identifier (pointer_declarator "**param_1" * (pointer_declarator "*param_1" * identifier))) ))) (compound_statement "{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }" if (parenthesized_expression "(*param_1 == (undefined *)0x0)" ( (binary_expression "*param_1 == (undefined *)0x0" (pointer_expression "*param_1" * identifier) == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = &PTR_DAT_001c4ac0;\n  }" { (expression_statement "param_1 = &PTR_DAT_001c4ac0;" (assignment_expression "param_1 = &PTR_DAT_001c4ac0" identifier = (pointer_expression "&PTR_DAT_001c4ac0" & identifier)) ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);" do (compound_statement "{\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  }" { (expression_statement "__fd = FUN_001a61bf(*param_1);" (assignment_expression "__fd = FUN_001a61bf(*param_1)" identifier = (call_expression "FUN_001a61bf(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" else (compound_statement "{\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" { (expression_statement "lVar1 = FUN_0010f4f0(__fd,1);" (assignment_expression "lVar1 = FUN_0010f4f0(__fd,1)" identifier = (call_expression "FUN_0010f4f0(__fd,1)" identifier (argument_list "(__fd,1)" ( identifier , number_literal )))) ;) (if_statement "if (__fd != 0) {\n        close(__fd);\n      }" if (parenthesized_expression "(__fd != 0)" ( (binary_expression "__fd != 0" identifier != number_literal) )) (compound_statement "{\n        close(__fd);\n      }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) })) (if_statement "if (lVar1 < 0) {\n        uVar2 = 1;\n      }" if (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        uVar2 = 1;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) }))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*param_1 != (undefined *)0x0)" ( (binary_expression "*param_1 != (undefined *)0x0" (pointer_expression "*param_1" * identifier) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * (pointer_declarator * IDENT))) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0019895f(undefined **param_1)\n\n{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0019895f(undefined **param_1)" (identifier "FUN_0019895f") (parameter_list "(undefined **param_1)" (( "(") (parameter_declaration "undefined **param_1" (type_identifier "undefined") (pointer_declarator "**param_1" (* "*") (pointer_declarator "*param_1" (* "*") (identifier "param_1")))) () ")"))) (compound_statement "{\n  int __fd;\n  long lVar1;\n  undefined4 uVar2;\n  \n  if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }\n  uVar2 = 0;\n  do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);\n  return uVar2;\n}" ({ "{") (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (*param_1 == (undefined *)0x0) {\n    param_1 = &PTR_DAT_001c4ac0;\n  }" (if "if") (parenthesized_expression "(*param_1 == (undefined *)0x0)" (( "(") (binary_expression "*param_1 == (undefined *)0x0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_1 = &PTR_DAT_001c4ac0;\n  }" ({ "{") (expression_statement "param_1 = &PTR_DAT_001c4ac0;" (assignment_expression "param_1 = &PTR_DAT_001c4ac0" (identifier "param_1") (= "=") (pointer_expression "&PTR_DAT_001c4ac0" (& "&") (identifier "PTR_DAT_001c4ac0"))) (; ";")) (} "}"))) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  } while (*param_1 != (undefined *)0x0);" (do "do") (compound_statement "{\n    __fd = FUN_001a61bf(*param_1);\n    if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }\n    param_1 = param_1 + 1;\n  }" ({ "{") (expression_statement "__fd = FUN_001a61bf(*param_1);" (assignment_expression "__fd = FUN_001a61bf(*param_1)" (identifier "__fd") (= "=") (call_expression "FUN_001a61bf(*param_1)" (identifier "FUN_001a61bf") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (if_statement "if (__fd < 0) {\n      uVar2 = 1;\n    }\n    else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" (if "if") (parenthesized_expression "(__fd < 0)" (( "(") (binary_expression "__fd < 0" (identifier "__fd") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 1;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" (else "else") (compound_statement "{\n      lVar1 = FUN_0010f4f0(__fd,1);\n      if (__fd != 0) {\n        close(__fd);\n      }\n      if (lVar1 < 0) {\n        uVar2 = 1;\n      }\n    }" ({ "{") (expression_statement "lVar1 = FUN_0010f4f0(__fd,1);" (assignment_expression "lVar1 = FUN_0010f4f0(__fd,1)" (identifier "lVar1") (= "=") (call_expression "FUN_0010f4f0(__fd,1)" (identifier "FUN_0010f4f0") (argument_list "(__fd,1)" (( "(") (identifier "__fd") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (__fd != 0) {\n        close(__fd);\n      }" (if "if") (parenthesized_expression "(__fd != 0)" (( "(") (binary_expression "__fd != 0" (identifier "__fd") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        close(__fd);\n      }" ({ "{") (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (} "}"))) (if_statement "if (lVar1 < 0) {\n        uVar2 = 1;\n      }" (if "if") (parenthesized_expression "(lVar1 < 0)" (( "(") (binary_expression "lVar1 < 0" (identifier "lVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = 1;\n      }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*param_1 != (undefined *)0x0)" (( "(") (binary_expression "*param_1 != (undefined *)0x0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(char **var_6)

{
  int var_2;
  type_1 var_5;
  int iVar2;
  
  if (*var_6 == (char *)0x0) {
    var_6 = (char **)bb_argv_dash;
  }
  iVar2 = 0;
  do {
    var_2 = var_1(*var_6);
    if (var_2 < 0) {
      iVar2 = 1;
    }
    else {
      var_5 = var_3(var_2,1);
      if (var_2 != 0) {
        var_4(var_2);
      }
      if (var_5 < 0) {
        iVar2 = 1;
      }
    }
    var_6 = var_6 + 1;
  } while (*var_6 != (char *)0x0);
  return iVar2;
}


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

undefined4 MASKED(undefined **param_1)

{
  int __fd;
  long lVar1;
  undefined4 uVar2;
  
  if (*param_1 == (undefined *)0x0) {
    param_1 = &PTR_DAT_001c4ac0;
  }
  uVar2 = 0;
  do {
    __fd = FUN_001a61bf(*param_1);
    if (__fd < 0) {
      uVar2 = 1;
    }
    else {
      lVar1 = FUN_0010f4f0(__fd,1);
      if (__fd != 0) {
        close(__fd);
      }
      if (lVar1 < 0) {
        uVar2 = 1;
      }
    }
    param_1 = param_1 + 1;
  } while (*param_1 != (undefined *)0x0);
  return uVar2;
}

