
void remember_Ktype(work_stuff *work,char *start,int len)

{
  int iVar1;
  char **ppcVar2;
  void *__dest;
  char *pcVar3;
  
  iVar1 = work->ksize;
  if (iVar1 <= work->numk) {
    if (iVar1 == 0) {
      work->ksize = 5;
      ppcVar2 = (char **)xmalloc(0x28);
      work->ktypevec = ppcVar2;
    }
    else {
      if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
        xmalloc_failed(0x7fffffff);
      }
      work->ksize = iVar1 * 2;
      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);
      work->ktypevec = ppcVar2;
    }
  }
  __dest = xmalloc((long)(len + 1));
  pcVar3 = (char *)memcpy(__dest,start,(long)len);
  ppcVar2 = work->ktypevec;
  pcVar3[len] = '\0';
  iVar1 = work->numk;
  work->numk = iVar1 + 1;
  ppcVar2[iVar1] = pcVar3;
  return;
}



void FUN_002c2900(long param_1,void *param_2,int param_3)

{
  int iVar1;
  long lVar2;
  undefined8 uVar3;
  void *pvVar4;
  
  iVar1 = *(int *)(param_1 + 0x28);
  if (iVar1 <= *(int *)(param_1 + 0x20)) {
    if (iVar1 == 0) {
      *(undefined4 *)(param_1 + 0x28) = 5;
      uVar3 = FUN_002d9050(0x28);
      *(undefined8 *)(param_1 + 0x10) = uVar3;
    }
    else {
      if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
        FUN_002d8fd0(0x7fffffff);
      }
      *(int *)(param_1 + 0x28) = iVar1 * 2;
      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);
      *(undefined8 *)(param_1 + 0x10) = uVar3;
    }
  }
  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));
  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);
  lVar2 = *(long *)(param_1 + 0x10);
  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;
  iVar1 = *(int *)(param_1 + 0x20);
  *(int *)(param_1 + 0x20) = iVar1 + 1;
  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;
  return;
}


