
int register_Btype(work_stuff *work)

{
  int iVar1;
  int iVar2;
  char **ppcVar3;
  
  iVar2 = work->numb;
  iVar1 = work->bsize;
  if (iVar2 < iVar1) {
    ppcVar3 = work->btypevec;
  }
  else if (iVar1 == 0) {
    work->bsize = 5;
    ppcVar3 = (char **)xmalloc(0x28);
    work->btypevec = ppcVar3;
    iVar2 = work->numb;
  }
  else {
    if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
      xmalloc_failed(0x7fffffff);
    }
    work->bsize = iVar1 * 2;
    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);
    work->btypevec = ppcVar3;
    iVar2 = work->numb;
  }
  work->numb = iVar2 + 1;
  ppcVar3[iVar2] = (char *)0x0;
  return iVar2;
}



void FUN_002c2880(long param_1)

{
  int iVar1;
  int iVar2;
  long lVar3;
  
  iVar2 = *(int *)(param_1 + 0x24);
  iVar1 = *(int *)(param_1 + 0x2c);
  if (iVar2 < iVar1) {
    lVar3 = *(long *)(param_1 + 0x18);
  }
  else if (iVar1 == 0) {
    *(undefined4 *)(param_1 + 0x2c) = 5;
    lVar3 = FUN_002d9050(0x28);
    *(long *)(param_1 + 0x18) = lVar3;
    iVar2 = *(int *)(param_1 + 0x24);
  }
  else {
    if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
      FUN_002d8fd0(0x7fffffff);
    }
    *(int *)(param_1 + 0x2c) = iVar1 * 2;
    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);
    *(long *)(param_1 + 0x18) = lVar3;
    iVar2 = *(int *)(param_1 + 0x24);
  }
  *(int *)(param_1 + 0x24) = iVar2 + 1;
  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;
  return;
}


