
int fg_builtin(WORD_LIST *list)

{
  int iVar1;
  word_list *pwVar2;
  WORD_DESC *pWVar3;
  word_list *pwVar4;
  char *pcVar5;
  WORD_LIST *list_00;
  int in_t9;
  
  if ((list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0)) {
    pcVar5 = list->word->word;
    if ((*pcVar5 == '-') &&
       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),
       iVar1 == 0)) {
      builtin_help();
      return 0x102;
    }
  }
  if (**(int **)(in_t9 + 0x8ba9c) == 0) {
    sh_nojobs((char *)0x0);
    return 1;
  }
  iVar1 = no_options(list);
  if (iVar1 == 0) {
    list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);
    if (list_00 != (WORD_LIST *)0x0) {
      pwVar2 = list_00->next;
      if (list_00->next == (word_list *)0x0) {
        pWVar3 = list_00->word;
      }
      else {
        do {
          pwVar4 = pwVar2;
          pwVar2 = pwVar4->next;
        } while (pwVar2 != (word_list *)0x0);
        pWVar3 = pwVar4->word;
      }
      if (*pWVar3->word == '&') {
        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));
        return iVar1;
      }
    }
    iVar1 = fg_bg(list_00,1);
    return iVar1;
  }
  return 0x102;
}



undefined4 fg_builtin(int param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int *piVar5;
  char *pcVar6;
  undefined4 *puVar7;
  
  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||
      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||
     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {
    if (*(int *)PTR_job_control_001448a8 != 0) {
      iVar1 = no_options(param_1);
      if (iVar1 != 0) {
        return 0x102;
      }
      puVar7 = *(undefined4 **)PTR_loptend_00145864;
      if (puVar7 != (undefined4 *)0x0) {
        piVar2 = (int *)*puVar7;
        if ((int *)*puVar7 == (int *)0x0) {
          puVar4 = (undefined4 *)puVar7[1];
        }
        else {
          do {
            piVar5 = piVar2;
            piVar2 = (int *)*piVar5;
          } while (piVar2 != (int *)0x0);
          puVar4 = (undefined4 *)piVar5[1];
        }
        if (*(char *)*puVar4 == '&') {
          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');
          return uVar3;
        }
      }
      uVar3 = FUN_000b8bc0(puVar7,1);
      return uVar3;
    }
    sh_nojobs(0);
    uVar3 = 1;
  }
  else {
    builtin_help();
    uVar3 = 0x102;
  }
  return uVar3;
}


