
/* WARNING: Unknown calling convention */

NODE * force_array(NODE *symbol,_Bool canfatal)

{
  bool bVar1;
  NODETYPE NVar2;
  undefined4 uVar3;
  undefined3 in_register_00000014;
  char *pcVar4;
  NODE *pNVar5;
  
  NVar2 = symbol->type;
  if (NVar2 == Node_param_list) {
    symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);
    NVar2 = symbol->type;
    if (NVar2 == Node_array_ref) {
      pNVar5 = *(NODE **)&symbol->sub;
      bVar1 = true;
      NVar2 = pNVar5->type;
    }
    else {
      bVar1 = true;
      pNVar5 = symbol;
    }
  }
  else {
    bVar1 = false;
    pNVar5 = symbol;
  }
  if (NVar2 != Node_var_array) {
    if (NVar2 == Node_var_new) {
      (pNVar5->sub).nodep.rn = (exp_node *)0x0;
      pNVar5->type = Node_var_array;
      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;
      (pNVar5->sub).nodep.cnt = 0;
      (pNVar5->sub).nodep.l.lp = &null_array_func;
      (pNVar5->sub).nodep.reflags = 0;
      (pNVar5->sub).nodep.reserved = 0;
      pNVar5->flags = 0;
      (pNVar5->sub).val.slen = 0;
    }
    else if (CONCAT31(in_register_00000014,canfatal) != 0) {
      if (NVar2 == Node_val) {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);
        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);
        (*(code *)PTR_r_fatal_004b1b70)(uVar3);
      }
      if (bVar1) {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);
        pcVar4 = "attempt to use scalar parameter `%s\' as an array";
      }
      else {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);
        pcVar4 = "attempt to use scalar `%s\' as an array";
      }
      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);
      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);
      return pNVar5;
    }
  }
  return pNVar5;
}



int * force_array(int *param_1,int param_2)

{
  bool bVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  int *piVar5;
  
  iVar2 = param_1[10];
  if (iVar2 == 7) {
    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);
    iVar2 = param_1[10];
    if (iVar2 == 0xb) {
      piVar5 = (int *)*param_1;
      bVar1 = true;
      iVar2 = piVar5[10];
    }
    else {
      bVar1 = true;
      piVar5 = param_1;
    }
  }
  else {
    bVar1 = false;
    piVar5 = param_1;
  }
  if (iVar2 != 5) {
    if (iVar2 == 6) {
      piVar5[6] = 0;
      piVar5[10] = 5;
      piVar5[1] = 0;
      piVar5[7] = 0;
      *piVar5 = (int)&PTR_DAT_004af9bc;
      piVar5[8] = 0;
      piVar5[5] = 0;
      piVar5[0xb] = 0;
      piVar5[3] = 0;
    }
    else if (param_2 != 0) {
      if (iVar2 == 1) {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);
        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);
        (*(code *)PTR_r_fatal_004b1b70)(uVar3);
      }
      if (bVar1) {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);
        pcVar4 = "attempt to use scalar parameter `%s\' as an array";
      }
      else {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);
        pcVar4 = "attempt to use scalar `%s\' as an array";
      }
      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);
      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);
      return piVar5;
    }
  }
  return piVar5;
}


