
bfd_boolean stab_demangle_remember_type(stab_demangle_info *minfo,char *p,int len)

{
  stab_demangle_typestring *psVar1;
  uint uVar2;
  
  uVar2 = minfo->typestring_count;
  psVar1 = minfo->typestrings;
  if (minfo->typestring_alloc <= uVar2) {
    uVar2 = minfo->typestring_alloc + 10;
    minfo->typestring_alloc = uVar2;
    psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);
    uVar2 = minfo->typestring_count;
    minfo->typestrings = psVar1;
  }
  psVar1[uVar2].typestring = p;
  psVar1[uVar2].len = len;
  minfo->typestring_count = uVar2 + 1;
  return 1;
}



undefined8 FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)

{
  undefined8 *puVar1;
  long lVar2;
  uint uVar3;
  
  uVar3 = *(uint *)(param_1 + 0x28);
  lVar2 = *(long *)(param_1 + 0x20);
  if (*(uint *)(param_1 + 0x2c) <= uVar3) {
    uVar3 = *(uint *)(param_1 + 0x2c) + 10;
    *(uint *)(param_1 + 0x2c) = uVar3;
    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);
    uVar3 = *(uint *)(param_1 + 0x28);
    *(long *)(param_1 + 0x20) = lVar2;
  }
  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);
  *puVar1 = param_2;
  *(undefined4 *)(puVar1 + 1) = param_3;
  *(uint *)(param_1 + 0x28) = uVar3 + 1;
  return 1;
}


