
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* long std::__copy_streambufs_eof<wchar_t, std::char_traits<wchar_t> >(std::wstreambuf*,
   std::wstreambuf*, bool&) */

long std::__copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>
               (wstreambuf *param_1,wstreambuf *param_2,bool *param_3)

{
  int *piVar1;
  long lVar2;
  long lVar3;
  int iVar4;
  long lVar5;
  long lVar6;
  
  piVar1 = *(int **)(param_1 + 0x10);
  *param_3 = true;
  if (piVar1 < *(int **)(param_1 + 0x18)) {
    iVar4 = *piVar1;
  }
  else {
    iVar4 = (**(code **)(*(long *)param_1 + 0x48))();
  }
  lVar6 = 0;
joined_r0x00321bba:
  do {
    if (iVar4 == -1) {
      return lVar6;
    }
    lVar2 = *(long *)(param_1 + 0x10);
    lVar3 = *(long *)(param_1 + 0x18);
    if (lVar3 - lVar2 < 5) {
      piVar1 = *(int **)(param_2 + 0x28);
      if (piVar1 < *(int **)(param_2 + 0x30)) {
        *piVar1 = iVar4;
        *(int **)(param_2 + 0x28) = piVar1 + 1;
      }
      else {
        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);
        if (iVar4 == -1) goto LAB_00321c70;
      }
      lVar6 = lVar6 + 1;
      piVar1 = *(int **)(param_1 + 0x10);
      if (piVar1 < *(int **)(param_1 + 0x18)) {
        iVar4 = *piVar1;
        *(int **)(param_1 + 0x10) = piVar1 + 1;
      }
      else {
        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);
      }
      if (iVar4 == -1) {
        return lVar6;
      }
      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {
        iVar4 = **(int **)(param_1 + 0x10);
        goto joined_r0x00321bba;
      }
    }
    else {
      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);
      lVar6 = lVar6 + lVar5;
      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;
      if (lVar5 < lVar3 - lVar2 >> 2) {
LAB_00321c70:
        *param_3 = false;
        return lVar6;
      }
    }
    iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1);
  } while( true );
}



long FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)

{
  int *piVar1;
  long lVar2;
  long lVar3;
  int iVar4;
  long lVar5;
  long lVar6;
  
  piVar1 = (int *)param_1[2];
  *param_3 = 1;
  if (piVar1 < (int *)param_1[3]) {
    iVar4 = *piVar1;
  }
  else {
    iVar4 = (**(code **)(*param_1 + 0x48))();
  }
  lVar6 = 0;
joined_r0x00321bba:
  do {
    if (iVar4 == -1) {
      return lVar6;
    }
    lVar2 = param_1[2];
    lVar3 = param_1[3];
    if (lVar3 - lVar2 < 5) {
      piVar1 = (int *)param_2[5];
      if (piVar1 < (int *)param_2[6]) {
        *piVar1 = iVar4;
        param_2[5] = (long)(piVar1 + 1);
      }
      else {
        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);
        if (iVar4 == -1) goto LAB_00321c70;
      }
      lVar6 = lVar6 + 1;
      piVar1 = (int *)param_1[2];
      if (piVar1 < (int *)param_1[3]) {
        iVar4 = *piVar1;
        param_1[2] = (long)(piVar1 + 1);
      }
      else {
        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);
      }
      if (iVar4 == -1) {
        return lVar6;
      }
      if ((int *)param_1[2] < (int *)param_1[3]) {
        iVar4 = *(int *)param_1[2];
        goto joined_r0x00321bba;
      }
    }
    else {
      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);
      lVar6 = lVar6 + lVar5;
      param_1[2] = param_1[2] + lVar5 * 4;
      if (lVar5 < lVar3 - lVar2 >> 2) {
LAB_00321c70:
        *param_3 = 0;
        return lVar6;
      }
    }
    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);
  } while( true );
}