lui gp,0x4c
lw v0,0x28(a0)
addiu sp,sp,-0x30
addiu gp,gp,-0x64e0
li v1,0x7
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
beq v0,v1,0x0040a52c
_sw gp,0x10(sp)
or s2,zero,zero
or s1,a0,zero
li v1,0x5
beq v0,v1,0x0040a498
_li a0,0x6
bne v0,a0,0x0040a4b8
_nop
lui v0,0x4b
sw zero,0x18(s0)
sw v1,0x28(s0)
addiu v0,v0,-0x644
sw zero,0x4(s0)
sw zero,0x1c(s0)
sw v0,0x0(s0)
sw zero,0x20(s0)
sw zero,0x14(s0)
sw zero,0x2c(s0)
sw zero,0xc(s0)
lw ra,0x2c(sp)
or v0,s0,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
beq a1,zero,0x0040a498
_li v1,0x1
beq v0,v1,0x0040a598
_lui s3,0x4a
bne s2,zero,0x0040a574
_lw t9,-0x7fb4(gp)
li a1,0x162
jalr t9
_addiu a0,s3,-0x1950
lui a1,0x49
lw gp,0x10(sp)
li a2,0x5
addiu a1,a1,-0xbc
lw t9,-0x77c4(gp)
jalr t9
_or a0,zero,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7fb0(gp)
jalr t9
_lw a1,0x10(s1)
or v0,s0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw v1,-0x7e6c(gp)
li a0,0xb
lw v0,0x0(s0)
lw a2,0x0(v1)
sll v1,v0,0x2
lw v0,0x4(a2)
addu v0,v0,v1
lw s1,0x0(v0)
lw v0,0x28(s1)
beq v0,a0,0x0040a564
_nop
li s2,0x1
b 0x0040a458
_or s0,s1,zero
lw s0,0x0(s1)
li s2,0x1
b 0x0040a458
_lw v0,0x28(s0)
li a1,0x15f
jalr t9
_addiu a0,s3,-0x1950
lui a1,0x49
lw gp,0x10(sp)
li a2,0x5
addiu a1,a1,-0xf0
b 0x0040a4f0
_lw t9,-0x77c4(gp)
lw t9,-0x7fb4(gp)
li a1,0x15d
jalr t9
_addiu a0,s3,-0x1950
lui a1,0x49
lw gp,0x10(sp)
li a2,0x5
addiu a1,a1,-0x118
lw t9,-0x77c4(gp)
jalr t9
_or a0,zero,zero
lw gp,0x10(sp)
lw t9,-0x7fb0(gp)
jalr t9
_or a0,v0,zero
b 0x0040a4c8
_lw gp,0x10(sp)
(translation_unit "int * force_array(int *param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}\n\n" (function_definition "int * force_array(int *param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}" primitive_type (pointer_declarator "* force_array(int *param_1,int param_2)" * (function_declarator "force_array(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "iVar2 = param_1[10];" (assignment_expression "iVar2 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }" if (parenthesized_expression "(iVar2 == 7)" ( (binary_expression "iVar2 == 7" identifier == number_literal) )) (compound_statement "{\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }" { (expression_statement "param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);" (assignment_expression "param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" * (cast_expression "(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" ( (binary_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4" (pointer_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" * (cast_expression "(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_frame_ptr_004b1cb4 + 4)" ( (binary_expression "*(int *)PTR_frame_ptr_004b1cb4 + 4" (pointer_expression "*(int *)PTR_frame_ptr_004b1cb4" * (cast_expression "(int *)PTR_frame_ptr_004b1cb4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) ))))) ;) (expression_statement "iVar2 = param_1[10];" (assignment_expression "iVar2 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }" if (parenthesized_expression "(iVar2 == 0xb)" ( (binary_expression "iVar2 == 0xb" identifier == number_literal) )) (compound_statement "{\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }" { (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar2 = piVar5[10];" (assignment_expression "iVar2 = piVar5[10]" identifier = (subscript_expression "piVar5[10]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }" else (compound_statement "{\n      bVar1 = true;\n      piVar5 = param_1;\n    }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) }))) }) (else_clause "else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }" else (compound_statement "{\n    bVar1 = false;\n    piVar5 = param_1;\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) }))) (if_statement "if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }" { (if_statement "if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" if (parenthesized_expression "(iVar2 == 6)" ( (binary_expression "iVar2 == 6" identifier == number_literal) )) (compound_statement "{\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }" { (expression_statement "piVar5[6] = 0;" (assignment_expression "piVar5[6] = 0" (subscript_expression "piVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[10] = 5;" (assignment_expression "piVar5[10] = 5" (subscript_expression "piVar5[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[7] = 0;" (assignment_expression "piVar5[7] = 0" (subscript_expression "piVar5[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar5 = (int)&PTR_DAT_004af9bc;" (assignment_expression "*piVar5 = (int)&PTR_DAT_004af9bc" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)&PTR_DAT_004af9bc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_DAT_004af9bc" & identifier))) ;) (expression_statement "piVar5[8] = 0;" (assignment_expression "piVar5[8] = 0" (subscript_expression "piVar5[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[5] = 0;" (assignment_expression "piVar5[5] = 0" (subscript_expression "piVar5[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[0xb] = 0;" (assignment_expression "piVar5[0xb] = 0" (subscript_expression "piVar5[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[3] = 0;" (assignment_expression "piVar5[3] = 0" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" else (if_statement "if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" { (if_statement "if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x15d)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"attempt to use a scalar value as array",5)" ( number_literal , (string_literal ""attempt to use a scalar value as array"" " string_content ") , number_literal )))) ;) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3)" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" ( (pointer_expression "*(code *)PTR_r_fatal_004b1b70" * (cast_expression "(code *)PTR_r_fatal_004b1b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) })) (if_statement "if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x15f)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar4 = "attempt to use scalar parameter `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar parameter `%s\' as an array"" identifier = (string_literal ""attempt to use scalar parameter `%s\' as an array"" " string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" else (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x162)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar4 = "attempt to use scalar `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar `%s\' as an array"" identifier = (string_literal ""attempt to use scalar `%s\' as an array"" " string_content escape_sequence string_content ")) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4])" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" ( (pointer_expression "*(code *)PTR_r_fatal_004b1b70" * (cast_expression "(code *)PTR_r_fatal_004b1b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,param_1[4])" ( identifier , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (return_statement "return piVar5;" return identifier ;) })))) })) (return_statement "return piVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nNODE * force_array(NODE *symbol,_Bool canfatal)\n\n{\n  bool bVar1;\n  NODETYPE NVar2;\n  undefined4 uVar3;\n  undefined3 in_register_00000014;\n  char *pcVar4;\n  NODE *pNVar5;\n  \n  NVar2 = symbol->type;\n  if (NVar2 == Node_param_list) {\n    symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);\n    NVar2 = symbol->type;\n    if (NVar2 == Node_array_ref) {\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }\n    else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }\n  }\n  else {\n    bVar1 = false;\n    pNVar5 = symbol;\n  }\n  if (NVar2 != Node_var_array) {\n    if (NVar2 == Node_var_new) {\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }\n    else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }\n  }\n  return pNVar5;\n}\n\n" comment (function_definition "NODE * force_array(NODE *symbol,_Bool canfatal)\n\n{\n  bool bVar1;\n  NODETYPE NVar2;\n  undefined4 uVar3;\n  undefined3 in_register_00000014;\n  char *pcVar4;\n  NODE *pNVar5;\n  \n  NVar2 = symbol->type;\n  if (NVar2 == Node_param_list) {\n    symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);\n    NVar2 = symbol->type;\n    if (NVar2 == Node_array_ref) {\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }\n    else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }\n  }\n  else {\n    bVar1 = false;\n    pNVar5 = symbol;\n  }\n  if (NVar2 != Node_var_array) {\n    if (NVar2 == Node_var_new) {\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }\n    else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }\n  }\n  return pNVar5;\n}" type_identifier (pointer_declarator "* force_array(NODE *symbol,_Bool canfatal)" * (function_declarator "force_array(NODE *symbol,_Bool canfatal)" identifier (parameter_list "(NODE *symbol,_Bool canfatal)" ( (parameter_declaration "NODE *symbol" type_identifier (pointer_declarator "*symbol" * identifier)) , (parameter_declaration "_Bool canfatal" type_identifier identifier) )))) (compound_statement "{\n  bool bVar1;\n  NODETYPE NVar2;\n  undefined4 uVar3;\n  undefined3 in_register_00000014;\n  char *pcVar4;\n  NODE *pNVar5;\n  \n  NVar2 = symbol->type;\n  if (NVar2 == Node_param_list) {\n    symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);\n    NVar2 = symbol->type;\n    if (NVar2 == Node_array_ref) {\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }\n    else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }\n  }\n  else {\n    bVar1 = false;\n    pNVar5 = symbol;\n  }\n  if (NVar2 != Node_var_array) {\n    if (NVar2 == Node_var_new) {\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }\n    else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }\n  }\n  return pNVar5;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "NODETYPE NVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "NODE *pNVar5;" type_identifier (pointer_declarator "*pNVar5" * identifier) ;) (expression_statement "NVar2 = symbol->type;" (assignment_expression "NVar2 = symbol->type" identifier = (field_expression "symbol->type" identifier -> field_identifier)) ;) (if_statement "if (NVar2 == Node_param_list) {\n    symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);\n    NVar2 = symbol->type;\n    if (NVar2 == Node_array_ref) {\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }\n    else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }\n  }\n  else {\n    bVar1 = false;\n    pNVar5 = symbol;\n  }" if (parenthesized_expression "(NVar2 == Node_param_list)" ( (binary_expression "NVar2 == Node_param_list" identifier == identifier) )) (compound_statement "{\n    symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);\n    NVar2 = symbol->type;\n    if (NVar2 == Node_array_ref) {\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }\n    else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }\n  }" { (expression_statement "symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);" (assignment_expression "symbol = *(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4)" identifier = (pointer_expression "*(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4)" * (cast_expression "(NODE **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4)" ( (type_descriptor "NODE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4)" ( (binary_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4" (pointer_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" * (cast_expression "(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_frame_ptr_004b1cb4 + 4)" ( (binary_expression "*(int *)PTR_frame_ptr_004b1cb4 + 4" (pointer_expression "*(int *)PTR_frame_ptr_004b1cb4" * (cast_expression "(int *)PTR_frame_ptr_004b1cb4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + (binary_expression "*(int *)&symbol->sub * 4" (pointer_expression "*(int *)&symbol->sub" * (cast_expression "(int *)&symbol->sub" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&symbol->sub" & (field_expression "symbol->sub" identifier -> field_identifier)))) * number_literal)) ))))) ;) (expression_statement "NVar2 = symbol->type;" (assignment_expression "NVar2 = symbol->type" identifier = (field_expression "symbol->type" identifier -> field_identifier)) ;) (if_statement "if (NVar2 == Node_array_ref) {\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }\n    else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }" if (parenthesized_expression "(NVar2 == Node_array_ref)" ( (binary_expression "NVar2 == Node_array_ref" identifier == identifier) )) (compound_statement "{\n      pNVar5 = *(NODE **)&symbol->sub;\n      bVar1 = true;\n      NVar2 = pNVar5->type;\n    }" { (expression_statement "pNVar5 = *(NODE **)&symbol->sub;" (assignment_expression "pNVar5 = *(NODE **)&symbol->sub" identifier = (pointer_expression "*(NODE **)&symbol->sub" * (cast_expression "(NODE **)&symbol->sub" ( (type_descriptor "NODE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&symbol->sub" & (field_expression "symbol->sub" identifier -> field_identifier))))) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "NVar2 = pNVar5->type;" (assignment_expression "NVar2 = pNVar5->type" identifier = (field_expression "pNVar5->type" identifier -> field_identifier)) ;) }) (else_clause "else {\n      bVar1 = true;\n      pNVar5 = symbol;\n    }" else (compound_statement "{\n      bVar1 = true;\n      pNVar5 = symbol;\n    }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "pNVar5 = symbol;" (assignment_expression "pNVar5 = symbol" identifier = identifier) ;) }))) }) (else_clause "else {\n    bVar1 = false;\n    pNVar5 = symbol;\n  }" else (compound_statement "{\n    bVar1 = false;\n    pNVar5 = symbol;\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pNVar5 = symbol;" (assignment_expression "pNVar5 = symbol" identifier = identifier) ;) }))) (if_statement "if (NVar2 != Node_var_array) {\n    if (NVar2 == Node_var_new) {\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }\n    else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }\n  }" if (parenthesized_expression "(NVar2 != Node_var_array)" ( (binary_expression "NVar2 != Node_var_array" identifier != identifier) )) (compound_statement "{\n    if (NVar2 == Node_var_new) {\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }\n    else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }\n  }" { (if_statement "if (NVar2 == Node_var_new) {\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }\n    else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }" if (parenthesized_expression "(NVar2 == Node_var_new)" ( (binary_expression "NVar2 == Node_var_new" identifier == identifier) )) (compound_statement "{\n      (pNVar5->sub).nodep.rn = (exp_node *)0x0;\n      pNVar5->type = Node_var_array;\n      *(undefined4 *)((int)&pNVar5->sub + 4) = 0;\n      (pNVar5->sub).nodep.cnt = 0;\n      (pNVar5->sub).nodep.l.lp = &null_array_func;\n      (pNVar5->sub).nodep.reflags = 0;\n      (pNVar5->sub).nodep.reserved = 0;\n      pNVar5->flags = 0;\n      (pNVar5->sub).val.slen = 0;\n    }" { (expression_statement "(pNVar5->sub).nodep.rn = (exp_node *)0x0;" (assignment_expression "(pNVar5->sub).nodep.rn = (exp_node *)0x0" (field_expression "(pNVar5->sub).nodep.rn" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(exp_node *)0x0" ( (type_descriptor "exp_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pNVar5->type = Node_var_array;" (assignment_expression "pNVar5->type = Node_var_array" (field_expression "pNVar5->type" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)&pNVar5->sub + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pNVar5->sub + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pNVar5->sub + 4)" * (cast_expression "(undefined4 *)((int)&pNVar5->sub + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pNVar5->sub + 4)" ( (binary_expression "(int)&pNVar5->sub + 4" (cast_expression "(int)&pNVar5->sub" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pNVar5->sub" & (field_expression "pNVar5->sub" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "(pNVar5->sub).nodep.cnt = 0;" (assignment_expression "(pNVar5->sub).nodep.cnt = 0" (field_expression "(pNVar5->sub).nodep.cnt" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).nodep.l.lp = &null_array_func;" (assignment_expression "(pNVar5->sub).nodep.l.lp = &null_array_func" (field_expression "(pNVar5->sub).nodep.l.lp" (field_expression "(pNVar5->sub).nodep.l" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (pointer_expression "&null_array_func" & identifier)) ;) (expression_statement "(pNVar5->sub).nodep.reflags = 0;" (assignment_expression "(pNVar5->sub).nodep.reflags = 0" (field_expression "(pNVar5->sub).nodep.reflags" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).nodep.reserved = 0;" (assignment_expression "(pNVar5->sub).nodep.reserved = 0" (field_expression "(pNVar5->sub).nodep.reserved" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "pNVar5->flags = 0;" (assignment_expression "pNVar5->flags = 0" (field_expression "pNVar5->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).val.slen = 0;" (assignment_expression "(pNVar5->sub).val.slen = 0" (field_expression "(pNVar5->sub).val.slen" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) }) (else_clause "else if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }" else (if_statement "if (CONCAT31(in_register_00000014,canfatal) != 0) {\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }" if (parenthesized_expression "(CONCAT31(in_register_00000014,canfatal) != 0)" ( (binary_expression "CONCAT31(in_register_00000014,canfatal) != 0" (call_expression "CONCAT31(in_register_00000014,canfatal)" identifier (argument_list "(in_register_00000014,canfatal)" ( identifier , identifier ))) != number_literal) )) (compound_statement "{\n      if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);\n      return pNVar5;\n    }" { (if_statement "if (NVar2 == Node_val) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" if (parenthesized_expression "(NVar2 == Node_val)" ( (binary_expression "NVar2 == Node_val" identifier == identifier) )) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x15d)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"attempt to use a scalar value as array",5)" ( number_literal , (string_literal ""attempt to use a scalar value as array"" " string_content ") , number_literal )))) ;) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3)" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" ( (pointer_expression "*(code *)PTR_r_fatal_004b1b70" * (cast_expression "(code *)PTR_r_fatal_004b1b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) })) (if_statement "if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x15f)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar4 = "attempt to use scalar parameter `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar parameter `%s\' as an array"" identifier = (string_literal ""attempt to use scalar parameter `%s\' as an array"" " string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" else (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x162)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar4 = "attempt to use scalar `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar `%s\' as an array"" identifier = (string_literal ""attempt to use scalar `%s\' as an array"" " string_content escape_sequence string_content ")) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name)" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" ( (pointer_expression "*(code *)PTR_r_fatal_004b1b70" * (cast_expression "(code *)PTR_r_fatal_004b1b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,(symbol->sub).nodep.name)" ( identifier , (field_expression "(symbol->sub).nodep.name" (field_expression "(symbol->sub).nodep" (parenthesized_expression "(symbol->sub)" ( (field_expression "symbol->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (return_statement "return pNVar5;" return identifier ;) })))) })) (return_statement "return pNVar5;" return identifier ;) })))
(translation_unit "int * force_array(int *param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}\n\n" (function_definition "int * force_array(int *param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}" primitive_type (pointer_declarator "* force_array(int *param_1,int param_2)" * (function_declarator "force_array(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "iVar2 = param_1[10];" (assignment_expression "iVar2 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }" if (parenthesized_expression "(iVar2 == 7)" ( (binary_expression "iVar2 == 7" identifier == number_literal) )) (compound_statement "{\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }" { (expression_statement "param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);" (assignment_expression "param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" * (cast_expression "(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" ( (binary_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4" (pointer_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" * (cast_expression "(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_frame_ptr_004b1cb4 + 4)" ( (binary_expression "*(int *)PTR_frame_ptr_004b1cb4 + 4" (pointer_expression "*(int *)PTR_frame_ptr_004b1cb4" * (cast_expression "(int *)PTR_frame_ptr_004b1cb4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) ))))) ;) (expression_statement "iVar2 = param_1[10];" (assignment_expression "iVar2 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }" if (parenthesized_expression "(iVar2 == 0xb)" ( (binary_expression "iVar2 == 0xb" identifier == number_literal) )) (compound_statement "{\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }" { (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar2 = piVar5[10];" (assignment_expression "iVar2 = piVar5[10]" identifier = (subscript_expression "piVar5[10]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }" else (compound_statement "{\n      bVar1 = true;\n      piVar5 = param_1;\n    }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) }))) }) (else_clause "else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }" else (compound_statement "{\n    bVar1 = false;\n    piVar5 = param_1;\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) }))) (if_statement "if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }" { (if_statement "if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" if (parenthesized_expression "(iVar2 == 6)" ( (binary_expression "iVar2 == 6" identifier == number_literal) )) (compound_statement "{\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }" { (expression_statement "piVar5[6] = 0;" (assignment_expression "piVar5[6] = 0" (subscript_expression "piVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[10] = 5;" (assignment_expression "piVar5[10] = 5" (subscript_expression "piVar5[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[7] = 0;" (assignment_expression "piVar5[7] = 0" (subscript_expression "piVar5[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar5 = (int)&PTR_DAT_004af9bc;" (assignment_expression "*piVar5 = (int)&PTR_DAT_004af9bc" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)&PTR_DAT_004af9bc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_DAT_004af9bc" & identifier))) ;) (expression_statement "piVar5[8] = 0;" (assignment_expression "piVar5[8] = 0" (subscript_expression "piVar5[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[5] = 0;" (assignment_expression "piVar5[5] = 0" (subscript_expression "piVar5[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[0xb] = 0;" (assignment_expression "piVar5[0xb] = 0" (subscript_expression "piVar5[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[3] = 0;" (assignment_expression "piVar5[3] = 0" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" else (if_statement "if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" { (if_statement "if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x15d)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"attempt to use a scalar value as array",5)" ( number_literal , (string_literal ""attempt to use a scalar value as array"" " string_content ") , number_literal )))) ;) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3)" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" ( (pointer_expression "*(code *)PTR_r_fatal_004b1b70" * (cast_expression "(code *)PTR_r_fatal_004b1b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) })) (if_statement "if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x15f)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar4 = "attempt to use scalar parameter `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar parameter `%s\' as an array"" identifier = (string_literal ""attempt to use scalar parameter `%s\' as an array"" " string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" else (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" { (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" ( (pointer_expression "*(code *)PTR_set_loc_004b1b6c" * (cast_expression "(code *)PTR_set_loc_004b1b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "("array.c",0x162)" ( (string_literal ""array.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar4 = "attempt to use scalar `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar `%s\' as an array"" identifier = (string_literal ""attempt to use scalar `%s\' as an array"" " string_content escape_sequence string_content ")) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4])" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" ( (pointer_expression "*(code *)PTR_r_fatal_004b1b70" * (cast_expression "(code *)PTR_r_fatal_004b1b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,param_1[4])" ( identifier , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (return_statement "return piVar5;" return identifier ;) })))) })) (return_statement "return piVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) + (binary_expression (pointer_expression * IDENT) * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (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 ( IDENT )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return IDENT ;) })))) })) (return_statement return IDENT ;) })))
(function_definition "int * force_array(int *param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}" (primitive_type "int") (pointer_declarator "* force_array(int *param_1,int param_2)" (* "*") (function_declarator "force_array(int *param_1,int param_2)" (identifier "force_array") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int *piVar5;\n  \n  iVar2 = param_1[10];\n  if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }\n  if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }\n  return piVar5;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "iVar2 = param_1[10];" (assignment_expression "iVar2 = param_1[10]" (identifier "iVar2") (= "=") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]"))) (; ";")) (if_statement "if (iVar2 == 7) {\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }\n  else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }" (if "if") (parenthesized_expression "(iVar2 == 7)" (( "(") (binary_expression "iVar2 == 7" (identifier "iVar2") (== "==") (number_literal "7")) () ")")) (compound_statement "{\n    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);\n    iVar2 = param_1[10];\n    if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }\n  }" ({ "{") (expression_statement "param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);" (assignment_expression "param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" (identifier "param_1") (= "=") (pointer_expression "*(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" (* "*") (cast_expression "(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4)" (( "(") (binary_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4" (pointer_expression "*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" (* "*") (cast_expression "(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_frame_ptr_004b1cb4 + 4)" (( "(") (binary_expression "*(int *)PTR_frame_ptr_004b1cb4 + 4" (pointer_expression "*(int *)PTR_frame_ptr_004b1cb4" (* "*") (cast_expression "(int *)PTR_frame_ptr_004b1cb4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_frame_ptr_004b1cb4"))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "*param_1 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar2 = param_1[10];" (assignment_expression "iVar2 = param_1[10]" (identifier "iVar2") (= "=") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0xb) {\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }\n    else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0xb)" (( "(") (binary_expression "iVar2 == 0xb" (identifier "iVar2") (== "==") (number_literal "0xb")) () ")")) (compound_statement "{\n      piVar5 = (int *)*param_1;\n      bVar1 = true;\n      iVar2 = piVar5[10];\n    }" ({ "{") (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" (identifier "piVar5") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "iVar2 = piVar5[10];" (assignment_expression "iVar2 = piVar5[10]" (identifier "iVar2") (= "=") (subscript_expression "piVar5[10]" (identifier "piVar5") ([ "[") (number_literal "10") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      bVar1 = true;\n      piVar5 = param_1;\n    }" (else "else") (compound_statement "{\n      bVar1 = true;\n      piVar5 = param_1;\n    }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" (identifier "piVar5") (= "=") (identifier "param_1")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    bVar1 = false;\n    piVar5 = param_1;\n  }" (else "else") (compound_statement "{\n    bVar1 = false;\n    piVar5 = param_1;\n  }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" (identifier "piVar5") (= "=") (identifier "param_1")) (; ";")) (} "}")))) (if_statement "if (iVar2 != 5) {\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 5)" (( "(") (binary_expression "iVar2 != 5" (identifier "iVar2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n    if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }\n  }" ({ "{") (if_statement "if (iVar2 == 6) {\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }\n    else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" (if "if") (parenthesized_expression "(iVar2 == 6)" (( "(") (binary_expression "iVar2 == 6" (identifier "iVar2") (== "==") (number_literal "6")) () ")")) (compound_statement "{\n      piVar5[6] = 0;\n      piVar5[10] = 5;\n      piVar5[1] = 0;\n      piVar5[7] = 0;\n      *piVar5 = (int)&PTR_DAT_004af9bc;\n      piVar5[8] = 0;\n      piVar5[5] = 0;\n      piVar5[0xb] = 0;\n      piVar5[3] = 0;\n    }" ({ "{") (expression_statement "piVar5[6] = 0;" (assignment_expression "piVar5[6] = 0" (subscript_expression "piVar5[6]" (identifier "piVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[10] = 5;" (assignment_expression "piVar5[10] = 5" (subscript_expression "piVar5[10]" (identifier "piVar5") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "5")) (; ";")) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[7] = 0;" (assignment_expression "piVar5[7] = 0" (subscript_expression "piVar5[7]" (identifier "piVar5") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar5 = (int)&PTR_DAT_004af9bc;" (assignment_expression "*piVar5 = (int)&PTR_DAT_004af9bc" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)&PTR_DAT_004af9bc" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&PTR_DAT_004af9bc" (& "&") (identifier "PTR_DAT_004af9bc")))) (; ";")) (expression_statement "piVar5[8] = 0;" (assignment_expression "piVar5[8] = 0" (subscript_expression "piVar5[8]" (identifier "piVar5") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[5] = 0;" (assignment_expression "piVar5[5] = 0" (subscript_expression "piVar5[5]" (identifier "piVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[0xb] = 0;" (assignment_expression "piVar5[0xb] = 0" (subscript_expression "piVar5[0xb]" (identifier "piVar5") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[3] = 0;" (assignment_expression "piVar5[3] = 0" (subscript_expression "piVar5[3]" (identifier "piVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" (else "else") (if_statement "if (param_2 != 0) {\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }\n      if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }\n      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);\n      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);\n      return piVar5;\n    }" ({ "{") (if_statement "if (iVar2 == 1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" (if "if") (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);\n        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);\n        (*(code *)PTR_r_fatal_004b1b70)(uVar3);\n      }" ({ "{") (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" (( "(") (pointer_expression "*(code *)PTR_set_loc_004b1b6c" (* "*") (cast_expression "(code *)PTR_set_loc_004b1b6c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_loc_004b1b6c"))) () ")")) (argument_list "("array.c",0x15d)" (( "(") (string_literal ""array.c"" (" """) (string_content "array.c") (" """)) (, ",") (number_literal "0x15d") () ")"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004b235c" (* "*") (cast_expression "(code *)PTR_dcgettext_004b235c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004b235c"))) () ")")) (argument_list "(0,"attempt to use a scalar value as array",5)" (( "(") (number_literal "0") (, ",") (string_literal ""attempt to use a scalar value as array"" (" """) (string_content "attempt to use a scalar value as array") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3)" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" (( "(") (pointer_expression "*(code *)PTR_r_fatal_004b1b70" (* "*") (cast_expression "(code *)PTR_r_fatal_004b1b70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_r_fatal_004b1b70"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (if_statement "if (bVar1) {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }\n      else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);\n        pcVar4 = "attempt to use scalar parameter `%s\' as an array";\n      }" ({ "{") (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" (( "(") (pointer_expression "*(code *)PTR_set_loc_004b1b6c" (* "*") (cast_expression "(code *)PTR_set_loc_004b1b6c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_loc_004b1b6c"))) () ")")) (argument_list "("array.c",0x15f)" (( "(") (string_literal ""array.c"" (" """) (string_content "array.c") (" """)) (, ",") (number_literal "0x15f") () ")"))) (; ";")) (expression_statement "pcVar4 = "attempt to use scalar parameter `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar parameter `%s\' as an array"" (identifier "pcVar4") (= "=") (string_literal ""attempt to use scalar parameter `%s\' as an array"" (" """) (string_content "attempt to use scalar parameter `%s") (escape_sequence "\'") (string_content " as an array") (" """))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);\n        pcVar4 = "attempt to use scalar `%s\' as an array";\n      }" ({ "{") (expression_statement "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);" (call_expression "(*(code *)PTR_set_loc_004b1b6c)("array.c",0x162)" (parenthesized_expression "(*(code *)PTR_set_loc_004b1b6c)" (( "(") (pointer_expression "*(code *)PTR_set_loc_004b1b6c" (* "*") (cast_expression "(code *)PTR_set_loc_004b1b6c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_loc_004b1b6c"))) () ")")) (argument_list "("array.c",0x162)" (( "(") (string_literal ""array.c"" (" """) (string_content "array.c") (" """)) (, ",") (number_literal "0x162") () ")"))) (; ";")) (expression_statement "pcVar4 = "attempt to use scalar `%s\' as an array";" (assignment_expression "pcVar4 = "attempt to use scalar `%s\' as an array"" (identifier "pcVar4") (= "=") (string_literal ""attempt to use scalar `%s\' as an array"" (" """) (string_content "attempt to use scalar `%s") (escape_sequence "\'") (string_content " as an array") (" """))) (; ";")) (} "}")))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004b235c" (* "*") (cast_expression "(code *)PTR_dcgettext_004b235c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004b235c"))) () ")")) (argument_list "(0,pcVar4,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar4") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);" (call_expression "(*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4])" (parenthesized_expression "(*(code *)PTR_r_fatal_004b1b70)" (( "(") (pointer_expression "*(code *)PTR_r_fatal_004b1b70" (* "*") (cast_expression "(code *)PTR_r_fatal_004b1b70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_r_fatal_004b1b70"))) () ")")) (argument_list "(uVar3,param_1[4])" (( "(") (identifier "uVar3") (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (return_statement "return piVar5;" (return "return") (identifier "piVar5") (; ";")) (} "}"))))) (} "}"))) (return_statement "return piVar5;" (return "return") (identifier "piVar5") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(type_1 *symbol,type_2 canfatal)

{
  bool bVar1;
  type_3 var_1;
  type_4 uVar3;
  type_5 in_register_00000014;
  char *pcVar4;
  type_1 *pNVar5;
  
  var_1 = symbol->type;
  if (var_1 == var_2) {
    symbol = *(type_1 **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *(int *)&symbol->sub * 4);
    var_1 = symbol->type;
    if (var_1 == var_3) {
      pNVar5 = *(type_1 **)&symbol->sub;
      bVar1 = true;
      var_1 = pNVar5->type;
    }
    else {
      bVar1 = true;
      pNVar5 = symbol;
    }
  }
  else {
    bVar1 = false;
    pNVar5 = symbol;
  }
  if (var_1 != var_4) {
    if (var_1 == var_5) {
      (pNVar5->sub).nodep.rn = (type_6 *)0x0;
      pNVar5->type = var_4;
      *(type_4 *)((int)&pNVar5->sub + 4) = 0;
      (pNVar5->sub).nodep.cnt = 0;
      (pNVar5->sub).nodep.l.lp = &null_array_func;
      (pNVar5->sub).nodep.reflags = 0;
      (pNVar5->sub).nodep.reserved = 0;
      pNVar5->flags = 0;
      (pNVar5->sub).val.slen = 0;
    }
    else if (var_6(in_register_00000014,canfatal) != 0) {
      if (var_1 == var_7) {
        (*(type_7 *)PTR_set_loc_004b1b6c)("array.c",0x15d);
        uVar3 = (*(type_7 *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);
        (*(type_7 *)PTR_r_fatal_004b1b70)(uVar3);
      }
      if (bVar1) {
        (*(type_7 *)PTR_set_loc_004b1b6c)("array.c",0x15f);
        pcVar4 = "attempt to use scalar parameter `%s\' as an array";
      }
      else {
        (*(type_7 *)PTR_set_loc_004b1b6c)("array.c",0x162);
        pcVar4 = "attempt to use scalar `%s\' as an array";
      }
      uVar3 = (*(type_7 *)PTR_dcgettext_004b235c)(0,pcVar4,5);
      (*(type_7 *)PTR_r_fatal_004b1b70)(uVar3,(symbol->sub).nodep.name);
      return pNVar5;
    }
  }
  return pNVar5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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 (string_literal (string_content)) (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 (number_literal) (string_literal (string_content)) (number_literal))))) (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 (identifier)) consequence: (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 (string_literal (string_content)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content))))) 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 (string_literal (string_content)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence) (string_content))))))) (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 (number_literal) (identifier) (number_literal))))) (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) (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement (identifier)))))))) (return_statement (identifier)))))

