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

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



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

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = PTR_DAT_000a70bc;
  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);
  iVar4 = piVar5[1];
  if (iVar4 < piVar5[2]) {
    iVar2 = *piVar5;
  }
  else {
    piVar5[2] = iVar4 + 0x20;
    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);
    iVar4 = piVar5[1];
    *piVar5 = iVar2;
  }
  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);
  uVar3 = dupstr(param_1);
  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;
  iVar4 = piVar5[1];
  iVar6 = *piVar5;
  uVar3 = dupstr(param_2);
  iVar2 = piVar5[1];
  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;
  piVar5[1] = iVar2 + 1;
  return;
}


lui gp,0x9
addiu gp,gp,0x1830
addu gp,gp,t9
addiu sp,sp,-0x38
sw s2,0x24(sp)
sll s2,a2,0x1
sw s0,0x1c(sp)
sw s1,0x20(sp)
addu s1,s2,a2
lw s0,-0x7fd4(gp)
sll s1,s1,0x2
sw s3,0x28(sp)
or s3,a1,zero
sw gp,0x10(sp)
addiu s0,s0,-0x7f74
sw s5,0x30(sp)
sw s4,0x2c(sp)
or s5,a0,zero
addu s1,s0,s1
sw ra,0x34(sp)
lw a1,0x4(s1)
lw v0,0x8(s1)
slt v0,a1,v0
beq v0,zero,0x0001d940
_or s4,a2,zero
lw v0,0x0(s1)
addu s2,s2,s4
lw t9,-0x7f94(gp)
sll a1,a1,0x3
sll s2,s2,0x2
addu s1,v0,a1
addu s0,s0,s2
bal 0x00033c0c
_or a0,s5,zero
or a0,s3,zero
lw gp,0x10(sp)
sw v0,0x0(s1)
lw v0,0x4(s0)
lw s1,0x0(s0)
lw t9,-0x7f94(gp)
sll v0,v0,0x3
bal 0x00033c0c
_addu s1,s1,v0
lw v1,0x4(s0)
lw ra,0x34(sp)
lw s5,0x30(sp)
addiu v1,v1,0x1
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
sw v0,0x4(s1)
sw v1,0x4(s0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
addiu a1,a1,0x20
lw t9,-0x7eec(gp)
lw a0,0x0(s1)
li a2,0x8
bal 0x0003410c
_sw a1,0x8(s1)
lw gp,0x10(sp)
lw a1,0x4(s1)
b 0x0001d8c8
_sw v0,0x0(s1)
(translation_unit "void FUN_0001d860(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}\n\n" (function_definition "void FUN_0001d860(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_0001d860(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  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_000a70bc;" (assignment_expression "puVar1 = PTR_DAT_000a70bc" identifier = identifier) ;) (expression_statement "piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);" (assignment_expression "piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" identifier = (cast_expression "(int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" ( (binary_expression "PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74" (binary_expression "PTR_DAT_000a70bc + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" if (parenthesized_expression "(iVar4 < piVar5[2])" ( (binary_expression "iVar4 < piVar5[2]" identifier < (subscript_expression "piVar5[2]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar2 = *piVar5;\n  }" { (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }) (else_clause "else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" else (compound_statement "{\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" { (expression_statement "piVar5[2] = iVar4 + 0x20;" (assignment_expression "piVar5[2] = iVar4 + 0x20" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "iVar4 + 0x20" identifier + number_literal)) ;) (expression_statement "iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);" (assignment_expression "iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8)" identifier = (call_expression "saferealloc(*piVar5,iVar4 + 0x20,8)" identifier (argument_list "(*piVar5,iVar4 + 0x20,8)" ( (pointer_expression "*piVar5" * identifier) , (binary_expression "iVar4 + 0x20" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar5 = iVar2;" (assignment_expression "*piVar5 = iVar2" (pointer_expression "*piVar5" * identifier) = identifier) ;) }))) (expression_statement "piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);" (assignment_expression "piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74)" identifier = (cast_expression "(int *)(puVar1 + param_3 * 0xc + -0x7f74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + param_3 * 0xc + -0x7f74)" ( (binary_expression "puVar1 + param_3 * 0xc + -0x7f74" (binary_expression "puVar1 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "uVar3 = dupstr(param_1);" (assignment_expression "uVar3 = dupstr(param_1)" identifier = (call_expression "dupstr(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + iVar4 * 8) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + iVar4 * 8)" * (cast_expression "(undefined4 *)(iVar2 + iVar4 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4 * 8)" ( (binary_expression "iVar2 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uVar3 = dupstr(param_2);" (assignment_expression "uVar3 = dupstr(param_2)" identifier = (call_expression "dupstr(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar2 = piVar5[1];" (assignment_expression "iVar2 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3" (pointer_expression "*(undefined4 *)(iVar6 + iVar4 * 8 + 4)" * (cast_expression "(undefined4 *)(iVar6 + iVar4 * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 * 8 + 4)" ( (binary_expression "iVar6 + iVar4 * 8 + 4" (binary_expression "iVar6 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar5[1] = iVar2 + 1;" (assignment_expression "piVar5[1] = iVar2 + 1" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void cmdline_save_param(char *p,char *value,int pri)\n\n{\n  void *pvVar1;\n  size_t n;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(PTR_DAT_000a70bc + pri * 0xc + -0x7f74);\n  if ((int)puVar2[2] <= (int)puVar2[1]) {\n    n = puVar2[1] + 0x20;\n    puVar2[2] = n;\n    pvVar1 = saferealloc((void *)*puVar2,n,8);\n    *puVar2 = pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  dupstr(p);\n}\n\n" (function_definition "void cmdline_save_param(char *p,char *value,int pri)\n\n{\n  void *pvVar1;\n  size_t n;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(PTR_DAT_000a70bc + pri * 0xc + -0x7f74);\n  if ((int)puVar2[2] <= (int)puVar2[1]) {\n    n = puVar2[1] + 0x20;\n    puVar2[2] = n;\n    pvVar1 = saferealloc((void *)*puVar2,n,8);\n    *puVar2 = pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  dupstr(p);\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  void *pvVar1;\n  size_t n;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(PTR_DAT_000a70bc + pri * 0xc + -0x7f74);\n  if ((int)puVar2[2] <= (int)puVar2[1]) {\n    n = puVar2[1] + 0x20;\n    puVar2[2] = n;\n    pvVar1 = saferealloc((void *)*puVar2,n,8);\n    *puVar2 = pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  dupstr(p);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_000a70bc + pri * 0xc + -0x7f74);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_000a70bc + pri * 0xc + -0x7f74)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000a70bc + pri * 0xc + -0x7f74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000a70bc + pri * 0xc + -0x7f74)" ( (binary_expression "PTR_DAT_000a70bc + pri * 0xc + -0x7f74" (binary_expression "PTR_DAT_000a70bc + pri * 0xc" identifier + (binary_expression "pri * 0xc" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if ((int)puVar2[2] <= (int)puVar2[1]) {\n    n = puVar2[1] + 0x20;\n    puVar2[2] = n;\n    pvVar1 = saferealloc((void *)*puVar2,n,8);\n    *puVar2 = pvVar1;\n  }" if (parenthesized_expression "((int)puVar2[2] <= (int)puVar2[1])" ( (binary_expression "(int)puVar2[2] <= (int)puVar2[1]" (cast_expression "(int)puVar2[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) <= (cast_expression "(int)puVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    n = puVar2[1] + 0x20;\n    puVar2[2] = n;\n    pvVar1 = saferealloc((void *)*puVar2,n,8);\n    *puVar2 = pvVar1;\n  }" { (expression_statement "n = puVar2[1] + 0x20;" (assignment_expression "n = puVar2[1] + 0x20" identifier = (binary_expression "puVar2[1] + 0x20" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "puVar2[2] = n;" (assignment_expression "puVar2[2] = n" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pvVar1 = saferealloc((void *)*puVar2,n,8);" (assignment_expression "pvVar1 = saferealloc((void *)*puVar2,n,8)" identifier = (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 )))) ;) (expression_statement "*puVar2 = pvVar1;" (assignment_expression "*puVar2 = pvVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) })) comment (expression_statement "dupstr(p);" (call_expression "dupstr(p)" identifier (argument_list "(p)" ( identifier ))) ;) })))
(translation_unit "void FUN_0001d860(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}\n\n" (function_definition "void FUN_0001d860(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_0001d860(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  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_000a70bc;" (assignment_expression "puVar1 = PTR_DAT_000a70bc" identifier = identifier) ;) (expression_statement "piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);" (assignment_expression "piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" identifier = (cast_expression "(int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" ( (binary_expression "PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74" (binary_expression "PTR_DAT_000a70bc + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" if (parenthesized_expression "(iVar4 < piVar5[2])" ( (binary_expression "iVar4 < piVar5[2]" identifier < (subscript_expression "piVar5[2]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar2 = *piVar5;\n  }" { (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }) (else_clause "else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" else (compound_statement "{\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" { (expression_statement "piVar5[2] = iVar4 + 0x20;" (assignment_expression "piVar5[2] = iVar4 + 0x20" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "iVar4 + 0x20" identifier + number_literal)) ;) (expression_statement "iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);" (assignment_expression "iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8)" identifier = (call_expression "saferealloc(*piVar5,iVar4 + 0x20,8)" identifier (argument_list "(*piVar5,iVar4 + 0x20,8)" ( (pointer_expression "*piVar5" * identifier) , (binary_expression "iVar4 + 0x20" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar5 = iVar2;" (assignment_expression "*piVar5 = iVar2" (pointer_expression "*piVar5" * identifier) = identifier) ;) }))) (expression_statement "piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);" (assignment_expression "piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74)" identifier = (cast_expression "(int *)(puVar1 + param_3 * 0xc + -0x7f74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + param_3 * 0xc + -0x7f74)" ( (binary_expression "puVar1 + param_3 * 0xc + -0x7f74" (binary_expression "puVar1 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "uVar3 = dupstr(param_1);" (assignment_expression "uVar3 = dupstr(param_1)" identifier = (call_expression "dupstr(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + iVar4 * 8) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + iVar4 * 8)" * (cast_expression "(undefined4 *)(iVar2 + iVar4 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4 * 8)" ( (binary_expression "iVar2 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uVar3 = dupstr(param_2);" (assignment_expression "uVar3 = dupstr(param_2)" identifier = (call_expression "dupstr(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar2 = piVar5[1];" (assignment_expression "iVar2 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3" (pointer_expression "*(undefined4 *)(iVar6 + iVar4 * 8 + 4)" * (cast_expression "(undefined4 *)(iVar6 + iVar4 * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 * 8 + 4)" ( (binary_expression "iVar6 + iVar4 * 8 + 4" (binary_expression "iVar6 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar5[1] = iVar2 + 1;" (assignment_expression "piVar5[1] = iVar2 + 1" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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 ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression 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 = (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 IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0001d860(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001d860(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0001d860") (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  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_000a70bc;\n  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);\n  iVar4 = piVar5[1];\n  if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }\n  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);\n  uVar3 = dupstr(param_1);\n  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;\n  iVar4 = piVar5[1];\n  iVar6 = *piVar5;\n  uVar3 = dupstr(param_2);\n  iVar2 = piVar5[1];\n  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;\n  piVar5[1] = iVar2 + 1;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar1 = PTR_DAT_000a70bc;" (assignment_expression "puVar1 = PTR_DAT_000a70bc" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000a70bc")) (; ";")) (expression_statement "piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);" (assignment_expression "piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" (identifier "piVar5") (= "=") (cast_expression "(int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74)" (( "(") (binary_expression "PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74" (binary_expression "PTR_DAT_000a70bc + param_3 * 0xc" (identifier "PTR_DAT_000a70bc") (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) (+ "+") (number_literal "-0x7f74")) () ")")))) (; ";")) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar4 < piVar5[2]) {\n    iVar2 = *piVar5;\n  }\n  else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" (if "if") (parenthesized_expression "(iVar4 < piVar5[2])" (( "(") (binary_expression "iVar4 < piVar5[2]" (identifier "iVar4") (< "<") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n    iVar2 = *piVar5;\n  }" ({ "{") (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" (identifier "iVar2") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}")) (else_clause "else {\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" (else "else") (compound_statement "{\n    piVar5[2] = iVar4 + 0x20;\n    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);\n    iVar4 = piVar5[1];\n    *piVar5 = iVar2;\n  }" ({ "{") (expression_statement "piVar5[2] = iVar4 + 0x20;" (assignment_expression "piVar5[2] = iVar4 + 0x20" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar4 + 0x20" (identifier "iVar4") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);" (assignment_expression "iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8)" (identifier "iVar2") (= "=") (call_expression "saferealloc(*piVar5,iVar4 + 0x20,8)" (identifier "saferealloc") (argument_list "(*piVar5,iVar4 + 0x20,8)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (, ",") (binary_expression "iVar4 + 0x20" (identifier "iVar4") (+ "+") (number_literal "0x20")) (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar5 = iVar2;" (assignment_expression "*piVar5 = iVar2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);" (assignment_expression "piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74)" (identifier "piVar5") (= "=") (cast_expression "(int *)(puVar1 + param_3 * 0xc + -0x7f74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + param_3 * 0xc + -0x7f74)" (( "(") (binary_expression "puVar1 + param_3 * 0xc + -0x7f74" (binary_expression "puVar1 + param_3 * 0xc" (identifier "puVar1") (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) (+ "+") (number_literal "-0x7f74")) () ")")))) (; ";")) (expression_statement "uVar3 = dupstr(param_1);" (assignment_expression "uVar3 = dupstr(param_1)" (identifier "uVar3") (= "=") (call_expression "dupstr(param_1)" (identifier "dupstr") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + iVar4 * 8) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + iVar4 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + iVar4 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4 * 8)" (( "(") (binary_expression "iVar2 + iVar4 * 8" (identifier "iVar2") (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar4 = piVar5[1];" (assignment_expression "iVar4 = piVar5[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" (identifier "iVar6") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "uVar3 = dupstr(param_2);" (assignment_expression "uVar3 = dupstr(param_2)" (identifier "uVar3") (= "=") (call_expression "dupstr(param_2)" (identifier "dupstr") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = piVar5[1];" (assignment_expression "iVar2 = piVar5[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3" (pointer_expression "*(undefined4 *)(iVar6 + iVar4 * 8 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar6 + iVar4 * 8 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar4 * 8 + 4)" (( "(") (binary_expression "iVar6 + iVar4 * 8 + 4" (binary_expression "iVar6 + iVar4 * 8" (identifier "iVar6") (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "piVar5[1] = iVar2 + 1;" (assignment_expression "piVar5[1] = iVar2 + 1" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *p,char *value,int var_2)

{
  void *pvVar1;
  size_t n;
  type_1 *puVar2;
  
  puVar2 = (type_1 *)(var_1 + var_2 * 0xc + -0x7f74);
  if ((int)puVar2[2] <= (int)puVar2[1]) {
    n = puVar2[1] + 0x20;
    puVar2[2] = n;
    pvVar1 = var_3((void *)*puVar2,n,8);
    *puVar2 = pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_4(p);
}


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

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

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = PTR_DAT_000a70bc;
  piVar5 = (int *)(PTR_DAT_000a70bc + param_3 * 0xc + -0x7f74);
  iVar4 = piVar5[1];
  if (iVar4 < piVar5[2]) {
    iVar2 = *piVar5;
  }
  else {
    piVar5[2] = iVar4 + 0x20;
    iVar2 = saferealloc(*piVar5,iVar4 + 0x20,8);
    iVar4 = piVar5[1];
    *piVar5 = iVar2;
  }
  piVar5 = (int *)(puVar1 + param_3 * 0xc + -0x7f74);
  uVar3 = dupstr(param_1);
  *(undefined4 *)(iVar2 + iVar4 * 8) = uVar3;
  iVar4 = piVar5[1];
  iVar6 = *piVar5;
  uVar3 = dupstr(param_2);
  iVar2 = piVar5[1];
  *(undefined4 *)(iVar6 + iVar4 * 8 + 4) = uVar3;
  piVar5[1] = iVar2 + 1;
  return;
}

