
char * array_variable_name(char *s,int flags,char **subp,int *lenp)

{
  char *pcVar1;
  int iVar2;
  
  pcVar1 = (char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b);
  if (pcVar1 == (char *)0x0) {
    if (subp != (char **)0x0) {
      *subp = (char *)0x0;
    }
    if (lenp != (int *)0x0) {
      *lenp = 0;
      lenp = (int *)0x0;
    }
  }
  else {
    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);
    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {
      *pcVar1 = '\0';
      iVar2 = (*(code *)PTR_strlen_00158444)(s);
                    /* WARNING: Subroutine does not return */
      xmalloc(iVar2 + 1);
    }
    (*(code *)PTR_err_badarraysub_0015734c)(s);
    if (subp != (char **)0x0) {
      *subp = pcVar1;
    }
    if (lenp != (int *)0x0) {
      *lenp = 0;
      lenp = (int *)0x0;
    }
  }
  return (char *)lenp;
}



int * array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)

{
  undefined1 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);
  piVar5 = param_4;
  if (puVar1 == (undefined1 *)0x0) {
    if (param_3 != (undefined4 *)0x0) {
      *param_3 = 0;
    }
    if (param_4 != (int *)0x0) {
      *param_4 = 0;
      piVar5 = (int *)0x0;
    }
  }
  else {
    iVar6 = (int)puVar1 - param_1;
    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);
    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {
      *puVar1 = 0;
      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);
      uVar4 = xmalloc(iVar3 + 1);
      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);
      *puVar1 = 0x5b;
      if (param_3 != (undefined4 *)0x0) {
        *param_3 = puVar1 + 1;
      }
      if (param_4 != (int *)0x0) {
        *param_4 = iVar2 - iVar6;
      }
    }
    else {
      (*(code *)PTR_err_badarraysub_0015734c)(param_1);
      if (param_3 != (undefined4 *)0x0) {
        *param_3 = puVar1;
      }
      if (param_4 != (int *)0x0) {
        *param_4 = 0;
        piVar5 = (int *)0x0;
      }
    }
  }
  return piVar5;
}