PUSH R14
MOV R14,RSI
PUSH R13
MOV R13,RDX
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
MOV byte ptr [RDX],0x1
CMP qword ptr [RDI + 0x18],RAX
JBE 0x00321c93
MOV EAX,dword ptr [RAX]
XOR R12D,R12D
CMP EAX,-0x1
JNZ 0x00321bfe
JMP 0x00321c51
MOV RAX,qword ptr [R14]
SAR RDX,0x2
MOV RDI,R14
MOV RBP,RDX
CALL qword ptr [RAX + 0x60]
LEA RDX,[RAX*0x4]
ADD R12,RAX
ADD qword ptr [RBX + 0x10],RDX
CMP RBP,RAX
JG 0x00321c70
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x48]
CMP EAX,-0x1
JZ 0x00321c51
MOV RSI,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RBX + 0x18]
SUB RDX,RSI
CMP RDX,0x4
JG 0x00321bc8
MOV RDX,qword ptr [R14 + 0x28]
CMP RDX,qword ptr [R14 + 0x30]
JNC 0x00321c60
MOV dword ptr [RDX],EAX
ADD RDX,0x4
MOV qword ptr [R14 + 0x28],RDX
ADD R12,0x1
MOV RDX,qword ptr [RBX + 0x10]
CMP RDX,qword ptr [RBX + 0x18]
JNC 0x00321c88
MOV EAX,dword ptr [RDX]
ADD RDX,0x4
MOV qword ptr [RBX + 0x10],RDX
CMP EAX,-0x1
JZ 0x00321c51
MOV RAX,qword ptr [RBX + 0x10]
CMP RAX,qword ptr [RBX + 0x18]
JNC 0x00321bf0
MOV EAX,dword ptr [RAX]
CMP EAX,-0x1
JNZ 0x00321bfe
POP RBX
MOV RAX,R12
POP RBP
POP R12
POP R13
POP R14
RET
MOV RDX,qword ptr [R14]
MOV ESI,EAX
MOV RDI,R14
CALL qword ptr [RDX + 0x68]
CMP EAX,-0x1
JNZ 0x00321c23
POP RBX
MOV RAX,R12
POP RBP
MOV byte ptr [R13],0x0
POP R12
POP R13
POP R14
RET
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x50]
JMP 0x00321c3b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x48]
JMP 0x00321bb4
(translation_unit "long FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}\n\n" (function_definition "long FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)" identifier (parameter_list "(long *param_1,long *param_2,undefined1 *param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "piVar1 = (int *)param_1[2];" (assignment_expression "piVar1 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" if (parenthesized_expression "(piVar1 < (int *)param_1[3])" ( (binary_expression "piVar1 < (int *)param_1[3]" identifier < (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar4 = *piVar1;\n  }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) (else_clause "else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" else (compound_statement "{\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" { (expression_statement "iVar4 = (**(code **)(*param_1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x48))()" identifier = (call_expression "(**(code **)(*param_1 + 0x48))()" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (labeled_statement "joined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );" do (compound_statement "{\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  }" { (if_statement "if (iVar4 == -1) {\n      return lVar6;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      return lVar6;\n    }" { (return_statement "return lVar6;" return identifier ;) })) (expression_statement "lVar2 = param_1[2];" (assignment_expression "lVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = param_1[3];" (assignment_expression "lVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" if (parenthesized_expression "(lVar3 - lVar2 < 5)" ( (binary_expression "lVar3 - lVar2 < 5" (binary_expression "lVar3 - lVar2" identifier - identifier) < number_literal) )) (compound_statement "{\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }" { (expression_statement "piVar1 = (int *)param_2[5];" (assignment_expression "piVar1 = (int *)param_2[5]" identifier = (cast_expression "(int *)param_2[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" if (parenthesized_expression "(piVar1 < (int *)param_2[6])" ( (binary_expression "piVar1 < (int *)param_2[6]" identifier < (cast_expression "(int *)param_2[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[6]" identifier [ number_literal ]))) )) (compound_statement "{\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }" { (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "param_2[5] = (long)(piVar1 + 1);" (assignment_expression "param_2[5] = (long)(piVar1 + 1)" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (cast_expression "(long)(piVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" { (expression_statement "iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4)" identifier = (call_expression "(**(code **)(*param_2 + 0x68))(param_2,iVar4)" (parenthesized_expression "(**(code **)(*param_2 + 0x68))" ( (pointer_expression "**(code **)(*param_2 + 0x68)" * (pointer_expression "*(code **)(*param_2 + 0x68)" * (cast_expression "(code **)(*param_2 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x68)" ( (binary_expression "*param_2 + 0x68" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00321c70;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00321c70;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = (int *)param_1[2];" (assignment_expression "piVar1 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" if (parenthesized_expression "(piVar1 < (int *)param_1[3])" ( (binary_expression "piVar1 < (int *)param_1[3]" identifier < (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "param_1[2] = (long)(piVar1 + 1);" (assignment_expression "param_1[2] = (long)(piVar1 + 1)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(long)(piVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" { (expression_statement "iVar4 = (**(code **)(*param_1 + 0x50))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x50))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x50))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x50))" ( (pointer_expression "**(code **)(*param_1 + 0x50)" * (pointer_expression "*(code **)(*param_1 + 0x50)" * (cast_expression "(code **)(*param_1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x50)" ( (binary_expression "*param_1 + 0x50" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if (iVar4 == -1) {\n        return lVar6;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return lVar6;\n      }" { (return_statement "return lVar6;" return identifier ;) })) (if_statement "if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }" if (parenthesized_expression "((int *)param_1[2] < (int *)param_1[3])" ( (binary_expression "(int *)param_1[2] < (int *)param_1[3]" (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }" { (expression_statement "iVar4 = *(int *)param_1[2];" (assignment_expression "iVar4 = *(int *)param_1[2]" identifier = (pointer_expression "*(int *)param_1[2]" * (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])))) ;) (goto_statement "goto joined_r0x00321bba;" goto statement_identifier ;) })) }) (else_clause "else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" else (compound_statement "{\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" { (expression_statement "lVar5 = (**(code **)(*param_2 + 0x60))(param_2);" (assignment_expression "lVar5 = (**(code **)(*param_2 + 0x60))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0x60))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x60))" ( (pointer_expression "**(code **)(*param_2 + 0x60)" * (pointer_expression "*(code **)(*param_2 + 0x60)" * (cast_expression "(code **)(*param_2 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x60)" ( (binary_expression "*param_2 + 0x60" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar6 = lVar6 + lVar5;" (assignment_expression "lVar6 = lVar6 + lVar5" identifier = (binary_expression "lVar6 + lVar5" identifier + identifier)) ;) (expression_statement "param_1[2] = param_1[2] + lVar5 * 4;" (assignment_expression "param_1[2] = param_1[2] + lVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + lVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "lVar5 * 4" identifier * number_literal))) ;) (if_statement "if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }" if (parenthesized_expression "(lVar5 < lVar3 - lVar2 >> 2)" ( (binary_expression "lVar5 < lVar3 - lVar2 >> 2" identifier < (binary_expression "lVar3 - lVar2 >> 2" (binary_expression "lVar3 - lVar2" identifier - identifier) >> number_literal)) )) (compound_statement "{\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }" { (labeled_statement "LAB_00321c70:\n        *param_3 = 0;" statement_identifier : (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;)) (return_statement "return lVar6;" return identifier ;) })) }))) (expression_statement "iVar4 = (**(code **)(*param_1 + 0x48))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x48))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* long std::__copy_streambufs_eof<wchar_t, std::char_traits<wchar_t> >(std::wstreambuf*,\n   std::wstreambuf*, bool&) */\n\nlong std::__copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n               (wstreambuf *param_1,wstreambuf *param_2,bool *param_3)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  *param_3 = true;\n  if (piVar1 < *(int **)(param_1 + 0x18)) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = *(long *)(param_1 + 0x10);\n    lVar3 = *(long *)(param_1 + 0x18);\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = *(int **)(param_2 + 0x28);\n      if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = *(int **)(param_1 + 0x10);\n      if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1);\n  } while( true );\n}\n\n" comment comment (declaration "long std::__copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n               (wstreambuf *param_1,wstreambuf *param_2,bool *param_3)\n\n{\n  int *piVar1;" (sized_type_specifier "long" long) (ERROR "std::__copy_streambufs_eof<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>\n               (wstreambuf *param_1,wstreambuf *param_2,bool *param_3)\n\n{\n  int" identifier : : identifier < (function_declarator "wchar_t>>\n               (wstreambuf *param_1,wstreambuf *param_2,bool *param_3)" identifier (ERROR ">>" >>) (parameter_list "(wstreambuf *param_1,wstreambuf *param_2,bool *param_3)" ( (parameter_declaration "wstreambuf *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wstreambuf *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "bool *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) { primitive_type) (pointer_declarator "*piVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x10)" identifier = (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = true;" (assignment_expression "*param_3 = true" (pointer_expression "*param_3" * identifier) = true) ;) (if_statement "if (piVar1 < *(int **)(param_1 + 0x18)) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))();\n  }" if (parenthesized_expression "(piVar1 < *(int **)(param_1 + 0x18))" ( (binary_expression "piVar1 < *(int **)(param_1 + 0x18)" identifier < (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar4 = *piVar1;\n  }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) (else_clause "else {\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))();\n  }" else (compound_statement "{\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))();\n  }" { (expression_statement "iVar4 = (**(code **)(*(long *)param_1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*(long *)param_1 + 0x48))()" identifier = (call_expression "(**(code **)(*(long *)param_1 + 0x48))()" (parenthesized_expression "(**(code **)(*(long *)param_1 + 0x48))" ( (pointer_expression "**(code **)(*(long *)param_1 + 0x48)" * (pointer_expression "*(code **)(*(long *)param_1 + 0x48)" * (cast_expression "(code **)(*(long *)param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1 + 0x48)" ( (binary_expression "*(long *)param_1 + 0x48" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (labeled_statement "joined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = *(long *)(param_1 + 0x10);\n    lVar3 = *(long *)(param_1 + 0x18);\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = *(int **)(param_2 + 0x28);\n      if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = *(int **)(param_1 + 0x10);\n      if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = *(long *)(param_1 + 0x10);\n    lVar3 = *(long *)(param_1 + 0x18);\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = *(int **)(param_2 + 0x28);\n      if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = *(int **)(param_1 + 0x10);\n      if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1);\n  } while( true );" do (compound_statement "{\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = *(long *)(param_1 + 0x10);\n    lVar3 = *(long *)(param_1 + 0x18);\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = *(int **)(param_2 + 0x28);\n      if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = *(int **)(param_1 + 0x10);\n      if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1);\n  }" { (if_statement "if (iVar4 == -1) {\n      return lVar6;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      return lVar6;\n    }" { (return_statement "return lVar6;" return 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 "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) ))))) ;) (if_statement "if (lVar3 - lVar2 < 5) {\n      piVar1 = *(int **)(param_2 + 0x28);\n      if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = *(int **)(param_1 + 0x10);\n      if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }" if (parenthesized_expression "(lVar3 - lVar2 < 5)" ( (binary_expression "lVar3 - lVar2 < 5" (binary_expression "lVar3 - lVar2" identifier - identifier) < number_literal) )) (compound_statement "{\n      piVar1 = *(int **)(param_2 + 0x28);\n      if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = *(int **)(param_1 + 0x10);\n      if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }\n    }" { (expression_statement "piVar1 = *(int **)(param_2 + 0x28);" (assignment_expression "piVar1 = *(int **)(param_2 + 0x28)" identifier = (pointer_expression "*(int **)(param_2 + 0x28)" * (cast_expression "(int **)(param_2 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 < *(int **)(param_2 + 0x30)) {\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" if (parenthesized_expression "(piVar1 < *(int **)(param_2 + 0x30))" ( (binary_expression "piVar1 < *(int **)(param_2 + 0x30)" identifier < (pointer_expression "*(int **)(param_2 + 0x30)" * (cast_expression "(int **)(param_2 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n        *piVar1 = iVar4;\n        *(int **)(param_2 + 0x28) = piVar1 + 1;\n      }" { (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x28) = piVar1 + 1;" (assignment_expression "*(int **)(param_2 + 0x28) = piVar1 + 1" (pointer_expression "*(int **)(param_2 + 0x28)" * (cast_expression "(int **)(param_2 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" { (expression_statement "iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4);" (assignment_expression "iVar4 = (**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4)" identifier = (call_expression "(**(code **)(*(long *)param_2 + 0x68))(param_2,iVar4)" (parenthesized_expression "(**(code **)(*(long *)param_2 + 0x68))" ( (pointer_expression "**(code **)(*(long *)param_2 + 0x68)" * (pointer_expression "*(code **)(*(long *)param_2 + 0x68)" * (cast_expression "(code **)(*(long *)param_2 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_2 + 0x68)" ( (binary_expression "*(long *)param_2 + 0x68" (pointer_expression "*(long *)param_2" * (cast_expression "(long *)param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00321c70;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00321c70;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x10)" identifier = (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 < *(int **)(param_1 + 0x18)) {\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }" if (parenthesized_expression "(piVar1 < *(int **)(param_1 + 0x18))" ( (binary_expression "piVar1 < *(int **)(param_1 + 0x18)" identifier < (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar4 = *piVar1;\n        *(int **)(param_1 + 0x10) = piVar1 + 1;\n      }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*(int **)(param_1 + 0x10) = piVar1 + 1;" (assignment_expression "*(int **)(param_1 + 0x10) = piVar1 + 1" (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);\n      }" { (expression_statement "iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1);" (assignment_expression "iVar4 = (**(code **)(*(long *)param_1 + 0x50))(param_1)" identifier = (call_expression "(**(code **)(*(long *)param_1 + 0x50))(param_1)" (parenthesized_expression "(**(code **)(*(long *)param_1 + 0x50))" ( (pointer_expression "**(code **)(*(long *)param_1 + 0x50)" * (pointer_expression "*(code **)(*(long *)param_1 + 0x50)" * (cast_expression "(code **)(*(long *)param_1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1 + 0x50)" ( (binary_expression "*(long *)param_1 + 0x50" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if (iVar4 == -1) {\n        return lVar6;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return lVar6;\n      }" { (return_statement "return lVar6;" return identifier ;) })) (if_statement "if (*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)) {\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }" if (parenthesized_expression "(*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18))" ( (binary_expression "*(int **)(param_1 + 0x10) < *(int **)(param_1 + 0x18)" (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) < (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar4 = **(int **)(param_1 + 0x10);\n        goto joined_r0x00321bba;\n      }" { (expression_statement "iVar4 = **(int **)(param_1 + 0x10);" (assignment_expression "iVar4 = **(int **)(param_1 + 0x10)" identifier = (pointer_expression "**(int **)(param_1 + 0x10)" * (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))))) ;) (goto_statement "goto joined_r0x00321bba;" goto statement_identifier ;) })) }) (else_clause "else {\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }" else (compound_statement "{\n      lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }\n    }" { (expression_statement "lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2);" (assignment_expression "lVar5 = (**(code **)(*(long *)param_2 + 0x60))(param_2)" identifier = (call_expression "(**(code **)(*(long *)param_2 + 0x60))(param_2)" (parenthesized_expression "(**(code **)(*(long *)param_2 + 0x60))" ( (pointer_expression "**(code **)(*(long *)param_2 + 0x60)" * (pointer_expression "*(code **)(*(long *)param_2 + 0x60)" * (cast_expression "(code **)(*(long *)param_2 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_2 + 0x60)" ( (binary_expression "*(long *)param_2 + 0x60" (pointer_expression "*(long *)param_2" * (cast_expression "(long *)param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar6 = lVar6 + lVar5;" (assignment_expression "lVar6 = lVar6 + lVar5" identifier = (binary_expression "lVar6 + lVar5" identifier + identifier)) ;) (expression_statement "*(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4;" (assignment_expression "*(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar5 * 4" (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) )))) = (binary_expression "*(long *)(param_1 + 0x10) + lVar5 * 4" (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) )))) + (binary_expression "lVar5 * 4" identifier * number_literal))) ;) (if_statement "if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }" if (parenthesized_expression "(lVar5 < lVar3 - lVar2 >> 2)" ( (binary_expression "lVar5 < lVar3 - lVar2 >> 2" identifier < (binary_expression "lVar3 - lVar2 >> 2" (binary_expression "lVar3 - lVar2" identifier - identifier) >> number_literal)) )) (compound_statement "{\nLAB_00321c70:\n        *param_3 = false;\n        return lVar6;\n      }" { (labeled_statement "LAB_00321c70:\n        *param_3 = false;" statement_identifier : (expression_statement "*param_3 = false;" (assignment_expression "*param_3 = false" (pointer_expression "*param_3" * identifier) = false) ;)) (return_statement "return lVar6;" return identifier ;) })) }))) (expression_statement "iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1);" (assignment_expression "iVar4 = (**(code **)(*(long *)param_1 + 0x48))(param_1)" identifier = (call_expression "(**(code **)(*(long *)param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*(long *)param_1 + 0x48))" ( (pointer_expression "**(code **)(*(long *)param_1 + 0x48)" * (pointer_expression "*(code **)(*(long *)param_1 + 0x48)" * (cast_expression "(code **)(*(long *)param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1 + 0x48)" ( (binary_expression "*(long *)param_1 + 0x48" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) (ERROR "}" }))
(translation_unit "long FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}\n\n" (function_definition "long FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)" identifier (parameter_list "(long *param_1,long *param_2,undefined1 *param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "piVar1 = (int *)param_1[2];" (assignment_expression "piVar1 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" if (parenthesized_expression "(piVar1 < (int *)param_1[3])" ( (binary_expression "piVar1 < (int *)param_1[3]" identifier < (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar4 = *piVar1;\n  }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) (else_clause "else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" else (compound_statement "{\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" { (expression_statement "iVar4 = (**(code **)(*param_1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x48))()" identifier = (call_expression "(**(code **)(*param_1 + 0x48))()" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (labeled_statement "joined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );" do (compound_statement "{\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  }" { (if_statement "if (iVar4 == -1) {\n      return lVar6;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      return lVar6;\n    }" { (return_statement "return lVar6;" return identifier ;) })) (expression_statement "lVar2 = param_1[2];" (assignment_expression "lVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = param_1[3];" (assignment_expression "lVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" if (parenthesized_expression "(lVar3 - lVar2 < 5)" ( (binary_expression "lVar3 - lVar2 < 5" (binary_expression "lVar3 - lVar2" identifier - identifier) < number_literal) )) (compound_statement "{\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }" { (expression_statement "piVar1 = (int *)param_2[5];" (assignment_expression "piVar1 = (int *)param_2[5]" identifier = (cast_expression "(int *)param_2[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" if (parenthesized_expression "(piVar1 < (int *)param_2[6])" ( (binary_expression "piVar1 < (int *)param_2[6]" identifier < (cast_expression "(int *)param_2[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[6]" identifier [ number_literal ]))) )) (compound_statement "{\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }" { (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "param_2[5] = (long)(piVar1 + 1);" (assignment_expression "param_2[5] = (long)(piVar1 + 1)" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (cast_expression "(long)(piVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" { (expression_statement "iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4)" identifier = (call_expression "(**(code **)(*param_2 + 0x68))(param_2,iVar4)" (parenthesized_expression "(**(code **)(*param_2 + 0x68))" ( (pointer_expression "**(code **)(*param_2 + 0x68)" * (pointer_expression "*(code **)(*param_2 + 0x68)" * (cast_expression "(code **)(*param_2 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x68)" ( (binary_expression "*param_2 + 0x68" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00321c70;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00321c70;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = (int *)param_1[2];" (assignment_expression "piVar1 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" if (parenthesized_expression "(piVar1 < (int *)param_1[3])" ( (binary_expression "piVar1 < (int *)param_1[3]" identifier < (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "param_1[2] = (long)(piVar1 + 1);" (assignment_expression "param_1[2] = (long)(piVar1 + 1)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(long)(piVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" { (expression_statement "iVar4 = (**(code **)(*param_1 + 0x50))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x50))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x50))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x50))" ( (pointer_expression "**(code **)(*param_1 + 0x50)" * (pointer_expression "*(code **)(*param_1 + 0x50)" * (cast_expression "(code **)(*param_1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x50)" ( (binary_expression "*param_1 + 0x50" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if (iVar4 == -1) {\n        return lVar6;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return lVar6;\n      }" { (return_statement "return lVar6;" return identifier ;) })) (if_statement "if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }" if (parenthesized_expression "((int *)param_1[2] < (int *)param_1[3])" ( (binary_expression "(int *)param_1[2] < (int *)param_1[3]" (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }" { (expression_statement "iVar4 = *(int *)param_1[2];" (assignment_expression "iVar4 = *(int *)param_1[2]" identifier = (pointer_expression "*(int *)param_1[2]" * (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])))) ;) (goto_statement "goto joined_r0x00321bba;" goto statement_identifier ;) })) }) (else_clause "else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" else (compound_statement "{\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" { (expression_statement "lVar5 = (**(code **)(*param_2 + 0x60))(param_2);" (assignment_expression "lVar5 = (**(code **)(*param_2 + 0x60))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0x60))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x60))" ( (pointer_expression "**(code **)(*param_2 + 0x60)" * (pointer_expression "*(code **)(*param_2 + 0x60)" * (cast_expression "(code **)(*param_2 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x60)" ( (binary_expression "*param_2 + 0x60" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar6 = lVar6 + lVar5;" (assignment_expression "lVar6 = lVar6 + lVar5" identifier = (binary_expression "lVar6 + lVar5" identifier + identifier)) ;) (expression_statement "param_1[2] = param_1[2] + lVar5 * 4;" (assignment_expression "param_1[2] = param_1[2] + lVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + lVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "lVar5 * 4" identifier * number_literal))) ;) (if_statement "if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }" if (parenthesized_expression "(lVar5 < lVar3 - lVar2 >> 2)" ( (binary_expression "lVar5 < lVar3 - lVar2 >> 2" identifier < (binary_expression "lVar3 - lVar2 >> 2" (binary_expression "lVar3 - lVar2" identifier - identifier) >> number_literal)) )) (compound_statement "{\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }" { (labeled_statement "LAB_00321c70:\n        *param_3 = 0;" statement_identifier : (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;)) (return_statement "return lVar6;" return identifier ;) })) }))) (expression_statement "iVar4 = (**(code **)(*param_1 + 0x48))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x48))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( )))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression (binary_expression IDENT - IDENT) >> LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( BOOL )) ;)) })))
(function_definition "long FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00321b90(long *param_1,long *param_2,undefined1 *param_3)" (identifier "FUN_00321b90") (parameter_list "(long *param_1,long *param_2,undefined1 *param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  \n  piVar1 = (int *)param_1[2];\n  *param_3 = 1;\n  if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }\n  lVar6 = 0;\njoined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (expression_statement "piVar1 = (int *)param_1[2];" (assignment_expression "piVar1 = (int *)param_1[2]" (identifier "piVar1") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (if_statement "if (piVar1 < (int *)param_1[3]) {\n    iVar4 = *piVar1;\n  }\n  else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" (if "if") (parenthesized_expression "(piVar1 < (int *)param_1[3])" (( "(") (binary_expression "piVar1 < (int *)param_1[3]" (identifier "piVar1") (< "<") (cast_expression "(int *)param_1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    iVar4 = *piVar1;\n  }" ({ "{") (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" (else "else") (compound_statement "{\n    iVar4 = (**(code **)(*param_1 + 0x48))();\n  }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x48))()" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_1 + 0x48))()" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x48)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x48)" (* "*") (cast_expression "(code **)(*param_1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x48)" (( "(") (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (labeled_statement "joined_r0x00321bba:\n  do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );" (statement_identifier "joined_r0x00321bba") (: ":") (do_statement "do {\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar4 == -1) {\n      return lVar6;\n    }\n    lVar2 = param_1[2];\n    lVar3 = param_1[3];\n    if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }\n    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);\n  }" ({ "{") (if_statement "if (iVar4 == -1) {\n      return lVar6;\n    }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      return lVar6;\n    }" ({ "{") (return_statement "return lVar6;" (return "return") (identifier "lVar6") (; ";")) (} "}"))) (expression_statement "lVar2 = param_1[2];" (assignment_expression "lVar2 = param_1[2]" (identifier "lVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "lVar3 = param_1[3];" (assignment_expression "lVar3 = param_1[3]" (identifier "lVar3") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (lVar3 - lVar2 < 5) {\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }\n    else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" (if "if") (parenthesized_expression "(lVar3 - lVar2 < 5)" (( "(") (binary_expression "lVar3 - lVar2 < 5" (binary_expression "lVar3 - lVar2" (identifier "lVar3") (- "-") (identifier "lVar2")) (< "<") (number_literal "5")) () ")")) (compound_statement "{\n      piVar1 = (int *)param_2[5];\n      if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }\n      lVar6 = lVar6 + 1;\n      piVar1 = (int *)param_1[2];\n      if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }\n      if (iVar4 == -1) {\n        return lVar6;\n      }\n      if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }\n    }" ({ "{") (expression_statement "piVar1 = (int *)param_2[5];" (assignment_expression "piVar1 = (int *)param_2[5]" (identifier "piVar1") (= "=") (cast_expression "(int *)param_2[5]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")))) (; ";")) (if_statement "if (piVar1 < (int *)param_2[6]) {\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" (if "if") (parenthesized_expression "(piVar1 < (int *)param_2[6])" (( "(") (binary_expression "piVar1 < (int *)param_2[6]" (identifier "piVar1") (< "<") (cast_expression "(int *)param_2[6]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n        *piVar1 = iVar4;\n        param_2[5] = (long)(piVar1 + 1);\n      }" ({ "{") (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "param_2[5] = (long)(piVar1 + 1);" (assignment_expression "param_2[5] = (long)(piVar1 + 1)" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(long)(piVar1 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);\n        if (iVar4 == -1) goto LAB_00321c70;\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_2 + 0x68))(param_2,iVar4)" (parenthesized_expression "(**(code **)(*param_2 + 0x68))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x68)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x68)" (* "*") (cast_expression "(code **)(*param_2 + 0x68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x68)" (( "(") (binary_expression "*param_2 + 0x68" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x68")) () ")"))))) () ")")) (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) goto LAB_00321c70;" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00321c70;" (goto "goto") (statement_identifier "LAB_00321c70") (; ";"))) (} "}")))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" (identifier "lVar6") (= "=") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1 = (int *)param_1[2];" (assignment_expression "piVar1 = (int *)param_1[2]" (identifier "piVar1") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar1 < (int *)param_1[3]) {\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" (if "if") (parenthesized_expression "(piVar1 < (int *)param_1[3])" (( "(") (binary_expression "piVar1 < (int *)param_1[3]" (identifier "piVar1") (< "<") (cast_expression "(int *)param_1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        iVar4 = *piVar1;\n        param_1[2] = (long)(piVar1 + 1);\n      }" ({ "{") (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "param_1[2] = (long)(piVar1 + 1);" (assignment_expression "param_1[2] = (long)(piVar1 + 1)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(piVar1 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_1 + 0x50))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x50))(param_1)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_1 + 0x50))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x50))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x50)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x50)" (* "*") (cast_expression "(code **)(*param_1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x50)" (( "(") (binary_expression "*param_1 + 0x50" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar4 == -1) {\n        return lVar6;\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return lVar6;\n      }" ({ "{") (return_statement "return lVar6;" (return "return") (identifier "lVar6") (; ";")) (} "}"))) (if_statement "if ((int *)param_1[2] < (int *)param_1[3]) {\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }" (if "if") (parenthesized_expression "((int *)param_1[2] < (int *)param_1[3])" (( "(") (binary_expression "(int *)param_1[2] < (int *)param_1[3]" (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(int *)param_1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        iVar4 = *(int *)param_1[2];\n        goto joined_r0x00321bba;\n      }" ({ "{") (expression_statement "iVar4 = *(int *)param_1[2];" (assignment_expression "iVar4 = *(int *)param_1[2]" (identifier "iVar4") (= "=") (pointer_expression "*(int *)param_1[2]" (* "*") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (goto_statement "goto joined_r0x00321bba;" (goto "goto") (statement_identifier "joined_r0x00321bba") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" (else "else") (compound_statement "{\n      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);\n      lVar6 = lVar6 + lVar5;\n      param_1[2] = param_1[2] + lVar5 * 4;\n      if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }\n    }" ({ "{") (expression_statement "lVar5 = (**(code **)(*param_2 + 0x60))(param_2);" (assignment_expression "lVar5 = (**(code **)(*param_2 + 0x60))(param_2)" (identifier "lVar5") (= "=") (call_expression "(**(code **)(*param_2 + 0x60))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x60))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x60)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x60)" (* "*") (cast_expression "(code **)(*param_2 + 0x60)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x60)" (( "(") (binary_expression "*param_2 + 0x60" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x60")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "lVar6 = lVar6 + lVar5;" (assignment_expression "lVar6 = lVar6 + lVar5" (identifier "lVar6") (= "=") (binary_expression "lVar6 + lVar5" (identifier "lVar6") (+ "+") (identifier "lVar5"))) (; ";")) (expression_statement "param_1[2] = param_1[2] + lVar5 * 4;" (assignment_expression "param_1[2] = param_1[2] + lVar5 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_1[2] + lVar5 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "lVar5 * 4" (identifier "lVar5") (* "*") (number_literal "4")))) (; ";")) (if_statement "if (lVar5 < lVar3 - lVar2 >> 2) {\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }" (if "if") (parenthesized_expression "(lVar5 < lVar3 - lVar2 >> 2)" (( "(") (binary_expression "lVar5 < lVar3 - lVar2 >> 2" (identifier "lVar5") (< "<") (binary_expression "lVar3 - lVar2 >> 2" (binary_expression "lVar3 - lVar2" (identifier "lVar3") (- "-") (identifier "lVar2")) (>> ">>") (number_literal "2"))) () ")")) (compound_statement "{\nLAB_00321c70:\n        *param_3 = 0;\n        return lVar6;\n      }" ({ "{") (labeled_statement "LAB_00321c70:\n        *param_3 = 0;" (statement_identifier "LAB_00321c70") (: ":") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return lVar6;" (return "return") (identifier "lVar6") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar4 = (**(code **)(*param_1 + 0x48))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x48))(param_1)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x48)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x48)" (* "*") (cast_expression "(code **)(*param_1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x48)" (( "(") (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* long std::__copy_streambufs_eof<wchar_t, std::char_traits<wchar_t> >(std::wstreambuf*,
   std::wstreambuf*, bool&) */

long std::__copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>
               (wstreambuf *var_1,wstreambuf *var_6,bool *param_3)

{
  int *var_2;
  long var_5;
  long var_4;
  int var_3;
  long var_8;
  long var_7;
  
  var_2 = *(int **)(var_1 + 0x10);
  *param_3 = true;
  if (var_2 < *(int **)(var_1 + 0x18)) {
    var_3 = *var_2;
  }
  else {
    var_3 = (**(type_1 **)(*(long *)var_1 + 0x48))();
  }
  var_7 = 0;
joined_r0x00321bba:
  do {
    if (var_3 == -1) {
      return var_7;
    }
    var_5 = *(long *)(var_1 + 0x10);
    var_4 = *(long *)(var_1 + 0x18);
    if (var_4 - var_5 < 5) {
      var_2 = *(int **)(var_6 + 0x28);
      if (var_2 < *(int **)(var_6 + 0x30)) {
        *var_2 = var_3;
        *(int **)(var_6 + 0x28) = var_2 + 1;
      }
      else {
        var_3 = (**(type_1 **)(*(long *)var_6 + 0x68))(var_6,var_3);
        if (var_3 == -1) goto LAB_00321c70;
      }
      var_7 = var_7 + 1;
      var_2 = *(int **)(var_1 + 0x10);
      if (var_2 < *(int **)(var_1 + 0x18)) {
        var_3 = *var_2;
        *(int **)(var_1 + 0x10) = var_2 + 1;
      }
      else {
        var_3 = (**(type_1 **)(*(long *)var_1 + 0x50))(var_1);
      }
      if (var_3 == -1) {
        return var_7;
      }
      if (*(int **)(var_1 + 0x10) < *(int **)(var_1 + 0x18)) {
        var_3 = **(int **)(var_1 + 0x10);
        goto joined_r0x00321bba;
      }
    }
    else {
      var_8 = (**(type_1 **)(*(long *)var_6 + 0x60))(var_6);
      var_7 = var_7 + var_8;
      *(long *)(var_1 + 0x10) = *(long *)(var_1 + 0x10) + var_8 * 4;
      if (var_8 < var_4 - var_5 >> 2) {
LAB_00321c70:
        *param_3 = false;
        return var_7;
      }
    }
    var_3 = (**(type_1 **)(*(long *)var_1 + 0x48))(var_1);
  } while( true );
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))) condition: (parenthesized_expression (true)))))))

long MASKED(long *param_1,long *param_2,undefined1 *param_3)

{
  int *piVar1;
  long lVar2;
  long lVar3;
  int iVar4;
  long lVar5;
  long lVar6;
  
  piVar1 = (int *)param_1[2];
  *param_3 = 1;
  if (piVar1 < (int *)param_1[3]) {
    iVar4 = *piVar1;
  }
  else {
    iVar4 = (**(code **)(*param_1 + 0x48))();
  }
  lVar6 = 0;
joined_r0x00321bba:
  do {
    if (iVar4 == -1) {
      return lVar6;
    }
    lVar2 = param_1[2];
    lVar3 = param_1[3];
    if (lVar3 - lVar2 < 5) {
      piVar1 = (int *)param_2[5];
      if (piVar1 < (int *)param_2[6]) {
        *piVar1 = iVar4;
        param_2[5] = (long)(piVar1 + 1);
      }
      else {
        iVar4 = (**(code **)(*param_2 + 0x68))(param_2,iVar4);
        if (iVar4 == -1) goto LAB_00321c70;
      }
      lVar6 = lVar6 + 1;
      piVar1 = (int *)param_1[2];
      if (piVar1 < (int *)param_1[3]) {
        iVar4 = *piVar1;
        param_1[2] = (long)(piVar1 + 1);
      }
      else {
        iVar4 = (**(code **)(*param_1 + 0x50))(param_1);
      }
      if (iVar4 == -1) {
        return lVar6;
      }
      if ((int *)param_1[2] < (int *)param_1[3]) {
        iVar4 = *(int *)param_1[2];
        goto joined_r0x00321bba;
      }
    }
    else {
      lVar5 = (**(code **)(*param_2 + 0x60))(param_2);
      lVar6 = lVar6 + lVar5;
      param_1[2] = param_1[2] + lVar5 * 4;
      if (lVar5 < lVar3 - lVar2 >> 2) {
LAB_00321c70:
        *param_3 = 0;
        return lVar6;
      }
    }
    iVar4 = (**(code **)(*param_1 + 0x48))(param_1);
  } while( true );
}