PUSH RBX
MOV EAX,dword ptr [RDI + 0x24]
MOV RBX,RDI
MOV ESI,dword ptr [RDI + 0x2c]
CMP EAX,ESI
JGE 0x002c28a8
MOV RDX,qword ptr [RDI + 0x18]
LEA ECX,[RAX + 0x1]
MOV dword ptr [RBX + 0x24],ECX
MOVSXD RCX,EAX
MOV qword ptr [RDX + RCX*0x8],0x0
POP RBX
RET
TEST ESI,ESI
JZ 0x002c28d8
CMP ESI,0x3fffffff
JG 0x002c28f5
ADD ESI,ESI
MOV dword ptr [RDI + 0x2c],ESI
MOVSXD RSI,ESI
MOV RDI,qword ptr [RDI + 0x18]
SHL RSI,0x3
CALL 0x002d90d0
MOV RDX,RAX
MOV qword ptr [RBX + 0x18],RAX
MOV EAX,dword ptr [RBX + 0x24]
JMP 0x002c2892
MOV dword ptr [RDI + 0x2c],0x5
MOV EDI,0x28
CALL 0x002d9050
MOV RDX,RAX
MOV qword ptr [RBX + 0x18],RAX
MOV EAX,dword ptr [RBX + 0x24]
JMP 0x002c2892
MOV EDI,0x7fffffff
CALL 0x002d8fd0
(translation_unit "void FUN_002c2880(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002c2880(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002c2880(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n    lVar3 = *(long *)(param_1 + 0x18);\n  }" { (expression_statement "lVar3 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" else (if_statement "if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x2c) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x2c) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar3 = FUN_002d9050(0x28);" (assignment_expression "lVar3 = FUN_002d9050(0x28)" identifier = (call_expression "FUN_002d9050(0x28)" identifier (argument_list "(0x28)" ( number_literal )))) ;) (expression_statement "*(long *)(param_1 + 0x18) = lVar3;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar3" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" else (compound_statement "{\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\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 + 0x2c) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);" (assignment_expression "lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" identifier = (call_expression "FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" 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 "*(long *)(param_1 + 0x18) = lVar3;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar3" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) }))))) (expression_statement "*(int *)(param_1 + 0x24) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x24) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0" (pointer_expression "*(undefined8 *)(lVar3 + (long)iVar2 * 8)" * (cast_expression "(undefined8 *)(lVar3 + (long)iVar2 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + (long)iVar2 * 8)" ( (binary_expression "lVar3 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "int register_Btype(work_stuff *work)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  iVar2 = work->numb;\n  iVar1 = work->bsize;\n  if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  work->numb = iVar2 + 1;\n  ppcVar3[iVar2] = (char *)0x0;\n  return iVar2;\n}\n\n" (function_definition "int register_Btype(work_stuff *work)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  iVar2 = work->numb;\n  iVar1 = work->bsize;\n  if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  work->numb = iVar2 + 1;\n  ppcVar3[iVar2] = (char *)0x0;\n  return iVar2;\n}" primitive_type (function_declarator "register_Btype(work_stuff *work)" identifier (parameter_list "(work_stuff *work)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  iVar2 = work->numb;\n  iVar1 = work->bsize;\n  if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  work->numb = iVar2 + 1;\n  ppcVar3[iVar2] = (char *)0x0;\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (expression_statement "iVar2 = work->numb;" (assignment_expression "iVar2 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) (expression_statement "iVar1 = work->bsize;" (assignment_expression "iVar1 = work->bsize" identifier = (field_expression "work->bsize" identifier -> field_identifier)) ;) (if_statement "if (iVar2 < iVar1) {\n    ppcVar3 = work->btypevec;\n  }\n  else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n    ppcVar3 = work->btypevec;\n  }" { (expression_statement "ppcVar3 = work->btypevec;" (assignment_expression "ppcVar3 = work->btypevec" identifier = (field_expression "work->btypevec" identifier -> field_identifier)) ;) }) (else_clause "else if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" else (if_statement "if (iVar1 == 0) {\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    work->bsize = 5;\n    ppcVar3 = (char **)xmalloc(0x28);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" { (expression_statement "work->bsize = 5;" (assignment_expression "work->bsize = 5" (field_expression "work->bsize" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppcVar3 = (char **)xmalloc(0x28);" (assignment_expression "ppcVar3 = (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->btypevec = ppcVar3;" (assignment_expression "work->btypevec = ppcVar3" (field_expression "work->btypevec" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = work->numb;" (assignment_expression "iVar2 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) }) (else_clause "else {\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\n  }" else (compound_statement "{\n    if (0x3fffffff < iVar1) {\n                    /* WARNING: Subroutine does not return */\n      xmalloc_failed(0x7fffffff);\n    }\n    work->bsize = iVar1 * 2;\n    ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);\n    work->btypevec = ppcVar3;\n    iVar2 = work->numb;\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->bsize = iVar1 * 2;" (assignment_expression "work->bsize = iVar1 * 2" (field_expression "work->bsize" identifier -> field_identifier) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3);" (assignment_expression "ppcVar3 = (char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3)" identifier = (cast_expression "(char **)xrealloc(work->btypevec,(long)(iVar1 * 2) << 3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(work->btypevec,(long)(iVar1 * 2) << 3)" identifier (argument_list "(work->btypevec,(long)(iVar1 * 2) << 3)" ( (field_expression "work->btypevec" 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->btypevec = ppcVar3;" (assignment_expression "work->btypevec = ppcVar3" (field_expression "work->btypevec" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = work->numb;" (assignment_expression "iVar2 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) }))))) (expression_statement "work->numb = iVar2 + 1;" (assignment_expression "work->numb = iVar2 + 1" (field_expression "work->numb" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar3[iVar2] = (char *)0x0;" (assignment_expression "ppcVar3[iVar2] = (char *)0x0" (subscript_expression "ppcVar3[iVar2]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void FUN_002c2880(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002c2880(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002c2880(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n    lVar3 = *(long *)(param_1 + 0x18);\n  }" { (expression_statement "lVar3 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" else (if_statement "if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x2c) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x2c) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar3 = FUN_002d9050(0x28);" (assignment_expression "lVar3 = FUN_002d9050(0x28)" identifier = (call_expression "FUN_002d9050(0x28)" identifier (argument_list "(0x28)" ( number_literal )))) ;) (expression_statement "*(long *)(param_1 + 0x18) = lVar3;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar3" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" else (compound_statement "{\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\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 + 0x2c) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = (binary_expression "iVar1 * 2" identifier * number_literal)) ;) (expression_statement "lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);" (assignment_expression "lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" identifier = (call_expression "FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" 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 "*(long *)(param_1 + 0x18) = lVar3;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar3" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) }))))) (expression_statement "*(int *)(param_1 + 0x24) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x24) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0" (pointer_expression "*(undefined8 *)(lVar3 + (long)iVar2 * 8)" * (cast_expression "(undefined8 *)(lVar3 + (long)iVar2 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + (long)iVar2 * 8)" ( (binary_expression "lVar3 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_002c2880(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002c2880(long param_1)" (identifier "FUN_002c2880") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x24);\n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  *(int *)(param_1 + 0x24) = iVar2 + 1;\n  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (if_statement "if (iVar2 < iVar1) {\n    lVar3 = *(long *)(param_1 + 0x18);\n  }\n  else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" (if "if") (parenthesized_expression "(iVar2 < iVar1)" (( "(") (binary_expression "iVar2 < iVar1" (identifier "iVar2") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    lVar3 = *(long *)(param_1 + 0x18);\n  }" ({ "{") (expression_statement "lVar3 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x18)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" (else "else") (if_statement "if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }\n  else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x2c) = 5;\n    lVar3 = FUN_002d9050(0x28);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x2c) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0x2c) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "5")) (; ";")) (expression_statement "lVar3 = FUN_002d9050(0x28);" (assignment_expression "lVar3 = FUN_002d9050(0x28)" (identifier "lVar3") (= "=") (call_expression "FUN_002d9050(0x28)" (identifier "FUN_002d9050") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")")))) (; ";")) (expression_statement "*(long *)(param_1 + 0x18) = lVar3;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar3" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "lVar3")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\n  }" (else "else") (compound_statement "{\n    if (0x3fffffff < iVar1) {\n                    \n      FUN_002d8fd0(0x7fffffff);\n    }\n    *(int *)(param_1 + 0x2c) = iVar1 * 2;\n    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);\n    *(long *)(param_1 + 0x18) = lVar3;\n    iVar2 = *(int *)(param_1 + 0x24);\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 + 0x2c) = iVar1 * 2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar1 * 2" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2"))) (; ";")) (expression_statement "lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);" (assignment_expression "lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" (identifier "lVar3") (= "=") (call_expression "FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" (identifier "FUN_002d90d0") (argument_list "(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (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 "*(long *)(param_1 + 0x18) = lVar3;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar3" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "lVar3")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}")))))) (expression_statement "*(int *)(param_1 + 0x24) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x24) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0" (pointer_expression "*(undefined8 *)(lVar3 + (long)iVar2 * 8)" (* "*") (cast_expression "(undefined8 *)(lVar3 + (long)iVar2 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + (long)iVar2 * 8)" (( "(") (binary_expression "lVar3 + (long)iVar2 * 8" (identifier "lVar3") (+ "+") (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "8"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *work)

{
  int var_2;
  int var_1;
  char **ppcVar3;
  
  var_1 = work->numb;
  var_2 = work->bsize;
  if (var_1 < var_2) {
    ppcVar3 = work->btypevec;
  }
  else if (var_2 == 0) {
    work->bsize = 5;
    ppcVar3 = (char **)var_3(0x28);
    work->btypevec = ppcVar3;
    var_1 = work->numb;
  }
  else {
    if (0x3fffffff < var_2) {
                    /* WARNING: Subroutine does not return */
      var_4(0x7fffffff);
    }
    work->bsize = var_2 * 2;
    ppcVar3 = (char **)var_5(work->btypevec,(long)(var_2 * 2) << 3);
    work->btypevec = ppcVar3;
    var_1 = work->numb;
  }
  work->numb = var_1 + 1;
  ppcVar3[var_1] = (char *)0x0;
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) 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))))))) (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: (identifier))) consequence: (compound_statement (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)))))))) alternative: (else_clause (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: (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: (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)))))))) 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: (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: (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: (type_identifier) 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: (number_literal))) (return_statement))))