int * MASKED(int *param_1,int param_2)

{
  bool bVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  int *piVar5;
  
  iVar2 = param_1[10];
  if (iVar2 == 7) {
    param_1 = *(int **)(*(int *)(*(int *)PTR_frame_ptr_004b1cb4 + 4) + *param_1 * 4);
    iVar2 = param_1[10];
    if (iVar2 == 0xb) {
      piVar5 = (int *)*param_1;
      bVar1 = true;
      iVar2 = piVar5[10];
    }
    else {
      bVar1 = true;
      piVar5 = param_1;
    }
  }
  else {
    bVar1 = false;
    piVar5 = param_1;
  }
  if (iVar2 != 5) {
    if (iVar2 == 6) {
      piVar5[6] = 0;
      piVar5[10] = 5;
      piVar5[1] = 0;
      piVar5[7] = 0;
      *piVar5 = (int)&PTR_DAT_004af9bc;
      piVar5[8] = 0;
      piVar5[5] = 0;
      piVar5[0xb] = 0;
      piVar5[3] = 0;
    }
    else if (param_2 != 0) {
      if (iVar2 == 1) {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15d);
        uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"attempt to use a scalar value as array",5);
        (*(code *)PTR_r_fatal_004b1b70)(uVar3);
      }
      if (bVar1) {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x15f);
        pcVar4 = "attempt to use scalar parameter `%s\' as an array";
      }
      else {
        (*(code *)PTR_set_loc_004b1b6c)("array.c",0x162);
        pcVar4 = "attempt to use scalar `%s\' as an array";
      }
      uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,pcVar4,5);
      (*(code *)PTR_r_fatal_004b1b70)(uVar3,param_1[4]);
      return piVar5;
    }
  }
  return piVar5;
}

