
/* WARNING: Unknown calling convention */

NODE * get_actual_argument(NODE *t,int i,_Bool want_array)

{
  NODETYPE NVar1;
  NODE *pNVar2;
  char *pcVar3;
  undefined3 in_register_00000018;
  undefined4 uVar4;
  
  NVar1 = t->type;
  if (NVar1 == Node_var_new) {
    if (CONCAT31(in_register_00000018,want_array) == 0) {
      t->type = Node_var;
      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;
      if ((pNVar2->flags & 1) == 0) {
        pNVar2 = r_dupnode(pNVar2);
        (t->sub).nodep.l.lptr = pNVar2;
        t = pNVar2;
      }
      else {
        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);
        *(NODE **)&t->sub = pNVar2;
        t = pNVar2;
      }
    }
    else {
      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);
    }
  }
  else {
    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);
    if (CONCAT31(in_register_00000018,want_array) == 0) {
      if (NVar1 != Node_val) {
        set_loc("ext.c",0xda);
        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)
                                   (0,
                                    "function `%s\': argument #%d: attempt to use array as a scalar"
                                    ,5);
        r_fatal(pcVar3,uVar4,i + 1);
      }
    }
    else if (NVar1 != Node_var_array) {
      set_loc("ext.c",0xd6);
      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)
                                 (0,
                                  "function `%s\': argument #%d: attempt to use scalar as an array",
                                  5);
      r_fatal(pcVar3,uVar4,i + 1);
    }
  }
  return t;
}



int * get_actual_argument(int *param_1,int param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  iVar1 = param_1[10];
  if (iVar1 == 6) {
    if (param_3 == 0) {
      param_1[10] = 4;
      piVar2 = *(int **)PTR_Nnull_string_004beb50;
      if ((piVar2[0xb] & 1U) == 0) {
        piVar2 = (int *)r_dupnode(piVar2);
        *param_1 = (int)piVar2;
        param_1 = piVar2;
      }
      else {
        piVar2[4] = piVar2[4] + 1;
        *param_1 = (int)piVar2;
        param_1 = piVar2;
      }
    }
    else {
      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);
    }
  }
  else {
    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);
    if (param_3 == 0) {
      if (iVar1 != 1) {
        set_loc("ext.c",0xda);
        uVar3 = (*(code *)PTR_dcgettext_004bf35c)
                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);
        r_fatal(uVar3,uVar4,param_2 + 1);
      }
    }
    else if (iVar1 != 5) {
      set_loc("ext.c",0xd6);
      uVar3 = (*(code *)PTR_dcgettext_004bf35c)
                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);
      r_fatal(uVar3,uVar4,param_2 + 1);
    }
  }
  return param_1;
}


addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lui gp,0x4c
addiu gp,gp,0x6b20
sw gp,0x10(sp)
lw v0,0x28(a0)
li v1,0x6
beq v0,v1,0x004559f4
_or s0,a0,zero
or s1,a1,zero
lw v1,-0x7f78(gp)
lw v1,0x0(v1)
lw v1,0x0(v1)
lw v1,0x4(v1)
beq a2,zero,0x00455ad0
_lw s2,0x1c(v1)
li v1,0x5
bne v0,v1,0x00455a74
_li a1,0xd6
b 0x00455a2c
_or v0,a0,zero
bne a2,zero,0x00455a44
_or a1,zero,zero
li v0,0x4
sw v0,0x28(a0)
lw v0,-0x7fd0(gp)
lw v0,0x0(v0)
lw v1,0x2c(v0)
andi v1,v1,0x1
beq v1,zero,0x00455a5c
_or a0,v0,zero
lw v1,0x10(v0)
addiu v1,v1,0x1
sw v1,0x10(v0)
sw v0,0x0(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7db8(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00455a30
_lw ra,0x24(sp)
lw t9,-0x7f38(gp)
bal 0x00472c44
_nop
lw gp,0x10(sp)
b 0x00455a2c
_sw v0,0x0(s0)
lui a0,0x4a
addiu a0,a0,0x6400
lw t9,-0x7f80(gp)
bal 0x00470ae0
_nop
lw gp,0x10(sp)
li a2,0x5
lui a1,0x4a
addiu a1,a1,0x6580
or a0,zero,zero
lw t9,-0x77c4(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a2,s1,0x1
or a1,s2,zero
or a0,v0,zero
lw t9,-0x7f7c(gp)
bal 0x004710ac
_nop
lw gp,0x10(sp)
b 0x00455a2c
_or v0,s0,zero
li v1,0x1
beq v0,v1,0x00455b38
_li a1,0xda
lui a0,0x4a
addiu a0,a0,0x6400
lw t9,-0x7f80(gp)
bal 0x00470ae0
_nop
lw gp,0x10(sp)
li a2,0x5
lui a1,0x4a
addiu a1,a1,0x65c0
or a0,zero,zero
lw t9,-0x77c4(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a2,s1,0x1
or a1,s2,zero
or a0,v0,zero
lw t9,-0x7f7c(gp)
bal 0x004710ac
_nop
lw gp,0x10(sp)
b 0x00455a2c
_or v0,s0,zero
b 0x00455a2c
_or v0,a0,zero
(translation_unit "int * get_actual_argument(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int * get_actual_argument(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* get_actual_argument(int *param_1,int param_2,int param_3)" * (function_declarator "get_actual_argument(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[10];" (assignment_expression "iVar1 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" if (parenthesized_expression "(iVar1 == 6)" ( (binary_expression "iVar1 == 6" identifier == number_literal) )) (compound_statement "{\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }" { (expression_statement "param_1[10] = 4;" (assignment_expression "param_1[10] = 4" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2 = *(int **)PTR_Nnull_string_004beb50;" (assignment_expression "piVar2 = *(int **)PTR_Nnull_string_004beb50" identifier = (pointer_expression "*(int **)PTR_Nnull_string_004beb50" * (cast_expression "(int **)PTR_Nnull_string_004beb50" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" if (parenthesized_expression "((piVar2[0xb] & 1U) == 0)" ( (binary_expression "(piVar2[0xb] & 1U) == 0" (parenthesized_expression "(piVar2[0xb] & 1U)" ( (binary_expression "piVar2[0xb] & 1U" (subscript_expression "piVar2[0xb]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" { (expression_statement "piVar2 = (int *)r_dupnode(piVar2);" (assignment_expression "piVar2 = (int *)r_dupnode(piVar2)" identifier = (cast_expression "(int *)r_dupnode(piVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "r_dupnode(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))))) ;) (expression_statement "*param_1 = (int)piVar2;" (assignment_expression "*param_1 = (int)piVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1 = piVar2;" (assignment_expression "param_1 = piVar2" identifier = identifier) ;) }) (else_clause "else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" else (compound_statement "{\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" { (expression_statement "piVar2[4] = piVar2[4] + 1;" (assignment_expression "piVar2[4] = piVar2[4] + 1" (subscript_expression "piVar2[4]" identifier [ number_literal ]) = (binary_expression "piVar2[4] + 1" (subscript_expression "piVar2[4]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*param_1 = (int)piVar2;" (assignment_expression "*param_1 = (int)piVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1 = piVar2;" (assignment_expression "param_1 = piVar2" identifier = identifier) ;) }))) }) (else_clause "else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" else (compound_statement "{\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" { (expression_statement "param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);" (assignment_expression "param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0)" identifier = (cast_expression "(int *)(*(code *)PTR_force_array_004bed68)(param_1,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_force_array_004bed68)(param_1,0)" (parenthesized_expression "(*(code *)PTR_force_array_004bed68)" ( (pointer_expression "*(code *)PTR_force_array_004bed68" * (cast_expression "(code *)PTR_force_array_004bed68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) }))) }) (else_clause "else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" else (compound_statement "{\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" { (expression_statement "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" * (cast_expression "(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" ( (binary_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c" (pointer_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" * (cast_expression "(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)PTR_stack_ptr_004beba8 + 4)" ( (binary_expression "**(int **)PTR_stack_ptr_004beba8 + 4" (pointer_expression "**(int **)PTR_stack_ptr_004beba8" * (pointer_expression "*(int **)PTR_stack_ptr_004beba8" * (cast_expression "(int **)PTR_stack_ptr_004beba8" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }" { (if_statement "if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }" { (expression_statement "set_loc("ext.c",0xda);" (call_expression "set_loc("ext.c",0xda)" identifier (argument_list "("ext.c",0xda)" ( (string_literal ""ext.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" ( (pointer_expression "*(code *)PTR_dcgettext_004bf35c" * (cast_expression "(code *)PTR_dcgettext_004bf35c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" ( number_literal , (string_literal ""function `%s\': argument #%d: attempt to use array as a scalar"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar3,uVar4,param_2 + 1);" (call_expression "r_fatal(uVar3,uVar4,param_2 + 1)" identifier (argument_list "(uVar3,uVar4,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) ))) ;) })) }) (else_clause "else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" else (if_statement "if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" if (parenthesized_expression "(iVar1 != 5)" ( (binary_expression "iVar1 != 5" identifier != number_literal) )) (compound_statement "{\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" { (expression_statement "set_loc("ext.c",0xd6);" (call_expression "set_loc("ext.c",0xd6)" identifier (argument_list "("ext.c",0xd6)" ( (string_literal ""ext.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" ( (pointer_expression "*(code *)PTR_dcgettext_004bf35c" * (cast_expression "(code *)PTR_dcgettext_004bf35c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" ( number_literal , (string_literal ""function `%s\': argument #%d: attempt to use scalar as an array"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar3,uVar4,param_2 + 1);" (call_expression "r_fatal(uVar3,uVar4,param_2 + 1)" identifier (argument_list "(uVar3,uVar4,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) ))) ;) })))) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nNODE * get_actual_argument(NODE *t,int i,_Bool want_array)\n\n{\n  NODETYPE NVar1;\n  NODE *pNVar2;\n  char *pcVar3;\n  undefined3 in_register_00000018;\n  undefined4 uVar4;\n  \n  NVar1 = t->type;\n  if (NVar1 == Node_var_new) {\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }\n    else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }\n  }\n  return t;\n}\n\n" comment (function_definition "NODE * get_actual_argument(NODE *t,int i,_Bool want_array)\n\n{\n  NODETYPE NVar1;\n  NODE *pNVar2;\n  char *pcVar3;\n  undefined3 in_register_00000018;\n  undefined4 uVar4;\n  \n  NVar1 = t->type;\n  if (NVar1 == Node_var_new) {\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }\n    else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }\n  }\n  return t;\n}" type_identifier (pointer_declarator "* get_actual_argument(NODE *t,int i,_Bool want_array)" * (function_declarator "get_actual_argument(NODE *t,int i,_Bool want_array)" identifier (parameter_list "(NODE *t,int i,_Bool want_array)" ( (parameter_declaration "NODE *t" type_identifier (pointer_declarator "*t" * identifier)) , (parameter_declaration "int i" primitive_type identifier) , (parameter_declaration "_Bool want_array" type_identifier identifier) )))) (compound_statement "{\n  NODETYPE NVar1;\n  NODE *pNVar2;\n  char *pcVar3;\n  undefined3 in_register_00000018;\n  undefined4 uVar4;\n  \n  NVar1 = t->type;\n  if (NVar1 == Node_var_new) {\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }\n    else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }\n  }\n  return t;\n}" { (declaration "NODETYPE NVar1;" type_identifier identifier ;) (declaration "NODE *pNVar2;" type_identifier (pointer_declarator "*pNVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "NVar1 = t->type;" (assignment_expression "NVar1 = t->type" identifier = (field_expression "t->type" identifier -> field_identifier)) ;) (if_statement "if (NVar1 == Node_var_new) {\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }\n    else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }\n  }" if (parenthesized_expression "(NVar1 == Node_var_new)" ( (binary_expression "NVar1 == Node_var_new" identifier == identifier) )) (compound_statement "{\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }\n    else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }\n  }" { (if_statement "if (CONCAT31(in_register_00000018,want_array) == 0) {\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }\n    else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }" if (parenthesized_expression "(CONCAT31(in_register_00000018,want_array) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,want_array) == 0" (call_expression "CONCAT31(in_register_00000018,want_array)" identifier (argument_list "(in_register_00000018,want_array)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      t->type = Node_var;\n      pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;\n      if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }\n    }" { (expression_statement "t->type = Node_var;" (assignment_expression "t->type = Node_var" (field_expression "t->type" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar2 = *(NODE **)PTR_Nnull_string_004beb50;" (assignment_expression "pNVar2 = *(NODE **)PTR_Nnull_string_004beb50" identifier = (pointer_expression "*(NODE **)PTR_Nnull_string_004beb50" * (cast_expression "(NODE **)PTR_Nnull_string_004beb50" ( (type_descriptor "NODE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((pNVar2->flags & 1) == 0) {\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }\n      else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }" if (parenthesized_expression "((pNVar2->flags & 1) == 0)" ( (binary_expression "(pNVar2->flags & 1) == 0" (parenthesized_expression "(pNVar2->flags & 1)" ( (binary_expression "pNVar2->flags & 1" (field_expression "pNVar2->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        pNVar2 = r_dupnode(pNVar2);\n        (t->sub).nodep.l.lptr = pNVar2;\n        t = pNVar2;\n      }" { (expression_statement "pNVar2 = r_dupnode(pNVar2);" (assignment_expression "pNVar2 = r_dupnode(pNVar2)" identifier = (call_expression "r_dupnode(pNVar2)" identifier (argument_list "(pNVar2)" ( identifier )))) ;) (expression_statement "(t->sub).nodep.l.lptr = pNVar2;" (assignment_expression "(t->sub).nodep.l.lptr = pNVar2" (field_expression "(t->sub).nodep.l.lptr" (field_expression "(t->sub).nodep.l" (field_expression "(t->sub).nodep" (parenthesized_expression "(t->sub)" ( (field_expression "t->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "t = pNVar2;" (assignment_expression "t = pNVar2" identifier = identifier) ;) }) (else_clause "else {\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }" else (compound_statement "{\n        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);\n        *(NODE **)&t->sub = pNVar2;\n        t = pNVar2;\n      }" { (expression_statement "(pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);" (assignment_expression "(pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1)" (field_expression "(pNVar2->sub).nodep.name" (field_expression "(pNVar2->sub).nodep" (parenthesized_expression "(pNVar2->sub)" ( (field_expression "pNVar2->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(char *)((pNVar2->sub).val.sref + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((pNVar2->sub).val.sref + 1)" ( (binary_expression "(pNVar2->sub).val.sref + 1" (field_expression "(pNVar2->sub).val.sref" (field_expression "(pNVar2->sub).val" (parenthesized_expression "(pNVar2->sub)" ( (field_expression "pNVar2->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) + number_literal) )))) ;) (expression_statement "*(NODE **)&t->sub = pNVar2;" (assignment_expression "*(NODE **)&t->sub = pNVar2" (pointer_expression "*(NODE **)&t->sub" * (cast_expression "(NODE **)&t->sub" ( (type_descriptor "NODE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&t->sub" & (field_expression "t->sub" identifier -> field_identifier)))) = identifier) ;) (expression_statement "t = pNVar2;" (assignment_expression "t = pNVar2" identifier = identifier) ;) }))) }) (else_clause "else {\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }" else (compound_statement "{\n      t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);\n    }" { (expression_statement "t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0);" (assignment_expression "t = (NODE *)(*(code *)PTR_force_array_004bed68)(t,0)" identifier = (cast_expression "(NODE *)(*(code *)PTR_force_array_004bed68)(t,0)" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_force_array_004bed68)(t,0)" (parenthesized_expression "(*(code *)PTR_force_array_004bed68)" ( (pointer_expression "*(code *)PTR_force_array_004bed68" * (cast_expression "(code *)PTR_force_array_004bed68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(t,0)" ( identifier , number_literal ))))) ;) }))) }) (else_clause "else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }\n  }" else (compound_statement "{\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }\n  }" { (expression_statement "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" * (cast_expression "(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" ( (binary_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c" (pointer_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" * (cast_expression "(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)PTR_stack_ptr_004beba8 + 4)" ( (binary_expression "**(int **)PTR_stack_ptr_004beba8 + 4" (pointer_expression "**(int **)PTR_stack_ptr_004beba8" * (pointer_expression "*(int **)PTR_stack_ptr_004beba8" * (cast_expression "(int **)PTR_stack_ptr_004beba8" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (CONCAT31(in_register_00000018,want_array) == 0) {\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }\n    else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }" if (parenthesized_expression "(CONCAT31(in_register_00000018,want_array) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,want_array) == 0" (call_expression "CONCAT31(in_register_00000018,want_array)" identifier (argument_list "(in_register_00000018,want_array)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }\n    }" { (if_statement "if (NVar1 != Node_val) {\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }" if (parenthesized_expression "(NVar1 != Node_val)" ( (binary_expression "NVar1 != Node_val" identifier != identifier) )) (compound_statement "{\n        set_loc("ext.c",0xda);\n        pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);\n        r_fatal(pcVar3,uVar4,i + 1);\n      }" { (expression_statement "set_loc("ext.c",0xda);" (call_expression "set_loc("ext.c",0xda)" identifier (argument_list "("ext.c",0xda)" ( (string_literal ""ext.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                                   (0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" ( (pointer_expression "*(code *)PTR_dcgettext_004bf35c" * (cast_expression "(code *)PTR_dcgettext_004bf35c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,\n                                    "function `%s\': argument #%d: attempt to use array as a scalar"\n                                    ,5)" ( number_literal , (string_literal ""function `%s\': argument #%d: attempt to use array as a scalar"" " string_content escape_sequence string_content ") , number_literal ))))) ;) (expression_statement "r_fatal(pcVar3,uVar4,i + 1);" (call_expression "r_fatal(pcVar3,uVar4,i + 1)" identifier (argument_list "(pcVar3,uVar4,i + 1)" ( identifier , identifier , (binary_expression "i + 1" identifier + number_literal) ))) ;) })) }) (else_clause "else if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }" else (if_statement "if (NVar1 != Node_var_array) {\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }" if (parenthesized_expression "(NVar1 != Node_var_array)" ( (binary_expression "NVar1 != Node_var_array" identifier != identifier) )) (compound_statement "{\n      set_loc("ext.c",0xd6);\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);\n      r_fatal(pcVar3,uVar4,i + 1);\n    }" { (expression_statement "set_loc("ext.c",0xd6);" (call_expression "set_loc("ext.c",0xd6)" identifier (argument_list "("ext.c",0xd6)" ( (string_literal ""ext.c"" " string_content ") , number_literal ))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                                 (0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" ( (pointer_expression "*(code *)PTR_dcgettext_004bf35c" * (cast_expression "(code *)PTR_dcgettext_004bf35c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,\n                                  "function `%s\': argument #%d: attempt to use scalar as an array",\n                                  5)" ( number_literal , (string_literal ""function `%s\': argument #%d: attempt to use scalar as an array"" " string_content escape_sequence string_content ") , number_literal ))))) ;) (expression_statement "r_fatal(pcVar3,uVar4,i + 1);" (call_expression "r_fatal(pcVar3,uVar4,i + 1)" identifier (argument_list "(pcVar3,uVar4,i + 1)" ( identifier , identifier , (binary_expression "i + 1" identifier + number_literal) ))) ;) })))) }))) (return_statement "return t;" return identifier ;) })))
(translation_unit "int * get_actual_argument(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int * get_actual_argument(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* get_actual_argument(int *param_1,int param_2,int param_3)" * (function_declarator "get_actual_argument(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[10];" (assignment_expression "iVar1 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" if (parenthesized_expression "(iVar1 == 6)" ( (binary_expression "iVar1 == 6" identifier == number_literal) )) (compound_statement "{\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }" { (expression_statement "param_1[10] = 4;" (assignment_expression "param_1[10] = 4" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2 = *(int **)PTR_Nnull_string_004beb50;" (assignment_expression "piVar2 = *(int **)PTR_Nnull_string_004beb50" identifier = (pointer_expression "*(int **)PTR_Nnull_string_004beb50" * (cast_expression "(int **)PTR_Nnull_string_004beb50" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" if (parenthesized_expression "((piVar2[0xb] & 1U) == 0)" ( (binary_expression "(piVar2[0xb] & 1U) == 0" (parenthesized_expression "(piVar2[0xb] & 1U)" ( (binary_expression "piVar2[0xb] & 1U" (subscript_expression "piVar2[0xb]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" { (expression_statement "piVar2 = (int *)r_dupnode(piVar2);" (assignment_expression "piVar2 = (int *)r_dupnode(piVar2)" identifier = (cast_expression "(int *)r_dupnode(piVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "r_dupnode(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))))) ;) (expression_statement "*param_1 = (int)piVar2;" (assignment_expression "*param_1 = (int)piVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1 = piVar2;" (assignment_expression "param_1 = piVar2" identifier = identifier) ;) }) (else_clause "else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" else (compound_statement "{\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" { (expression_statement "piVar2[4] = piVar2[4] + 1;" (assignment_expression "piVar2[4] = piVar2[4] + 1" (subscript_expression "piVar2[4]" identifier [ number_literal ]) = (binary_expression "piVar2[4] + 1" (subscript_expression "piVar2[4]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*param_1 = (int)piVar2;" (assignment_expression "*param_1 = (int)piVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1 = piVar2;" (assignment_expression "param_1 = piVar2" identifier = identifier) ;) }))) }) (else_clause "else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" else (compound_statement "{\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" { (expression_statement "param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);" (assignment_expression "param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0)" identifier = (cast_expression "(int *)(*(code *)PTR_force_array_004bed68)(param_1,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_force_array_004bed68)(param_1,0)" (parenthesized_expression "(*(code *)PTR_force_array_004bed68)" ( (pointer_expression "*(code *)PTR_force_array_004bed68" * (cast_expression "(code *)PTR_force_array_004bed68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) }))) }) (else_clause "else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" else (compound_statement "{\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" { (expression_statement "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" * (cast_expression "(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" ( (binary_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c" (pointer_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" * (cast_expression "(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)PTR_stack_ptr_004beba8 + 4)" ( (binary_expression "**(int **)PTR_stack_ptr_004beba8 + 4" (pointer_expression "**(int **)PTR_stack_ptr_004beba8" * (pointer_expression "*(int **)PTR_stack_ptr_004beba8" * (cast_expression "(int **)PTR_stack_ptr_004beba8" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }" { (if_statement "if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }" { (expression_statement "set_loc("ext.c",0xda);" (call_expression "set_loc("ext.c",0xda)" identifier (argument_list "("ext.c",0xda)" ( (string_literal ""ext.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" ( (pointer_expression "*(code *)PTR_dcgettext_004bf35c" * (cast_expression "(code *)PTR_dcgettext_004bf35c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" ( number_literal , (string_literal ""function `%s\': argument #%d: attempt to use array as a scalar"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar3,uVar4,param_2 + 1);" (call_expression "r_fatal(uVar3,uVar4,param_2 + 1)" identifier (argument_list "(uVar3,uVar4,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) ))) ;) })) }) (else_clause "else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" else (if_statement "if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" if (parenthesized_expression "(iVar1 != 5)" ( (binary_expression "iVar1 != 5" identifier != number_literal) )) (compound_statement "{\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" { (expression_statement "set_loc("ext.c",0xd6);" (call_expression "set_loc("ext.c",0xd6)" identifier (argument_list "("ext.c",0xd6)" ( (string_literal ""ext.c"" " string_content ") , number_literal ))) ;) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" ( (pointer_expression "*(code *)PTR_dcgettext_004bf35c" * (cast_expression "(code *)PTR_dcgettext_004bf35c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" ( number_literal , (string_literal ""function `%s\': argument #%d: attempt to use scalar as an array"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar3,uVar4,param_2 + 1);" (call_expression "r_fatal(uVar3,uVar4,param_2 + 1)" identifier (argument_list "(uVar3,uVar4,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) ))) ;) })))) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) + LIT) )))) + LIT) ))))) ;) (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 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 escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression 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 escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) })))) }))) (return_statement return IDENT ;) })))
(function_definition "int * get_actual_argument(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* get_actual_argument(int *param_1,int param_2,int param_3)" (* "*") (function_declarator "get_actual_argument(int *param_1,int param_2,int param_3)" (identifier "get_actual_argument") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (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")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = param_1[10];\n  if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = param_1[10];" (assignment_expression "iVar1 = param_1[10]" (identifier "iVar1") (= "=") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]"))) (; ";")) (if_statement "if (iVar1 == 6) {\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }\n  else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 6)" (( "(") (binary_expression "iVar1 == 6" (identifier "iVar1") (== "==") (number_literal "6")) () ")")) (compound_statement "{\n    if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0) {\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }\n    else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_1[10] = 4;\n      piVar2 = *(int **)PTR_Nnull_string_004beb50;\n      if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n    }" ({ "{") (expression_statement "param_1[10] = 4;" (assignment_expression "param_1[10] = 4" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "4")) (; ";")) (expression_statement "piVar2 = *(int **)PTR_Nnull_string_004beb50;" (assignment_expression "piVar2 = *(int **)PTR_Nnull_string_004beb50" (identifier "piVar2") (= "=") (pointer_expression "*(int **)PTR_Nnull_string_004beb50" (* "*") (cast_expression "(int **)PTR_Nnull_string_004beb50" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_Nnull_string_004beb50")))) (; ";")) (if_statement "if ((piVar2[0xb] & 1U) == 0) {\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }\n      else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" (if "if") (parenthesized_expression "((piVar2[0xb] & 1U) == 0)" (( "(") (binary_expression "(piVar2[0xb] & 1U) == 0" (parenthesized_expression "(piVar2[0xb] & 1U)" (( "(") (binary_expression "piVar2[0xb] & 1U" (subscript_expression "piVar2[0xb]" (identifier "piVar2") ([ "[") (number_literal "0xb") (] "]")) (& "&") (number_literal "1U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        piVar2 = (int *)r_dupnode(piVar2);\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" ({ "{") (expression_statement "piVar2 = (int *)r_dupnode(piVar2);" (assignment_expression "piVar2 = (int *)r_dupnode(piVar2)" (identifier "piVar2") (= "=") (cast_expression "(int *)r_dupnode(piVar2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "r_dupnode(piVar2)" (identifier "r_dupnode") (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))))) (; ";")) (expression_statement "*param_1 = (int)piVar2;" (assignment_expression "*param_1 = (int)piVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "param_1 = piVar2;" (assignment_expression "param_1 = piVar2" (identifier "param_1") (= "=") (identifier "piVar2")) (; ";")) (} "}")) (else_clause "else {\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" (else "else") (compound_statement "{\n        piVar2[4] = piVar2[4] + 1;\n        *param_1 = (int)piVar2;\n        param_1 = piVar2;\n      }" ({ "{") (expression_statement "piVar2[4] = piVar2[4] + 1;" (assignment_expression "piVar2[4] = piVar2[4] + 1" (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "piVar2[4] + 1" (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = (int)piVar2;" (assignment_expression "*param_1 = (int)piVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "param_1 = piVar2;" (assignment_expression "param_1 = piVar2" (identifier "param_1") (= "=") (identifier "piVar2")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" (else "else") (compound_statement "{\n      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);\n    }" ({ "{") (expression_statement "param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);" (assignment_expression "param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0)" (identifier "param_1") (= "=") (cast_expression "(int *)(*(code *)PTR_force_array_004bed68)(param_1,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_force_array_004bed68)(param_1,0)" (parenthesized_expression "(*(code *)PTR_force_array_004bed68)" (( "(") (pointer_expression "*(code *)PTR_force_array_004bed68" (* "*") (cast_expression "(code *)PTR_force_array_004bed68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_force_array_004bed68"))) () ")")) (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" (else "else") (compound_statement "{\n    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);\n    if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }\n  }" ({ "{") (expression_statement "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" (* "*") (cast_expression "(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c)" (( "(") (binary_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c" (pointer_expression "*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" (* "*") (cast_expression "(int *)(**(int **)PTR_stack_ptr_004beba8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(**(int **)PTR_stack_ptr_004beba8 + 4)" (( "(") (binary_expression "**(int **)PTR_stack_ptr_004beba8 + 4" (pointer_expression "**(int **)PTR_stack_ptr_004beba8" (* "*") (pointer_expression "*(int **)PTR_stack_ptr_004beba8" (* "*") (cast_expression "(int **)PTR_stack_ptr_004beba8" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stack_ptr_004beba8")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (param_3 == 0) {\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }\n    else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }\n    }" ({ "{") (if_statement "if (iVar1 != 1) {\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        set_loc("ext.c",0xda);\n        uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);\n        r_fatal(uVar3,uVar4,param_2 + 1);\n      }" ({ "{") (expression_statement "set_loc("ext.c",0xda);" (call_expression "set_loc("ext.c",0xda)" (identifier "set_loc") (argument_list "("ext.c",0xda)" (( "(") (string_literal ""ext.c"" (" """) (string_content "ext.c") (" """)) (, ",") (number_literal "0xda") () ")"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004bf35c" (* "*") (cast_expression "(code *)PTR_dcgettext_004bf35c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004bf35c"))) () ")")) (argument_list "(0,"function `%s\': argument #%d: attempt to use array as a scalar",5)" (( "(") (number_literal "0") (, ",") (string_literal ""function `%s\': argument #%d: attempt to use array as a scalar"" (" """) (string_content "function `%s") (escape_sequence "\'") (string_content ": argument #%d: attempt to use array as a scalar") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "r_fatal(uVar3,uVar4,param_2 + 1);" (call_expression "r_fatal(uVar3,uVar4,param_2 + 1)" (identifier "r_fatal") (argument_list "(uVar3,uVar4,param_2 + 1)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" (else "else") (if_statement "if (iVar1 != 5) {\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" (if "if") (parenthesized_expression "(iVar1 != 5)" (( "(") (binary_expression "iVar1 != 5" (identifier "iVar1") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      set_loc("ext.c",0xd6);\n      uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);\n      r_fatal(uVar3,uVar4,param_2 + 1);\n    }" ({ "{") (expression_statement "set_loc("ext.c",0xd6);" (call_expression "set_loc("ext.c",0xd6)" (identifier "set_loc") (argument_list "("ext.c",0xd6)" (( "(") (string_literal ""ext.c"" (" """) (string_content "ext.c") (" """)) (, ",") (number_literal "0xd6") () ")"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_004bf35c)\n                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004bf35c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004bf35c" (* "*") (cast_expression "(code *)PTR_dcgettext_004bf35c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004bf35c"))) () ")")) (argument_list "(0,"function `%s\': argument #%d: attempt to use scalar as an array",5)" (( "(") (number_literal "0") (, ",") (string_literal ""function `%s\': argument #%d: attempt to use scalar as an array"" (" """) (string_content "function `%s") (escape_sequence "\'") (string_content ": argument #%d: attempt to use scalar as an array") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "r_fatal(uVar3,uVar4,param_2 + 1);" (call_expression "r_fatal(uVar3,uVar4,param_2 + 1)" (identifier "r_fatal") (argument_list "(uVar3,uVar4,param_2 + 1)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))))) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(type_1 *t,int var_8,type_2 want_array)

{
  type_3 var_1;
  type_1 *pNVar2;
  char *pcVar3;
  type_4 in_register_00000018;
  type_5 uVar4;
  
  var_1 = t->type;
  if (var_1 == var_2) {
    if (var_3(in_register_00000018,want_array) == 0) {
      t->type = Node_var;
      pNVar2 = *(type_1 **)PTR_Nnull_string_004beb50;
      if ((pNVar2->flags & 1) == 0) {
        pNVar2 = var_4(pNVar2);
        (t->sub).nodep.l.lptr = pNVar2;
        t = pNVar2;
      }
      else {
        (pNVar2->sub).nodep.name = (char *)((pNVar2->sub).val.sref + 1);
        *(type_1 **)&t->sub = pNVar2;
        t = pNVar2;
      }
    }
    else {
      t = (type_1 *)(*(type_6 *)PTR_force_array_004bed68)(t,0);
    }
  }
  else {
    uVar4 = *(type_5 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);
    if (var_3(in_register_00000018,want_array) == 0) {
      if (var_1 != var_5) {
        var_6("ext.c",0xda);
        pcVar3 = (char *)(*(type_6 *)PTR_dcgettext_004bf35c)
                                   (0,
                                    "function `%s\': argument #%d: attempt to use array as a scalar"
                                    ,5);
        var_7(pcVar3,uVar4,var_8 + 1);
      }
    }
    else if (var_1 != var_9) {
      var_6("ext.c",0xd6);
      pcVar3 = (char *)(*(type_6 *)PTR_dcgettext_004bf35c)
                                 (0,
                                  "function `%s\': argument #%d: attempt to use scalar as an array",
                                  5);
      var_7(pcVar3,uVar4,var_8 + 1);
    }
  }
  return t;
}


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

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

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  iVar1 = param_1[10];
  if (iVar1 == 6) {
    if (param_3 == 0) {
      param_1[10] = 4;
      piVar2 = *(int **)PTR_Nnull_string_004beb50;
      if ((piVar2[0xb] & 1U) == 0) {
        piVar2 = (int *)r_dupnode(piVar2);
        *param_1 = (int)piVar2;
        param_1 = piVar2;
      }
      else {
        piVar2[4] = piVar2[4] + 1;
        *param_1 = (int)piVar2;
        param_1 = piVar2;
      }
    }
    else {
      param_1 = (int *)(*(code *)PTR_force_array_004bed68)(param_1,0);
    }
  }
  else {
    uVar4 = *(undefined4 *)(*(int *)(**(int **)PTR_stack_ptr_004beba8 + 4) + 0x1c);
    if (param_3 == 0) {
      if (iVar1 != 1) {
        set_loc("ext.c",0xda);
        uVar3 = (*(code *)PTR_dcgettext_004bf35c)
                          (0,"function `%s\': argument #%d: attempt to use array as a scalar",5);
        r_fatal(uVar3,uVar4,param_2 + 1);
      }
    }
    else if (iVar1 != 5) {
      set_loc("ext.c",0xd6);
      uVar3 = (*(code *)PTR_dcgettext_004bf35c)
                        (0,"function `%s\': argument #%d: attempt to use scalar as an array",5);
      r_fatal(uVar3,uVar4,param_2 + 1);
    }
  }
  return param_1;
}