PUSH R12
MOV R12D,EDX
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV ECX,dword ptr [RDI + 0x28]
MOV RBX,RDI
MOV ESI,dword ptr [RDI + 0x2c]
MOV RDI,qword ptr [RDI + 0x20]
CMP ECX,ESI
JNC 0x0012e5e0
MOV EAX,ECX
ADD ECX,0x1
SHL RAX,0x4
ADD RAX,RDI
MOV qword ptr [RAX],RBP
MOV dword ptr [RAX + 0x8],R12D
MOV EAX,0x1
MOV dword ptr [RBX + 0x28],ECX
POP RBX
POP RBP
POP R12
RET
ADD ESI,0xa
MOV dword ptr [RBX + 0x2c],ESI
SHL RSI,0x4
CALL 0x001072b0
MOV ECX,dword ptr [RBX + 0x28]
MOV RDI,RAX
MOV qword ptr [RBX + 0x20],RAX
JMP 0x0012e5bb
(translation_unit "undefined8 FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined4 param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x28)" identifier = (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x2c) <= uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x2c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0x2c) + 10;" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2c) + 10" identifier = (binary_expression "*(uint *)(param_1 + 0x2c) + 10" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x2c) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2c) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);" (assignment_expression "lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4)" identifier = (call_expression "xrealloc(lVar2,(ulong)uVar3 << 4)" identifier (argument_list "(lVar2,(ulong)uVar3 << 4)" ( identifier , (binary_expression "(ulong)uVar3 << 4" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) << number_literal) )))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x28)" identifier = (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x20) = lVar2;" (assignment_expression "*(long *)(param_1 + 0x20) = lVar2" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);" (assignment_expression "puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2)" identifier = (cast_expression "(undefined8 *)((ulong)uVar3 * 0x10 + lVar2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)uVar3 * 0x10 + lVar2)" ( (binary_expression "(ulong)uVar3 * 0x10 + lVar2" (binary_expression "(ulong)uVar3 * 0x10" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) + identifier) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 1) = param_3;" (assignment_expression "*(undefined4 *)(puVar1 + 1) = param_3" (pointer_expression "*(undefined4 *)(puVar1 + 1)" * (cast_expression "(undefined4 *)(puVar1 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x28) = uVar3 + 1;" (assignment_expression "*(uint *)(param_1 + 0x28) = uVar3 + 1" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bfd_boolean stab_demangle_remember_type(stab_demangle_info *minfo,char *p,int len)\n\n{\n  stab_demangle_typestring *psVar1;\n  uint uVar2;\n  \n  uVar2 = minfo->typestring_count;\n  psVar1 = minfo->typestrings;\n  if (minfo->typestring_alloc <= uVar2) {\n    uVar2 = minfo->typestring_alloc + 10;\n    minfo->typestring_alloc = uVar2;\n    psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);\n    uVar2 = minfo->typestring_count;\n    minfo->typestrings = psVar1;\n  }\n  psVar1[uVar2].typestring = p;\n  psVar1[uVar2].len = len;\n  minfo->typestring_count = uVar2 + 1;\n  return 1;\n}\n\n" (function_definition "bfd_boolean stab_demangle_remember_type(stab_demangle_info *minfo,char *p,int len)\n\n{\n  stab_demangle_typestring *psVar1;\n  uint uVar2;\n  \n  uVar2 = minfo->typestring_count;\n  psVar1 = minfo->typestrings;\n  if (minfo->typestring_alloc <= uVar2) {\n    uVar2 = minfo->typestring_alloc + 10;\n    minfo->typestring_alloc = uVar2;\n    psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);\n    uVar2 = minfo->typestring_count;\n    minfo->typestrings = psVar1;\n  }\n  psVar1[uVar2].typestring = p;\n  psVar1[uVar2].len = len;\n  minfo->typestring_count = uVar2 + 1;\n  return 1;\n}" type_identifier (function_declarator "stab_demangle_remember_type(stab_demangle_info *minfo,char *p,int len)" identifier (parameter_list "(stab_demangle_info *minfo,char *p,int len)" ( (parameter_declaration "stab_demangle_info *minfo" type_identifier (pointer_declarator "*minfo" * identifier)) , (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  stab_demangle_typestring *psVar1;\n  uint uVar2;\n  \n  uVar2 = minfo->typestring_count;\n  psVar1 = minfo->typestrings;\n  if (minfo->typestring_alloc <= uVar2) {\n    uVar2 = minfo->typestring_alloc + 10;\n    minfo->typestring_alloc = uVar2;\n    psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);\n    uVar2 = minfo->typestring_count;\n    minfo->typestrings = psVar1;\n  }\n  psVar1[uVar2].typestring = p;\n  psVar1[uVar2].len = len;\n  minfo->typestring_count = uVar2 + 1;\n  return 1;\n}" { (declaration "stab_demangle_typestring *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = minfo->typestring_count;" (assignment_expression "uVar2 = minfo->typestring_count" identifier = (field_expression "minfo->typestring_count" identifier -> field_identifier)) ;) (expression_statement "psVar1 = minfo->typestrings;" (assignment_expression "psVar1 = minfo->typestrings" identifier = (field_expression "minfo->typestrings" identifier -> field_identifier)) ;) (if_statement "if (minfo->typestring_alloc <= uVar2) {\n    uVar2 = minfo->typestring_alloc + 10;\n    minfo->typestring_alloc = uVar2;\n    psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);\n    uVar2 = minfo->typestring_count;\n    minfo->typestrings = psVar1;\n  }" if (parenthesized_expression "(minfo->typestring_alloc <= uVar2)" ( (binary_expression "minfo->typestring_alloc <= uVar2" (field_expression "minfo->typestring_alloc" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    uVar2 = minfo->typestring_alloc + 10;\n    minfo->typestring_alloc = uVar2;\n    psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);\n    uVar2 = minfo->typestring_count;\n    minfo->typestrings = psVar1;\n  }" { (expression_statement "uVar2 = minfo->typestring_alloc + 10;" (assignment_expression "uVar2 = minfo->typestring_alloc + 10" identifier = (binary_expression "minfo->typestring_alloc + 10" (field_expression "minfo->typestring_alloc" identifier -> field_identifier) + number_literal)) ;) (expression_statement "minfo->typestring_alloc = uVar2;" (assignment_expression "minfo->typestring_alloc = uVar2" (field_expression "minfo->typestring_alloc" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4);" (assignment_expression "psVar1 = (stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4)" identifier = (cast_expression "(stab_demangle_typestring *)xrealloc(psVar1,(ulong)uVar2 << 4)" ( (type_descriptor "stab_demangle_typestring *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(psVar1,(ulong)uVar2 << 4)" identifier (argument_list "(psVar1,(ulong)uVar2 << 4)" ( identifier , (binary_expression "(ulong)uVar2 << 4" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) << number_literal) ))))) ;) (expression_statement "uVar2 = minfo->typestring_count;" (assignment_expression "uVar2 = minfo->typestring_count" identifier = (field_expression "minfo->typestring_count" identifier -> field_identifier)) ;) (expression_statement "minfo->typestrings = psVar1;" (assignment_expression "minfo->typestrings = psVar1" (field_expression "minfo->typestrings" identifier -> field_identifier) = identifier) ;) })) (expression_statement "psVar1[uVar2].typestring = p;" (assignment_expression "psVar1[uVar2].typestring = p" (field_expression "psVar1[uVar2].typestring" (subscript_expression "psVar1[uVar2]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "psVar1[uVar2].len = len;" (assignment_expression "psVar1[uVar2].len = len" (field_expression "psVar1[uVar2].len" (subscript_expression "psVar1[uVar2]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "minfo->typestring_count = uVar2 + 1;" (assignment_expression "minfo->typestring_count = uVar2 + 1" (field_expression "minfo->typestring_count" identifier -> field_identifier) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined4 param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x28)" identifier = (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x2c) <= uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x2c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0x2c) + 10;" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2c) + 10" identifier = (binary_expression "*(uint *)(param_1 + 0x2c) + 10" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x2c) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2c) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);" (assignment_expression "lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4)" identifier = (call_expression "xrealloc(lVar2,(ulong)uVar3 << 4)" identifier (argument_list "(lVar2,(ulong)uVar3 << 4)" ( identifier , (binary_expression "(ulong)uVar3 << 4" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) << number_literal) )))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x28)" identifier = (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x20) = lVar2;" (assignment_expression "*(long *)(param_1 + 0x20) = lVar2" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);" (assignment_expression "puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2)" identifier = (cast_expression "(undefined8 *)((ulong)uVar3 * 0x10 + lVar2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)uVar3 * 0x10 + lVar2)" ( (binary_expression "(ulong)uVar3 * 0x10 + lVar2" (binary_expression "(ulong)uVar3 * 0x10" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) + identifier) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 1) = param_3;" (assignment_expression "*(undefined4 *)(puVar1 + 1) = param_3" (pointer_expression "*(undefined4 *)(puVar1 + 1)" * (cast_expression "(undefined4 *)(puVar1 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x28) = uVar3 + 1;" (assignment_expression "*(uint *)(param_1 + 0x28) = uVar3 + 1" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_0012e5a0(long param_1,undefined8 param_2,undefined4 param_3)" (identifier "FUN_0012e5a0") (parameter_list "(long param_1,undefined8 param_2,undefined4 param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x28);\n  lVar2 = *(long *)(param_1 + 0x20);\n  if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }\n  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);\n  *puVar1 = param_2;\n  *(undefined4 *)(puVar1 + 1) = param_3;\n  *(uint *)(param_1 + 0x28) = uVar3 + 1;\n  return 1;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x28)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "lVar2 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x20)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x2c) <= uVar3) {\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x2c) <= uVar3)" (( "(") (binary_expression "*(uint *)(param_1 + 0x2c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x2c)" (* "*") (cast_expression "(uint *)(param_1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x2c) + 10;\n    *(uint *)(param_1 + 0x2c) = uVar3;\n    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);\n    uVar3 = *(uint *)(param_1 + 0x28);\n    *(long *)(param_1 + 0x20) = lVar2;\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_1 + 0x2c) + 10;" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2c) + 10" (identifier "uVar3") (= "=") (binary_expression "*(uint *)(param_1 + 0x2c) + 10" (pointer_expression "*(uint *)(param_1 + 0x2c)" (* "*") (cast_expression "(uint *)(param_1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "10"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x2c) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2c) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2c)" (* "*") (cast_expression "(uint *)(param_1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);" (assignment_expression "lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4)" (identifier "lVar2") (= "=") (call_expression "xrealloc(lVar2,(ulong)uVar3 << 4)" (identifier "xrealloc") (argument_list "(lVar2,(ulong)uVar3 << 4)" (( "(") (identifier "lVar2") (, ",") (binary_expression "(ulong)uVar3 << 4" (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3")) (<< "<<") (number_literal "4")) () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x28)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "*(long *)(param_1 + 0x20) = lVar2;" (assignment_expression "*(long *)(param_1 + 0x20) = lVar2" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "lVar2")) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);" (assignment_expression "puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)((ulong)uVar3 * 0x10 + lVar2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)uVar3 * 0x10 + lVar2)" (( "(") (binary_expression "(ulong)uVar3 * 0x10 + lVar2" (binary_expression "(ulong)uVar3 * 0x10" (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3")) (* "*") (number_literal "0x10")) (+ "+") (identifier "lVar2")) () ")")))) (; ";")) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 1) = param_3;" (assignment_expression "*(undefined4 *)(puVar1 + 1) = param_3" (pointer_expression "*(undefined4 *)(puVar1 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x28) = uVar3 + 1;" (assignment_expression "*(uint *)(param_1 + 0x28) = uVar3 + 1" (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(type_2 *minfo,char *p,int len)

{
  type_3 *psVar1;
  type_4 var_1;
  
  var_1 = minfo->typestring_count;
  psVar1 = minfo->typestrings;
  if (minfo->typestring_alloc <= var_1) {
    var_1 = minfo->typestring_alloc + 10;
    minfo->typestring_alloc = var_1;
    psVar1 = (type_3 *)var_2(psVar1,(type_5)var_1 << 4);
    var_1 = minfo->typestring_count;
    minfo->typestrings = psVar1;
  }
  psVar1[var_1].typestring = p;
  psVar1[var_1].len = len;
  minfo->typestring_count = var_1 + 1;
  return 1;
}


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

undefined8 MASKED(long param_1,undefined8 param_2,undefined4 param_3)

{
  undefined8 *puVar1;
  long lVar2;
  uint uVar3;
  
  uVar3 = *(uint *)(param_1 + 0x28);
  lVar2 = *(long *)(param_1 + 0x20);
  if (*(uint *)(param_1 + 0x2c) <= uVar3) {
    uVar3 = *(uint *)(param_1 + 0x2c) + 10;
    *(uint *)(param_1 + 0x2c) = uVar3;
    lVar2 = xrealloc(lVar2,(ulong)uVar3 << 4);
    uVar3 = *(uint *)(param_1 + 0x28);
    *(long *)(param_1 + 0x20) = lVar2;
  }
  puVar1 = (undefined8 *)((ulong)uVar3 * 0x10 + lVar2);
  *puVar1 = param_2;
  *(undefined4 *)(puVar1 + 1) = param_3;
  *(uint *)(param_1 + 0x28) = uVar3 + 1;
  return 1;
}

