
void parse_cmdline(char *p)

{
  byte bVar1;
  char *s;
  int iVar2;
  byte *s_00;
  uint c;
  int iVar3;
  char *pcVar4;
  byte *local_res0 [4];
  
  iVar3 = 0;
  pcVar4 = PTR_00024314 + 0x2b84;
  local_res0[0] = (byte *)p;
  do {
    s = tstr((char **)local_res0,1);
    iVar2 = (*(code *)PTR_strlen_000243e0)(s);
    iVar3 = iVar3 + iVar2;
    if (iVar3 < 0x11) {
      add_cmd_str(s);
    }
    else {
      error(pcVar4);
    }
  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));
  add_cmd_char(0);
  s_00 = (byte *)skipsp((char *)local_res0[0]);
  local_res0[0] = s_00;
  if (*s_00 == 0) {
    error(PTR_00024314 + 0x2b98);
  }
  else {
    local_res0[0] = (byte *)skipnsp((char *)s_00);
    bVar1 = *local_res0[0];
    *local_res0[0] = 0;
    c = findaction((char *)s_00);
    *local_res0[0] = bVar1;
    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);
    if (*local_res0[0] == 0) {
      add_cmd_char(c);
    }
    else {
      add_cmd_char(c | 0x80);
      bVar1 = *local_res0[0];
      while (bVar1 != 0) {
        pcVar4 = tstr((char **)local_res0,0);
        add_cmd_str(pcVar4);
        bVar1 = *local_res0[0];
      }
      add_cmd_char(0);
    }
  }
  return;
}



void parse_cmdline(byte *param_1)

{
  byte bVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  uint uVar5;
  int iVar6;
  undefined *puVar7;
  byte *local_res0 [4];
  
  iVar6 = 0;
  puVar7 = PTR_00024314 + 0x2b84;
  local_res0[0] = param_1;
  do {
    uVar2 = tstr(local_res0,1);
    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);
    iVar6 = iVar6 + iVar3;
    if (iVar6 < 0x11) {
      add_cmd_str(uVar2);
    }
    else {
      error(puVar7);
    }
  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));
  add_cmd_char(0);
  pbVar4 = (byte *)skipsp(local_res0[0]);
  local_res0[0] = pbVar4;
  if (*pbVar4 == 0) {
    error(PTR_00024314 + 0x2b98);
  }
  else {
    local_res0[0] = (byte *)skipnsp(pbVar4);
    bVar1 = *local_res0[0];
    *local_res0[0] = 0;
    uVar5 = findaction(pbVar4);
    *local_res0[0] = bVar1;
    local_res0[0] = (byte *)skipsp(local_res0[0]);
    if (*local_res0[0] == 0) {
      add_cmd_char(uVar5);
    }
    else {
      add_cmd_char(uVar5 | 0x80);
      bVar1 = *local_res0[0];
      while (bVar1 != 0) {
        uVar2 = tstr(local_res0,0);
        add_cmd_str(uVar2);
        bVar1 = *local_res0[0];
      }
      add_cmd_char(0);
    }
  }
  return;
}