void MASKED(long param_1)

{
  int iVar1;
  int iVar2;
  long lVar3;
  
  iVar2 = *(int *)(param_1 + 0x24);
  iVar1 = *(int *)(param_1 + 0x2c);
  if (iVar2 < iVar1) {
    lVar3 = *(long *)(param_1 + 0x18);
  }
  else if (iVar1 == 0) {
    *(undefined4 *)(param_1 + 0x2c) = 5;
    lVar3 = FUN_002d9050(0x28);
    *(long *)(param_1 + 0x18) = lVar3;
    iVar2 = *(int *)(param_1 + 0x24);
  }
  else {
    if (0x3fffffff < iVar1) {
                    /* WARNING: Subroutine does not return */
      FUN_002d8fd0(0x7fffffff);
    }
    *(int *)(param_1 + 0x2c) = iVar1 * 2;
    lVar3 = FUN_002d90d0(*(undefined8 *)(param_1 + 0x18),(long)(iVar1 * 2) << 3);
    *(long *)(param_1 + 0x18) = lVar3;
    iVar2 = *(int *)(param_1 + 0x24);
  }
  *(int *)(param_1 + 0x24) = iVar2 + 1;
  *(undefined8 *)(lVar3 + (long)iVar2 * 8) = 0;
  return;
}