lui gp,0x9
addiu gp,gp,0x3734
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
beq a0,zero,0x000b8e50
_sw ra,0x1c(sp)
lw v0,0x4(a0)
beq v0,zero,0x000b8e50
_nop
lw a0,0x0(v0)
li v0,0x2d
lb v1,0x0(a0)
beq v1,v0,0x000b8ef4
_lw a1,-0x7f94(gp)
lw v0,-0x7c98(gp)
lw v0,0x0(v0)
beq v0,zero,0x000b8ed4
_lw t9,-0x6c90(gp)
bal 0x000b01c8
_or a0,s0,zero
bne v0,zero,0x000b8f38
_lw gp,0x10(sp)
lw v0,-0x6cdc(gp)
lw a0,0x0(v0)
beq a0,zero,0x000b8ebc
_lw t9,-0x6bac(gp)
lw v1,0x0(a0)
bne v1,zero,0x000b8e98
_nop
b 0x000b8f4c
_or v1,a0,zero
or v1,v0,zero
lw v0,0x0(v1)
bne v0,zero,0x000b8e94
_nop
lw v0,0x4(v1)
li v1,0x26
lw v0,0x0(v0)
lb a1,0x0(v0)
beq a1,v1,0x000b8f1c
_lw t9,-0x6bac(gp)
li a1,0x1
lw ra,0x1c(sp)
lw s0,0x18(sp)
addiu t9,t9,-0x7440
b 0x000b8bc0
_addiu sp,sp,0x20
lw t9,-0x6ba8(gp)
bal 0x000b0804
_or a0,zero,zero
li v0,0x1
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x5ff8(gp)
jalr t9
_addiu a1,a1,-0x7204
bne v0,zero,0x000b8e50
_lw gp,0x10(sp)
lw t9,-0x6ce0(gp)
bal 0x000b9c08
_nop
b 0x000b8ee4
_li v0,0x102
lb a1,0x1(v0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
addiu t9,t9,-0x7440
addiu sp,sp,0x20
b 0x000b8bc0
_sltu a1,zero,a1
lw ra,0x1c(sp)
li v0,0x102
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
b 0x000b8ea8
_lw v0,0x4(v1)
(translation_unit "undefined4 fg_builtin(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 fg_builtin(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "fg_builtin(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (if_statement "if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }" if (parenthesized_expression "((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0))" ( (binary_expression "(((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)" (parenthesized_expression "(((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-'))" ( (binary_expression "((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')" (parenthesized_expression "((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0))" ( (binary_expression "(param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) || (parenthesized_expression "(pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')" ( (comma_expression "pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-'" (assignment_expression "pcVar6 = (char *)**(undefined4 **)(param_1 + 4)" identifier = (cast_expression "(char *)**(undefined4 **)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 4)" * (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) , (binary_expression "*pcVar6 != '-'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'-'" ' character '))) ))) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204)" identifier = (call_expression "(*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204)" (parenthesized_expression "(*(code *)PTR_strcmp_00146548)" ( (pointer_expression "*(code *)PTR_strcmp_00146548" * (cast_expression "(code *)PTR_strcmp_00146548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_001445ac + -0x7204)" ( identifier , (binary_expression "PTR_DAT_001445ac + -0x7204" identifier + number_literal) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }" { (if_statement "if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }" if (parenthesized_expression "(*(int *)PTR_job_control_001448a8 != 0)" ( (binary_expression "*(int *)PTR_job_control_001448a8 != 0" (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }" { (expression_statement "iVar1 = no_options(param_1);" (assignment_expression "iVar1 = no_options(param_1)" identifier = (call_expression "no_options(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return 0x102;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return 0x102;\n      }" { (return_statement "return 0x102;" return number_literal ;) })) (expression_statement "puVar7 = *(undefined4 **)PTR_loptend_00145864;" (assignment_expression "puVar7 = *(undefined4 **)PTR_loptend_00145864" identifier = (pointer_expression "*(undefined4 **)PTR_loptend_00145864" * (cast_expression "(undefined4 **)PTR_loptend_00145864" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }" if (parenthesized_expression "(puVar7 != (undefined4 *)0x0)" ( (binary_expression "puVar7 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }" { (expression_statement "piVar2 = (int *)*puVar7;" (assignment_expression "piVar2 = (int *)*puVar7" identifier = (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (if_statement "if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" if (parenthesized_expression "((int *)*puVar7 == (int *)0x0)" ( (binary_expression "(int *)*puVar7 == (int *)0x0" (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar4 = (undefined4 *)puVar7[1];\n        }" { (expression_statement "puVar4 = (undefined4 *)puVar7[1];" (assignment_expression "puVar4 = (undefined4 *)puVar7[1]" identifier = (cast_expression "(undefined4 *)puVar7[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" else (compound_statement "{\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" { (do_statement "do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);" do (compound_statement "{\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          }" { (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (expression_statement "piVar2 = (int *)*piVar5;" (assignment_expression "piVar2 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar4 = (undefined4 *)piVar5[1];" (assignment_expression "puVar4 = (undefined4 *)piVar5[1]" identifier = (cast_expression "(undefined4 *)piVar5[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }" if (parenthesized_expression "(*(char *)*puVar4 == '&')" ( (binary_expression "*(char *)*puVar4 == '&'" (pointer_expression "*(char *)*puVar4" * (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) == (char_literal "'&'" ' character ')) )) (compound_statement "{\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }" { (expression_statement "uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');" (assignment_expression "uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0')" identifier = (call_expression "FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0')" identifier (argument_list "(puVar7,((char *)*puVar4)[1] != '\0')" ( identifier , (binary_expression "((char *)*puVar4)[1] != '\0'" (subscript_expression "((char *)*puVar4)[1]" (parenthesized_expression "((char *)*puVar4)" ( (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) )) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) (return_statement "return uVar3;" return identifier ;) })) })) (expression_statement "uVar3 = FUN_000b8bc0(puVar7,1);" (assignment_expression "uVar3 = FUN_000b8bc0(puVar7,1)" identifier = (call_expression "FUN_000b8bc0(puVar7,1)" identifier (argument_list "(puVar7,1)" ( identifier , number_literal )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "sh_nojobs(0);" (call_expression "sh_nojobs(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    builtin_help();\n    uVar3 = 0x102;\n  }" else (compound_statement "{\n    builtin_help();\n    uVar3 = 0x102;\n  }" { (expression_statement "builtin_help();" (call_expression "builtin_help()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = 0x102;" (assignment_expression "uVar3 = 0x102" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int fg_builtin(WORD_LIST *list)\n\n{\n  int iVar1;\n  word_list *pwVar2;\n  WORD_DESC *pWVar3;\n  word_list *pwVar4;\n  char *pcVar5;\n  WORD_LIST *list_00;\n  int in_t9;\n  \n  if ((list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0)) {\n    pcVar5 = list->word->word;\n    if ((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)) {\n      builtin_help();\n      return 0x102;\n    }\n  }\n  if (**(int **)(in_t9 + 0x8ba9c) == 0) {\n    sh_nojobs((char *)0x0);\n    return 1;\n  }\n  iVar1 = no_options(list);\n  if (iVar1 == 0) {\n    list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);\n    if (list_00 != (WORD_LIST *)0x0) {\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }\n    iVar1 = fg_bg(list_00,1);\n    return iVar1;\n  }\n  return 0x102;\n}\n\n" (function_definition "int fg_builtin(WORD_LIST *list)\n\n{\n  int iVar1;\n  word_list *pwVar2;\n  WORD_DESC *pWVar3;\n  word_list *pwVar4;\n  char *pcVar5;\n  WORD_LIST *list_00;\n  int in_t9;\n  \n  if ((list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0)) {\n    pcVar5 = list->word->word;\n    if ((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)) {\n      builtin_help();\n      return 0x102;\n    }\n  }\n  if (**(int **)(in_t9 + 0x8ba9c) == 0) {\n    sh_nojobs((char *)0x0);\n    return 1;\n  }\n  iVar1 = no_options(list);\n  if (iVar1 == 0) {\n    list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);\n    if (list_00 != (WORD_LIST *)0x0) {\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }\n    iVar1 = fg_bg(list_00,1);\n    return iVar1;\n  }\n  return 0x102;\n}" primitive_type (function_declarator "fg_builtin(WORD_LIST *list)" identifier (parameter_list "(WORD_LIST *list)" ( (parameter_declaration "WORD_LIST *list" type_identifier (pointer_declarator "*list" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  word_list *pwVar2;\n  WORD_DESC *pWVar3;\n  word_list *pwVar4;\n  char *pcVar5;\n  WORD_LIST *list_00;\n  int in_t9;\n  \n  if ((list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0)) {\n    pcVar5 = list->word->word;\n    if ((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)) {\n      builtin_help();\n      return 0x102;\n    }\n  }\n  if (**(int **)(in_t9 + 0x8ba9c) == 0) {\n    sh_nojobs((char *)0x0);\n    return 1;\n  }\n  iVar1 = no_options(list);\n  if (iVar1 == 0) {\n    list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);\n    if (list_00 != (WORD_LIST *)0x0) {\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }\n    iVar1 = fg_bg(list_00,1);\n    return iVar1;\n  }\n  return 0x102;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "word_list *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "WORD_DESC *pWVar3;" type_identifier (pointer_declarator "*pWVar3" * identifier) ;) (declaration "word_list *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "WORD_LIST *list_00;" type_identifier (pointer_declarator "*list_00" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (if_statement "if ((list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0)) {\n    pcVar5 = list->word->word;\n    if ((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)) {\n      builtin_help();\n      return 0x102;\n    }\n  }" if (parenthesized_expression "((list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0))" ( (binary_expression "(list != (WORD_LIST *)0x0) && (list->word != (WORD_DESC *)0x0)" (parenthesized_expression "(list != (WORD_LIST *)0x0)" ( (binary_expression "list != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(list->word != (WORD_DESC *)0x0)" ( (binary_expression "list->word != (WORD_DESC *)0x0" (field_expression "list->word" identifier -> field_identifier) != (cast_expression "(WORD_DESC *)0x0" ( (type_descriptor "WORD_DESC *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    pcVar5 = list->word->word;\n    if ((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)) {\n      builtin_help();\n      return 0x102;\n    }\n  }" { (expression_statement "pcVar5 = list->word->word;" (assignment_expression "pcVar5 = list->word->word" identifier = (field_expression "list->word->word" (field_expression "list->word" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if ((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)) {\n      builtin_help();\n      return 0x102;\n    }" if (parenthesized_expression "((*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0))" ( (binary_expression "(*pcVar5 == '-') &&\n       (iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)" (parenthesized_expression "(*pcVar5 == '-')" ( (binary_expression "*pcVar5 == '-'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0)" ( (comma_expression "iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204),\n       iVar1 == 0" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204)" identifier = (call_expression "(**(code **)(in_t9 + 0x8d73c))(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204)" (parenthesized_expression "(**(code **)(in_t9 + 0x8d73c))" ( (pointer_expression "**(code **)(in_t9 + 0x8d73c)" * (pointer_expression "*(code **)(in_t9 + 0x8d73c)" * (cast_expression "(code **)(in_t9 + 0x8d73c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x8d73c)" ( (binary_expression "in_t9 + 0x8d73c" identifier + number_literal) ))))) )) (argument_list "(pcVar5,*(int *)(in_t9 + 0x8b7a0) + -0x7204)" ( identifier , (binary_expression "*(int *)(in_t9 + 0x8b7a0) + -0x7204" (pointer_expression "*(int *)(in_t9 + 0x8b7a0)" * (cast_expression "(int *)(in_t9 + 0x8b7a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x8b7a0)" ( (binary_expression "in_t9 + 0x8b7a0" identifier + number_literal) )))) + number_literal) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      builtin_help();\n      return 0x102;\n    }" { (expression_statement "builtin_help();" (call_expression "builtin_help()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0x102;" return number_literal ;) })) })) (if_statement "if (**(int **)(in_t9 + 0x8ba9c) == 0) {\n    sh_nojobs((char *)0x0);\n    return 1;\n  }" if (parenthesized_expression "(**(int **)(in_t9 + 0x8ba9c) == 0)" ( (binary_expression "**(int **)(in_t9 + 0x8ba9c) == 0" (pointer_expression "**(int **)(in_t9 + 0x8ba9c)" * (pointer_expression "*(int **)(in_t9 + 0x8ba9c)" * (cast_expression "(int **)(in_t9 + 0x8ba9c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x8ba9c)" ( (binary_expression "in_t9 + 0x8ba9c" identifier + number_literal) ))))) == number_literal) )) (compound_statement "{\n    sh_nojobs((char *)0x0);\n    return 1;\n  }" { (expression_statement "sh_nojobs((char *)0x0);" (call_expression "sh_nojobs((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = no_options(list);" (assignment_expression "iVar1 = no_options(list)" identifier = (call_expression "no_options(list)" identifier (argument_list "(list)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);\n    if (list_00 != (WORD_LIST *)0x0) {\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }\n    iVar1 = fg_bg(list_00,1);\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);\n    if (list_00 != (WORD_LIST *)0x0) {\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }\n    iVar1 = fg_bg(list_00,1);\n    return iVar1;\n  }" { (expression_statement "list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58);" (assignment_expression "list_00 = (WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58)" identifier = (cast_expression "(WORD_LIST *)**(undefined4 **)(in_t9 + 0x8ca58)" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(in_t9 + 0x8ca58)" * (pointer_expression "*(undefined4 **)(in_t9 + 0x8ca58)" * (cast_expression "(undefined4 **)(in_t9 + 0x8ca58)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x8ca58)" ( (binary_expression "in_t9 + 0x8ca58" identifier + number_literal) ))))))) ;) (if_statement "if (list_00 != (WORD_LIST *)0x0) {\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }" if (parenthesized_expression "(list_00 != (WORD_LIST *)0x0)" ( (binary_expression "list_00 != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar2 = list_00->next;\n      if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }\n      if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }\n    }" { (expression_statement "pwVar2 = list_00->next;" (assignment_expression "pwVar2 = list_00->next" identifier = (field_expression "list_00->next" identifier -> field_identifier)) ;) (if_statement "if (list_00->next == (word_list *)0x0) {\n        pWVar3 = list_00->word;\n      }\n      else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }" if (parenthesized_expression "(list_00->next == (word_list *)0x0)" ( (binary_expression "list_00->next == (word_list *)0x0" (field_expression "list_00->next" identifier -> field_identifier) == (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pWVar3 = list_00->word;\n      }" { (expression_statement "pWVar3 = list_00->word;" (assignment_expression "pWVar3 = list_00->word" identifier = (field_expression "list_00->word" identifier -> field_identifier)) ;) }) (else_clause "else {\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }" else (compound_statement "{\n        do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);\n        pWVar3 = pwVar4->word;\n      }" { (do_statement "do {\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        } while (pwVar2 != (word_list *)0x0);" do (compound_statement "{\n          pwVar4 = pwVar2;\n          pwVar2 = pwVar4->next;\n        }" { (expression_statement "pwVar4 = pwVar2;" (assignment_expression "pwVar4 = pwVar2" identifier = identifier) ;) (expression_statement "pwVar2 = pwVar4->next;" (assignment_expression "pwVar2 = pwVar4->next" identifier = (field_expression "pwVar4->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pwVar2 != (word_list *)0x0)" ( (binary_expression "pwVar2 != (word_list *)0x0" identifier != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pWVar3 = pwVar4->word;" (assignment_expression "pWVar3 = pwVar4->word" identifier = (field_expression "pwVar4->word" identifier -> field_identifier)) ;) }))) (if_statement "if (*pWVar3->word == '&') {\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }" if (parenthesized_expression "(*pWVar3->word == '&')" ( (binary_expression "*pWVar3->word == '&'" (pointer_expression "*pWVar3->word" * (field_expression "pWVar3->word" identifier -> field_identifier)) == (char_literal "'&'" ' character ')) )) (compound_statement "{\n        iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));\n        return iVar1;\n      }" { (expression_statement "iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'));" (assignment_expression "iVar1 = fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'))" identifier = (call_expression "fg_bg(list_00,(uint)(pWVar3->word[1] != '\0'))" identifier (argument_list "(list_00,(uint)(pWVar3->word[1] != '\0'))" ( identifier , (call_expression "(uint)(pWVar3->word[1] != '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pWVar3->word[1] != '\0')" ( (binary_expression "pWVar3->word[1] != '\0'" (subscript_expression "pWVar3->word[1]" (field_expression "pWVar3->word" identifier -> field_identifier) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) ))) )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "iVar1 = fg_bg(list_00,1);" (assignment_expression "iVar1 = fg_bg(list_00,1)" identifier = (call_expression "fg_bg(list_00,1)" identifier (argument_list "(list_00,1)" ( identifier , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0x102;" return number_literal ;) })))
(translation_unit "undefined4 fg_builtin(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 fg_builtin(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "fg_builtin(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (if_statement "if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }" if (parenthesized_expression "((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0))" ( (binary_expression "(((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)" (parenthesized_expression "(((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-'))" ( (binary_expression "((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')" (parenthesized_expression "((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0))" ( (binary_expression "(param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) || (parenthesized_expression "(pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')" ( (comma_expression "pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-'" (assignment_expression "pcVar6 = (char *)**(undefined4 **)(param_1 + 4)" identifier = (cast_expression "(char *)**(undefined4 **)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 4)" * (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) , (binary_expression "*pcVar6 != '-'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'-'" ' character '))) ))) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204)" identifier = (call_expression "(*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204)" (parenthesized_expression "(*(code *)PTR_strcmp_00146548)" ( (pointer_expression "*(code *)PTR_strcmp_00146548" * (cast_expression "(code *)PTR_strcmp_00146548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_001445ac + -0x7204)" ( identifier , (binary_expression "PTR_DAT_001445ac + -0x7204" identifier + number_literal) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }" { (if_statement "if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }" if (parenthesized_expression "(*(int *)PTR_job_control_001448a8 != 0)" ( (binary_expression "*(int *)PTR_job_control_001448a8 != 0" (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }" { (expression_statement "iVar1 = no_options(param_1);" (assignment_expression "iVar1 = no_options(param_1)" identifier = (call_expression "no_options(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return 0x102;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return 0x102;\n      }" { (return_statement "return 0x102;" return number_literal ;) })) (expression_statement "puVar7 = *(undefined4 **)PTR_loptend_00145864;" (assignment_expression "puVar7 = *(undefined4 **)PTR_loptend_00145864" identifier = (pointer_expression "*(undefined4 **)PTR_loptend_00145864" * (cast_expression "(undefined4 **)PTR_loptend_00145864" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }" if (parenthesized_expression "(puVar7 != (undefined4 *)0x0)" ( (binary_expression "puVar7 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }" { (expression_statement "piVar2 = (int *)*puVar7;" (assignment_expression "piVar2 = (int *)*puVar7" identifier = (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (if_statement "if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" if (parenthesized_expression "((int *)*puVar7 == (int *)0x0)" ( (binary_expression "(int *)*puVar7 == (int *)0x0" (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar4 = (undefined4 *)puVar7[1];\n        }" { (expression_statement "puVar4 = (undefined4 *)puVar7[1];" (assignment_expression "puVar4 = (undefined4 *)puVar7[1]" identifier = (cast_expression "(undefined4 *)puVar7[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" else (compound_statement "{\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" { (do_statement "do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);" do (compound_statement "{\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          }" { (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (expression_statement "piVar2 = (int *)*piVar5;" (assignment_expression "piVar2 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar4 = (undefined4 *)piVar5[1];" (assignment_expression "puVar4 = (undefined4 *)piVar5[1]" identifier = (cast_expression "(undefined4 *)piVar5[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }" if (parenthesized_expression "(*(char *)*puVar4 == '&')" ( (binary_expression "*(char *)*puVar4 == '&'" (pointer_expression "*(char *)*puVar4" * (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) == (char_literal "'&'" ' character ')) )) (compound_statement "{\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }" { (expression_statement "uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');" (assignment_expression "uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0')" identifier = (call_expression "FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0')" identifier (argument_list "(puVar7,((char *)*puVar4)[1] != '\0')" ( identifier , (binary_expression "((char *)*puVar4)[1] != '\0'" (subscript_expression "((char *)*puVar4)[1]" (parenthesized_expression "((char *)*puVar4)" ( (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) )) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) (return_statement "return uVar3;" return identifier ;) })) })) (expression_statement "uVar3 = FUN_000b8bc0(puVar7,1);" (assignment_expression "uVar3 = FUN_000b8bc0(puVar7,1)" identifier = (call_expression "FUN_000b8bc0(puVar7,1)" identifier (argument_list "(puVar7,1)" ( identifier , number_literal )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "sh_nojobs(0);" (call_expression "sh_nojobs(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    builtin_help();\n    uVar3 = 0x102;\n  }" else (compound_statement "{\n    builtin_help();\n    uVar3 = 0x102;\n  }" { (expression_statement "builtin_help();" (call_expression "builtin_help()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = 0x102;" (assignment_expression "uVar3 = 0x102" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) , (binary_expression (pointer_expression * IDENT) != (char_literal ' character '))) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ]) != (char_literal ' escape_sequence ')) )))) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 fg_builtin(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "fg_builtin(int param_1)" (identifier "fg_builtin") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  \n  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (if_statement "if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }\n  else {\n    builtin_help();\n    uVar3 = 0x102;\n  }" (if "if") (parenthesized_expression "((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0))" (( "(") (binary_expression "(((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||\n     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)" (parenthesized_expression "(((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-'))" (( "(") (binary_expression "((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||\n      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')" (parenthesized_expression "((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0))" (( "(") (binary_expression "(param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 4)" (* "*") (cast_expression "(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')" (( "(") (comma_expression "pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-'" (assignment_expression "pcVar6 = (char *)**(undefined4 **)(param_1 + 4)" (identifier "pcVar6") (= "=") (cast_expression "(char *)**(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 4)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 4)" (* "*") (cast_expression "(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))))) (, ",") (binary_expression "*pcVar6 != '-'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (!= "!=") (char_literal "'-'" (' "'") (character "-") (' "'")))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204)" (parenthesized_expression "(*(code *)PTR_strcmp_00146548)" (( "(") (pointer_expression "*(code *)PTR_strcmp_00146548" (* "*") (cast_expression "(code *)PTR_strcmp_00146548" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_00146548"))) () ")")) (argument_list "(pcVar6,PTR_DAT_001445ac + -0x7204)" (( "(") (identifier "pcVar6") (, ",") (binary_expression "PTR_DAT_001445ac + -0x7204" (identifier "PTR_DAT_001445ac") (+ "+") (number_literal "-0x7204")) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }\n    sh_nojobs(0);\n    uVar3 = 1;\n  }" ({ "{") (if_statement "if (*(int *)PTR_job_control_001448a8 != 0) {\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(*(int *)PTR_job_control_001448a8 != 0)" (( "(") (binary_expression "*(int *)PTR_job_control_001448a8 != 0" (pointer_expression "*(int *)PTR_job_control_001448a8" (* "*") (cast_expression "(int *)PTR_job_control_001448a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_job_control_001448a8"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = no_options(param_1);\n      if (iVar1 != 0) {\n        return 0x102;\n      }\n      puVar7 = *(undefined4 **)PTR_loptend_00145864;\n      if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }\n      uVar3 = FUN_000b8bc0(puVar7,1);\n      return uVar3;\n    }" ({ "{") (expression_statement "iVar1 = no_options(param_1);" (assignment_expression "iVar1 = no_options(param_1)" (identifier "iVar1") (= "=") (call_expression "no_options(param_1)" (identifier "no_options") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return 0x102;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return 0x102;\n      }" ({ "{") (return_statement "return 0x102;" (return "return") (number_literal "0x102") (; ";")) (} "}"))) (expression_statement "puVar7 = *(undefined4 **)PTR_loptend_00145864;" (assignment_expression "puVar7 = *(undefined4 **)PTR_loptend_00145864" (identifier "puVar7") (= "=") (pointer_expression "*(undefined4 **)PTR_loptend_00145864" (* "*") (cast_expression "(undefined4 **)PTR_loptend_00145864" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_loptend_00145864")))) (; ";")) (if_statement "if (puVar7 != (undefined4 *)0x0) {\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }" (if "if") (parenthesized_expression "(puVar7 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar7 != (undefined4 *)0x0" (identifier "puVar7") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        piVar2 = (int *)*puVar7;\n        if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }\n        if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }\n      }" ({ "{") (expression_statement "piVar2 = (int *)*puVar7;" (assignment_expression "piVar2 = (int *)*puVar7" (identifier "piVar2") (= "=") (cast_expression "(int *)*puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")))) (; ";")) (if_statement "if ((int *)*puVar7 == (int *)0x0) {\n          puVar4 = (undefined4 *)puVar7[1];\n        }\n        else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" (if "if") (parenthesized_expression "((int *)*puVar7 == (int *)0x0)" (( "(") (binary_expression "(int *)*puVar7 == (int *)0x0" (cast_expression "(int *)*puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          puVar4 = (undefined4 *)puVar7[1];\n        }" ({ "{") (expression_statement "puVar4 = (undefined4 *)puVar7[1];" (assignment_expression "puVar4 = (undefined4 *)puVar7[1]" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)puVar7[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" (else "else") (compound_statement "{\n          do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);\n          puVar4 = (undefined4 *)piVar5[1];\n        }" ({ "{") (do_statement "do {\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n            piVar5 = piVar2;\n            piVar2 = (int *)*piVar5;\n          }" ({ "{") (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = (int *)*piVar5;" (assignment_expression "piVar2 = (int *)*piVar5" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "puVar4 = (undefined4 *)piVar5[1];" (assignment_expression "puVar4 = (undefined4 *)piVar5[1]" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)piVar5[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")))) (if_statement "if (*(char *)*puVar4 == '&') {\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }" (if "if") (parenthesized_expression "(*(char *)*puVar4 == '&')" (( "(") (binary_expression "*(char *)*puVar4 == '&'" (pointer_expression "*(char *)*puVar4" (* "*") (cast_expression "(char *)*puVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (== "==") (char_literal "'&'" (' "'") (character "&") (' "'"))) () ")")) (compound_statement "{\n          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');\n          return uVar3;\n        }" ({ "{") (expression_statement "uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');" (assignment_expression "uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0')" (identifier "uVar3") (= "=") (call_expression "FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0')" (identifier "FUN_000b8bc0") (argument_list "(puVar7,((char *)*puVar4)[1] != '\0')" (( "(") (identifier "puVar7") (, ",") (binary_expression "((char *)*puVar4)[1] != '\0'" (subscript_expression "((char *)*puVar4)[1]" (parenthesized_expression "((char *)*puVar4)" (( "(") (cast_expression "(char *)*puVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) () ")")) ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar3 = FUN_000b8bc0(puVar7,1);" (assignment_expression "uVar3 = FUN_000b8bc0(puVar7,1)" (identifier "uVar3") (= "=") (call_expression "FUN_000b8bc0(puVar7,1)" (identifier "FUN_000b8bc0") (argument_list "(puVar7,1)" (( "(") (identifier "puVar7") (, ",") (number_literal "1") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "sh_nojobs(0);" (call_expression "sh_nojobs(0)" (identifier "sh_nojobs") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    builtin_help();\n    uVar3 = 0x102;\n  }" (else "else") (compound_statement "{\n    builtin_help();\n    uVar3 = 0x102;\n  }" ({ "{") (expression_statement "builtin_help();" (call_expression "builtin_help()" (identifier "builtin_help") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar3 = 0x102;" (assignment_expression "uVar3 = 0x102" (identifier "uVar3") (= "=") (number_literal "0x102")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int function_1(type_1 *var_1)

{
  int var_3;
  type_2 *var_8;
  type_3 *pWVar3;
  type_2 *pwVar4;
  char *pcVar5;
  type_1 *var_7;
  int var_2;
  
  if ((var_1 != (type_1 *)0x0) && (var_1->word != (type_3 *)0x0)) {
    pcVar5 = var_1->word->word;
    if ((*pcVar5 == '-') &&
       (var_3 = (**(type_4 **)(var_2 + 0x8d73c))(pcVar5,*(int *)(var_2 + 0x8b7a0) + -0x7204),
       var_3 == 0)) {
      var_4();
      return 0x102;
    }
  }
  if (**(int **)(var_2 + 0x8ba9c) == 0) {
    var_5((char *)0x0);
    return 1;
  }
  var_3 = var_6(var_1);
  if (var_3 == 0) {
    var_7 = (type_1 *)**(type_5 **)(var_2 + 0x8ca58);
    if (var_7 != (type_1 *)0x0) {
      var_8 = var_7->next;
      if (var_7->next == (type_2 *)0x0) {
        pWVar3 = var_7->word;
      }
      else {
        do {
          pwVar4 = var_8;
          var_8 = pwVar4->next;
        } while (var_8 != (type_2 *)0x0);
        pWVar3 = pwVar4->word;
      }
      if (*pWVar3->word == '&') {
        var_3 = var_9(var_7,(uint)(pWVar3->word[1] != '\0'));
        return var_3;
      }
    }
    var_3 = var_9(var_7,1);
    return var_3;
  }
  return 0x102;
}


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

undefined4 MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int *piVar5;
  char *pcVar6;
  undefined4 *puVar7;
  
  if ((((param_1 == 0) || (*(undefined4 **)(param_1 + 4) == (undefined4 *)0x0)) ||
      (pcVar6 = (char *)**(undefined4 **)(param_1 + 4), *pcVar6 != '-')) ||
     (iVar1 = (*(code *)PTR_strcmp_00146548)(pcVar6,PTR_DAT_001445ac + -0x7204), iVar1 != 0)) {
    if (*(int *)PTR_job_control_001448a8 != 0) {
      iVar1 = no_options(param_1);
      if (iVar1 != 0) {
        return 0x102;
      }
      puVar7 = *(undefined4 **)PTR_loptend_00145864;
      if (puVar7 != (undefined4 *)0x0) {
        piVar2 = (int *)*puVar7;
        if ((int *)*puVar7 == (int *)0x0) {
          puVar4 = (undefined4 *)puVar7[1];
        }
        else {
          do {
            piVar5 = piVar2;
            piVar2 = (int *)*piVar5;
          } while (piVar2 != (int *)0x0);
          puVar4 = (undefined4 *)piVar5[1];
        }
        if (*(char *)*puVar4 == '&') {
          uVar3 = FUN_000b8bc0(puVar7,((char *)*puVar4)[1] != '\0');
          return uVar3;
        }
      }
      uVar3 = FUN_000b8bc0(puVar7,1);
      return uVar3;
    }
    sh_nojobs(0);
    uVar3 = 1;
  }
  else {
    builtin_help();
    uVar3 = 0x102;
  }
  return uVar3;
}