lui gp,0x2
addiu gp,gp,-0x5c94
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw a0,0x38(sp)
or s0,zero,zero
lw s2,-0x7f84(gp)
lw s5,-0x7f80(gp)
lw s3,-0x7fcc(gp)
addiu s3,s3,0x2b84
b 0x00011ff4
_lw s4,-0x7f90(gp)
or t9,s5,zero
bal 0x00011d44
_nop
lw gp,0x10(sp)
lw v0,0x38(sp)
lb v0,0x0(v0)
li v1,0x9
beq v0,v1,0x00012050
_li v1,-0x21
and v0,v0,v1
beq v0,zero,0x00012054
_or a0,zero,zero
li a1,0x1
addiu a0,sp,0x38
or t9,s2,zero
bal 0x0001197c
_nop
lw gp,0x10(sp)
or s1,v0,zero
or a0,v0,zero
lw t9,-0x7f00(gp)
jalr t9
_nop
lw gp,0x10(sp)
addu s0,s0,v0
slti v0,s0,0x11
bne v0,zero,0x00011fc4
_or a0,s1,zero
or a0,s3,zero
or t9,s4,zero
bal 0x00011918
_nop
lw gp,0x10(sp)
b 0x00011fd8
_lw v0,0x38(sp)
or a0,zero,zero
lw t9,-0x7f88(gp)
bal 0x00011cd4
_nop
lw gp,0x10(sp)
lw a0,0x38(sp)
lw t9,-0x7f9c(gp)
bal 0x0001165c
_nop
lw gp,0x10(sp)
or s0,v0,zero
sw v0,0x38(sp)
lb v0,0x0(v0)
beq v0,zero,0x00012108
_or a0,s0,zero
lw t9,-0x7f7c(gp)
bal 0x0001168c
_nop
lw gp,0x10(sp)
sw v0,0x38(sp)
lb s1,0x0(v0)
sb zero,0x0(v0)
or a0,s0,zero
lw t9,-0x7f78(gp)
bal 0x00011ed8
_nop
lw gp,0x10(sp)
or s0,v0,zero
lw v0,0x38(sp)
sb s1,0x0(v0)
lw a0,0x38(sp)
lw t9,-0x7f9c(gp)
bal 0x0001165c
_nop
lw gp,0x10(sp)
sw v0,0x38(sp)
lb v0,0x0(v0)
bne v0,zero,0x00012144
_ori a0,s0,0x80
or a0,s0,zero
lw t9,-0x7f88(gp)
bal 0x00011cd4
_nop
lw gp,0x10(sp)
b 0x00012124
_lw ra,0x34(sp)
lw a0,-0x7fcc(gp)
addiu a0,a0,0x2b98
lw t9,-0x7f90(gp)
bal 0x00011918
_nop
lw gp,0x10(sp)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7f88(gp)
bal 0x00011cd4
_nop
lw gp,0x10(sp)
lw v0,0x38(sp)
lb v0,0x0(v0)
beq v0,zero,0x000121a4
_lw s1,-0x7f84(gp)
lw s0,-0x7f80(gp)
or a1,zero,zero
addiu a0,sp,0x38
or t9,s1,zero
bal 0x0001197c
_nop
lw gp,0x10(sp)
or a0,v0,zero
or t9,s0,zero
bal 0x00011d44
_nop
lw gp,0x10(sp)
lw v0,0x38(sp)
lb v0,0x0(v0)
bne v0,zero,0x0001216c
_or a1,zero,zero
or a0,zero,zero
lw t9,-0x7f88(gp)
bal 0x00011cd4
_nop
lw gp,0x10(sp)
b 0x00012124
_lw ra,0x34(sp)
(translation_unit "void parse_cmdline(byte *param_1)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}\n\n" (function_definition "void parse_cmdline(byte *param_1)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "parse_cmdline(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *local_res0 [4];" type_identifier (pointer_declarator "*local_res0 [4]" * (array_declarator "local_res0 [4]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_00024314 + 0x2b84;" (assignment_expression "puVar7 = PTR_00024314 + 0x2b84" identifier = (binary_expression "PTR_00024314 + 0x2b84" identifier + number_literal)) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));" do (compound_statement "{\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  }" { (expression_statement "uVar2 = tstr(local_res0,1);" (assignment_expression "uVar2 = tstr(local_res0,1)" identifier = (call_expression "tstr(local_res0,1)" identifier (argument_list "(local_res0,1)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000243e0)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000243e0)" ( (pointer_expression "*(code *)PTR_strlen_000243e0" * (cast_expression "(code *)PTR_strlen_000243e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }" if (parenthesized_expression "(iVar6 < 0x11)" ( (binary_expression "iVar6 < 0x11" identifier < number_literal) )) (compound_statement "{\n      add_cmd_str(uVar2);\n    }" { (expression_statement "add_cmd_str(uVar2);" (call_expression "add_cmd_str(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n      error(puVar7);\n    }" else (compound_statement "{\n      error(puVar7);\n    }" { (expression_statement "error(puVar7);" (call_expression "error(puVar7)" identifier (argument_list "(puVar7)" ( identifier ))) ;) }))) }) while (parenthesized_expression "((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0))" ( (binary_expression "(*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0)" (parenthesized_expression "(*local_res0[0] != 9)" ( (binary_expression "*local_res0[0] != 9" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) != number_literal) )) && (parenthesized_expression "((*local_res0[0] & 0xdf) != 0)" ( (binary_expression "(*local_res0[0] & 0xdf) != 0" (parenthesized_expression "(*local_res0[0] & 0xdf)" ( (binary_expression "*local_res0[0] & 0xdf" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "pbVar4 = (byte *)skipsp(local_res0[0]);" (assignment_expression "pbVar4 = (byte *)skipsp(local_res0[0])" identifier = (cast_expression "(byte *)skipsp(local_res0[0])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipsp(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))))) ;) (expression_statement "local_res0[0] = pbVar4;" (assignment_expression "local_res0[0] = pbVar4" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" if (parenthesized_expression "(*pbVar4 == 0)" ( (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal) )) (compound_statement "{\n    error(PTR_00024314 + 0x2b98);\n  }" { (expression_statement "error(PTR_00024314 + 0x2b98);" (call_expression "error(PTR_00024314 + 0x2b98)" identifier (argument_list "(PTR_00024314 + 0x2b98)" ( (binary_expression "PTR_00024314 + 0x2b98" identifier + number_literal) ))) ;) }) (else_clause "else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" else (compound_statement "{\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" { (expression_statement "local_res0[0] = (byte *)skipnsp(pbVar4);" (assignment_expression "local_res0[0] = (byte *)skipnsp(pbVar4)" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)skipnsp(pbVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipnsp(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier ))))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) (expression_statement "*local_res0[0] = 0;" (assignment_expression "*local_res0[0] = 0" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) = number_literal) ;) (expression_statement "uVar5 = findaction(pbVar4);" (assignment_expression "uVar5 = findaction(pbVar4)" identifier = (call_expression "findaction(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier )))) ;) (expression_statement "*local_res0[0] = bVar1;" (assignment_expression "*local_res0[0] = bVar1" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) = identifier) ;) (expression_statement "local_res0[0] = (byte *)skipsp(local_res0[0]);" (assignment_expression "local_res0[0] = (byte *)skipsp(local_res0[0])" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)skipsp(local_res0[0])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipsp(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))))) ;) (if_statement "if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" if (parenthesized_expression "(*local_res0[0] == 0)" ( (binary_expression "*local_res0[0] == 0" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n      add_cmd_char(uVar5);\n    }" { (expression_statement "add_cmd_char(uVar5);" (call_expression "add_cmd_char(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) }) (else_clause "else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" else (compound_statement "{\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" { (expression_statement "add_cmd_char(uVar5 | 0x80);" (call_expression "add_cmd_char(uVar5 | 0x80)" identifier (argument_list "(uVar5 | 0x80)" ( (binary_expression "uVar5 | 0x80" identifier | number_literal) ))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) (while_statement "while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }" { (expression_statement "uVar2 = tstr(local_res0,0);" (assignment_expression "uVar2 = tstr(local_res0,0)" identifier = (call_expression "tstr(local_res0,0)" identifier (argument_list "(local_res0,0)" ( identifier , number_literal )))) ;) (expression_statement "add_cmd_str(uVar2);" (call_expression "add_cmd_str(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) })) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) }))) (return_statement "return;" return ;) })))
(translation_unit "void parse_cmdline(char *p)\n\n{\n  byte bVar1;\n  char *s;\n  int iVar2;\n  byte *s_00;\n  uint c;\n  int iVar3;\n  char *pcVar4;\n  byte *local_res0 [4];\n  \n  iVar3 = 0;\n  pcVar4 = PTR_00024314 + 0x2b84;\n  local_res0[0] = (byte *)p;\n  do {\n    s = tstr((char **)local_res0,1);\n    iVar2 = (*(code *)PTR_strlen_000243e0)(s);\n    iVar3 = iVar3 + iVar2;\n    if (iVar3 < 0x11) {\n      add_cmd_str(s);\n    }\n    else {\n      error(pcVar4);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  s_00 = (byte *)skipsp((char *)local_res0[0]);\n  local_res0[0] = s_00;\n  if (*s_00 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp((char *)s_00);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    c = findaction((char *)s_00);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}\n\n" (function_definition "void parse_cmdline(char *p)\n\n{\n  byte bVar1;\n  char *s;\n  int iVar2;\n  byte *s_00;\n  uint c;\n  int iVar3;\n  char *pcVar4;\n  byte *local_res0 [4];\n  \n  iVar3 = 0;\n  pcVar4 = PTR_00024314 + 0x2b84;\n  local_res0[0] = (byte *)p;\n  do {\n    s = tstr((char **)local_res0,1);\n    iVar2 = (*(code *)PTR_strlen_000243e0)(s);\n    iVar3 = iVar3 + iVar2;\n    if (iVar3 < 0x11) {\n      add_cmd_str(s);\n    }\n    else {\n      error(pcVar4);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  s_00 = (byte *)skipsp((char *)local_res0[0]);\n  local_res0[0] = s_00;\n  if (*s_00 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp((char *)s_00);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    c = findaction((char *)s_00);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "parse_cmdline(char *p)" identifier (parameter_list "(char *p)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  char *s;\n  int iVar2;\n  byte *s_00;\n  uint c;\n  int iVar3;\n  char *pcVar4;\n  byte *local_res0 [4];\n  \n  iVar3 = 0;\n  pcVar4 = PTR_00024314 + 0x2b84;\n  local_res0[0] = (byte *)p;\n  do {\n    s = tstr((char **)local_res0,1);\n    iVar2 = (*(code *)PTR_strlen_000243e0)(s);\n    iVar3 = iVar3 + iVar2;\n    if (iVar3 < 0x11) {\n      add_cmd_str(s);\n    }\n    else {\n      error(pcVar4);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  s_00 = (byte *)skipsp((char *)local_res0[0]);\n  local_res0[0] = s_00;\n  if (*s_00 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp((char *)s_00);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    c = findaction((char *)s_00);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *s_00;" type_identifier (pointer_declarator "*s_00" * identifier) ;) (declaration "uint c;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "byte *local_res0 [4];" type_identifier (pointer_declarator "*local_res0 [4]" * (array_declarator "local_res0 [4]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = PTR_00024314 + 0x2b84;" (assignment_expression "pcVar4 = PTR_00024314 + 0x2b84" identifier = (binary_expression "PTR_00024314 + 0x2b84" identifier + number_literal)) ;) (expression_statement "local_res0[0] = (byte *)p;" (assignment_expression "local_res0[0] = (byte *)p" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)p" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    s = tstr((char **)local_res0,1);\n    iVar2 = (*(code *)PTR_strlen_000243e0)(s);\n    iVar3 = iVar3 + iVar2;\n    if (iVar3 < 0x11) {\n      add_cmd_str(s);\n    }\n    else {\n      error(pcVar4);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));" do (compound_statement "{\n    s = tstr((char **)local_res0,1);\n    iVar2 = (*(code *)PTR_strlen_000243e0)(s);\n    iVar3 = iVar3 + iVar2;\n    if (iVar3 < 0x11) {\n      add_cmd_str(s);\n    }\n    else {\n      error(pcVar4);\n    }\n  }" { (expression_statement "s = tstr((char **)local_res0,1);" (assignment_expression "s = tstr((char **)local_res0,1)" identifier = (call_expression "tstr((char **)local_res0,1)" identifier (argument_list "((char **)local_res0,1)" ( (cast_expression "(char **)local_res0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , number_literal )))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_000243e0)(s);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_000243e0)(s)" identifier = (call_expression "(*(code *)PTR_strlen_000243e0)(s)" (parenthesized_expression "(*(code *)PTR_strlen_000243e0)" ( (pointer_expression "*(code *)PTR_strlen_000243e0" * (cast_expression "(code *)PTR_strlen_000243e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier )))) ;) (expression_statement "iVar3 = iVar3 + iVar2;" (assignment_expression "iVar3 = iVar3 + iVar2" identifier = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (if_statement "if (iVar3 < 0x11) {\n      add_cmd_str(s);\n    }\n    else {\n      error(pcVar4);\n    }" if (parenthesized_expression "(iVar3 < 0x11)" ( (binary_expression "iVar3 < 0x11" identifier < number_literal) )) (compound_statement "{\n      add_cmd_str(s);\n    }" { (expression_statement "add_cmd_str(s);" (call_expression "add_cmd_str(s)" identifier (argument_list "(s)" ( identifier ))) ;) }) (else_clause "else {\n      error(pcVar4);\n    }" else (compound_statement "{\n      error(pcVar4);\n    }" { (expression_statement "error(pcVar4);" (call_expression "error(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) }))) }) while (parenthesized_expression "((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0))" ( (binary_expression "(*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0)" (parenthesized_expression "(*local_res0[0] != 9)" ( (binary_expression "*local_res0[0] != 9" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) != number_literal) )) && (parenthesized_expression "((*local_res0[0] & 0xdf) != 0)" ( (binary_expression "(*local_res0[0] & 0xdf) != 0" (parenthesized_expression "(*local_res0[0] & 0xdf)" ( (binary_expression "*local_res0[0] & 0xdf" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "s_00 = (byte *)skipsp((char *)local_res0[0]);" (assignment_expression "s_00 = (byte *)skipsp((char *)local_res0[0])" identifier = (cast_expression "(byte *)skipsp((char *)local_res0[0])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipsp((char *)local_res0[0])" identifier (argument_list "((char *)local_res0[0])" ( (cast_expression "(char *)local_res0[0]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_res0[0]" identifier [ number_literal ])) ))))) ;) (expression_statement "local_res0[0] = s_00;" (assignment_expression "local_res0[0] = s_00" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*s_00 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp((char *)s_00);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    c = findaction((char *)s_00);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" if (parenthesized_expression "(*s_00 == 0)" ( (binary_expression "*s_00 == 0" (pointer_expression "*s_00" * identifier) == number_literal) )) (compound_statement "{\n    error(PTR_00024314 + 0x2b98);\n  }" { (expression_statement "error(PTR_00024314 + 0x2b98);" (call_expression "error(PTR_00024314 + 0x2b98)" identifier (argument_list "(PTR_00024314 + 0x2b98)" ( (binary_expression "PTR_00024314 + 0x2b98" identifier + number_literal) ))) ;) }) (else_clause "else {\n    local_res0[0] = (byte *)skipnsp((char *)s_00);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    c = findaction((char *)s_00);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" else (compound_statement "{\n    local_res0[0] = (byte *)skipnsp((char *)s_00);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    c = findaction((char *)s_00);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp((char *)local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" { (expression_statement "local_res0[0] = (byte *)skipnsp((char *)s_00);" (assignment_expression "local_res0[0] = (byte *)skipnsp((char *)s_00)" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)skipnsp((char *)s_00)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipnsp((char *)s_00)" identifier (argument_list "((char *)s_00)" ( (cast_expression "(char *)s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) (expression_statement "*local_res0[0] = 0;" (assignment_expression "*local_res0[0] = 0" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) = number_literal) ;) (expression_statement "c = findaction((char *)s_00);" (assignment_expression "c = findaction((char *)s_00)" identifier = (call_expression "findaction((char *)s_00)" identifier (argument_list "((char *)s_00)" ( (cast_expression "(char *)s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "*local_res0[0] = bVar1;" (assignment_expression "*local_res0[0] = bVar1" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) = identifier) ;) (expression_statement "local_res0[0] = (byte *)skipsp((char *)local_res0[0]);" (assignment_expression "local_res0[0] = (byte *)skipsp((char *)local_res0[0])" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)skipsp((char *)local_res0[0])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipsp((char *)local_res0[0])" identifier (argument_list "((char *)local_res0[0])" ( (cast_expression "(char *)local_res0[0]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_res0[0]" identifier [ number_literal ])) ))))) ;) (if_statement "if (*local_res0[0] == 0) {\n      add_cmd_char(c);\n    }\n    else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" if (parenthesized_expression "(*local_res0[0] == 0)" ( (binary_expression "*local_res0[0] == 0" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n      add_cmd_char(c);\n    }" { (expression_statement "add_cmd_char(c);" (call_expression "add_cmd_char(c)" identifier (argument_list "(c)" ( identifier ))) ;) }) (else_clause "else {\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" else (compound_statement "{\n      add_cmd_char(c | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" { (expression_statement "add_cmd_char(c | 0x80);" (call_expression "add_cmd_char(c | 0x80)" identifier (argument_list "(c | 0x80)" ( (binary_expression "c | 0x80" identifier | number_literal) ))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) (while_statement "while (bVar1 != 0) {\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar4 = tstr((char **)local_res0,0);\n        add_cmd_str(pcVar4);\n        bVar1 = *local_res0[0];\n      }" { (expression_statement "pcVar4 = tstr((char **)local_res0,0);" (assignment_expression "pcVar4 = tstr((char **)local_res0,0)" identifier = (call_expression "tstr((char **)local_res0,0)" identifier (argument_list "((char **)local_res0,0)" ( (cast_expression "(char **)local_res0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , number_literal )))) ;) (expression_statement "add_cmd_str(pcVar4);" (call_expression "add_cmd_str(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) })) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) }))) (return_statement "return;" return ;) })))
(translation_unit "void parse_cmdline(byte *param_1)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}\n\n" (function_definition "void parse_cmdline(byte *param_1)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "parse_cmdline(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *local_res0 [4];" type_identifier (pointer_declarator "*local_res0 [4]" * (array_declarator "local_res0 [4]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_00024314 + 0x2b84;" (assignment_expression "puVar7 = PTR_00024314 + 0x2b84" identifier = (binary_expression "PTR_00024314 + 0x2b84" identifier + number_literal)) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));" do (compound_statement "{\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  }" { (expression_statement "uVar2 = tstr(local_res0,1);" (assignment_expression "uVar2 = tstr(local_res0,1)" identifier = (call_expression "tstr(local_res0,1)" identifier (argument_list "(local_res0,1)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000243e0)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000243e0)" ( (pointer_expression "*(code *)PTR_strlen_000243e0" * (cast_expression "(code *)PTR_strlen_000243e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }" if (parenthesized_expression "(iVar6 < 0x11)" ( (binary_expression "iVar6 < 0x11" identifier < number_literal) )) (compound_statement "{\n      add_cmd_str(uVar2);\n    }" { (expression_statement "add_cmd_str(uVar2);" (call_expression "add_cmd_str(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n      error(puVar7);\n    }" else (compound_statement "{\n      error(puVar7);\n    }" { (expression_statement "error(puVar7);" (call_expression "error(puVar7)" identifier (argument_list "(puVar7)" ( identifier ))) ;) }))) }) while (parenthesized_expression "((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0))" ( (binary_expression "(*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0)" (parenthesized_expression "(*local_res0[0] != 9)" ( (binary_expression "*local_res0[0] != 9" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) != number_literal) )) && (parenthesized_expression "((*local_res0[0] & 0xdf) != 0)" ( (binary_expression "(*local_res0[0] & 0xdf) != 0" (parenthesized_expression "(*local_res0[0] & 0xdf)" ( (binary_expression "*local_res0[0] & 0xdf" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "pbVar4 = (byte *)skipsp(local_res0[0]);" (assignment_expression "pbVar4 = (byte *)skipsp(local_res0[0])" identifier = (cast_expression "(byte *)skipsp(local_res0[0])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipsp(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))))) ;) (expression_statement "local_res0[0] = pbVar4;" (assignment_expression "local_res0[0] = pbVar4" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" if (parenthesized_expression "(*pbVar4 == 0)" ( (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal) )) (compound_statement "{\n    error(PTR_00024314 + 0x2b98);\n  }" { (expression_statement "error(PTR_00024314 + 0x2b98);" (call_expression "error(PTR_00024314 + 0x2b98)" identifier (argument_list "(PTR_00024314 + 0x2b98)" ( (binary_expression "PTR_00024314 + 0x2b98" identifier + number_literal) ))) ;) }) (else_clause "else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" else (compound_statement "{\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" { (expression_statement "local_res0[0] = (byte *)skipnsp(pbVar4);" (assignment_expression "local_res0[0] = (byte *)skipnsp(pbVar4)" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)skipnsp(pbVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipnsp(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier ))))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) (expression_statement "*local_res0[0] = 0;" (assignment_expression "*local_res0[0] = 0" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) = number_literal) ;) (expression_statement "uVar5 = findaction(pbVar4);" (assignment_expression "uVar5 = findaction(pbVar4)" identifier = (call_expression "findaction(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier )))) ;) (expression_statement "*local_res0[0] = bVar1;" (assignment_expression "*local_res0[0] = bVar1" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) = identifier) ;) (expression_statement "local_res0[0] = (byte *)skipsp(local_res0[0]);" (assignment_expression "local_res0[0] = (byte *)skipsp(local_res0[0])" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = (cast_expression "(byte *)skipsp(local_res0[0])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "skipsp(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))))) ;) (if_statement "if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" if (parenthesized_expression "(*local_res0[0] == 0)" ( (binary_expression "*local_res0[0] == 0" (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n      add_cmd_char(uVar5);\n    }" { (expression_statement "add_cmd_char(uVar5);" (call_expression "add_cmd_char(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) }) (else_clause "else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" else (compound_statement "{\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" { (expression_statement "add_cmd_char(uVar5 | 0x80);" (call_expression "add_cmd_char(uVar5 | 0x80)" identifier (argument_list "(uVar5 | 0x80)" ( (binary_expression "uVar5 | 0x80" identifier | number_literal) ))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) (while_statement "while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }" { (expression_statement "uVar2 = tstr(local_res0,0);" (assignment_expression "uVar2 = tstr(local_res0,0)" identifier = (call_expression "tstr(local_res0,0)" identifier (argument_list "(local_res0,0)" ( identifier , number_literal )))) ;) (expression_statement "add_cmd_str(uVar2);" (call_expression "add_cmd_str(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" identifier = (pointer_expression "*local_res0[0]" * (subscript_expression "local_res0[0]" identifier [ number_literal ]))) ;) })) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (subscript_expression IDENT [ LIT ])) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (subscript_expression IDENT [ LIT ])) & LIT) )) != LIT) ))) )) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (subscript_expression IDENT [ LIT ])) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (subscript_expression IDENT [ LIT ])) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (subscript_expression IDENT [ LIT ])) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT | LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (subscript_expression IDENT [ LIT ]))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) }))) (return_statement return ;) })))
(function_definition "void parse_cmdline(byte *param_1)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "parse_cmdline(byte *param_1)" (identifier "parse_cmdline") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *local_res0 [4];\n  \n  iVar6 = 0;\n  puVar7 = PTR_00024314 + 0x2b84;\n  local_res0[0] = param_1;\n  do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));\n  add_cmd_char(0);\n  pbVar4 = (byte *)skipsp(local_res0[0]);\n  local_res0[0] = pbVar4;\n  if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte *local_res0 [4];" (type_identifier "byte") (pointer_declarator "*local_res0 [4]" (* "*") (array_declarator "local_res0 [4]" (identifier "local_res0") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = PTR_00024314 + 0x2b84;" (assignment_expression "puVar7 = PTR_00024314 + 0x2b84" (identifier "puVar7") (= "=") (binary_expression "PTR_00024314 + 0x2b84" (identifier "PTR_00024314") (+ "+") (number_literal "0x2b84"))) (; ";")) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));" (do "do") (compound_statement "{\n    uVar2 = tstr(local_res0,1);\n    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);\n    iVar6 = iVar6 + iVar3;\n    if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }\n  }" ({ "{") (expression_statement "uVar2 = tstr(local_res0,1);" (assignment_expression "uVar2 = tstr(local_res0,1)" (identifier "uVar2") (= "=") (call_expression "tstr(local_res0,1)" (identifier "tstr") (argument_list "(local_res0,1)" (( "(") (identifier "local_res0") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_000243e0)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000243e0)" (( "(") (pointer_expression "*(code *)PTR_strlen_000243e0" (* "*") (cast_expression "(code *)PTR_strlen_000243e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000243e0"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" (identifier "iVar6") (= "=") (binary_expression "iVar6 + iVar3" (identifier "iVar6") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (iVar6 < 0x11) {\n      add_cmd_str(uVar2);\n    }\n    else {\n      error(puVar7);\n    }" (if "if") (parenthesized_expression "(iVar6 < 0x11)" (( "(") (binary_expression "iVar6 < 0x11" (identifier "iVar6") (< "<") (number_literal "0x11")) () ")")) (compound_statement "{\n      add_cmd_str(uVar2);\n    }" ({ "{") (expression_statement "add_cmd_str(uVar2);" (call_expression "add_cmd_str(uVar2)" (identifier "add_cmd_str") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      error(puVar7);\n    }" (else "else") (compound_statement "{\n      error(puVar7);\n    }" ({ "{") (expression_statement "error(puVar7);" (call_expression "error(puVar7)" (identifier "error") (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0))" (( "(") (binary_expression "(*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0)" (parenthesized_expression "(*local_res0[0] != 9)" (( "(") (binary_expression "*local_res0[0] != 9" (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]"))) (!= "!=") (number_literal "9")) () ")")) (&& "&&") (parenthesized_expression "((*local_res0[0] & 0xdf) != 0)" (( "(") (binary_expression "(*local_res0[0] & 0xdf) != 0" (parenthesized_expression "(*local_res0[0] & 0xdf)" (( "(") (binary_expression "*local_res0[0] & 0xdf" (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]"))) (& "&") (number_literal "0xdf")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (; ";")) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" (identifier "add_cmd_char") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "pbVar4 = (byte *)skipsp(local_res0[0]);" (assignment_expression "pbVar4 = (byte *)skipsp(local_res0[0])" (identifier "pbVar4") (= "=") (cast_expression "(byte *)skipsp(local_res0[0])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "skipsp(local_res0[0])" (identifier "skipsp") (argument_list "(local_res0[0])" (( "(") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) () ")"))))) (; ";")) (expression_statement "local_res0[0] = pbVar4;" (assignment_expression "local_res0[0] = pbVar4" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "pbVar4")) (; ";")) (if_statement "if (*pbVar4 == 0) {\n    error(PTR_00024314 + 0x2b98);\n  }\n  else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" (if "if") (parenthesized_expression "(*pbVar4 == 0)" (( "(") (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    error(PTR_00024314 + 0x2b98);\n  }" ({ "{") (expression_statement "error(PTR_00024314 + 0x2b98);" (call_expression "error(PTR_00024314 + 0x2b98)" (identifier "error") (argument_list "(PTR_00024314 + 0x2b98)" (( "(") (binary_expression "PTR_00024314 + 0x2b98" (identifier "PTR_00024314") (+ "+") (number_literal "0x2b98")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" (else "else") (compound_statement "{\n    local_res0[0] = (byte *)skipnsp(pbVar4);\n    bVar1 = *local_res0[0];\n    *local_res0[0] = 0;\n    uVar5 = findaction(pbVar4);\n    *local_res0[0] = bVar1;\n    local_res0[0] = (byte *)skipsp(local_res0[0]);\n    if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }\n  }" ({ "{") (expression_statement "local_res0[0] = (byte *)skipnsp(pbVar4);" (assignment_expression "local_res0[0] = (byte *)skipnsp(pbVar4)" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (cast_expression "(byte *)skipnsp(pbVar4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "skipnsp(pbVar4)" (identifier "skipnsp") (argument_list "(pbVar4)" (( "(") (identifier "pbVar4") () ")"))))) (; ";")) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" (identifier "bVar1") (= "=") (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "*local_res0[0] = 0;" (assignment_expression "*local_res0[0] = 0" (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = findaction(pbVar4);" (assignment_expression "uVar5 = findaction(pbVar4)" (identifier "uVar5") (= "=") (call_expression "findaction(pbVar4)" (identifier "findaction") (argument_list "(pbVar4)" (( "(") (identifier "pbVar4") () ")")))) (; ";")) (expression_statement "*local_res0[0] = bVar1;" (assignment_expression "*local_res0[0] = bVar1" (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]"))) (= "=") (identifier "bVar1")) (; ";")) (expression_statement "local_res0[0] = (byte *)skipsp(local_res0[0]);" (assignment_expression "local_res0[0] = (byte *)skipsp(local_res0[0])" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (cast_expression "(byte *)skipsp(local_res0[0])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "skipsp(local_res0[0])" (identifier "skipsp") (argument_list "(local_res0[0])" (( "(") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) () ")"))))) (; ";")) (if_statement "if (*local_res0[0] == 0) {\n      add_cmd_char(uVar5);\n    }\n    else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" (if "if") (parenthesized_expression "(*local_res0[0] == 0)" (( "(") (binary_expression "*local_res0[0] == 0" (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      add_cmd_char(uVar5);\n    }" ({ "{") (expression_statement "add_cmd_char(uVar5);" (call_expression "add_cmd_char(uVar5)" (identifier "add_cmd_char") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" (else "else") (compound_statement "{\n      add_cmd_char(uVar5 | 0x80);\n      bVar1 = *local_res0[0];\n      while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }\n      add_cmd_char(0);\n    }" ({ "{") (expression_statement "add_cmd_char(uVar5 | 0x80);" (call_expression "add_cmd_char(uVar5 | 0x80)" (identifier "add_cmd_char") (argument_list "(uVar5 | 0x80)" (( "(") (binary_expression "uVar5 | 0x80" (identifier "uVar5") (| "|") (number_literal "0x80")) () ")"))) (; ";")) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" (identifier "bVar1") (= "=") (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")))) (; ";")) (while_statement "while (bVar1 != 0) {\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }" (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = tstr(local_res0,0);\n        add_cmd_str(uVar2);\n        bVar1 = *local_res0[0];\n      }" ({ "{") (expression_statement "uVar2 = tstr(local_res0,0);" (assignment_expression "uVar2 = tstr(local_res0,0)" (identifier "uVar2") (= "=") (call_expression "tstr(local_res0,0)" (identifier "tstr") (argument_list "(local_res0,0)" (( "(") (identifier "local_res0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "add_cmd_str(uVar2);" (call_expression "add_cmd_str(uVar2)" (identifier "add_cmd_str") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "bVar1 = *local_res0[0];" (assignment_expression "bVar1 = *local_res0[0]" (identifier "bVar1") (= "=") (pointer_expression "*local_res0[0]" (* "*") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")))) (; ";")) (} "}"))) (expression_statement "add_cmd_char(0);" (call_expression "add_cmd_char(0)" (identifier "add_cmd_char") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (array_declarator declarator: (identifier) size: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))))) (return_statement))))

void MASKED(byte *param_1)

{
  byte bVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  uint uVar5;
  int iVar6;
  undefined *puVar7;
  byte *local_res0 [4];
  
  iVar6 = 0;
  puVar7 = PTR_00024314 + 0x2b84;
  local_res0[0] = param_1;
  do {
    uVar2 = tstr(local_res0,1);
    iVar3 = (*(code *)PTR_strlen_000243e0)(uVar2);
    iVar6 = iVar6 + iVar3;
    if (iVar6 < 0x11) {
      add_cmd_str(uVar2);
    }
    else {
      error(puVar7);
    }
  } while ((*local_res0[0] != 9) && ((*local_res0[0] & 0xdf) != 0));
  add_cmd_char(0);
  pbVar4 = (byte *)skipsp(local_res0[0]);
  local_res0[0] = pbVar4;
  if (*pbVar4 == 0) {
    error(PTR_00024314 + 0x2b98);
  }
  else {
    local_res0[0] = (byte *)skipnsp(pbVar4);
    bVar1 = *local_res0[0];
    *local_res0[0] = 0;
    uVar5 = findaction(pbVar4);
    *local_res0[0] = bVar1;
    local_res0[0] = (byte *)skipsp(local_res0[0]);
    if (*local_res0[0] == 0) {
      add_cmd_char(uVar5);
    }
    else {
      add_cmd_char(uVar5 | 0x80);
      bVar1 = *local_res0[0];
      while (bVar1 != 0) {
        uVar2 = tstr(local_res0,0);
        add_cmd_str(uVar2);
        bVar1 = *local_res0[0];
      }
      add_cmd_char(0);
    }
  }
  return;
}