PUSH R12
MOV R12,RSI
PUSH RBP
MOVSXD RBP,EDX
PUSH RBX
MOV RBX,RDI
MOV ESI,dword ptr [RDI + 0x28]
CMP dword ptr [RDI + 0x20],ESI
JL 0x002c293a
TEST ESI,ESI
JZ 0x002c2978
CMP ESI,0x3fffffff
JG 0x002c298f
ADD ESI,ESI
MOV dword ptr [RDI + 0x28],ESI
MOVSXD RSI,ESI
MOV RDI,qword ptr [RDI + 0x10]
SHL RSI,0x3
CALL 0x002d90d0
MOV qword ptr [RBX + 0x10],RAX
LEA EDI,[RBP + 0x1]
MOVSXD RDI,EDI
CALL 0x002d9050
MOV RDX,RBP
MOV RSI,R12
MOV RDI,RAX
CALL 0x00147aa0
MOV RDX,qword ptr [RBX + 0x10]
MOV byte ptr [RAX + RBP*0x1],0x0
MOV RCX,RAX
MOVSXD RAX,dword ptr [RBX + 0x20]
LEA ESI,[RAX + 0x1]
MOV dword ptr [RBX + 0x20],ESI
MOV qword ptr [RDX + RAX*0x8],RCX
POP RBX
POP RBP
POP R12
RET
MOV dword ptr [RDI + 0x28],0x5
MOV EDI,0x28
CALL 0x002d9050
MOV qword ptr [RBX + 0x10],RAX
JMP 0x002c293a
MOV EDI,0x7fffffff
CALL 0x002d8fd0
(translation_unit "void FUN_002c2900(long param_1,void *param_2,int param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}\n\n" (function_definition "void FUN_002c2900(long param_1,void *param_2,int param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}" primitive_type (function_declarator "FUN_002c2900(long param_1,void *param_2,int param_3)" identifier (parameter_list "(long param_1,void *param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }" if (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x20))" ( (binary_expression "iVar1 <= *(int *)(param_1 + 0x20)" identifier <= (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }" { (if_statement "if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x28) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_002d9050(0x28);" (assignment_expression "uVar3 = FUN_002d9050(0x28)" identifier = (call_expression "FUN_002d9050(0x28)" identifier (argument_list "(0x28)" ( number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" else (compound_statement "{\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" { (if_statement "if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_002d8fd0(0x7fffffff);\n      }" { comment (expression_statement "FUN_002d8fd0(0x7fffffff);" (call_expression "FUN_002d8fd0(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "*(int *)(param_1 + 0x28) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);" (assignment_expression "uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" identifier = (call_expression "FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (binary_expression "(long)(iVar1 * 2) << 3" (cast_expression "(long)(iVar1 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar1 * 2)" ( (binary_expression "iVar1 * 2" identifier * number_literal) ))) << number_literal) )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) })) (expression_statement "pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));" (assignment_expression "pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1))" identifier = (cast_expression "(void *)FUN_002d9050((long)(param_3 + 1))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d9050((long)(param_3 + 1))" identifier (argument_list "((long)(param_3 + 1))" ( (cast_expression "(long)(param_3 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) ))))) ;) (expression_statement "pvVar4 = memcpy(pvVar4,param_2,(long)param_3);" (assignment_expression "pvVar4 = memcpy(pvVar4,param_2,(long)param_3)" identifier = (call_expression "memcpy(pvVar4,param_2,(long)param_3)" identifier (argument_list "(pvVar4,param_2,(long)param_3)" ( identifier , identifier , (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) ;) (expression_statement "lVar2 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)((long)pvVar4 + (long)param_3) = 0;" (assignment_expression "*(undefined1 *)((long)pvVar4 + (long)param_3) = 0" (pointer_expression "*(undefined1 *)((long)pvVar4 + (long)param_3)" * (cast_expression "(undefined1 *)((long)pvVar4 + (long)param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar4 + (long)param_3)" ( (binary_expression "(long)pvVar4 + (long)param_3" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x20) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;" (assignment_expression "*(void **)(lVar2 + (long)iVar1 * 8) = pvVar4" (pointer_expression "*(void **)(lVar2 + (long)iVar1 * 8)" * (cast_expression "(void **)(lVar2 + (long)iVar1 * 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + (long)iVar1 * 8)" ( (binary_expression "lVar2 + (long)iVar1 * 8" identifier + (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void remember_Ktype(work_stuff *work,char *start,int len)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  void *__dest;\n  char *pcVar3;\n  \n  iVar1 = work->ksize;\n  if (iVar1 <= work->numk) {\n    if (iVar1 == 0) {\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }\n  }\n  __dest = xmalloc((long)(len + 1));\n  pcVar3 = (char *)memcpy(__dest,start,(long)len);\n  ppcVar2 = work->ktypevec;\n  pcVar3[len] = '\0';\n  iVar1 = work->numk;\n  work->numk = iVar1 + 1;\n  ppcVar2[iVar1] = pcVar3;\n  return;\n}\n\n" (function_definition "void remember_Ktype(work_stuff *work,char *start,int len)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  void *__dest;\n  char *pcVar3;\n  \n  iVar1 = work->ksize;\n  if (iVar1 <= work->numk) {\n    if (iVar1 == 0) {\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }\n  }\n  __dest = xmalloc((long)(len + 1));\n  pcVar3 = (char *)memcpy(__dest,start,(long)len);\n  ppcVar2 = work->ktypevec;\n  pcVar3[len] = '\0';\n  iVar1 = work->numk;\n  work->numk = iVar1 + 1;\n  ppcVar2[iVar1] = pcVar3;\n  return;\n}" primitive_type (function_declarator "remember_Ktype(work_stuff *work,char *start,int len)" identifier (parameter_list "(work_stuff *work,char *start,int len)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "char *start" primitive_type (pointer_declarator "*start" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char **ppcVar2;\n  void *__dest;\n  char *pcVar3;\n  \n  iVar1 = work->ksize;\n  if (iVar1 <= work->numk) {\n    if (iVar1 == 0) {\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }\n  }\n  __dest = xmalloc((long)(len + 1));\n  pcVar3 = (char *)memcpy(__dest,start,(long)len);\n  ppcVar2 = work->ktypevec;\n  pcVar3[len] = '\0';\n  iVar1 = work->numk;\n  work->numk = iVar1 + 1;\n  ppcVar2[iVar1] = pcVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "iVar1 = work->ksize;" (assignment_expression "iVar1 = work->ksize" identifier = (field_expression "work->ksize" identifier -> field_identifier)) ;) (if_statement "if (iVar1 <= work->numk) {\n    if (iVar1 == 0) {\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }\n  }" if (parenthesized_expression "(iVar1 <= work->numk)" ( (binary_expression "iVar1 <= work->numk" identifier <= (field_expression "work->numk" identifier -> field_identifier)) )) (compound_statement "{\n    if (iVar1 == 0) {\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }\n  }" { (if_statement "if (iVar1 == 0) {\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      work->ksize = 5;\n      ppcVar2 = (char **)xmalloc(0x28);\n      work->ktypevec = ppcVar2;\n    }" { (expression_statement "work->ksize = 5;" (assignment_expression "work->ksize = 5" (field_expression "work->ksize" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppcVar2 = (char **)xmalloc(0x28);" (assignment_expression "ppcVar2 = (char **)xmalloc(0x28)" identifier = (cast_expression "(char **)xmalloc(0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "work->ktypevec = ppcVar2;" (assignment_expression "work->ktypevec = ppcVar2" (field_expression "work->ktypevec" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }" else (compound_statement "{\n      if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }\n      work->ksize = iVar1 * 2;\n      ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);\n      work->ktypevec = ppcVar2;\n    }" { (if_statement "if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        xmalloc_failed(0x7fffffff);\n      }" { comment (expression_statement "xmalloc_failed(0x7fffffff);" (call_expression "xmalloc_failed(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "work->ksize = iVar1 * 2;" (assignment_expression "work->ksize = iVar1 * 2" (field_expression "work->ksize" identifier -> field_identifier) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3);" (assignment_expression "ppcVar2 = (char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3)" identifier = (cast_expression "(char **)xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(work->ktypevec,(long)(iVar1 * 2) << 3)" identifier (argument_list "(work->ktypevec,(long)(iVar1 * 2) << 3)" ( (field_expression "work->ktypevec" identifier -> field_identifier) , (binary_expression "(long)(iVar1 * 2) << 3" (cast_expression "(long)(iVar1 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar1 * 2)" ( (binary_expression "iVar1 * 2" identifier * number_literal) ))) << number_literal) ))))) ;) (expression_statement "work->ktypevec = ppcVar2;" (assignment_expression "work->ktypevec = ppcVar2" (field_expression "work->ktypevec" identifier -> field_identifier) = identifier) ;) }))) })) (expression_statement "__dest = xmalloc((long)(len + 1));" (assignment_expression "__dest = xmalloc((long)(len + 1))" identifier = (call_expression "xmalloc((long)(len + 1))" identifier (argument_list "((long)(len + 1))" ( (cast_expression "(long)(len + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(len + 1)" ( (binary_expression "len + 1" identifier + number_literal) ))) )))) ;) (expression_statement "pcVar3 = (char *)memcpy(__dest,start,(long)len);" (assignment_expression "pcVar3 = (char *)memcpy(__dest,start,(long)len)" identifier = (cast_expression "(char *)memcpy(__dest,start,(long)len)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "memcpy(__dest,start,(long)len)" identifier (argument_list "(__dest,start,(long)len)" ( identifier , identifier , (cast_expression "(long)len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))))) ;) (expression_statement "ppcVar2 = work->ktypevec;" (assignment_expression "ppcVar2 = work->ktypevec" identifier = (field_expression "work->ktypevec" identifier -> field_identifier)) ;) (expression_statement "pcVar3[len] = '\0';" (assignment_expression "pcVar3[len] = '\0'" (subscript_expression "pcVar3[len]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar1 = work->numk;" (assignment_expression "iVar1 = work->numk" identifier = (field_expression "work->numk" identifier -> field_identifier)) ;) (expression_statement "work->numk = iVar1 + 1;" (assignment_expression "work->numk = iVar1 + 1" (field_expression "work->numk" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar2[iVar1] = pcVar3;" (assignment_expression "ppcVar2[iVar1] = pcVar3" (subscript_expression "ppcVar2[iVar1]" identifier [ identifier ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002c2900(long param_1,void *param_2,int param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}\n\n" (function_definition "void FUN_002c2900(long param_1,void *param_2,int param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}" primitive_type (function_declarator "FUN_002c2900(long param_1,void *param_2,int param_3)" identifier (parameter_list "(long param_1,void *param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }" if (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x20))" ( (binary_expression "iVar1 <= *(int *)(param_1 + 0x20)" identifier <= (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }" { (if_statement "if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x28) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_002d9050(0x28);" (assignment_expression "uVar3 = FUN_002d9050(0x28)" identifier = (call_expression "FUN_002d9050(0x28)" identifier (argument_list "(0x28)" ( number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" else (compound_statement "{\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" { (if_statement "if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }" if (parenthesized_expression "(0x3fffffff < iVar1)" ( (binary_expression "0x3fffffff < iVar1" number_literal < identifier) )) (compound_statement "{\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }" { (expression_statement "FUN_002d8fd0(0x7fffffff);" (call_expression "FUN_002d8fd0(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "*(int *)(param_1 + 0x28) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);" (assignment_expression "uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" identifier = (call_expression "FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (binary_expression "(long)(iVar1 * 2) << 3" (cast_expression "(long)(iVar1 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar1 * 2)" ( (binary_expression "iVar1 * 2" identifier * number_literal) ))) << number_literal) )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) })) (expression_statement "pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));" (assignment_expression "pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1))" identifier = (cast_expression "(void *)FUN_002d9050((long)(param_3 + 1))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d9050((long)(param_3 + 1))" identifier (argument_list "((long)(param_3 + 1))" ( (cast_expression "(long)(param_3 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) ))))) ;) (expression_statement "pvVar4 = memcpy(pvVar4,param_2,(long)param_3);" (assignment_expression "pvVar4 = memcpy(pvVar4,param_2,(long)param_3)" identifier = (call_expression "memcpy(pvVar4,param_2,(long)param_3)" identifier (argument_list "(pvVar4,param_2,(long)param_3)" ( identifier , identifier , (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) ;) (expression_statement "lVar2 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)((long)pvVar4 + (long)param_3) = 0;" (assignment_expression "*(undefined1 *)((long)pvVar4 + (long)param_3) = 0" (pointer_expression "*(undefined1 *)((long)pvVar4 + (long)param_3)" * (cast_expression "(undefined1 *)((long)pvVar4 + (long)param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar4 + (long)param_3)" ( (binary_expression "(long)pvVar4 + (long)param_3" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x20) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;" (assignment_expression "*(void **)(lVar2 + (long)iVar1 * 8) = pvVar4" (pointer_expression "*(void **)(lVar2 + (long)iVar1 * 8)" * (cast_expression "(void **)(lVar2 + (long)iVar1 * 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + (long)iVar1 * 8)" ( (binary_expression "lVar2 + (long)iVar1 * 8" identifier + (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_002c2900(long param_1,void *param_2,int param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002c2900(long param_1,void *param_2,int param_3)" (identifier "FUN_002c2900") (parameter_list "(long param_1,void *param_2,int param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  undefined8 uVar3;\n  void *pvVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x28);\n  if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));\n  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);\n  lVar2 = *(long *)(param_1 + 0x10);\n  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;\n  iVar1 = *(int *)(param_1 + 0x20);\n  *(int *)(param_1 + 0x20) = iVar1 + 1;\n  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x20)) {\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x20))" (( "(") (binary_expression "iVar1 <= *(int *)(param_1 + 0x20)" (identifier "iVar1") (<= "<=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n    if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n  }" ({ "{") (if_statement "if (iVar1 == 0) {\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }\n    else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x28) = 5;\n      uVar3 = FUN_002d9050(0x28);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x28) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "5")) (; ";")) (expression_statement "uVar3 = FUN_002d9050(0x28);" (assignment_expression "uVar3 = FUN_002d9050(0x28)" (identifier "uVar3") (= "=") (call_expression "FUN_002d9050(0x28)" (identifier "FUN_002d9050") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" (else "else") (compound_statement "{\n      if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }\n      *(int *)(param_1 + 0x28) = iVar1 * 2;\n      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);\n      *(undefined8 *)(param_1 + 0x10) = uVar3;\n    }" ({ "{") (if_statement "if (0x3fffffff < iVar1) {\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }" (if "if") (parenthesized_expression "(0x3fffffff < iVar1)" (( "(") (binary_expression "0x3fffffff < iVar1" (number_literal "0x3fffffff") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n                    \n        FUN_002d8fd0(0x7fffffff);\n      }" ({ "{") (expression_statement "FUN_002d8fd0(0x7fffffff);" (call_expression "FUN_002d8fd0(0x7fffffff)" (identifier "FUN_002d8fd0") (argument_list "(0x7fffffff)" (( "(") (number_literal "0x7fffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x28) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2"))) (; ";")) (expression_statement "uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);" (assignment_expression "uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" (identifier "uVar3") (= "=") (call_expression "FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" (identifier "FUN_002d90d0") (argument_list "(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (binary_expression "(long)(iVar1 * 2) << 3" (cast_expression "(long)(iVar1 * 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar1 * 2)" (( "(") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2")) () ")"))) (<< "<<") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (} "}"))) (expression_statement "pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));" (assignment_expression "pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1))" (identifier "pvVar4") (= "=") (cast_expression "(void *)FUN_002d9050((long)(param_3 + 1))" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002d9050((long)(param_3 + 1))" (identifier "FUN_002d9050") (argument_list "((long)(param_3 + 1))" (( "(") (cast_expression "(long)(param_3 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))) () ")"))))) (; ";")) (expression_statement "pvVar4 = memcpy(pvVar4,param_2,(long)param_3);" (assignment_expression "pvVar4 = memcpy(pvVar4,param_2,(long)param_3)" (identifier "pvVar4") (= "=") (call_expression "memcpy(pvVar4,param_2,(long)param_3)" (identifier "memcpy") (argument_list "(pvVar4,param_2,(long)param_3)" (( "(") (identifier "pvVar4") (, ",") (identifier "param_2") (, ",") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "lVar2 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x10)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)((long)pvVar4 + (long)param_3) = 0;" (assignment_expression "*(undefined1 *)((long)pvVar4 + (long)param_3) = 0" (pointer_expression "*(undefined1 *)((long)pvVar4 + (long)param_3)" (* "*") (cast_expression "(undefined1 *)((long)pvVar4 + (long)param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar4 + (long)param_3)" (( "(") (binary_expression "(long)pvVar4 + (long)param_3" (cast_expression "(long)pvVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar4")) (+ "+") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x20)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x20) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;" (assignment_expression "*(void **)(lVar2 + (long)iVar1 * 8) = pvVar4" (pointer_expression "*(void **)(lVar2 + (long)iVar1 * 8)" (* "*") (cast_expression "(void **)(lVar2 + (long)iVar1 * 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + (long)iVar1 * 8)" (( "(") (binary_expression "lVar2 + (long)iVar1 * 8" (identifier "lVar2") (+ "+") (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "pvVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *work,char *start,int var_5)

{
  int var_1;
  char **ppcVar2;
  void *__dest;
  char *pcVar3;
  
  var_1 = work->ksize;
  if (var_1 <= work->numk) {
    if (var_1 == 0) {
      work->ksize = 5;
      ppcVar2 = (char **)var_2(0x28);
      work->ktypevec = ppcVar2;
    }
    else {
      if (0x3fffffff < var_1) {
                    /* WARNING: Subroutine does not return */
        var_3(0x7fffffff);
      }
      work->ksize = var_1 * 2;
      ppcVar2 = (char **)var_4(work->ktypevec,(long)(var_1 * 2) << 3);
      work->ktypevec = ppcVar2;
    }
  }
  __dest = var_2((long)(var_5 + 1));
  pcVar3 = (char *)var_6(__dest,start,(long)var_5);
  ppcVar2 = work->ktypevec;
  pcVar3[var_5] = '\0';
  var_1 = work->numk;
  work->numk = var_1 + 1;
  ppcVar2[var_1] = pcVar3;
  return;
}


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

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

{
  int iVar1;
  long lVar2;
  undefined8 uVar3;
  void *pvVar4;
  
  iVar1 = *(int *)(param_1 + 0x28);
  if (iVar1 <= *(int *)(param_1 + 0x20)) {
    if (iVar1 == 0) {
      *(undefined4 *)(param_1 + 0x28) = 5;
      uVar3 = FUN_002d9050(0x28);
      *(undefined8 *)(param_1 + 0x10) = uVar3;
    }
    else {
      if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
        FUN_002d8fd0(0x7fffffff);
      }
      *(int *)(param_1 + 0x28) = iVar1 * 2;
      uVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x10),(long)(iVar1 * 2) << 3);
      *(undefined8 *)(param_1 + 0x10) = uVar3;
    }
  }
  pvVar4 = (void *)FUN_002d9050((long)(param_3 + 1));
  pvVar4 = memcpy(pvVar4,param_2,(long)param_3);
  lVar2 = *(long *)(param_1 + 0x10);
  *(undefined1 *)((long)pvVar4 + (long)param_3) = 0;
  iVar1 = *(int *)(param_1 + 0x20);
  *(int *)(param_1 + 0x20) = iVar1 + 1;
  *(void **)(lVar2 + (long)iVar1 * 8) = pvVar4;
  return;
}

