
sh_parser_state_t * save_parser_state(sh_parser_state_t *ps)

{
  undefined *puVar1;
  undefined *puVar2;
  int *piVar3;
  ARRAY *pAVar4;
  REDIRECT **ppRVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  int iVar8;
  REDIRECT *pRVar9;
  REDIRECT *pRVar10;
  char *pcVar11;
  REDIRECT *pRVar12;
  sh_builtin_func_t *psVar13;
  undefined4 *puVar14;
  
  if ((ps == (sh_parser_state_t *)0x0) &&
     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),
     ps == (sh_parser_state_t *)0x0)) {
    return (sh_parser_state_t *)0x0;
  }
  ps->parser_state = *(int *)PTR_parser_state_001448f8;
  piVar3 = save_token_state();
  ps->token_state = piVar3;
  puVar2 = PTR_eof_encountered_001449a8;
  ps->input_line_terminator = *(int *)(PTR_data_start_00144568 + 0x6b28);
  puVar1 = PTR_prompt_string_pointer_00144940;
  ps->eof_encountered = *(int *)puVar2;
  puVar2 = PTR_current_command_line_count_00144814;
  ps->prompt_string_pointer = *(char ***)puVar1;
  puVar1 = PTR_remember_on_history_00144668;
  ps->current_command_line_count = *(int *)puVar2;
  puVar2 = PTR_history_expansion_inhibited_00144a68;
  ps->remember_on_history = *(int *)puVar1;
  puVar1 = PTR_last_command_exit_value_001445e0;
  ps->history_expansion_inhibited = *(int *)puVar2;
  ps->last_command_exit_value = *(int *)puVar1;
  pAVar4 = save_pipestatus_array();
  ps->pipestatus = pAVar4;
  puVar2 = PTR_this_shell_builtin_00144a84;
  iVar8 = *(int *)PTR_here_doc_first_line_00144924;
  ps->last_shell_builtin = *(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80;
  puVar1 = PTR_expand_aliases_0014459c;
  psVar13 = *(sh_builtin_func_t **)puVar2;
  ps->here_doc_first_line = iVar8;
  ps->this_shell_builtin = psVar13;
  puVar2 = PTR_echo_input_at_read_00144724;
  ps->expand_aliases = *(int *)puVar1;
  puVar1 = PTR_need_here_doc_00144810;
  ps->echo_input_at_read = *(int *)puVar2;
  iVar8 = *(int *)puVar1;
  ps->need_here_doc = iVar8;
  if (iVar8 == 0) {
    ps->redir_stack[0] = (REDIRECT *)0x0;
  }
  else {
    ppRVar5 = ps->redir_stack;
    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);
    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);
    do {
      puVar7 = puVar6 + 4;
      pRVar12 = (REDIRECT *)puVar6[1];
      pRVar10 = (REDIRECT *)puVar6[2];
      pRVar9 = (REDIRECT *)puVar6[3];
      *ppRVar5 = (REDIRECT *)*puVar6;
      ppRVar5[1] = pRVar12;
      ppRVar5[2] = pRVar10;
      ppRVar5[3] = pRVar9;
      ppRVar5 = ppRVar5 + 4;
      puVar6 = puVar7;
    } while (puVar7 != puVar14);
  }
  puVar1 = PTR_data_start_00144568;
  pcVar11 = *(char **)(PTR_data_start_00144568 + 0x68e4);
  iVar8 = *(int *)(PTR_data_start_00144568 + 0x68e0);
  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;
  ps->token = pcVar11;
  ps->token_buffer_size = iVar8;
  *(undefined4 *)(puVar1 + 0x68e0) = 0;
  return ps;
}



undefined4 * save_parser_state(undefined4 *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 *puVar10;
  
  if ((param_1 == (undefined4 *)0x0) &&
     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))
  {
    return (undefined4 *)0x0;
  }
  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;
  uVar3 = save_token_state();
  param_1[1] = uVar3;
  puVar2 = PTR_eof_encountered_001449a8;
  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);
  puVar1 = PTR_prompt_string_pointer_00144940;
  param_1[5] = *(undefined4 *)puVar2;
  puVar2 = PTR_current_command_line_count_00144814;
  param_1[6] = *(undefined4 *)puVar1;
  puVar1 = PTR_remember_on_history_00144668;
  param_1[7] = *(undefined4 *)puVar2;
  puVar2 = PTR_history_expansion_inhibited_00144a68;
  param_1[8] = *(undefined4 *)puVar1;
  puVar1 = PTR_last_command_exit_value_001445e0;
  param_1[9] = *(undefined4 *)puVar2;
  param_1[10] = *(undefined4 *)puVar1;
  uVar3 = save_pipestatus_array();
  param_1[0xb] = uVar3;
  puVar2 = PTR_this_shell_builtin_00144a84;
  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;
  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;
  puVar1 = PTR_expand_aliases_0014459c;
  uVar9 = *(undefined4 *)puVar2;
  param_1[0x11] = uVar3;
  param_1[0xd] = uVar9;
  puVar2 = PTR_echo_input_at_read_00144724;
  param_1[0xe] = *(undefined4 *)puVar1;
  puVar1 = PTR_need_here_doc_00144810;
  param_1[0xf] = *(undefined4 *)puVar2;
  iVar5 = *(int *)puVar1;
  param_1[0x10] = iVar5;
  if (iVar5 == 0) {
    param_1[0x12] = 0;
  }
  else {
    puVar4 = param_1 + 0x12;
    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);
    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);
    do {
      puVar7 = puVar6 + 4;
      uVar8 = puVar6[1];
      uVar9 = puVar6[2];
      uVar3 = puVar6[3];
      *puVar4 = *puVar6;
      puVar4[1] = uVar8;
      puVar4[2] = uVar9;
      puVar4[3] = uVar3;
      puVar4 = puVar4 + 4;
      puVar6 = puVar7;
    } while (puVar7 != puVar10);
  }
  puVar1 = PTR_data_start_00144568;
  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);
  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);
  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;
  param_1[2] = uVar9;
  param_1[3] = uVar3;
  *(undefined4 *)(puVar1 + 0x68e0) = 0;
  return param_1;
}


