
void cmdline_save_param(char *p,char *value,int pri)

{
  int iVar1;
  size_t n;
  undefined4 *puVar2;
  
  iVar1 = pri * 0xc;
  if (*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <
      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)) {
                    /* WARNING: Subroutine does not return */
    dupstr(p);
  }
  n = *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20;
  puVar2 = (undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64);
  puVar2[2] = n;
                    /* WARNING: Subroutine does not return */
  saferealloc((void *)*puVar2,n,8);
}



void FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  int iVar5;
  
  iVar2 = param_3 * 0xc;
  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=
      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {
    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;
    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);
    puVar4[2] = iVar5;
    uVar1 = saferealloc(*puVar4,iVar5,8);
    *puVar4 = uVar1;
  }
  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);
  iVar2 = piVar3[1];
  iVar5 = *piVar3;
  uVar1 = dupstr(param_1);
  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;
  iVar2 = piVar3[1];
  iVar5 = *piVar3;
  uVar1 = dupstr(param_2);
  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;
  piVar3[1] = piVar3[1] + 1;
  return;
}


lui gp,0xa
addiu gp,gp,-0x76e4
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s5,a0,zero
or s4,a1,zero
lw v0,-0x7fd8(gp)
sll v1,a2,0x1
addu v1,v1,a2
sll v1,v1,0x2
addiu v0,v0,-0xf64
addu v0,v0,v1
lw a1,0x4(v0)
lw v0,0x8(v0)
slt v0,a1,v0
beq v0,zero,0x0001d878
_or s3,a2,zero
sll s2,s3,0x1
addu s0,s2,s3
sll s0,s0,0x2
lw s1,-0x7fd8(gp)
addiu s1,s1,-0xf64
addu s0,s0,s1
lw s6,0x4(s0)
sll v0,s6,0x3
lw s6,0x0(s0)
addu s6,s6,v0
or a0,s5,zero
lw t9,-0x7f8c(gp)
bal 0x00035ad4
_nop
lw gp,0x10(sp)
sw v0,0x0(s6)
lw s5,0x4(s0)
sll v0,s5,0x3
lw s5,0x0(s0)
addu s5,s5,v0
or a0,s4,zero
lw t9,-0x7f8c(gp)
bal 0x00035ad4
_nop
lw gp,0x10(sp)
sw v0,0x4(s5)
lw v0,0x4(s0)
addiu v0,v0,0x1
sw v0,0x4(s0)
lw ra,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
addiu a1,a1,0x20
lw v0,-0x7fd8(gp)
addiu v0,v0,-0xf64
addu s0,v1,v0
sw a1,0x8(s0)
li a2,0x8
lw a0,0x0(s0)
lw t9,-0x7f88(gp)
bal 0x00035e78
_nop
lw gp,0x10(sp)
b 0x0001d7dc
_sw v0,0x0(s0)
(translation_unit "void FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}\n\n" (function_definition "void FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}" primitive_type (function_declarator "FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar2 = param_3 * 0xc;" (assignment_expression "iVar2 = param_3 * 0xc" identifier = (binary_expression "param_3 * 0xc" identifier * number_literal)) ;) (if_statement "if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }" if (parenthesized_expression "(*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60))" ( (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf5c" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) )))) <= (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) ))))) )) (compound_statement "{\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }" { (expression_statement "iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;" (assignment_expression "iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20" identifier = (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);" (assignment_expression "puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64)" identifier = (cast_expression "(undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf64)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf64" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) )))) ;) (expression_statement "puVar4[2] = iVar5;" (assignment_expression "puVar4[2] = iVar5" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = saferealloc(*puVar4,iVar5,8);" (assignment_expression "uVar1 = saferealloc(*puVar4,iVar5,8)" identifier = (call_expression "saferealloc(*puVar4,iVar5,8)" identifier (argument_list "(*puVar4,iVar5,8)" ( (pointer_expression "*puVar4" * identifier) , identifier , number_literal )))) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) })) (expression_statement "piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);" (assignment_expression "piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" identifier = (cast_expression "(int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" ( (binary_expression "PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64" (binary_expression "PTR__environ_000ae0b8 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "uVar1 = dupstr(param_1);" (assignment_expression "uVar1 = dupstr(param_1)" identifier = (call_expression "dupstr(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + iVar2 * 8) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + iVar2 * 8)" * (cast_expression "(undefined4 *)(iVar5 + iVar2 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar2 * 8)" ( (binary_expression "iVar5 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "uVar1 = dupstr(param_2);" (assignment_expression "uVar1 = dupstr(param_2)" identifier = (call_expression "dupstr(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + iVar2 * 8 + 4)" * (cast_expression "(undefined4 *)(iVar5 + iVar2 * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar2 * 8 + 4)" ( (binary_expression "iVar5 + iVar2 * 8 + 4" (binary_expression "iVar5 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar3[1] = piVar3[1] + 1;" (assignment_expression "piVar3[1] = piVar3[1] + 1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "piVar3[1] + 1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void cmdline_save_param(char *p,char *value,int pri)\n\n{\n  int iVar1;\n  size_t n;\n  undefined4 *puVar2;\n  \n  iVar1 = pri * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <\n      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)) {\n                    /* WARNING: Subroutine does not return */\n    dupstr(p);\n  }\n  n = *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20;\n  puVar2 = (undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64);\n  puVar2[2] = n;\n                    /* WARNING: Subroutine does not return */\n  saferealloc((void *)*puVar2,n,8);\n}\n\n" (function_definition "void cmdline_save_param(char *p,char *value,int pri)\n\n{\n  int iVar1;\n  size_t n;\n  undefined4 *puVar2;\n  \n  iVar1 = pri * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <\n      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)) {\n                    /* WARNING: Subroutine does not return */\n    dupstr(p);\n  }\n  n = *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20;\n  puVar2 = (undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64);\n  puVar2[2] = n;\n                    /* WARNING: Subroutine does not return */\n  saferealloc((void *)*puVar2,n,8);\n}" primitive_type (function_declarator "cmdline_save_param(char *p,char *value,int pri)" identifier (parameter_list "(char *p,char *value,int pri)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) , (parameter_declaration "int pri" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t n;\n  undefined4 *puVar2;\n  \n  iVar1 = pri * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <\n      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)) {\n                    /* WARNING: Subroutine does not return */\n    dupstr(p);\n  }\n  n = *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20;\n  puVar2 = (undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64);\n  puVar2[2] = n;\n                    /* WARNING: Subroutine does not return */\n  saferealloc((void *)*puVar2,n,8);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = pri * 0xc;" (assignment_expression "iVar1 = pri * 0xc" identifier = (binary_expression "pri * 0xc" identifier * number_literal)) ;) (if_statement "if (*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <\n      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)) {\n                    /* WARNING: Subroutine does not return */\n    dupstr(p);\n  }" if (parenthesized_expression "(*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <\n      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c))" ( (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) <\n      *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar1 + -0xf60)" ( (binary_expression "PTR__environ_000ae0b8 + iVar1 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar1" identifier + identifier) + number_literal) )))) < (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar1 + -0xf5c)" ( (binary_expression "PTR__environ_000ae0b8 + iVar1 + -0xf5c" (binary_expression "PTR__environ_000ae0b8 + iVar1" identifier + identifier) + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    dupstr(p);\n  }" { comment (expression_statement "dupstr(p);" (call_expression "dupstr(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (expression_statement "n = *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20;" (assignment_expression "n = *(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20" identifier = (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60) + 0x20" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar1 + -0xf60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar1 + -0xf60)" ( (binary_expression "PTR__environ_000ae0b8 + iVar1 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar1" identifier + identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64);" (assignment_expression "puVar2 = (undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64)" identifier = (cast_expression "(undefined4 *)(PTR__environ_000ae0b8 + iVar1 + -0xf64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar1 + -0xf64)" ( (binary_expression "PTR__environ_000ae0b8 + iVar1 + -0xf64" (binary_expression "PTR__environ_000ae0b8 + iVar1" identifier + identifier) + number_literal) )))) ;) (expression_statement "puVar2[2] = n;" (assignment_expression "puVar2[2] = n" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) comment (expression_statement "saferealloc((void *)*puVar2,n,8);" (call_expression "saferealloc((void *)*puVar2,n,8)" identifier (argument_list "((void *)*puVar2,n,8)" ( (cast_expression "(void *)*puVar2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) , identifier , number_literal ))) ;) })))
(translation_unit "void FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}\n\n" (function_definition "void FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}" primitive_type (function_declarator "FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar2 = param_3 * 0xc;" (assignment_expression "iVar2 = param_3 * 0xc" identifier = (binary_expression "param_3 * 0xc" identifier * number_literal)) ;) (if_statement "if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }" if (parenthesized_expression "(*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60))" ( (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf5c" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) )))) <= (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) ))))) )) (compound_statement "{\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }" { (expression_statement "iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;" (assignment_expression "iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20" identifier = (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" * (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf60)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);" (assignment_expression "puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64)" identifier = (cast_expression "(undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf64)" ( (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf64" (binary_expression "PTR__environ_000ae0b8 + iVar2" identifier + identifier) + number_literal) )))) ;) (expression_statement "puVar4[2] = iVar5;" (assignment_expression "puVar4[2] = iVar5" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = saferealloc(*puVar4,iVar5,8);" (assignment_expression "uVar1 = saferealloc(*puVar4,iVar5,8)" identifier = (call_expression "saferealloc(*puVar4,iVar5,8)" identifier (argument_list "(*puVar4,iVar5,8)" ( (pointer_expression "*puVar4" * identifier) , identifier , number_literal )))) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) })) (expression_statement "piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);" (assignment_expression "piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" identifier = (cast_expression "(int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" ( (binary_expression "PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64" (binary_expression "PTR__environ_000ae0b8 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "uVar1 = dupstr(param_1);" (assignment_expression "uVar1 = dupstr(param_1)" identifier = (call_expression "dupstr(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + iVar2 * 8) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + iVar2 * 8)" * (cast_expression "(undefined4 *)(iVar5 + iVar2 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar2 * 8)" ( (binary_expression "iVar5 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "uVar1 = dupstr(param_2);" (assignment_expression "uVar1 = dupstr(param_2)" identifier = (call_expression "dupstr(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + iVar2 * 8 + 4)" * (cast_expression "(undefined4 *)(iVar5 + iVar2 * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar2 * 8 + 4)" ( (binary_expression "iVar5 + iVar2 * 8 + 4" (binary_expression "iVar5 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar3[1] = piVar3[1] + 1;" (assignment_expression "piVar3[1] = piVar3[1] + 1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "piVar3[1] + 1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001d774(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0001d774") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  iVar2 = param_3 * 0xc;\n  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }\n  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_1);\n  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;\n  iVar2 = piVar3[1];\n  iVar5 = *piVar3;\n  uVar1 = dupstr(param_2);\n  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;\n  piVar3[1] = piVar3[1] + 1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar2 = param_3 * 0xc;" (assignment_expression "iVar2 = param_3 * 0xc" (identifier "iVar2") (= "=") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) (; ";")) (if_statement "if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60))" (( "(") (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=\n      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" (* "*") (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf5c)" (( "(") (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf5c" (binary_expression "PTR__environ_000ae0b8 + iVar2" (identifier "PTR__environ_000ae0b8") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "-0xf5c")) () ")")))) (<= "<=") (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (* "*") (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (( "(") (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar2" (identifier "PTR__environ_000ae0b8") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "-0xf60")) () ")"))))) () ")")) (compound_statement "{\n    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;\n    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);\n    puVar4[2] = iVar5;\n    uVar1 = saferealloc(*puVar4,iVar5,8);\n    *puVar4 = uVar1;\n  }" ({ "{") (expression_statement "iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;" (assignment_expression "iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20" (identifier "iVar5") (= "=") (binary_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20" (pointer_expression "*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (* "*") (cast_expression "(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf60)" (( "(") (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf60" (binary_expression "PTR__environ_000ae0b8 + iVar2" (identifier "PTR__environ_000ae0b8") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "-0xf60")) () ")")))) (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);" (assignment_expression "puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__environ_000ae0b8 + iVar2 + -0xf64)" (( "(") (binary_expression "PTR__environ_000ae0b8 + iVar2 + -0xf64" (binary_expression "PTR__environ_000ae0b8 + iVar2" (identifier "PTR__environ_000ae0b8") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "-0xf64")) () ")")))) (; ";")) (expression_statement "puVar4[2] = iVar5;" (assignment_expression "puVar4[2] = iVar5" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "uVar1 = saferealloc(*puVar4,iVar5,8);" (assignment_expression "uVar1 = saferealloc(*puVar4,iVar5,8)" (identifier "uVar1") (= "=") (call_expression "saferealloc(*puVar4,iVar5,8)" (identifier "saferealloc") (argument_list "(*puVar4,iVar5,8)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (, ",") (identifier "iVar5") (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);" (assignment_expression "piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" (identifier "piVar3") (= "=") (cast_expression "(int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64)" (( "(") (binary_expression "PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64" (binary_expression "PTR__environ_000ae0b8 + param_3 * 0xc" (identifier "PTR__environ_000ae0b8") (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) (+ "+") (number_literal "-0xf64")) () ")")))) (; ";")) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" (identifier "iVar5") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "uVar1 = dupstr(param_1);" (assignment_expression "uVar1 = dupstr(param_1)" (identifier "uVar1") (= "=") (call_expression "dupstr(param_1)" (identifier "dupstr") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + iVar2 * 8) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + iVar2 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar5 + iVar2 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar2 * 8)" (( "(") (binary_expression "iVar5 + iVar2 * 8" (identifier "iVar5") (+ "+") (binary_expression "iVar2 * 8" (identifier "iVar2") (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" (identifier "iVar5") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "uVar1 = dupstr(param_2);" (assignment_expression "uVar1 = dupstr(param_2)" (identifier "uVar1") (= "=") (call_expression "dupstr(param_2)" (identifier "dupstr") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;" (assignment_expression "*(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1" (pointer_expression "*(undefined4 *)(iVar5 + iVar2 * 8 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar5 + iVar2 * 8 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar2 * 8 + 4)" (( "(") (binary_expression "iVar5 + iVar2 * 8 + 4" (binary_expression "iVar5 + iVar2 * 8" (identifier "iVar5") (+ "+") (binary_expression "iVar2 * 8" (identifier "iVar2") (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "piVar3[1] = piVar3[1] + 1;" (assignment_expression "piVar3[1] = piVar3[1] + 1" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "piVar3[1] + 1" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (identifier))) (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)))) (return_statement))))

void MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  int iVar5;
  
  iVar2 = param_3 * 0xc;
  if (*(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf5c) <=
      *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60)) {
    iVar5 = *(int *)(PTR__environ_000ae0b8 + iVar2 + -0xf60) + 0x20;
    puVar4 = (undefined4 *)(PTR__environ_000ae0b8 + iVar2 + -0xf64);
    puVar4[2] = iVar5;
    uVar1 = saferealloc(*puVar4,iVar5,8);
    *puVar4 = uVar1;
  }
  piVar3 = (int *)(PTR__environ_000ae0b8 + param_3 * 0xc + -0xf64);
  iVar2 = piVar3[1];
  iVar5 = *piVar3;
  uVar1 = dupstr(param_1);
  *(undefined4 *)(iVar5 + iVar2 * 8) = uVar1;
  iVar2 = piVar3[1];
  iVar5 = *piVar3;
  uVar1 = dupstr(param_2);
  *(undefined4 *)(iVar5 + iVar2 * 8 + 4) = uVar1;
  piVar3[1] = piVar3[1] + 1;
  return;
}