lui gp,0xc
addiu gp,gp,0x1f04
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)
or s1,a0,zero
or s2,a1,zero
or s5,a2,zero
or s3,a3,zero
li a1,0x5b
lw t9,-0x7c64(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0009c740
_or s0,v0,zero
subu s4,v0,s1
or a2,s2,zero
or a1,s4,zero
or a0,s1,zero
lw t9,-0x7a54(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s2,v0,zero
addiu v0,s4,0x1
slt v0,v0,s2
beq v0,zero,0x0009c760
_addu v0,s1,s2
lb v1,0x0(v0)
li v0,0x5d
bne v1,v0,0x0009c760
_or a0,s1,zero
sb zero,0x0(s0)
lw t9,-0x60fc(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a0,v0,0x1
lw t9,-0x7f88(gp)
bal 0x000b7120
_nop
lw gp,0x10(sp)
or a1,s1,zero
or a0,v0,zero
lw t9,-0x6074(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0x5b
beq s5,zero,0x0009c730
_sb v1,0x0(s0)
addiu s0,s0,0x1
sw s0,0x0(s5)
beq s3,zero,0x0009c790
_subu s2,s2,s4
b 0x0009c790
_sw s2,0x0(s3)
beq s5,zero,0x0009c74c
_nop
sw zero,0x0(s5)
beq s3,zero,0x0009c7b4
_nop
sw zero,0x0(s3)
b 0x0009c790
_or v0,s0,zero
or a0,s1,zero
lw t9,-0x71f4(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq s5,zero,0x0009c780
_nop
sw s0,0x0(s5)
beq s3,zero,0x0009c790
_or v0,s3,zero
sw zero,0x0(s3)
or v0,zero,zero
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
b 0x0009c790
_or v0,s3,zero
(translation_unit "int * array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}\n\n" (function_definition "int * array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}" primitive_type (pointer_declarator "* array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" * (function_declarator "array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);" (assignment_expression "puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" (parenthesized_expression "(*(code *)PTR_mbschr_001568dc)" ( (pointer_expression "*(code *)PTR_mbschr_001568dc" * (cast_expression "(code *)PTR_mbschr_001568dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x5b)" ( identifier , number_literal ))))) ;) (expression_statement "piVar5 = param_4;" (assignment_expression "piVar5 = param_4" identifier = identifier) ;) (if_statement "if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(puVar1 == (undefined1 *)0x0)" ( (binary_expression "puVar1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }" { (if_statement "if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_3 = 0;\n    }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" else (compound_statement "{\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" { (expression_statement "iVar6 = (int)puVar1 - param_1;" (assignment_expression "iVar6 = (int)puVar1 - param_1" identifier = (binary_expression "(int)puVar1 - param_1" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2)" identifier = (call_expression "(*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00156aec)" ( (pointer_expression "*(code *)PTR_skipsubscript_00156aec" * (cast_expression "(code *)PTR_skipsubscript_00156aec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar6,param_2)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" if (parenthesized_expression "((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']'))" ( (binary_expression "(iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')" (parenthesized_expression "(iVar6 + 1 < iVar2)" ( (binary_expression "iVar6 + 1 < iVar2" (binary_expression "iVar6 + 1" identifier + number_literal) < identifier) )) && (parenthesized_expression "(*(char *)(param_1 + iVar2) == ']')" ( (binary_expression "*(char *)(param_1 + iVar2) == ']'" (pointer_expression "*(char *)(param_1 + iVar2)" * (cast_expression "(char *)(param_1 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar2)" ( (binary_expression "param_1 + iVar2" identifier + identifier) )))) == (char_literal "']'" ' character ')) ))) )) (compound_statement "{\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_00158444)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00158444)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00158444)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00158444)" ( (pointer_expression "*(code *)PTR_strlen_00158444" * (cast_expression "(code *)PTR_strlen_00158444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar4 = xmalloc(iVar3 + 1);" (assignment_expression "uVar4 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);" (assignment_expression "piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" identifier = (cast_expression "(int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_001584cc)" ( (pointer_expression "*(code *)PTR_strcpy_001584cc" * (cast_expression "(code *)PTR_strcpy_001584cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,param_1)" ( identifier , identifier ))))) ;) (expression_statement "*puVar1 = 0x5b;" (assignment_expression "*puVar1 = 0x5b" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_3 = puVar1 + 1;\n      }" { (expression_statement "*param_3 = puVar1 + 1;" (assignment_expression "*param_3 = puVar1 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = iVar2 - iVar6;\n      }" { (expression_statement "*param_4 = iVar2 - iVar6;" (assignment_expression "*param_4 = iVar2 - iVar6" (pointer_expression "*param_4" * identifier) = (binary_expression "iVar2 - iVar6" identifier - identifier)) ;) })) }) (else_clause "else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" else (compound_statement "{\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" { (expression_statement "(*(code *)PTR_err_badarraysub_0015734c)(param_1);" (call_expression "(*(code *)PTR_err_badarraysub_0015734c)(param_1)" (parenthesized_expression "(*(code *)PTR_err_badarraysub_0015734c)" ( (pointer_expression "*(code *)PTR_err_badarraysub_0015734c" * (cast_expression "(code *)PTR_err_badarraysub_0015734c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_3 = puVar1;\n      }" { (expression_statement "*param_3 = puVar1;" (assignment_expression "*param_3 = puVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) }))) (return_statement "return piVar5;" return identifier ;) })))
(translation_unit "char * array_variable_name(char *s,int flags,char **subp,int *lenp)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = (char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b);\n  if (pcVar1 == (char *)0x0) {\n    if (subp != (char **)0x0) {\n      *subp = (char *)0x0;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  else {\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);\n    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }\n    (*(code *)PTR_err_badarraysub_0015734c)(s);\n    if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  return (char *)lenp;\n}\n\n" (function_definition "char * array_variable_name(char *s,int flags,char **subp,int *lenp)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = (char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b);\n  if (pcVar1 == (char *)0x0) {\n    if (subp != (char **)0x0) {\n      *subp = (char *)0x0;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  else {\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);\n    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }\n    (*(code *)PTR_err_badarraysub_0015734c)(s);\n    if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  return (char *)lenp;\n}" primitive_type (pointer_declarator "* array_variable_name(char *s,int flags,char **subp,int *lenp)" * (function_declarator "array_variable_name(char *s,int flags,char **subp,int *lenp)" identifier (parameter_list "(char *s,int flags,char **subp,int *lenp)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) , (parameter_declaration "char **subp" primitive_type (pointer_declarator "**subp" * (pointer_declarator "*subp" * identifier))) , (parameter_declaration "int *lenp" primitive_type (pointer_declarator "*lenp" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = (char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b);\n  if (pcVar1 == (char *)0x0) {\n    if (subp != (char **)0x0) {\n      *subp = (char *)0x0;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  else {\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);\n    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }\n    (*(code *)PTR_err_badarraysub_0015734c)(s);\n    if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  return (char *)lenp;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b)" identifier = (cast_expression "(char *)(*(code *)PTR_mbschr_001568dc)(s,0x5b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mbschr_001568dc)(s,0x5b)" (parenthesized_expression "(*(code *)PTR_mbschr_001568dc)" ( (pointer_expression "*(code *)PTR_mbschr_001568dc" * (cast_expression "(code *)PTR_mbschr_001568dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s,0x5b)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    if (subp != (char **)0x0) {\n      *subp = (char *)0x0;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }\n  else {\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);\n    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }\n    (*(code *)PTR_err_badarraysub_0015734c)(s);\n    if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (subp != (char **)0x0) {\n      *subp = (char *)0x0;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }" { (if_statement "if (subp != (char **)0x0) {\n      *subp = (char *)0x0;\n    }" if (parenthesized_expression "(subp != (char **)0x0)" ( (binary_expression "subp != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      *subp = (char *)0x0;\n    }" { (expression_statement "*subp = (char *)0x0;" (assignment_expression "*subp = (char *)0x0" (pointer_expression "*subp" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }" if (parenthesized_expression "(lenp != (int *)0x0)" ( (binary_expression "lenp != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }" { (expression_statement "*lenp = 0;" (assignment_expression "*lenp = 0" (pointer_expression "*lenp" * identifier) = number_literal) ;) (expression_statement "lenp = (int *)0x0;" (assignment_expression "lenp = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);\n    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }\n    (*(code *)PTR_err_badarraysub_0015734c)(s);\n    if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);\n    if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }\n    (*(code *)PTR_err_badarraysub_0015734c)(s);\n    if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }\n    if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags);" (assignment_expression "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags)" identifier = (call_expression "(*(code *)PTR_skipsubscript_00156aec)(s,(int)pcVar1 - (int)s,flags)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00156aec)" ( (pointer_expression "*(code *)PTR_skipsubscript_00156aec" * (cast_expression "(code *)PTR_skipsubscript_00156aec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s,(int)pcVar1 - (int)s,flags)" ( identifier , (binary_expression "(int)pcVar1 - (int)s" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (if_statement "if ((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')) {\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }" if (parenthesized_expression "((((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']'))" ( (binary_expression "(((int)pcVar1 - (int)s) + 1 < iVar2) && (s[iVar2] == ']')" (parenthesized_expression "(((int)pcVar1 - (int)s) + 1 < iVar2)" ( (binary_expression "((int)pcVar1 - (int)s) + 1 < iVar2" (binary_expression "((int)pcVar1 - (int)s) + 1" (parenthesized_expression "((int)pcVar1 - (int)s)" ( (binary_expression "(int)pcVar1 - (int)s" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) < identifier) )) && (parenthesized_expression "(s[iVar2] == ']')" ( (binary_expression "s[iVar2] == ']'" (subscript_expression "s[iVar2]" identifier [ identifier ]) == (char_literal "']'" ' character ')) ))) )) (compound_statement "{\n      *pcVar1 = '\0';\n      iVar2 = (*(code *)PTR_strlen_00158444)(s);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar2 + 1);\n    }" { (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00158444)(s);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00158444)(s)" identifier = (call_expression "(*(code *)PTR_strlen_00158444)(s)" (parenthesized_expression "(*(code *)PTR_strlen_00158444)" ( (pointer_expression "*(code *)PTR_strlen_00158444" * (cast_expression "(code *)PTR_strlen_00158444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier )))) ;) comment (expression_statement "xmalloc(iVar2 + 1);" (call_expression "xmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) })) (expression_statement "(*(code *)PTR_err_badarraysub_0015734c)(s);" (call_expression "(*(code *)PTR_err_badarraysub_0015734c)(s)" (parenthesized_expression "(*(code *)PTR_err_badarraysub_0015734c)" ( (pointer_expression "*(code *)PTR_err_badarraysub_0015734c" * (cast_expression "(code *)PTR_err_badarraysub_0015734c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier ))) ;) (if_statement "if (subp != (char **)0x0) {\n      *subp = pcVar1;\n    }" if (parenthesized_expression "(subp != (char **)0x0)" ( (binary_expression "subp != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      *subp = pcVar1;\n    }" { (expression_statement "*subp = pcVar1;" (assignment_expression "*subp = pcVar1" (pointer_expression "*subp" * identifier) = identifier) ;) })) (if_statement "if (lenp != (int *)0x0) {\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }" if (parenthesized_expression "(lenp != (int *)0x0)" ( (binary_expression "lenp != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *lenp = 0;\n      lenp = (int *)0x0;\n    }" { (expression_statement "*lenp = 0;" (assignment_expression "*lenp = 0" (pointer_expression "*lenp" * identifier) = number_literal) ;) (expression_statement "lenp = (int *)0x0;" (assignment_expression "lenp = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) (return_statement "return (char *)lenp;" return (cast_expression "(char *)lenp" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "int * array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}\n\n" (function_definition "int * array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}" primitive_type (pointer_declarator "* array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" * (function_declarator "array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);" (assignment_expression "puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" (parenthesized_expression "(*(code *)PTR_mbschr_001568dc)" ( (pointer_expression "*(code *)PTR_mbschr_001568dc" * (cast_expression "(code *)PTR_mbschr_001568dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x5b)" ( identifier , number_literal ))))) ;) (expression_statement "piVar5 = param_4;" (assignment_expression "piVar5 = param_4" identifier = identifier) ;) (if_statement "if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(puVar1 == (undefined1 *)0x0)" ( (binary_expression "puVar1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }" { (if_statement "if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_3 = 0;\n    }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" else (compound_statement "{\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" { (expression_statement "iVar6 = (int)puVar1 - param_1;" (assignment_expression "iVar6 = (int)puVar1 - param_1" identifier = (binary_expression "(int)puVar1 - param_1" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2)" identifier = (call_expression "(*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00156aec)" ( (pointer_expression "*(code *)PTR_skipsubscript_00156aec" * (cast_expression "(code *)PTR_skipsubscript_00156aec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar6,param_2)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" if (parenthesized_expression "((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']'))" ( (binary_expression "(iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')" (parenthesized_expression "(iVar6 + 1 < iVar2)" ( (binary_expression "iVar6 + 1 < iVar2" (binary_expression "iVar6 + 1" identifier + number_literal) < identifier) )) && (parenthesized_expression "(*(char *)(param_1 + iVar2) == ']')" ( (binary_expression "*(char *)(param_1 + iVar2) == ']'" (pointer_expression "*(char *)(param_1 + iVar2)" * (cast_expression "(char *)(param_1 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar2)" ( (binary_expression "param_1 + iVar2" identifier + identifier) )))) == (char_literal "']'" ' character ')) ))) )) (compound_statement "{\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_00158444)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00158444)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00158444)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00158444)" ( (pointer_expression "*(code *)PTR_strlen_00158444" * (cast_expression "(code *)PTR_strlen_00158444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar4 = xmalloc(iVar3 + 1);" (assignment_expression "uVar4 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);" (assignment_expression "piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" identifier = (cast_expression "(int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_001584cc)" ( (pointer_expression "*(code *)PTR_strcpy_001584cc" * (cast_expression "(code *)PTR_strcpy_001584cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,param_1)" ( identifier , identifier ))))) ;) (expression_statement "*puVar1 = 0x5b;" (assignment_expression "*puVar1 = 0x5b" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_3 = puVar1 + 1;\n      }" { (expression_statement "*param_3 = puVar1 + 1;" (assignment_expression "*param_3 = puVar1 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = iVar2 - iVar6;\n      }" { (expression_statement "*param_4 = iVar2 - iVar6;" (assignment_expression "*param_4 = iVar2 - iVar6" (pointer_expression "*param_4" * identifier) = (binary_expression "iVar2 - iVar6" identifier - identifier)) ;) })) }) (else_clause "else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" else (compound_statement "{\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" { (expression_statement "(*(code *)PTR_err_badarraysub_0015734c)(param_1);" (call_expression "(*(code *)PTR_err_badarraysub_0015734c)(param_1)" (parenthesized_expression "(*(code *)PTR_err_badarraysub_0015734c)" ( (pointer_expression "*(code *)PTR_err_badarraysub_0015734c" * (cast_expression "(code *)PTR_err_badarraysub_0015734c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_3 = puVar1;\n      }" { (expression_statement "*param_3 = puVar1;" (assignment_expression "*param_3 = puVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) }))) (return_statement "return piVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (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 ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * 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 = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (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 ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT - IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) }))) }))) (return_statement return IDENT ;) })))
(function_definition "int * array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}" (primitive_type "int") (pointer_declarator "* array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" (* "*") (function_declarator "array_variable_name(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" (identifier "array_variable_name") (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);\n  piVar5 = param_4;\n  if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }\n  return piVar5;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);" (assignment_expression "puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_mbschr_001568dc)(param_1,0x5b)" (parenthesized_expression "(*(code *)PTR_mbschr_001568dc)" (( "(") (pointer_expression "*(code *)PTR_mbschr_001568dc" (* "*") (cast_expression "(code *)PTR_mbschr_001568dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mbschr_001568dc"))) () ")")) (argument_list "(param_1,0x5b)" (( "(") (identifier "param_1") (, ",") (number_literal "0x5b") () ")"))))) (; ";")) (expression_statement "piVar5 = param_4;" (assignment_expression "piVar5 = param_4" (identifier "piVar5") (= "=") (identifier "param_4")) (; ";")) (if_statement "if (puVar1 == (undefined1 *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }\n  else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined1 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }\n  }" ({ "{") (if_statement "if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_3 = 0;\n    }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (param_4 != (int *)0x0) {\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }" (if "if") (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_4 = 0;\n      piVar5 = (int *)0x0;\n    }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" (identifier "piVar5") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = (int)puVar1 - param_1;\n    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);\n    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar6 = (int)puVar1 - param_1;" (assignment_expression "iVar6 = (int)puVar1 - param_1" (identifier "iVar6") (= "=") (binary_expression "(int)puVar1 - param_1" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (- "-") (identifier "param_1"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00156aec)" (( "(") (pointer_expression "*(code *)PTR_skipsubscript_00156aec" (* "*") (cast_expression "(code *)PTR_skipsubscript_00156aec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_skipsubscript_00156aec"))) () ")")) (argument_list "(param_1,iVar6,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "iVar6") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }\n    else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" (if "if") (parenthesized_expression "((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']'))" (( "(") (binary_expression "(iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')" (parenthesized_expression "(iVar6 + 1 < iVar2)" (( "(") (binary_expression "iVar6 + 1 < iVar2" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (< "<") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(param_1 + iVar2) == ']')" (( "(") (binary_expression "*(char *)(param_1 + iVar2) == ']'" (pointer_expression "*(char *)(param_1 + iVar2)" (* "*") (cast_expression "(char *)(param_1 + iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar2)" (( "(") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2")) () ")")))) (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      *puVar1 = 0;\n      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);\n      uVar4 = xmalloc(iVar3 + 1);\n      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);\n      *puVar1 = 0x5b;\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }\n    }" ({ "{") (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strlen_00158444)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00158444)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_00158444)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00158444)" (( "(") (pointer_expression "*(code *)PTR_strlen_00158444" (* "*") (cast_expression "(code *)PTR_strlen_00158444" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00158444"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar4 = xmalloc(iVar3 + 1);" (assignment_expression "uVar4 = xmalloc(iVar3 + 1)" (identifier "uVar4") (= "=") (call_expression "xmalloc(iVar3 + 1)" (identifier "xmalloc") (argument_list "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);" (assignment_expression "piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" (identifier "piVar5") (= "=") (cast_expression "(int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strcpy_001584cc)(uVar4,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_001584cc)" (( "(") (pointer_expression "*(code *)PTR_strcpy_001584cc" (* "*") (cast_expression "(code *)PTR_strcpy_001584cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_001584cc"))) () ")")) (argument_list "(uVar4,param_1)" (( "(") (identifier "uVar4") (, ",") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0x5b;" (assignment_expression "*puVar1 = 0x5b" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0x5b")) (; ";")) (if_statement "if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1 + 1;\n      }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_3 = puVar1 + 1;\n      }" ({ "{") (expression_statement "*param_3 = puVar1 + 1;" (assignment_expression "*param_3 = puVar1 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (param_4 != (int *)0x0) {\n        *param_4 = iVar2 - iVar6;\n      }" (if "if") (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_4 = iVar2 - iVar6;\n      }" ({ "{") (expression_statement "*param_4 = iVar2 - iVar6;" (assignment_expression "*param_4 = iVar2 - iVar6" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "iVar2 - iVar6" (identifier "iVar2") (- "-") (identifier "iVar6"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_err_badarraysub_0015734c)(param_1);\n      if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }\n      if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }\n    }" ({ "{") (expression_statement "(*(code *)PTR_err_badarraysub_0015734c)(param_1);" (call_expression "(*(code *)PTR_err_badarraysub_0015734c)(param_1)" (parenthesized_expression "(*(code *)PTR_err_badarraysub_0015734c)" (( "(") (pointer_expression "*(code *)PTR_err_badarraysub_0015734c" (* "*") (cast_expression "(code *)PTR_err_badarraysub_0015734c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_err_badarraysub_0015734c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (param_3 != (undefined4 *)0x0) {\n        *param_3 = puVar1;\n      }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_3 = puVar1;\n      }" ({ "{") (expression_statement "*param_3 = puVar1;" (assignment_expression "*param_3 = puVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (if_statement "if (param_4 != (int *)0x0) {\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }" (if "if") (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_4 = 0;\n        piVar5 = (int *)0x0;\n      }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" (identifier "piVar5") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (} "}")))) (} "}")))) (return_statement "return piVar5;" (return "return") (identifier "piVar5") (; ";")) (} "}")))

char * function_1(char *s,int flags,char **var_2,int *var_3)

{
  char *var_1;
  int var_4;
  
  var_1 = (char *)(*(type_1 *)PTR_mbschr_001568dc)(s,0x5b);
  if (var_1 == (char *)0x0) {
    if (var_2 != (char **)0x0) {
      *var_2 = (char *)0x0;
    }
    if (var_3 != (int *)0x0) {
      *var_3 = 0;
      var_3 = (int *)0x0;
    }
  }
  else {
    var_4 = (*(type_1 *)PTR_skipsubscript_00156aec)(s,(int)var_1 - (int)s,flags);
    if ((((int)var_1 - (int)s) + 1 < var_4) && (s[var_4] == ']')) {
      *var_1 = '\0';
      var_4 = (*(type_1 *)PTR_strlen_00158444)(s);
                    /* WARNING: Subroutine does not return */
      var_5(var_4 + 1);
    }
    (*(type_1 *)PTR_err_badarraysub_0015734c)(s);
    if (var_2 != (char **)0x0) {
      *var_2 = var_1;
    }
    if (var_3 != (int *)0x0) {
      *var_3 = 0;
      var_3 = (int *)0x0;
    }
  }
  return (char *)var_3;
}


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

int * MASKED(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)

{
  undefined1 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = (undefined1 *)(*(code *)PTR_mbschr_001568dc)(param_1,0x5b);
  piVar5 = param_4;
  if (puVar1 == (undefined1 *)0x0) {
    if (param_3 != (undefined4 *)0x0) {
      *param_3 = 0;
    }
    if (param_4 != (int *)0x0) {
      *param_4 = 0;
      piVar5 = (int *)0x0;
    }
  }
  else {
    iVar6 = (int)puVar1 - param_1;
    iVar2 = (*(code *)PTR_skipsubscript_00156aec)(param_1,iVar6,param_2);
    if ((iVar6 + 1 < iVar2) && (*(char *)(param_1 + iVar2) == ']')) {
      *puVar1 = 0;
      iVar3 = (*(code *)PTR_strlen_00158444)(param_1);
      uVar4 = xmalloc(iVar3 + 1);
      piVar5 = (int *)(*(code *)PTR_strcpy_001584cc)(uVar4,param_1);
      *puVar1 = 0x5b;
      if (param_3 != (undefined4 *)0x0) {
        *param_3 = puVar1 + 1;
      }
      if (param_4 != (int *)0x0) {
        *param_4 = iVar2 - iVar6;
      }
    }
    else {
      (*(code *)PTR_err_badarraysub_0015734c)(param_1);
      if (param_3 != (undefined4 *)0x0) {
        *param_3 = puVar1;
      }
      if (param_4 != (int *)0x0) {
        *param_4 = 0;
        piVar5 = (int *)0x0;
      }
    }
  }
  return piVar5;
}