lui gp,0x11
addiu gp,gp,-0x32e4
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x0003f9a0
_sw s0,0x18(sp)
or s0,a0,zero
lw v0,-0x7c48(gp)
lw t9,-0x7ac8(gp)
lw v0,0x0(v0)
bal 0x0003288c
_sw v0,0x0(s0)
lw gp,0x10(sp)
sw v0,0x4(s0)
lw v1,-0x7fd8(gp)
lw t9,-0x7ac4(gp)
lw t1,0x6b28(v1)
lw v1,-0x7b98(gp)
sw t1,0x10(s0)
lw t0,0x0(v1)
lw v1,-0x7c00(gp)
sw t0,0x14(s0)
lw a3,0x0(v1)
lw v1,-0x7d2c(gp)
sw a3,0x18(s0)
lw a2,0x0(v1)
lw v1,-0x7ed8(gp)
sw a2,0x1c(s0)
lw a1,0x0(v1)
lw v1,-0x7ad8(gp)
sw a1,0x20(s0)
lw a0,0x0(v1)
lw v1,-0x7f60(gp)
sw a0,0x24(s0)
lw v1,0x0(v1)
bal 0x0005e984
_sw v1,0x28(s0)
lw gp,0x10(sp)
sw v0,0x2c(s0)
lw v1,-0x7ac0(gp)
lw a0,-0x7c1c(gp)
lw t0,0x0(v1)
lw v1,-0x7abc(gp)
lw a0,0x0(a0)
sw t0,0x30(s0)
lw a3,0x0(v1)
lw v1,-0x7fa4(gp)
sw a0,0x44(s0)
sw a3,0x34(s0)
lw a2,0x0(v1)
lw v1,-0x7e1c(gp)
sw a2,0x38(s0)
lw a1,0x0(v1)
lw v1,-0x7d30(gp)
sw a1,0x3c(s0)
lw v1,0x0(v1)
bne v1,zero,0x0003f94c
_sw v1,0x40(s0)
sw zero,0x48(s0)
lw a0,-0x7fd8(gp)
or v0,s0,zero
lw v1,-0x7fd8(gp)
lw ra,0x1c(sp)
lw a2,0x68e4(a0)
lw a1,0x68e0(v1)
sw zero,0x68e4(a0)
sw a2,0x8(s0)
sw a1,0xc(s0)
sw zero,0x68e0(v1)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v1,-0x7fd8(gp)
addiu v0,s0,0x48
addiu v1,v1,0x6b3c
addiu t0,v1,0x40
lw a3,0x0(v1)
addiu v1,v1,0x10
lw a2,-0xc(v1)
lw a1,-0x8(v1)
lw a0,-0x4(v1)
swl a3,0x0(v0)
swr a3,0x3(v0)
swl a2,0x4(v0)
swr a2,0x7(v0)
swl a1,0x8(v0)
swr a1,0xb(v0)
swl a0,0xc(v0)
swr a0,0xf(v0)
bne v1,t0,0x0003f95c
_addiu v0,v0,0x10
b 0x0003f91c
_lw a0,-0x7fd8(gp)
lw t9,-0x7f90(gp)
jalr t9
_li a0,0x88
lw gp,0x10(sp)
bne v0,zero,0x0003f848
_or s0,v0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 * save_parser_state(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}\n\n" (function_definition "undefined4 * save_parser_state(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}" type_identifier (pointer_declarator "* save_parser_state(undefined4 *param_1)" * (function_declarator "save_parser_state(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (if_statement "if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))" ( (binary_expression "(param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0)" (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0)" ( (comma_expression "param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0" (assignment_expression "param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(0x88)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x88)" ( number_literal ))))) , (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*param_1 = *(undefined4 *)PTR_parser_state_001448f8;" (assignment_expression "*param_1 = *(undefined4 *)PTR_parser_state_001448f8" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(undefined4 *)PTR_parser_state_001448f8" * (cast_expression "(undefined4 *)PTR_parser_state_001448f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = save_token_state();" (assignment_expression "uVar3 = save_token_state()" identifier = (call_expression "save_token_state()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[1] = uVar3;" (assignment_expression "param_1[1] = uVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = PTR_eof_encountered_001449a8;" (assignment_expression "puVar2 = PTR_eof_encountered_001449a8" identifier = identifier) ;) (expression_statement "param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);" (assignment_expression "param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b28)" ( (binary_expression "PTR_data_start_00144568 + 0x6b28" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = PTR_prompt_string_pointer_00144940;" (assignment_expression "puVar1 = PTR_prompt_string_pointer_00144940" identifier = identifier) ;) (expression_statement "param_1[5] = *(undefined4 *)puVar2;" (assignment_expression "param_1[5] = *(undefined4 *)puVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = PTR_current_command_line_count_00144814;" (assignment_expression "puVar2 = PTR_current_command_line_count_00144814" identifier = identifier) ;) (expression_statement "param_1[6] = *(undefined4 *)puVar1;" (assignment_expression "param_1[6] = *(undefined4 *)puVar1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_remember_on_history_00144668;" (assignment_expression "puVar1 = PTR_remember_on_history_00144668" identifier = identifier) ;) (expression_statement "param_1[7] = *(undefined4 *)puVar2;" (assignment_expression "param_1[7] = *(undefined4 *)puVar2" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = PTR_history_expansion_inhibited_00144a68;" (assignment_expression "puVar2 = PTR_history_expansion_inhibited_00144a68" identifier = identifier) ;) (expression_statement "param_1[8] = *(undefined4 *)puVar1;" (assignment_expression "param_1[8] = *(undefined4 *)puVar1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_last_command_exit_value_001445e0;" (assignment_expression "puVar1 = PTR_last_command_exit_value_001445e0" identifier = identifier) ;) (expression_statement "param_1[9] = *(undefined4 *)puVar2;" (assignment_expression "param_1[9] = *(undefined4 *)puVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[10] = *(undefined4 *)puVar1;" (assignment_expression "param_1[10] = *(undefined4 *)puVar1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = save_pipestatus_array();" (assignment_expression "uVar3 = save_pipestatus_array()" identifier = (call_expression "save_pipestatus_array()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[0xb] = uVar3;" (assignment_expression "param_1[0xb] = uVar3" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = PTR_this_shell_builtin_00144a84;" (assignment_expression "puVar2 = PTR_this_shell_builtin_00144a84" identifier = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;" (assignment_expression "uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924" identifier = (pointer_expression "*(undefined4 *)PTR_here_doc_first_line_00144924" * (cast_expression "(undefined4 *)PTR_here_doc_first_line_00144924" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;" (assignment_expression "param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)PTR_last_shell_builtin_00144a80" * (cast_expression "(undefined4 *)PTR_last_shell_builtin_00144a80" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_expand_aliases_0014459c;" (assignment_expression "puVar1 = PTR_expand_aliases_0014459c" identifier = identifier) ;) (expression_statement "uVar9 = *(undefined4 *)puVar2;" (assignment_expression "uVar9 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[0x11] = uVar3;" (assignment_expression "param_1[0x11] = uVar3" (subscript_expression "param_1[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0xd] = uVar9;" (assignment_expression "param_1[0xd] = uVar9" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = PTR_echo_input_at_read_00144724;" (assignment_expression "puVar2 = PTR_echo_input_at_read_00144724" identifier = identifier) ;) (expression_statement "param_1[0xe] = *(undefined4 *)puVar1;" (assignment_expression "param_1[0xe] = *(undefined4 *)puVar1" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_need_here_doc_00144810;" (assignment_expression "puVar1 = PTR_need_here_doc_00144810" identifier = identifier) ;) (expression_statement "param_1[0xf] = *(undefined4 *)puVar2;" (assignment_expression "param_1[0xf] = *(undefined4 *)puVar2" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[0x10] = iVar5;" (assignment_expression "param_1[0x10] = iVar5" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1[0x12] = 0;\n  }" { (expression_statement "param_1[0x12] = 0;" (assignment_expression "param_1[0x12] = 0" (subscript_expression "param_1[0x12]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" else (compound_statement "{\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" { (expression_statement "puVar4 = param_1 + 0x12;" (assignment_expression "puVar4 = param_1 + 0x12" identifier = (binary_expression "param_1 + 0x12" identifier + number_literal)) ;) (expression_statement "puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);" (assignment_expression "puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" identifier = (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b7c)" ( (binary_expression "PTR_data_start_00144568 + 0x6b7c" identifier + number_literal) )))) ;) (expression_statement "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" identifier = (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b3c)" ( (binary_expression "PTR_data_start_00144568 + 0x6b3c" identifier + number_literal) )))) ;) (do_statement "do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);" do (compound_statement "{\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    }" { (expression_statement "puVar7 = puVar6 + 4;" (assignment_expression "puVar7 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) (expression_statement "uVar8 = puVar6[1];" (assignment_expression "uVar8 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = puVar6[2];" (assignment_expression "uVar9 = puVar6[2]" identifier = (subscript_expression "puVar6[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar6[3];" (assignment_expression "uVar3 = puVar6[3]" identifier = (subscript_expression "puVar6[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar4 = *puVar6;" (assignment_expression "*puVar4 = *puVar6" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = uVar9;" (assignment_expression "puVar4[2] = uVar9" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = uVar3;" (assignment_expression "puVar4[3] = uVar3" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = puVar4 + 4;" (assignment_expression "puVar4 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != puVar10)" ( (binary_expression "puVar7 != puVar10" identifier != identifier) )) ;) }))) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (expression_statement "uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);" (assignment_expression "uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" identifier = (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" ( (binary_expression "PTR_data_start_00144568 + 0x68e4" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);" (assignment_expression "uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" identifier = (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e0)" ( (binary_expression "PTR_data_start_00144568 + 0x68e0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;" (assignment_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0" (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" ( (binary_expression "PTR_data_start_00144568 + 0x68e4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[2] = uVar9;" (assignment_expression "param_1[2] = uVar9" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x68e0) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x68e0) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x68e0)" * (cast_expression "(undefined4 *)(puVar1 + 0x68e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x68e0)" ( (binary_expression "puVar1 + 0x68e0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "sh_parser_state_t * save_parser_state(sh_parser_state_t *ps)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  ARRAY *pAVar4;\n  REDIRECT **ppRVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  REDIRECT *pRVar9;\n  REDIRECT *pRVar10;\n  char *pcVar11;\n  REDIRECT *pRVar12;\n  sh_builtin_func_t *psVar13;\n  undefined4 *puVar14;\n  \n  if ((ps == (sh_parser_state_t *)0x0) &&\n     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0)) {\n    return (sh_parser_state_t *)0x0;\n  }\n  ps->parser_state = *(int *)PTR_parser_state_001448f8;\n  piVar3 = save_token_state();\n  ps->token_state = piVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  ps->input_line_terminator = *(int *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  ps->eof_encountered = *(int *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  ps->prompt_string_pointer = *(char ***)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  ps->current_command_line_count = *(int *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  ps->remember_on_history = *(int *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  ps->history_expansion_inhibited = *(int *)puVar2;\n  ps->last_command_exit_value = *(int *)puVar1;\n  pAVar4 = save_pipestatus_array();\n  ps->pipestatus = pAVar4;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  iVar8 = *(int *)PTR_here_doc_first_line_00144924;\n  ps->last_shell_builtin = *(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  psVar13 = *(sh_builtin_func_t **)puVar2;\n  ps->here_doc_first_line = iVar8;\n  ps->this_shell_builtin = psVar13;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  ps->expand_aliases = *(int *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  ps->echo_input_at_read = *(int *)puVar2;\n  iVar8 = *(int *)puVar1;\n  ps->need_here_doc = iVar8;\n  if (iVar8 == 0) {\n    ps->redir_stack[0] = (REDIRECT *)0x0;\n  }\n  else {\n    ppRVar5 = ps->redir_stack;\n    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);\n  }\n  puVar1 = PTR_data_start_00144568;\n  pcVar11 = *(char **)(PTR_data_start_00144568 + 0x68e4);\n  iVar8 = *(int *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  ps->token = pcVar11;\n  ps->token_buffer_size = iVar8;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return ps;\n}\n\n" (function_definition "sh_parser_state_t * save_parser_state(sh_parser_state_t *ps)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  ARRAY *pAVar4;\n  REDIRECT **ppRVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  REDIRECT *pRVar9;\n  REDIRECT *pRVar10;\n  char *pcVar11;\n  REDIRECT *pRVar12;\n  sh_builtin_func_t *psVar13;\n  undefined4 *puVar14;\n  \n  if ((ps == (sh_parser_state_t *)0x0) &&\n     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0)) {\n    return (sh_parser_state_t *)0x0;\n  }\n  ps->parser_state = *(int *)PTR_parser_state_001448f8;\n  piVar3 = save_token_state();\n  ps->token_state = piVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  ps->input_line_terminator = *(int *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  ps->eof_encountered = *(int *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  ps->prompt_string_pointer = *(char ***)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  ps->current_command_line_count = *(int *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  ps->remember_on_history = *(int *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  ps->history_expansion_inhibited = *(int *)puVar2;\n  ps->last_command_exit_value = *(int *)puVar1;\n  pAVar4 = save_pipestatus_array();\n  ps->pipestatus = pAVar4;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  iVar8 = *(int *)PTR_here_doc_first_line_00144924;\n  ps->last_shell_builtin = *(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  psVar13 = *(sh_builtin_func_t **)puVar2;\n  ps->here_doc_first_line = iVar8;\n  ps->this_shell_builtin = psVar13;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  ps->expand_aliases = *(int *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  ps->echo_input_at_read = *(int *)puVar2;\n  iVar8 = *(int *)puVar1;\n  ps->need_here_doc = iVar8;\n  if (iVar8 == 0) {\n    ps->redir_stack[0] = (REDIRECT *)0x0;\n  }\n  else {\n    ppRVar5 = ps->redir_stack;\n    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);\n  }\n  puVar1 = PTR_data_start_00144568;\n  pcVar11 = *(char **)(PTR_data_start_00144568 + 0x68e4);\n  iVar8 = *(int *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  ps->token = pcVar11;\n  ps->token_buffer_size = iVar8;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return ps;\n}" type_identifier (pointer_declarator "* save_parser_state(sh_parser_state_t *ps)" * (function_declarator "save_parser_state(sh_parser_state_t *ps)" identifier (parameter_list "(sh_parser_state_t *ps)" ( (parameter_declaration "sh_parser_state_t *ps" type_identifier (pointer_declarator "*ps" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  ARRAY *pAVar4;\n  REDIRECT **ppRVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  REDIRECT *pRVar9;\n  REDIRECT *pRVar10;\n  char *pcVar11;\n  REDIRECT *pRVar12;\n  sh_builtin_func_t *psVar13;\n  undefined4 *puVar14;\n  \n  if ((ps == (sh_parser_state_t *)0x0) &&\n     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0)) {\n    return (sh_parser_state_t *)0x0;\n  }\n  ps->parser_state = *(int *)PTR_parser_state_001448f8;\n  piVar3 = save_token_state();\n  ps->token_state = piVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  ps->input_line_terminator = *(int *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  ps->eof_encountered = *(int *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  ps->prompt_string_pointer = *(char ***)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  ps->current_command_line_count = *(int *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  ps->remember_on_history = *(int *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  ps->history_expansion_inhibited = *(int *)puVar2;\n  ps->last_command_exit_value = *(int *)puVar1;\n  pAVar4 = save_pipestatus_array();\n  ps->pipestatus = pAVar4;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  iVar8 = *(int *)PTR_here_doc_first_line_00144924;\n  ps->last_shell_builtin = *(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  psVar13 = *(sh_builtin_func_t **)puVar2;\n  ps->here_doc_first_line = iVar8;\n  ps->this_shell_builtin = psVar13;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  ps->expand_aliases = *(int *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  ps->echo_input_at_read = *(int *)puVar2;\n  iVar8 = *(int *)puVar1;\n  ps->need_here_doc = iVar8;\n  if (iVar8 == 0) {\n    ps->redir_stack[0] = (REDIRECT *)0x0;\n  }\n  else {\n    ppRVar5 = ps->redir_stack;\n    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);\n  }\n  puVar1 = PTR_data_start_00144568;\n  pcVar11 = *(char **)(PTR_data_start_00144568 + 0x68e4);\n  iVar8 = *(int *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  ps->token = pcVar11;\n  ps->token_buffer_size = iVar8;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return ps;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "ARRAY *pAVar4;" type_identifier (pointer_declarator "*pAVar4" * identifier) ;) (declaration "REDIRECT **ppRVar5;" type_identifier (pointer_declarator "**ppRVar5" * (pointer_declarator "*ppRVar5" * identifier)) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "REDIRECT *pRVar9;" type_identifier (pointer_declarator "*pRVar9" * identifier) ;) (declaration "REDIRECT *pRVar10;" type_identifier (pointer_declarator "*pRVar10" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "REDIRECT *pRVar12;" type_identifier (pointer_declarator "*pRVar12" * identifier) ;) (declaration "sh_builtin_func_t *psVar13;" type_identifier (pointer_declarator "*psVar13" * identifier) ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (if_statement "if ((ps == (sh_parser_state_t *)0x0) &&\n     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0)) {\n    return (sh_parser_state_t *)0x0;\n  }" if (parenthesized_expression "((ps == (sh_parser_state_t *)0x0) &&\n     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0))" ( (binary_expression "(ps == (sh_parser_state_t *)0x0) &&\n     (ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0)" (parenthesized_expression "(ps == (sh_parser_state_t *)0x0)" ( (binary_expression "ps == (sh_parser_state_t *)0x0" identifier == (cast_expression "(sh_parser_state_t *)0x0" ( (type_descriptor "sh_parser_state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0)" ( (comma_expression "ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88),\n     ps == (sh_parser_state_t *)0x0" (assignment_expression "ps = (sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88)" identifier = (cast_expression "(sh_parser_state_t *)(*(code *)PTR_xmalloc_001445b0)(0x88)" ( (type_descriptor "sh_parser_state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(0x88)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x88)" ( number_literal ))))) , (binary_expression "ps == (sh_parser_state_t *)0x0" identifier == (cast_expression "(sh_parser_state_t *)0x0" ( (type_descriptor "sh_parser_state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return (sh_parser_state_t *)0x0;\n  }" { (return_statement "return (sh_parser_state_t *)0x0;" return (cast_expression "(sh_parser_state_t *)0x0" ( (type_descriptor "sh_parser_state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "ps->parser_state = *(int *)PTR_parser_state_001448f8;" (assignment_expression "ps->parser_state = *(int *)PTR_parser_state_001448f8" (field_expression "ps->parser_state" identifier -> field_identifier) = (pointer_expression "*(int *)PTR_parser_state_001448f8" * (cast_expression "(int *)PTR_parser_state_001448f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar3 = save_token_state();" (assignment_expression "piVar3 = save_token_state()" identifier = (call_expression "save_token_state()" identifier (argument_list "()" ( )))) ;) (expression_statement "ps->token_state = piVar3;" (assignment_expression "ps->token_state = piVar3" (field_expression "ps->token_state" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar2 = PTR_eof_encountered_001449a8;" (assignment_expression "puVar2 = PTR_eof_encountered_001449a8" identifier = identifier) ;) (expression_statement "ps->input_line_terminator = *(int *)(PTR_data_start_00144568 + 0x6b28);" (assignment_expression "ps->input_line_terminator = *(int *)(PTR_data_start_00144568 + 0x6b28)" (field_expression "ps->input_line_terminator" identifier -> field_identifier) = (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x6b28)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x6b28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b28)" ( (binary_expression "PTR_data_start_00144568 + 0x6b28" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = PTR_prompt_string_pointer_00144940;" (assignment_expression "puVar1 = PTR_prompt_string_pointer_00144940" identifier = identifier) ;) (expression_statement "ps->eof_encountered = *(int *)puVar2;" (assignment_expression "ps->eof_encountered = *(int *)puVar2" (field_expression "ps->eof_encountered" identifier -> field_identifier) = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = PTR_current_command_line_count_00144814;" (assignment_expression "puVar2 = PTR_current_command_line_count_00144814" identifier = identifier) ;) (expression_statement "ps->prompt_string_pointer = *(char ***)puVar1;" (assignment_expression "ps->prompt_string_pointer = *(char ***)puVar1" (field_expression "ps->prompt_string_pointer" identifier -> field_identifier) = (pointer_expression "*(char ***)puVar1" * (cast_expression "(char ***)puVar1" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier))) ;) (expression_statement "puVar1 = PTR_remember_on_history_00144668;" (assignment_expression "puVar1 = PTR_remember_on_history_00144668" identifier = identifier) ;) (expression_statement "ps->current_command_line_count = *(int *)puVar2;" (assignment_expression "ps->current_command_line_count = *(int *)puVar2" (field_expression "ps->current_command_line_count" identifier -> field_identifier) = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = PTR_history_expansion_inhibited_00144a68;" (assignment_expression "puVar2 = PTR_history_expansion_inhibited_00144a68" identifier = identifier) ;) (expression_statement "ps->remember_on_history = *(int *)puVar1;" (assignment_expression "ps->remember_on_history = *(int *)puVar1" (field_expression "ps->remember_on_history" identifier -> field_identifier) = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_last_command_exit_value_001445e0;" (assignment_expression "puVar1 = PTR_last_command_exit_value_001445e0" identifier = identifier) ;) (expression_statement "ps->history_expansion_inhibited = *(int *)puVar2;" (assignment_expression "ps->history_expansion_inhibited = *(int *)puVar2" (field_expression "ps->history_expansion_inhibited" identifier -> field_identifier) = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "ps->last_command_exit_value = *(int *)puVar1;" (assignment_expression "ps->last_command_exit_value = *(int *)puVar1" (field_expression "ps->last_command_exit_value" identifier -> field_identifier) = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pAVar4 = save_pipestatus_array();" (assignment_expression "pAVar4 = save_pipestatus_array()" identifier = (call_expression "save_pipestatus_array()" identifier (argument_list "()" ( )))) ;) (expression_statement "ps->pipestatus = pAVar4;" (assignment_expression "ps->pipestatus = pAVar4" (field_expression "ps->pipestatus" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar2 = PTR_this_shell_builtin_00144a84;" (assignment_expression "puVar2 = PTR_this_shell_builtin_00144a84" identifier = identifier) ;) (expression_statement "iVar8 = *(int *)PTR_here_doc_first_line_00144924;" (assignment_expression "iVar8 = *(int *)PTR_here_doc_first_line_00144924" identifier = (pointer_expression "*(int *)PTR_here_doc_first_line_00144924" * (cast_expression "(int *)PTR_here_doc_first_line_00144924" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "ps->last_shell_builtin = *(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80;" (assignment_expression "ps->last_shell_builtin = *(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80" (field_expression "ps->last_shell_builtin" identifier -> field_identifier) = (pointer_expression "*(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80" * (cast_expression "(sh_builtin_func_t **)PTR_last_shell_builtin_00144a80" ( (type_descriptor "sh_builtin_func_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar1 = PTR_expand_aliases_0014459c;" (assignment_expression "puVar1 = PTR_expand_aliases_0014459c" identifier = identifier) ;) (expression_statement "psVar13 = *(sh_builtin_func_t **)puVar2;" (assignment_expression "psVar13 = *(sh_builtin_func_t **)puVar2" identifier = (pointer_expression "*(sh_builtin_func_t **)puVar2" * (cast_expression "(sh_builtin_func_t **)puVar2" ( (type_descriptor "sh_builtin_func_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "ps->here_doc_first_line = iVar8;" (assignment_expression "ps->here_doc_first_line = iVar8" (field_expression "ps->here_doc_first_line" identifier -> field_identifier) = identifier) ;) (expression_statement "ps->this_shell_builtin = psVar13;" (assignment_expression "ps->this_shell_builtin = psVar13" (field_expression "ps->this_shell_builtin" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar2 = PTR_echo_input_at_read_00144724;" (assignment_expression "puVar2 = PTR_echo_input_at_read_00144724" identifier = identifier) ;) (expression_statement "ps->expand_aliases = *(int *)puVar1;" (assignment_expression "ps->expand_aliases = *(int *)puVar1" (field_expression "ps->expand_aliases" identifier -> field_identifier) = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_need_here_doc_00144810;" (assignment_expression "puVar1 = PTR_need_here_doc_00144810" identifier = identifier) ;) (expression_statement "ps->echo_input_at_read = *(int *)puVar2;" (assignment_expression "ps->echo_input_at_read = *(int *)puVar2" (field_expression "ps->echo_input_at_read" identifier -> field_identifier) = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = *(int *)puVar1;" (assignment_expression "iVar8 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "ps->need_here_doc = iVar8;" (assignment_expression "ps->need_here_doc = iVar8" (field_expression "ps->need_here_doc" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar8 == 0) {\n    ps->redir_stack[0] = (REDIRECT *)0x0;\n  }\n  else {\n    ppRVar5 = ps->redir_stack;\n    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    ps->redir_stack[0] = (REDIRECT *)0x0;\n  }" { (expression_statement "ps->redir_stack[0] = (REDIRECT *)0x0;" (assignment_expression "ps->redir_stack[0] = (REDIRECT *)0x0" (subscript_expression "ps->redir_stack[0]" (field_expression "ps->redir_stack" identifier -> field_identifier) [ number_literal ]) = (cast_expression "(REDIRECT *)0x0" ( (type_descriptor "REDIRECT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    ppRVar5 = ps->redir_stack;\n    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);\n  }" else (compound_statement "{\n    ppRVar5 = ps->redir_stack;\n    puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);\n  }" { (expression_statement "ppRVar5 = ps->redir_stack;" (assignment_expression "ppRVar5 = ps->redir_stack" identifier = (field_expression "ps->redir_stack" identifier -> field_identifier)) ;) (expression_statement "puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);" (assignment_expression "puVar14 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" identifier = (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b7c)" ( (binary_expression "PTR_data_start_00144568 + 0x6b7c" identifier + number_literal) )))) ;) (expression_statement "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" identifier = (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b3c)" ( (binary_expression "PTR_data_start_00144568 + 0x6b3c" identifier + number_literal) )))) ;) (do_statement "do {\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar14);" do (compound_statement "{\n      puVar7 = puVar6 + 4;\n      pRVar12 = (REDIRECT *)puVar6[1];\n      pRVar10 = (REDIRECT *)puVar6[2];\n      pRVar9 = (REDIRECT *)puVar6[3];\n      *ppRVar5 = (REDIRECT *)*puVar6;\n      ppRVar5[1] = pRVar12;\n      ppRVar5[2] = pRVar10;\n      ppRVar5[3] = pRVar9;\n      ppRVar5 = ppRVar5 + 4;\n      puVar6 = puVar7;\n    }" { (expression_statement "puVar7 = puVar6 + 4;" (assignment_expression "puVar7 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) (expression_statement "pRVar12 = (REDIRECT *)puVar6[1];" (assignment_expression "pRVar12 = (REDIRECT *)puVar6[1]" identifier = (cast_expression "(REDIRECT *)puVar6[1]" ( (type_descriptor "REDIRECT *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "pRVar10 = (REDIRECT *)puVar6[2];" (assignment_expression "pRVar10 = (REDIRECT *)puVar6[2]" identifier = (cast_expression "(REDIRECT *)puVar6[2]" ( (type_descriptor "REDIRECT *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[2]" identifier [ number_literal ]))) ;) (expression_statement "pRVar9 = (REDIRECT *)puVar6[3];" (assignment_expression "pRVar9 = (REDIRECT *)puVar6[3]" identifier = (cast_expression "(REDIRECT *)puVar6[3]" ( (type_descriptor "REDIRECT *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[3]" identifier [ number_literal ]))) ;) (expression_statement "*ppRVar5 = (REDIRECT *)*puVar6;" (assignment_expression "*ppRVar5 = (REDIRECT *)*puVar6" (pointer_expression "*ppRVar5" * identifier) = (cast_expression "(REDIRECT *)*puVar6" ( (type_descriptor "REDIRECT *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "ppRVar5[1] = pRVar12;" (assignment_expression "ppRVar5[1] = pRVar12" (subscript_expression "ppRVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "ppRVar5[2] = pRVar10;" (assignment_expression "ppRVar5[2] = pRVar10" (subscript_expression "ppRVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "ppRVar5[3] = pRVar9;" (assignment_expression "ppRVar5[3] = pRVar9" (subscript_expression "ppRVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "ppRVar5 = ppRVar5 + 4;" (assignment_expression "ppRVar5 = ppRVar5 + 4" identifier = (binary_expression "ppRVar5 + 4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != puVar14)" ( (binary_expression "puVar7 != puVar14" identifier != identifier) )) ;) }))) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (expression_statement "pcVar11 = *(char **)(PTR_data_start_00144568 + 0x68e4);" (assignment_expression "pcVar11 = *(char **)(PTR_data_start_00144568 + 0x68e4)" identifier = (pointer_expression "*(char **)(PTR_data_start_00144568 + 0x68e4)" * (cast_expression "(char **)(PTR_data_start_00144568 + 0x68e4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" ( (binary_expression "PTR_data_start_00144568 + 0x68e4" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(PTR_data_start_00144568 + 0x68e0);" (assignment_expression "iVar8 = *(int *)(PTR_data_start_00144568 + 0x68e0)" identifier = (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x68e0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x68e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e0)" ( (binary_expression "PTR_data_start_00144568 + 0x68e0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;" (assignment_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0" (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" ( (binary_expression "PTR_data_start_00144568 + 0x68e4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "ps->token = pcVar11;" (assignment_expression "ps->token = pcVar11" (field_expression "ps->token" identifier -> field_identifier) = identifier) ;) (expression_statement "ps->token_buffer_size = iVar8;" (assignment_expression "ps->token_buffer_size = iVar8" (field_expression "ps->token_buffer_size" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x68e0) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x68e0) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x68e0)" * (cast_expression "(undefined4 *)(puVar1 + 0x68e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x68e0)" ( (binary_expression "puVar1 + 0x68e0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return ps;" return identifier ;) })))
(translation_unit "undefined4 * save_parser_state(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}\n\n" (function_definition "undefined4 * save_parser_state(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}" type_identifier (pointer_declarator "* save_parser_state(undefined4 *param_1)" * (function_declarator "save_parser_state(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (if_statement "if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))" ( (binary_expression "(param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0)" (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0)" ( (comma_expression "param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0" (assignment_expression "param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(0x88)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x88)" ( number_literal ))))) , (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*param_1 = *(undefined4 *)PTR_parser_state_001448f8;" (assignment_expression "*param_1 = *(undefined4 *)PTR_parser_state_001448f8" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(undefined4 *)PTR_parser_state_001448f8" * (cast_expression "(undefined4 *)PTR_parser_state_001448f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = save_token_state();" (assignment_expression "uVar3 = save_token_state()" identifier = (call_expression "save_token_state()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[1] = uVar3;" (assignment_expression "param_1[1] = uVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = PTR_eof_encountered_001449a8;" (assignment_expression "puVar2 = PTR_eof_encountered_001449a8" identifier = identifier) ;) (expression_statement "param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);" (assignment_expression "param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b28)" ( (binary_expression "PTR_data_start_00144568 + 0x6b28" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = PTR_prompt_string_pointer_00144940;" (assignment_expression "puVar1 = PTR_prompt_string_pointer_00144940" identifier = identifier) ;) (expression_statement "param_1[5] = *(undefined4 *)puVar2;" (assignment_expression "param_1[5] = *(undefined4 *)puVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = PTR_current_command_line_count_00144814;" (assignment_expression "puVar2 = PTR_current_command_line_count_00144814" identifier = identifier) ;) (expression_statement "param_1[6] = *(undefined4 *)puVar1;" (assignment_expression "param_1[6] = *(undefined4 *)puVar1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_remember_on_history_00144668;" (assignment_expression "puVar1 = PTR_remember_on_history_00144668" identifier = identifier) ;) (expression_statement "param_1[7] = *(undefined4 *)puVar2;" (assignment_expression "param_1[7] = *(undefined4 *)puVar2" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = PTR_history_expansion_inhibited_00144a68;" (assignment_expression "puVar2 = PTR_history_expansion_inhibited_00144a68" identifier = identifier) ;) (expression_statement "param_1[8] = *(undefined4 *)puVar1;" (assignment_expression "param_1[8] = *(undefined4 *)puVar1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_last_command_exit_value_001445e0;" (assignment_expression "puVar1 = PTR_last_command_exit_value_001445e0" identifier = identifier) ;) (expression_statement "param_1[9] = *(undefined4 *)puVar2;" (assignment_expression "param_1[9] = *(undefined4 *)puVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[10] = *(undefined4 *)puVar1;" (assignment_expression "param_1[10] = *(undefined4 *)puVar1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = save_pipestatus_array();" (assignment_expression "uVar3 = save_pipestatus_array()" identifier = (call_expression "save_pipestatus_array()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[0xb] = uVar3;" (assignment_expression "param_1[0xb] = uVar3" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = PTR_this_shell_builtin_00144a84;" (assignment_expression "puVar2 = PTR_this_shell_builtin_00144a84" identifier = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;" (assignment_expression "uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924" identifier = (pointer_expression "*(undefined4 *)PTR_here_doc_first_line_00144924" * (cast_expression "(undefined4 *)PTR_here_doc_first_line_00144924" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;" (assignment_expression "param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)PTR_last_shell_builtin_00144a80" * (cast_expression "(undefined4 *)PTR_last_shell_builtin_00144a80" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_expand_aliases_0014459c;" (assignment_expression "puVar1 = PTR_expand_aliases_0014459c" identifier = identifier) ;) (expression_statement "uVar9 = *(undefined4 *)puVar2;" (assignment_expression "uVar9 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[0x11] = uVar3;" (assignment_expression "param_1[0x11] = uVar3" (subscript_expression "param_1[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0xd] = uVar9;" (assignment_expression "param_1[0xd] = uVar9" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = PTR_echo_input_at_read_00144724;" (assignment_expression "puVar2 = PTR_echo_input_at_read_00144724" identifier = identifier) ;) (expression_statement "param_1[0xe] = *(undefined4 *)puVar1;" (assignment_expression "param_1[0xe] = *(undefined4 *)puVar1" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar1 = PTR_need_here_doc_00144810;" (assignment_expression "puVar1 = PTR_need_here_doc_00144810" identifier = identifier) ;) (expression_statement "param_1[0xf] = *(undefined4 *)puVar2;" (assignment_expression "param_1[0xf] = *(undefined4 *)puVar2" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_1[0x10] = iVar5;" (assignment_expression "param_1[0x10] = iVar5" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1[0x12] = 0;\n  }" { (expression_statement "param_1[0x12] = 0;" (assignment_expression "param_1[0x12] = 0" (subscript_expression "param_1[0x12]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" else (compound_statement "{\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" { (expression_statement "puVar4 = param_1 + 0x12;" (assignment_expression "puVar4 = param_1 + 0x12" identifier = (binary_expression "param_1 + 0x12" identifier + number_literal)) ;) (expression_statement "puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);" (assignment_expression "puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" identifier = (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b7c)" ( (binary_expression "PTR_data_start_00144568 + 0x6b7c" identifier + number_literal) )))) ;) (expression_statement "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" identifier = (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x6b3c)" ( (binary_expression "PTR_data_start_00144568 + 0x6b3c" identifier + number_literal) )))) ;) (do_statement "do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);" do (compound_statement "{\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    }" { (expression_statement "puVar7 = puVar6 + 4;" (assignment_expression "puVar7 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) (expression_statement "uVar8 = puVar6[1];" (assignment_expression "uVar8 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = puVar6[2];" (assignment_expression "uVar9 = puVar6[2]" identifier = (subscript_expression "puVar6[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar6[3];" (assignment_expression "uVar3 = puVar6[3]" identifier = (subscript_expression "puVar6[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar4 = *puVar6;" (assignment_expression "*puVar4 = *puVar6" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = uVar9;" (assignment_expression "puVar4[2] = uVar9" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = uVar3;" (assignment_expression "puVar4[3] = uVar3" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = puVar4 + 4;" (assignment_expression "puVar4 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != puVar10)" ( (binary_expression "puVar7 != puVar10" identifier != identifier) )) ;) }))) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (expression_statement "uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);" (assignment_expression "uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" identifier = (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" ( (binary_expression "PTR_data_start_00144568 + 0x68e4" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);" (assignment_expression "uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" identifier = (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e0)" ( (binary_expression "PTR_data_start_00144568 + 0x68e0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;" (assignment_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0" (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" * (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" ( (binary_expression "PTR_data_start_00144568 + 0x68e4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[2] = uVar9;" (assignment_expression "param_1[2] = uVar9" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x68e0) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x68e0) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x68e0)" * (cast_expression "(undefined4 *)(puVar1 + 0x68e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x68e0)" ( (binary_expression "puVar1 + 0x68e0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * save_parser_state(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "* save_parser_state(undefined4 *param_1)" (* "*") (function_declarator "save_parser_state(undefined4 *param_1)" (identifier "save_parser_state") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 *puVar10;\n  \n  if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }\n  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;\n  uVar3 = save_token_state();\n  param_1[1] = uVar3;\n  puVar2 = PTR_eof_encountered_001449a8;\n  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);\n  puVar1 = PTR_prompt_string_pointer_00144940;\n  param_1[5] = *(undefined4 *)puVar2;\n  puVar2 = PTR_current_command_line_count_00144814;\n  param_1[6] = *(undefined4 *)puVar1;\n  puVar1 = PTR_remember_on_history_00144668;\n  param_1[7] = *(undefined4 *)puVar2;\n  puVar2 = PTR_history_expansion_inhibited_00144a68;\n  param_1[8] = *(undefined4 *)puVar1;\n  puVar1 = PTR_last_command_exit_value_001445e0;\n  param_1[9] = *(undefined4 *)puVar2;\n  param_1[10] = *(undefined4 *)puVar1;\n  uVar3 = save_pipestatus_array();\n  param_1[0xb] = uVar3;\n  puVar2 = PTR_this_shell_builtin_00144a84;\n  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;\n  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;\n  puVar1 = PTR_expand_aliases_0014459c;\n  uVar9 = *(undefined4 *)puVar2;\n  param_1[0x11] = uVar3;\n  param_1[0xd] = uVar9;\n  puVar2 = PTR_echo_input_at_read_00144724;\n  param_1[0xe] = *(undefined4 *)puVar1;\n  puVar1 = PTR_need_here_doc_00144810;\n  param_1[0xf] = *(undefined4 *)puVar2;\n  iVar5 = *(int *)puVar1;\n  param_1[0x10] = iVar5;\n  if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }\n  puVar1 = PTR_data_start_00144568;\n  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);\n  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);\n  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;\n  param_1[2] = uVar9;\n  param_1[3] = uVar3;\n  *(undefined4 *)(puVar1 + 0x68e0) = 0;\n  return param_1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (if_statement "if ((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))\n  {\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "((param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))" (( "(") (binary_expression "(param_1 == (undefined4 *)0x0) &&\n     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0)" (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0)" (( "(") (comma_expression "param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0" (assignment_expression "param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88)" (identifier "param_1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_001445b0)(0x88)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001445b0" (* "*") (cast_expression "(code *)PTR_xmalloc_001445b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001445b0"))) () ")")) (argument_list "(0x88)" (( "(") (number_literal "0x88") () ")"))))) (, ",") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "*param_1 = *(undefined4 *)PTR_parser_state_001448f8;" (assignment_expression "*param_1 = *(undefined4 *)PTR_parser_state_001448f8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*(undefined4 *)PTR_parser_state_001448f8" (* "*") (cast_expression "(undefined4 *)PTR_parser_state_001448f8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_parser_state_001448f8")))) (; ";")) (expression_statement "uVar3 = save_token_state();" (assignment_expression "uVar3 = save_token_state()" (identifier "uVar3") (= "=") (call_expression "save_token_state()" (identifier "save_token_state") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[1] = uVar3;" (assignment_expression "param_1[1] = uVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2 = PTR_eof_encountered_001449a8;" (assignment_expression "puVar2 = PTR_eof_encountered_001449a8" (identifier "puVar2") (= "=") (identifier "PTR_eof_encountered_001449a8")) (; ";")) (expression_statement "param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);" (assignment_expression "param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" (* "*") (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x6b28)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x6b28" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x6b28")) () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_prompt_string_pointer_00144940;" (assignment_expression "puVar1 = PTR_prompt_string_pointer_00144940" (identifier "puVar1") (= "=") (identifier "PTR_prompt_string_pointer_00144940")) (; ";")) (expression_statement "param_1[5] = *(undefined4 *)puVar2;" (assignment_expression "param_1[5] = *(undefined4 *)puVar2" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "puVar2 = PTR_current_command_line_count_00144814;" (assignment_expression "puVar2 = PTR_current_command_line_count_00144814" (identifier "puVar2") (= "=") (identifier "PTR_current_command_line_count_00144814")) (; ";")) (expression_statement "param_1[6] = *(undefined4 *)puVar1;" (assignment_expression "param_1[6] = *(undefined4 *)puVar1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "puVar1 = PTR_remember_on_history_00144668;" (assignment_expression "puVar1 = PTR_remember_on_history_00144668" (identifier "puVar1") (= "=") (identifier "PTR_remember_on_history_00144668")) (; ";")) (expression_statement "param_1[7] = *(undefined4 *)puVar2;" (assignment_expression "param_1[7] = *(undefined4 *)puVar2" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "puVar2 = PTR_history_expansion_inhibited_00144a68;" (assignment_expression "puVar2 = PTR_history_expansion_inhibited_00144a68" (identifier "puVar2") (= "=") (identifier "PTR_history_expansion_inhibited_00144a68")) (; ";")) (expression_statement "param_1[8] = *(undefined4 *)puVar1;" (assignment_expression "param_1[8] = *(undefined4 *)puVar1" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "puVar1 = PTR_last_command_exit_value_001445e0;" (assignment_expression "puVar1 = PTR_last_command_exit_value_001445e0" (identifier "puVar1") (= "=") (identifier "PTR_last_command_exit_value_001445e0")) (; ";")) (expression_statement "param_1[9] = *(undefined4 *)puVar2;" (assignment_expression "param_1[9] = *(undefined4 *)puVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "param_1[10] = *(undefined4 *)puVar1;" (assignment_expression "param_1[10] = *(undefined4 *)puVar1" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "uVar3 = save_pipestatus_array();" (assignment_expression "uVar3 = save_pipestatus_array()" (identifier "uVar3") (= "=") (call_expression "save_pipestatus_array()" (identifier "save_pipestatus_array") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[0xb] = uVar3;" (assignment_expression "param_1[0xb] = uVar3" (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2 = PTR_this_shell_builtin_00144a84;" (assignment_expression "puVar2 = PTR_this_shell_builtin_00144a84" (identifier "puVar2") (= "=") (identifier "PTR_this_shell_builtin_00144a84")) (; ";")) (expression_statement "uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;" (assignment_expression "uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)PTR_here_doc_first_line_00144924" (* "*") (cast_expression "(undefined4 *)PTR_here_doc_first_line_00144924" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_here_doc_first_line_00144924")))) (; ";")) (expression_statement "param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;" (assignment_expression "param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (pointer_expression "*(undefined4 *)PTR_last_shell_builtin_00144a80" (* "*") (cast_expression "(undefined4 *)PTR_last_shell_builtin_00144a80" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_last_shell_builtin_00144a80")))) (; ";")) (expression_statement "puVar1 = PTR_expand_aliases_0014459c;" (assignment_expression "puVar1 = PTR_expand_aliases_0014459c" (identifier "puVar1") (= "=") (identifier "PTR_expand_aliases_0014459c")) (; ";")) (expression_statement "uVar9 = *(undefined4 *)puVar2;" (assignment_expression "uVar9 = *(undefined4 *)puVar2" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "param_1[0x11] = uVar3;" (assignment_expression "param_1[0x11] = uVar3" (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_1[0xd] = uVar9;" (assignment_expression "param_1[0xd] = uVar9" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "puVar2 = PTR_echo_input_at_read_00144724;" (assignment_expression "puVar2 = PTR_echo_input_at_read_00144724" (identifier "puVar2") (= "=") (identifier "PTR_echo_input_at_read_00144724")) (; ";")) (expression_statement "param_1[0xe] = *(undefined4 *)puVar1;" (assignment_expression "param_1[0xe] = *(undefined4 *)puVar1" (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "puVar1 = PTR_need_here_doc_00144810;" (assignment_expression "puVar1 = PTR_need_here_doc_00144810" (identifier "puVar1") (= "=") (identifier "PTR_need_here_doc_00144810")) (; ";")) (expression_statement "param_1[0xf] = *(undefined4 *)puVar2;" (assignment_expression "param_1[0xf] = *(undefined4 *)puVar2" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" (identifier "iVar5") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "param_1[0x10] = iVar5;" (assignment_expression "param_1[0x10] = iVar5" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar5 == 0) {\n    param_1[0x12] = 0;\n  }\n  else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[0x12] = 0;\n  }" ({ "{") (expression_statement "param_1[0x12] = 0;" (assignment_expression "param_1[0x12] = 0" (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" (else "else") (compound_statement "{\n    puVar4 = param_1 + 0x12;\n    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);\n    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);\n    do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);\n  }" ({ "{") (expression_statement "puVar4 = param_1 + 0x12;" (assignment_expression "puVar4 = param_1 + 0x12" (identifier "puVar4") (= "=") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12"))) (; ";")) (expression_statement "puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);" (assignment_expression "puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x6b7c)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x6b7c" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x6b7c")) () ")")))) (; ";")) (expression_statement "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x6b3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x6b3c)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x6b3c" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x6b3c")) () ")")))) (; ";")) (do_statement "do {\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    } while (puVar7 != puVar10);" (do "do") (compound_statement "{\n      puVar7 = puVar6 + 4;\n      uVar8 = puVar6[1];\n      uVar9 = puVar6[2];\n      uVar3 = puVar6[3];\n      *puVar4 = *puVar6;\n      puVar4[1] = uVar8;\n      puVar4[2] = uVar9;\n      puVar4[3] = uVar3;\n      puVar4 = puVar4 + 4;\n      puVar6 = puVar7;\n    }" ({ "{") (expression_statement "puVar7 = puVar6 + 4;" (assignment_expression "puVar7 = puVar6 + 4" (identifier "puVar7") (= "=") (binary_expression "puVar6 + 4" (identifier "puVar6") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar8 = puVar6[1];" (assignment_expression "uVar8 = puVar6[1]" (identifier "uVar8") (= "=") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar9 = puVar6[2];" (assignment_expression "uVar9 = puVar6[2]" (identifier "uVar9") (= "=") (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar3 = puVar6[3];" (assignment_expression "uVar3 = puVar6[3]" (identifier "uVar3") (= "=") (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar4 = *puVar6;" (assignment_expression "*puVar4 = *puVar6" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "puVar4[2] = uVar9;" (assignment_expression "puVar4[2] = uVar9" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "puVar4[3] = uVar3;" (assignment_expression "puVar4[3] = uVar3" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4 = puVar4 + 4;" (assignment_expression "puVar4 = puVar4 + 4" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 4" (identifier "puVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" (identifier "puVar6") (= "=") (identifier "puVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7 != puVar10)" (( "(") (binary_expression "puVar7 != puVar10" (identifier "puVar7") (!= "!=") (identifier "puVar10")) () ")")) (; ";")) (} "}")))) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" (identifier "puVar1") (= "=") (identifier "PTR_data_start_00144568")) (; ";")) (expression_statement "uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);" (assignment_expression "uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" (* "*") (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x68e4" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x68e4")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);" (assignment_expression "uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" (* "*") (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x68e0)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x68e0" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x68e0")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;" (assignment_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0" (pointer_expression "*(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" (* "*") (cast_expression "(undefined4 *)(PTR_data_start_00144568 + 0x68e4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x68e4)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x68e4" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x68e4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = uVar9;" (assignment_expression "param_1[2] = uVar9" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x68e0) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x68e0) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x68e0)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x68e0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x68e0)" (( "(") (binary_expression "puVar1 + 0x68e0" (identifier "puVar1") (+ "+") (number_literal "0x68e0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (number_literal))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))))

undefined4 * MASKED(undefined4 *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 *puVar10;
  
  if ((param_1 == (undefined4 *)0x0) &&
     (param_1 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(0x88), param_1 == (undefined4 *)0x0))
  {
    return (undefined4 *)0x0;
  }
  *param_1 = *(undefined4 *)PTR_parser_state_001448f8;
  uVar3 = save_token_state();
  param_1[1] = uVar3;
  puVar2 = PTR_eof_encountered_001449a8;
  param_1[4] = *(undefined4 *)(PTR_data_start_00144568 + 0x6b28);
  puVar1 = PTR_prompt_string_pointer_00144940;
  param_1[5] = *(undefined4 *)puVar2;
  puVar2 = PTR_current_command_line_count_00144814;
  param_1[6] = *(undefined4 *)puVar1;
  puVar1 = PTR_remember_on_history_00144668;
  param_1[7] = *(undefined4 *)puVar2;
  puVar2 = PTR_history_expansion_inhibited_00144a68;
  param_1[8] = *(undefined4 *)puVar1;
  puVar1 = PTR_last_command_exit_value_001445e0;
  param_1[9] = *(undefined4 *)puVar2;
  param_1[10] = *(undefined4 *)puVar1;
  uVar3 = save_pipestatus_array();
  param_1[0xb] = uVar3;
  puVar2 = PTR_this_shell_builtin_00144a84;
  uVar3 = *(undefined4 *)PTR_here_doc_first_line_00144924;
  param_1[0xc] = *(undefined4 *)PTR_last_shell_builtin_00144a80;
  puVar1 = PTR_expand_aliases_0014459c;
  uVar9 = *(undefined4 *)puVar2;
  param_1[0x11] = uVar3;
  param_1[0xd] = uVar9;
  puVar2 = PTR_echo_input_at_read_00144724;
  param_1[0xe] = *(undefined4 *)puVar1;
  puVar1 = PTR_need_here_doc_00144810;
  param_1[0xf] = *(undefined4 *)puVar2;
  iVar5 = *(int *)puVar1;
  param_1[0x10] = iVar5;
  if (iVar5 == 0) {
    param_1[0x12] = 0;
  }
  else {
    puVar4 = param_1 + 0x12;
    puVar10 = (undefined4 *)(PTR_data_start_00144568 + 0x6b7c);
    puVar6 = (undefined4 *)(PTR_data_start_00144568 + 0x6b3c);
    do {
      puVar7 = puVar6 + 4;
      uVar8 = puVar6[1];
      uVar9 = puVar6[2];
      uVar3 = puVar6[3];
      *puVar4 = *puVar6;
      puVar4[1] = uVar8;
      puVar4[2] = uVar9;
      puVar4[3] = uVar3;
      puVar4 = puVar4 + 4;
      puVar6 = puVar7;
    } while (puVar7 != puVar10);
  }
  puVar1 = PTR_data_start_00144568;
  uVar9 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e4);
  uVar3 = *(undefined4 *)(PTR_data_start_00144568 + 0x68e0);
  *(undefined4 *)(PTR_data_start_00144568 + 0x68e4) = 0;
  param_1[2] = uVar9;
  param_1[3] = uVar3;
  *(undefined4 *)(puVar1 + 0x68e0) = 0;
  return param_1;
}

