
/* WARNING: Unknown calling convention */

int stdin_redirects(REDIRECT *redirs)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = 0;
  if (redirs != (REDIRECT *)0x0) {
    do {
      if ((redirs->rflags & 1) == 0) {
        if ((redirs->instruction < (r_move_output|r_reading_until)) &&
           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {
          if ((uVar2 & 0x936) == 0) {
            if ((uVar2 & 0x2240) != 0) {
              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);
            }
          }
          else {
            iVar1 = iVar1 + 1;
          }
        }
      }
      redirs = redirs->next;
    } while (redirs != (redirect *)0x0);
  }
  return iVar1;
}



int stdin_redirects(int *param_1)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = 0;
  if (param_1 != (int *)0x0) {
    do {
      if ((*(byte *)(param_1 + 2) & 1) == 0) {
        if (((uint)param_1[4] < 0x14) &&
           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {
          if ((uVar2 & 0x936) == 0) {
            if ((uVar2 & 0x2240) != 0) {
              iVar1 = iVar1 + (uint)(param_1[1] == 0);
            }
          }
          else {
            iVar1 = iVar1 + 1;
          }
        }
      }
      param_1 = (int *)*param_1;
    } while (param_1 != (int *)0x0);
  }
  return iVar1;
}


PUSH EDI
XOR EAX,EAX
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0x10]
TEST EDX,EDX
JZ 0x000a9c8e
MOV ESI,0x1
LEA ESI,[ESI]
TEST byte ptr [EDX + 0x8],0x1
JNZ 0x000a9c88
MOV ECX,dword ptr [EDX + 0x10]
MOV EBX,dword ptr [EDX + 0x4]
CMP ECX,0x13
JA 0x000a9c88
MOV EDI,ESI
SHL EDI,CL
MOV ECX,EDI
TEST EDI,0xfd489
JNZ 0x000a9c88
TEST EDI,0x936
JZ 0x000a9c98
ADD EAX,0x1
LEA ESI,[ESI]
MOV EDX,dword ptr [EDX]
TEST EDX,EDX
JNZ 0x000a9c58
POP EBX
POP ESI
POP EDI
RET
AND ECX,0x2240
JZ 0x000a9c88
XOR ECX,ECX
TEST EBX,EBX
SETZ CL
ADD EAX,ECX
JMP 0x000a9c88
(translation_unit "int stdin_redirects(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}\n\n" (function_definition "int stdin_redirects(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "stdin_redirects(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" { (do_statement "do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);" do (compound_statement "{\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    }" { (if_statement "if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" if (parenthesized_expression "((*(byte *)(param_1 + 2) & 1) == 0)" ( (binary_expression "(*(byte *)(param_1 + 2) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 2) & 1)" ( (binary_expression "*(byte *)(param_1 + 2) & 1" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" { (if_statement "if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" if (parenthesized_expression "(((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0))" ( (binary_expression "((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)" (parenthesized_expression "((uint)param_1[4] < 0x14)" ( (binary_expression "(uint)param_1[4] < 0x14" (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < number_literal) )) && (parenthesized_expression "(uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)" ( (comma_expression "uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0" (assignment_expression "uVar2 = 1 << ((byte)param_1[4] & 0x1f)" identifier = (binary_expression "1 << ((byte)param_1[4] & 0x1f)" number_literal << (parenthesized_expression "((byte)param_1[4] & 0x1f)" ( (binary_expression "(byte)param_1[4] & 0x1f" (cast_expression "(byte)param_1[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) & number_literal) )))) , (binary_expression "(uVar2 & 0xfd489) == 0" (parenthesized_expression "(uVar2 & 0xfd489)" ( (binary_expression "uVar2 & 0xfd489" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" { (if_statement "if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }" if (parenthesized_expression "((uVar2 & 0x936) == 0)" ( (binary_expression "(uVar2 & 0x936) == 0" (parenthesized_expression "(uVar2 & 0x936)" ( (binary_expression "uVar2 & 0x936" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }" { (if_statement "if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }" if (parenthesized_expression "((uVar2 & 0x2240) != 0)" ( (binary_expression "(uVar2 & 0x2240) != 0" (parenthesized_expression "(uVar2 & 0x2240)" ( (binary_expression "uVar2 & 0x2240" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }" { (expression_statement "iVar1 = iVar1 + (uint)(param_1[1] == 0);" (assignment_expression "iVar1 = iVar1 + (uint)(param_1[1] == 0)" identifier = (binary_expression "iVar1 + (uint)(param_1[1] == 0)" identifier + (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))))) ;) })) }) (else_clause "else {\n            iVar1 = iVar1 + 1;\n          }" else (compound_statement "{\n            iVar1 = iVar1 + 1;\n          }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }))) })) })) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) while (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint stdin_redirects(REDIRECT *redirs)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (redirs != (REDIRECT *)0x0) {\n    do {\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    } while (redirs != (redirect *)0x0);\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int stdin_redirects(REDIRECT *redirs)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (redirs != (REDIRECT *)0x0) {\n    do {\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    } while (redirs != (redirect *)0x0);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "stdin_redirects(REDIRECT *redirs)" identifier (parameter_list "(REDIRECT *redirs)" ( (parameter_declaration "REDIRECT *redirs" type_identifier (pointer_declarator "*redirs" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (redirs != (REDIRECT *)0x0) {\n    do {\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    } while (redirs != (redirect *)0x0);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (redirs != (REDIRECT *)0x0) {\n    do {\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    } while (redirs != (redirect *)0x0);\n  }" if (parenthesized_expression "(redirs != (REDIRECT *)0x0)" ( (binary_expression "redirs != (REDIRECT *)0x0" identifier != (cast_expression "(REDIRECT *)0x0" ( (type_descriptor "REDIRECT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    } while (redirs != (redirect *)0x0);\n  }" { (do_statement "do {\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    } while (redirs != (redirect *)0x0);" do (compound_statement "{\n      if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      redirs = redirs->next;\n    }" { (if_statement "if ((redirs->rflags & 1) == 0) {\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" if (parenthesized_expression "((redirs->rflags & 1) == 0)" ( (binary_expression "(redirs->rflags & 1) == 0" (parenthesized_expression "(redirs->rflags & 1)" ( (binary_expression "redirs->rflags & 1" (field_expression "redirs->rflags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" { (if_statement "if ((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" if (parenthesized_expression "((redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0))" ( (binary_expression "(redirs->instruction < (r_move_output|r_reading_until)) &&\n           (uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)" (parenthesized_expression "(redirs->instruction < (r_move_output|r_reading_until))" ( (binary_expression "redirs->instruction < (r_move_output|r_reading_until)" (field_expression "redirs->instruction" identifier -> field_identifier) < (parenthesized_expression "(r_move_output|r_reading_until)" ( (binary_expression "r_move_output|r_reading_until" identifier | identifier) ))) )) && (parenthesized_expression "(uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0)" ( (comma_expression "uVar2 = 1 << ((byte)redirs->instruction & 0x1f), (uVar2 & 0xfd489) == 0" (assignment_expression "uVar2 = 1 << ((byte)redirs->instruction & 0x1f)" identifier = (binary_expression "1 << ((byte)redirs->instruction & 0x1f)" number_literal << (parenthesized_expression "((byte)redirs->instruction & 0x1f)" ( (binary_expression "(byte)redirs->instruction & 0x1f" (cast_expression "(byte)redirs->instruction" ( (type_descriptor "byte" type_identifier) ) (field_expression "redirs->instruction" identifier -> field_identifier)) & number_literal) )))) , (binary_expression "(uVar2 & 0xfd489) == 0" (parenthesized_expression "(uVar2 & 0xfd489)" ( (binary_expression "uVar2 & 0xfd489" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" { (if_statement "if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }" if (parenthesized_expression "((uVar2 & 0x936) == 0)" ( (binary_expression "(uVar2 & 0x936) == 0" (parenthesized_expression "(uVar2 & 0x936)" ( (binary_expression "uVar2 & 0x936" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }\n          }" { (if_statement "if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }" if (parenthesized_expression "((uVar2 & 0x2240) != 0)" ( (binary_expression "(uVar2 & 0x2240) != 0" (parenthesized_expression "(uVar2 & 0x2240)" ( (binary_expression "uVar2 & 0x2240" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);\n            }" { (expression_statement "iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0);" (assignment_expression "iVar1 = iVar1 + (uint)((redirs->redirector).dest == 0)" identifier = (binary_expression "iVar1 + (uint)((redirs->redirector).dest == 0)" identifier + (call_expression "(uint)((redirs->redirector).dest == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((redirs->redirector).dest == 0)" ( (binary_expression "(redirs->redirector).dest == 0" (field_expression "(redirs->redirector).dest" (parenthesized_expression "(redirs->redirector)" ( (field_expression "redirs->redirector" identifier -> field_identifier) )) . field_identifier) == number_literal) ))))) ;) })) }) (else_clause "else {\n            iVar1 = iVar1 + 1;\n          }" else (compound_statement "{\n            iVar1 = iVar1 + 1;\n          }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }))) })) })) (expression_statement "redirs = redirs->next;" (assignment_expression "redirs = redirs->next" identifier = (field_expression "redirs->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(redirs != (redirect *)0x0)" ( (binary_expression "redirs != (redirect *)0x0" identifier != (cast_expression "(redirect *)0x0" ( (type_descriptor "redirect *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int stdin_redirects(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}\n\n" (function_definition "int stdin_redirects(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "stdin_redirects(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" { (do_statement "do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);" do (compound_statement "{\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    }" { (if_statement "if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" if (parenthesized_expression "((*(byte *)(param_1 + 2) & 1) == 0)" ( (binary_expression "(*(byte *)(param_1 + 2) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 2) & 1)" ( (binary_expression "*(byte *)(param_1 + 2) & 1" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" { (if_statement "if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" if (parenthesized_expression "(((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0))" ( (binary_expression "((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)" (parenthesized_expression "((uint)param_1[4] < 0x14)" ( (binary_expression "(uint)param_1[4] < 0x14" (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < number_literal) )) && (parenthesized_expression "(uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)" ( (comma_expression "uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0" (assignment_expression "uVar2 = 1 << ((byte)param_1[4] & 0x1f)" identifier = (binary_expression "1 << ((byte)param_1[4] & 0x1f)" number_literal << (parenthesized_expression "((byte)param_1[4] & 0x1f)" ( (binary_expression "(byte)param_1[4] & 0x1f" (cast_expression "(byte)param_1[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) & number_literal) )))) , (binary_expression "(uVar2 & 0xfd489) == 0" (parenthesized_expression "(uVar2 & 0xfd489)" ( (binary_expression "uVar2 & 0xfd489" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" { (if_statement "if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }" if (parenthesized_expression "((uVar2 & 0x936) == 0)" ( (binary_expression "(uVar2 & 0x936) == 0" (parenthesized_expression "(uVar2 & 0x936)" ( (binary_expression "uVar2 & 0x936" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }" { (if_statement "if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }" if (parenthesized_expression "((uVar2 & 0x2240) != 0)" ( (binary_expression "(uVar2 & 0x2240) != 0" (parenthesized_expression "(uVar2 & 0x2240)" ( (binary_expression "uVar2 & 0x2240" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }" { (expression_statement "iVar1 = iVar1 + (uint)(param_1[1] == 0);" (assignment_expression "iVar1 = iVar1 + (uint)(param_1[1] == 0)" identifier = (binary_expression "iVar1 + (uint)(param_1[1] == 0)" identifier + (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))))) ;) })) }) (else_clause "else {\n            iVar1 = iVar1 + 1;\n          }" else (compound_statement "{\n            iVar1 = iVar1 + 1;\n          }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }))) })) })) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) while (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) & LIT) )))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int stdin_redirects(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "stdin_redirects(int *param_1)" (identifier "stdin_redirects") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 0;\n  if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != (int *)0x0) {\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);" (do "do") (compound_statement "{\n      if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }\n      param_1 = (int *)*param_1;\n    }" ({ "{") (if_statement "if ((*(byte *)(param_1 + 2) & 1) == 0) {\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 2) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 2) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 2) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 2) & 1" (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }\n      }" ({ "{") (if_statement "if (((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" (if "if") (parenthesized_expression "(((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0))" (( "(") (binary_expression "((uint)param_1[4] < 0x14) &&\n           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)" (parenthesized_expression "((uint)param_1[4] < 0x14)" (( "(") (binary_expression "(uint)param_1[4] < 0x14" (cast_expression "(uint)param_1[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (< "<") (number_literal "0x14")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)" (( "(") (comma_expression "uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0" (assignment_expression "uVar2 = 1 << ((byte)param_1[4] & 0x1f)" (identifier "uVar2") (= "=") (binary_expression "1 << ((byte)param_1[4] & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)param_1[4] & 0x1f)" (( "(") (binary_expression "(byte)param_1[4] & 0x1f" (cast_expression "(byte)param_1[4]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (& "&") (number_literal "0x1f")) () ")")))) (, ",") (binary_expression "(uVar2 & 0xfd489) == 0" (parenthesized_expression "(uVar2 & 0xfd489)" (( "(") (binary_expression "uVar2 & 0xfd489" (identifier "uVar2") (& "&") (number_literal "0xfd489")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }\n        }" ({ "{") (if_statement "if ((uVar2 & 0x936) == 0) {\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }\n          else {\n            iVar1 = iVar1 + 1;\n          }" (if "if") (parenthesized_expression "((uVar2 & 0x936) == 0)" (( "(") (binary_expression "(uVar2 & 0x936) == 0" (parenthesized_expression "(uVar2 & 0x936)" (( "(") (binary_expression "uVar2 & 0x936" (identifier "uVar2") (& "&") (number_literal "0x936")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }\n          }" ({ "{") (if_statement "if ((uVar2 & 0x2240) != 0) {\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }" (if "if") (parenthesized_expression "((uVar2 & 0x2240) != 0)" (( "(") (binary_expression "(uVar2 & 0x2240) != 0" (parenthesized_expression "(uVar2 & 0x2240)" (( "(") (binary_expression "uVar2 & 0x2240" (identifier "uVar2") (& "&") (number_literal "0x2240")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              iVar1 = iVar1 + (uint)(param_1[1] == 0);\n            }" ({ "{") (expression_statement "iVar1 = iVar1 + (uint)(param_1[1] == 0);" (assignment_expression "iVar1 = iVar1 + (uint)(param_1[1] == 0)" (identifier "iVar1") (= "=") (binary_expression "iVar1 + (uint)(param_1[1] == 0)" (identifier "iVar1") (+ "+") (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            iVar1 = iVar1 + 1;\n          }" (else "else") (compound_statement "{\n            iVar1 = iVar1 + 1;\n          }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}"))) (} "}"))) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" (identifier "param_1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *var_1)

{
  int var_5;
  type_2 var_4;
  
  var_5 = 0;
  if (var_1 != (type_1 *)0x0) {
    do {
      if ((var_1->rflags & 1) == 0) {
        if ((var_1->instruction < (var_2|var_3)) &&
           (var_4 = 1 << ((type_3)var_1->instruction & 0x1f), (var_4 & 0xfd489) == 0)) {
          if ((var_4 & 0x936) == 0) {
            if ((var_4 & 0x2240) != 0) {
              var_5 = var_5 + (type_2)((var_1->redirector).dest == 0);
            }
          }
          else {
            var_5 = var_5 + 1;
          }
        }
      }
      var_1 = var_1->next;
    } while (var_1 != (type_4 *)0x0);
  }
  return var_5;
}


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

int MASKED(int *param_1)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = 0;
  if (param_1 != (int *)0x0) {
    do {
      if ((*(byte *)(param_1 + 2) & 1) == 0) {
        if (((uint)param_1[4] < 0x14) &&
           (uVar2 = 1 << ((byte)param_1[4] & 0x1f), (uVar2 & 0xfd489) == 0)) {
          if ((uVar2 & 0x936) == 0) {
            if ((uVar2 & 0x2240) != 0) {
              iVar1 = iVar1 + (uint)(param_1[1] == 0);
            }
          }
          else {
            iVar1 = iVar1 + 1;
          }
        }
      }
      param_1 = (int *)*param_1;
    } while (param_1 != (int *)0x0);
  }
  return iVar1;
}

