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

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

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  *param_3 = true;
  if (*(int **)(param_1 + 8) < *(int **)(param_1 + 0xc)) {
    iVar2 = **(int **)(param_1 + 8);
  }
  else {
    iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);
  }
  iVar4 = 0;
  do {
    while( true ) {
      if (iVar2 == -1) {
        return iVar4;
      }
      iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);
      if (iVar3 < 5) break;
      iVar3 = iVar3 >> 2;
      iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);
      iVar4 = iVar4 + iVar2;
      *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;
      if (iVar2 < iVar3) {
LAB_0024ba0a:
        *param_3 = false;
        return iVar4;
      }
LAB_0024b993:
      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);
    }
    piVar1 = *(int **)(param_2 + 0x14);
    if (piVar1 < *(int **)(param_2 + 0x18)) {
      *piVar1 = iVar2;
      *(int **)(param_2 + 0x14) = piVar1 + 1;
    }
    else {
      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);
      if (iVar2 == -1) goto LAB_0024ba0a;
    }
    iVar4 = iVar4 + 1;
    piVar1 = *(int **)(param_1 + 8);
    if (piVar1 < *(int **)(param_1 + 0xc)) {
      iVar2 = *piVar1;
      *(int **)(param_1 + 8) = piVar1 + 1;
    }
    else {
      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);
    }
    if (iVar2 == -1) {
      return iVar4;
    }
    if (*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8)) goto LAB_0024b993;
    iVar2 = **(int **)(param_1 + 8);
  } while( true );
}



int FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  *param_3 = 1;
  if ((int *)param_1[2] < (int *)param_1[3]) {
    iVar2 = *(int *)param_1[2];
  }
  else {
    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);
  }
  iVar4 = 0;
  do {
    while( true ) {
      if (iVar2 == -1) {
        return iVar4;
      }
      iVar3 = param_1[3] - param_1[2];
      if (iVar3 < 5) break;
      iVar3 = iVar3 >> 2;
      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);
      iVar4 = iVar4 + iVar2;
      param_1[2] = param_1[2] + iVar2 * 4;
      if (iVar2 < iVar3) {
LAB_0024ba0a:
        *param_3 = 0;
        return iVar4;
      }
LAB_0024b993:
      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);
    }
    piVar1 = (int *)param_2[5];
    if (piVar1 < (int *)param_2[6]) {
      *piVar1 = iVar2;
      param_2[5] = (int)(piVar1 + 1);
    }
    else {
      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);
      if (iVar2 == -1) goto LAB_0024ba0a;
    }
    iVar4 = iVar4 + 1;
    piVar1 = (int *)param_1[2];
    if (piVar1 < (int *)param_1[3]) {
      iVar2 = *piVar1;
      param_1[2] = (int)(piVar1 + 1);
    }
    else {
      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);
    }
    if (iVar2 == -1) {
      return iVar4;
    }
    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;
    iVar2 = *(int *)param_1[2];
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
MOV byte ptr [EAX],0x1
MOV EAX,dword ptr [EBX + 0x8]
CMP dword ptr [EBX + 0xc],EAX
JBE 0x0024ba2e
MOV EBP,dword ptr [EAX]
XOR ESI,ESI
CMP EBP,-0x1
JNZ 0x0024b9a6
JMP 0x0024b9ea
SAR EDX,0x2
SUB ESP,0x4
MOV EBP,EDX
MOV EDX,dword ptr [EDI]
PUSH EBP
PUSH EAX
PUSH EDI
CALL dword ptr [EDX + 0x30]
LEA EDX,[EAX*0x4 + 0x0]
ADD ESI,EAX
ADD dword ptr [EBX + 0x8],EDX
ADD ESP,0x10
CMP EBP,EAX
JG 0x0024ba0a
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x24]
MOV EBP,EAX
ADD ESP,0x10
CMP EBP,-0x1
JZ 0x0024b9ea
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
SUB EDX,EAX
CMP EDX,0x4
JG 0x0024b970
MOV EAX,dword ptr [EDI + 0x14]
CMP EAX,dword ptr [EDI + 0x18]
JNC 0x0024b9f8
MOV dword ptr [EAX],EBP
ADD EAX,0x4
MOV dword ptr [EDI + 0x14],EAX
ADD ESI,0x1
MOV EDX,dword ptr [EBX + 0x8]
CMP EDX,dword ptr [EBX + 0xc]
JNC 0x0024ba20
MOV EAX,dword ptr [EDX]
ADD EDX,0x4
MOV dword ptr [EBX + 0x8],EDX
CMP EAX,-0x1
JZ 0x0024b9ea
MOV EAX,dword ptr [EBX + 0x8]
CMP EAX,dword ptr [EBX + 0xc]
JNC 0x0024b993
MOV EBP,dword ptr [EAX]
CMP EBP,-0x1
JNZ 0x0024b9a6
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
MOV EAX,dword ptr [EDI]
PUSH EBP
PUSH EDI
CALL dword ptr [EAX + 0x34]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x0024b9c3
MOV EAX,dword ptr [ESP + 0x28]
MOV byte ptr [EAX],0x0
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
JMP 0x0024b9d6
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x24]
MOV EBP,EAX
ADD ESP,0x10
JMP 0x0024b964
(translation_unit "int FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}\n\n" (function_definition "int FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}" primitive_type (function_declarator "FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)" identifier (parameter_list "(int *param_1,int *param_2,undefined1 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\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    iVar2 = *(int *)param_1[2];\n  }" { (expression_statement "iVar2 = *(int *)param_1[2];" (assignment_expression "iVar2 = *(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 ])))) ;) }) (else_clause "else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }" else (compound_statement "{\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x24))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  }" { (while_statement "while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }" { (if_statement "if (iVar2 == -1) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar3 = param_1[3] - param_1[2];" (assignment_expression "iVar3 = param_1[3] - param_1[2]" identifier = (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar3 < 5) break;" if (parenthesized_expression "(iVar3 < 5)" ( (binary_expression "iVar3 < 5" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 >> 2;" (assignment_expression "iVar3 = iVar3 >> 2" identifier = (binary_expression "iVar3 >> 2" identifier >> number_literal)) ;) (expression_statement "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3)" identifier = (call_expression "(**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3)" (parenthesized_expression "(**(code **)(*param_2 + 0x30))" ( (pointer_expression "**(code **)(*param_2 + 0x30)" * (pointer_expression "*(code **)(*param_2 + 0x30)" * (cast_expression "(code **)(*param_2 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x30)" ( (binary_expression "*param_2 + 0x30" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,param_1[2],iVar3)" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" identifier = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) (expression_statement "param_1[2] = param_1[2] + iVar2 * 4;" (assignment_expression "param_1[2] = param_1[2] + iVar2 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + iVar2 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (if_statement "if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }" if (parenthesized_expression "(iVar2 < iVar3)" ( (binary_expression "iVar2 < iVar3" identifier < identifier) )) (compound_statement "{\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }" { (labeled_statement "LAB_0024ba0a:\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 iVar4;" return identifier ;) })) (labeled_statement "LAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" statement_identifier : (expression_statement "iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x24))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;)) })) (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 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\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 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }" { (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "param_2[5] = (int)(piVar1 + 1);" (assignment_expression "param_2[5] = (int)(piVar1 + 1)" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" { (expression_statement "iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2)" identifier = (call_expression "(**(code **)(*param_2 + 0x34))(param_2,iVar2)" (parenthesized_expression "(**(code **)(*param_2 + 0x34))" ( (pointer_expression "**(code **)(*param_2 + 0x34)" * (pointer_expression "*(code **)(*param_2 + 0x34)" * (cast_expression "(code **)(*param_2 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x34)" ( (binary_expression "*param_2 + 0x34" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,iVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == -1) goto LAB_0024ba0a;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0024ba0a;" goto statement_identifier ;)) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 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      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(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      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }" { (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "param_1[2] = (int)(piVar1 + 1);" (assignment_expression "param_1[2] = (int)(piVar1 + 1)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x28))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x28))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x28))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x28))" ( (pointer_expression "**(code **)(*param_1 + 0x28)" * (pointer_expression "*(code **)(*param_1 + 0x28)" * (cast_expression "(code **)(*param_1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x28)" ( (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      return iVar4;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      return iVar4;\n    }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;" if (parenthesized_expression "((int *)param_1[3] <= (int *)param_1[2])" ( (binary_expression "(int *)param_1[3] <= (int *)param_1[2]" (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) <= (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 LAB_0024b993;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)param_1[2];" (assignment_expression "iVar2 = *(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 ])))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* int std::__copy_streambufs_eof<wchar_t, std::char_traits<wchar_t> >(std::wstreambuf*,\n   std::wstreambuf*, bool&) */\n\nint 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  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = true;\n  if (*(int **)(param_1 + 8) < *(int **)(param_1 + 0xc)) {\n    iVar2 = **(int **)(param_1 + 8);\n  }\n  else {\n    iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);\n      iVar4 = iVar4 + iVar2;\n      *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    }\n    piVar1 = *(int **)(param_2 + 0x14);\n    if (piVar1 < *(int **)(param_2 + 0x18)) {\n      *piVar1 = iVar2;\n      *(int **)(param_2 + 0x14) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = *(int **)(param_1 + 8);\n    if (piVar1 < *(int **)(param_1 + 0xc)) {\n      iVar2 = *piVar1;\n      *(int **)(param_1 + 8) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if (*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8)) goto LAB_0024b993;\n    iVar2 = **(int **)(param_1 + 8);\n  } while( true );\n}\n\n" comment comment (declaration "int 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;" primitive_type (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 "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "*param_3 = true;" (assignment_expression "*param_3 = true" (pointer_expression "*param_3" * identifier) = true) ;) (if_statement "if (*(int **)(param_1 + 8) < *(int **)(param_1 + 0xc)) {\n    iVar2 = **(int **)(param_1 + 8);\n  }\n  else {\n    iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n  }" if (parenthesized_expression "(*(int **)(param_1 + 8) < *(int **)(param_1 + 0xc))" ( (binary_expression "*(int **)(param_1 + 8) < *(int **)(param_1 + 0xc)" (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) < (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = **(int **)(param_1 + 8);\n  }" { (expression_statement "iVar2 = **(int **)(param_1 + 8);" (assignment_expression "iVar2 = **(int **)(param_1 + 8)" identifier = (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) }) (else_clause "else {\n    iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n  }" else (compound_statement "{\n    iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n  }" { (expression_statement "iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1)" identifier = (call_expression "(**(code **)(*(int *)param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*(int *)param_1 + 0x24))" ( (pointer_expression "**(code **)(*(int *)param_1 + 0x24)" * (pointer_expression "*(code **)(*(int *)param_1 + 0x24)" * (cast_expression "(code **)(*(int *)param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1 + 0x24)" ( (binary_expression "*(int *)param_1 + 0x24" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);\n      iVar4 = iVar4 + iVar2;\n      *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    }\n    piVar1 = *(int **)(param_2 + 0x14);\n    if (piVar1 < *(int **)(param_2 + 0x18)) {\n      *piVar1 = iVar2;\n      *(int **)(param_2 + 0x14) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = *(int **)(param_1 + 8);\n    if (piVar1 < *(int **)(param_1 + 0xc)) {\n      iVar2 = *piVar1;\n      *(int **)(param_1 + 8) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if (*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8)) goto LAB_0024b993;\n    iVar2 = **(int **)(param_1 + 8);\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);\n      iVar4 = iVar4 + iVar2;\n      *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    }\n    piVar1 = *(int **)(param_2 + 0x14);\n    if (piVar1 < *(int **)(param_2 + 0x18)) {\n      *piVar1 = iVar2;\n      *(int **)(param_2 + 0x14) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = *(int **)(param_1 + 8);\n    if (piVar1 < *(int **)(param_1 + 0xc)) {\n      iVar2 = *piVar1;\n      *(int **)(param_1 + 8) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if (*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8)) goto LAB_0024b993;\n    iVar2 = **(int **)(param_1 + 8);\n  }" { (while_statement "while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);\n      iVar4 = iVar4 + iVar2;\n      *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);\n      iVar4 = iVar4 + iVar2;\n      *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    }" { (if_statement "if (iVar2 == -1) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xc) - *(int *)(param_1 + 8)" identifier = (binary_expression "*(int *)(param_1 + 0xc) - *(int *)(param_1 + 8)" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (if_statement "if (iVar3 < 5) break;" if (parenthesized_expression "(iVar3 < 5)" ( (binary_expression "iVar3 < 5" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 >> 2;" (assignment_expression "iVar3 = iVar3 >> 2" identifier = (binary_expression "iVar3 >> 2" identifier >> number_literal)) ;) (expression_statement "iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3);" (assignment_expression "iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3)" identifier = (call_expression "(**(code **)(*(int *)param_2 + 0x30))(param_2,*(int *)(param_1 + 8),iVar3)" (parenthesized_expression "(**(code **)(*(int *)param_2 + 0x30))" ( (pointer_expression "**(code **)(*(int *)param_2 + 0x30)" * (pointer_expression "*(code **)(*(int *)param_2 + 0x30)" * (cast_expression "(code **)(*(int *)param_2 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_2 + 0x30)" ( (binary_expression "*(int *)param_2 + 0x30" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_2,*(int *)(param_1 + 8),iVar3)" ( identifier , (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" identifier = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 8) + iVar2 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (if_statement "if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }" if (parenthesized_expression "(iVar2 < iVar3)" ( (binary_expression "iVar2 < iVar3" identifier < identifier) )) (compound_statement "{\nLAB_0024ba0a:\n        *param_3 = false;\n        return iVar4;\n      }" { (labeled_statement "LAB_0024ba0a:\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 iVar4;" return identifier ;) })) (labeled_statement "LAB_0024b993:\n      iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);" statement_identifier : (expression_statement "iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*(int *)param_1 + 0x24))(param_1)" identifier = (call_expression "(**(code **)(*(int *)param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*(int *)param_1 + 0x24))" ( (pointer_expression "**(code **)(*(int *)param_1 + 0x24)" * (pointer_expression "*(code **)(*(int *)param_1 + 0x24)" * (cast_expression "(code **)(*(int *)param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1 + 0x24)" ( (binary_expression "*(int *)param_1 + 0x24" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;)) })) (expression_statement "piVar1 = *(int **)(param_2 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_2 + 0x14)" identifier = (pointer_expression "*(int **)(param_2 + 0x14)" * (cast_expression "(int **)(param_2 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 < *(int **)(param_2 + 0x18)) {\n      *piVar1 = iVar2;\n      *(int **)(param_2 + 0x14) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" if (parenthesized_expression "(piVar1 < *(int **)(param_2 + 0x18))" ( (binary_expression "piVar1 < *(int **)(param_2 + 0x18)" identifier < (pointer_expression "*(int **)(param_2 + 0x18)" * (cast_expression "(int **)(param_2 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n      *piVar1 = iVar2;\n      *(int **)(param_2 + 0x14) = piVar1 + 1;\n    }" { (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x14) = piVar1 + 1;" (assignment_expression "*(int **)(param_2 + 0x14) = piVar1 + 1" (pointer_expression "*(int **)(param_2 + 0x14)" * (cast_expression "(int **)(param_2 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" { (expression_statement "iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2)" identifier = (call_expression "(**(code **)(*(int *)param_2 + 0x34))(param_2,iVar2)" (parenthesized_expression "(**(code **)(*(int *)param_2 + 0x34))" ( (pointer_expression "**(code **)(*(int *)param_2 + 0x34)" * (pointer_expression "*(code **)(*(int *)param_2 + 0x34)" * (cast_expression "(code **)(*(int *)param_2 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_2 + 0x34)" ( (binary_expression "*(int *)param_2 + 0x34" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_2,iVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == -1) goto LAB_0024ba0a;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0024ba0a;" goto statement_identifier ;)) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 < *(int **)(param_1 + 0xc)) {\n      iVar2 = *piVar1;\n      *(int **)(param_1 + 8) = piVar1 + 1;\n    }\n    else {\n      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n    }" if (parenthesized_expression "(piVar1 < *(int **)(param_1 + 0xc))" ( (binary_expression "piVar1 < *(int **)(param_1 + 0xc)" identifier < (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar2 = *piVar1;\n      *(int **)(param_1 + 8) = piVar1 + 1;\n    }" { (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*(int **)(param_1 + 8) = piVar1 + 1;" (assignment_expression "*(int **)(param_1 + 8) = piVar1 + 1" (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n    }" { (expression_statement "iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1);" (assignment_expression "iVar2 = (**(code **)(*(int *)param_1 + 0x28))(param_1)" identifier = (call_expression "(**(code **)(*(int *)param_1 + 0x28))(param_1)" (parenthesized_expression "(**(code **)(*(int *)param_1 + 0x28))" ( (pointer_expression "**(code **)(*(int *)param_1 + 0x28)" * (pointer_expression "*(code **)(*(int *)param_1 + 0x28)" * (cast_expression "(code **)(*(int *)param_1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1 + 0x28)" ( (binary_expression "*(int *)param_1 + 0x28" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      return iVar4;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      return iVar4;\n    }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if (*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8)) goto LAB_0024b993;" if (parenthesized_expression "(*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8))" ( (binary_expression "*(int **)(param_1 + 0xc) <= *(int **)(param_1 + 8)" (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) <= (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (goto_statement "goto LAB_0024b993;" goto statement_identifier ;)) (expression_statement "iVar2 = **(int **)(param_1 + 8);" (assignment_expression "iVar2 = **(int **)(param_1 + 8)" identifier = (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (ERROR "}" }))
(translation_unit "int FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}\n\n" (function_definition "int FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}" primitive_type (function_declarator "FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)" identifier (parameter_list "(int *param_1,int *param_2,undefined1 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\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    iVar2 = *(int *)param_1[2];\n  }" { (expression_statement "iVar2 = *(int *)param_1[2];" (assignment_expression "iVar2 = *(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 ])))) ;) }) (else_clause "else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }" else (compound_statement "{\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x24))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  }" { (while_statement "while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }" { (if_statement "if (iVar2 == -1) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar3 = param_1[3] - param_1[2];" (assignment_expression "iVar3 = param_1[3] - param_1[2]" identifier = (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar3 < 5) break;" if (parenthesized_expression "(iVar3 < 5)" ( (binary_expression "iVar3 < 5" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 >> 2;" (assignment_expression "iVar3 = iVar3 >> 2" identifier = (binary_expression "iVar3 >> 2" identifier >> number_literal)) ;) (expression_statement "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3)" identifier = (call_expression "(**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3)" (parenthesized_expression "(**(code **)(*param_2 + 0x30))" ( (pointer_expression "**(code **)(*param_2 + 0x30)" * (pointer_expression "*(code **)(*param_2 + 0x30)" * (cast_expression "(code **)(*param_2 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x30)" ( (binary_expression "*param_2 + 0x30" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,param_1[2],iVar3)" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" identifier = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) (expression_statement "param_1[2] = param_1[2] + iVar2 * 4;" (assignment_expression "param_1[2] = param_1[2] + iVar2 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + iVar2 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (if_statement "if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }" if (parenthesized_expression "(iVar2 < iVar3)" ( (binary_expression "iVar2 < iVar3" identifier < identifier) )) (compound_statement "{\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }" { (labeled_statement "LAB_0024ba0a:\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 iVar4;" return identifier ;) })) (labeled_statement "LAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" statement_identifier : (expression_statement "iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x24))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;)) })) (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 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\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 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }" { (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "param_2[5] = (int)(piVar1 + 1);" (assignment_expression "param_2[5] = (int)(piVar1 + 1)" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" { (expression_statement "iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2)" identifier = (call_expression "(**(code **)(*param_2 + 0x34))(param_2,iVar2)" (parenthesized_expression "(**(code **)(*param_2 + 0x34))" ( (pointer_expression "**(code **)(*param_2 + 0x34)" * (pointer_expression "*(code **)(*param_2 + 0x34)" * (cast_expression "(code **)(*param_2 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x34)" ( (binary_expression "*param_2 + 0x34" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,iVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == -1) goto LAB_0024ba0a;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0024ba0a;" goto statement_identifier ;)) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 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      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(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      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }" { (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "param_1[2] = (int)(piVar1 + 1);" (assignment_expression "param_1[2] = (int)(piVar1 + 1)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x28))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x28))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x28))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x28))" ( (pointer_expression "**(code **)(*param_1 + 0x28)" * (pointer_expression "*(code **)(*param_1 + 0x28)" * (cast_expression "(code **)(*param_1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x28)" ( (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      return iVar4;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      return iVar4;\n    }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;" if (parenthesized_expression "((int *)param_1[3] <= (int *)param_1[2])" ( (binary_expression "(int *)param_1[3] <= (int *)param_1[2]" (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) <= (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 LAB_0024b993;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)param_1[2];" (assignment_expression "iVar2 = *(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 ])))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 ])))) ;) }) (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 = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (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 , (subscript_expression IDENT [ LIT ]) , 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 < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (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 = (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 TYPE) ) (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 TYPE) ) (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 ]))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_0024b940(int *param_1,int *param_2,undefined1 *param_3)" (identifier "FUN_0024b940") (parameter_list "(int *param_1,int *param_2,undefined1 *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (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  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  *param_3 = 1;\n  if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }\n  iVar4 = 0;\n  do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (if_statement "if ((int *)param_1[2] < (int *)param_1[3]) {\n    iVar2 = *(int *)param_1[2];\n  }\n  else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\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    iVar2 = *(int *)param_1[2];\n  }" ({ "{") (expression_statement "iVar2 = *(int *)param_1[2];" (assignment_expression "iVar2 = *(int *)param_1[2]" (identifier "iVar2") (= "=") (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") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }" (else "else") (compound_statement "{\n    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x24))(param_1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x24)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x24)" (* "*") (cast_expression "(code **)(*param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x24)" (( "(") (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  } while( true );" (do "do") (compound_statement "{\n    while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }\n    piVar1 = (int *)param_2[5];\n    if (piVar1 < (int *)param_2[6]) {\n      *piVar1 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }\n    iVar4 = iVar4 + 1;\n    piVar1 = (int *)param_1[2];\n    if (piVar1 < (int *)param_1[3]) {\n      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }\n    if (iVar2 == -1) {\n      return iVar4;\n    }\n    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;\n    iVar2 = *(int *)param_1[2];\n  }" ({ "{") (while_statement "while( true ) {\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (iVar2 == -1) {\n        return iVar4;\n      }\n      iVar3 = param_1[3] - param_1[2];\n      if (iVar3 < 5) break;\n      iVar3 = iVar3 >> 2;\n      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);\n      iVar4 = iVar4 + iVar2;\n      param_1[2] = param_1[2] + iVar2 * 4;\n      if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }\nLAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);\n    }" ({ "{") (if_statement "if (iVar2 == -1) {\n        return iVar4;\n      }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return iVar4;\n      }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "iVar3 = param_1[3] - param_1[2];" (assignment_expression "iVar3 = param_1[3] - param_1[2]" (identifier "iVar3") (= "=") (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (- "-") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (iVar3 < 5) break;" (if "if") (parenthesized_expression "(iVar3 < 5)" (( "(") (binary_expression "iVar3 < 5" (identifier "iVar3") (< "<") (number_literal "5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = iVar3 >> 2;" (assignment_expression "iVar3 = iVar3 >> 2" (identifier "iVar3") (= "=") (binary_expression "iVar3 >> 2" (identifier "iVar3") (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3)" (parenthesized_expression "(**(code **)(*param_2 + 0x30))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x30)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x30)" (* "*") (cast_expression "(code **)(*param_2 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x30)" (( "(") (binary_expression "*param_2 + 0x30" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(param_2,param_1[2],iVar3)" (( "(") (identifier "param_2") (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar2" (identifier "iVar4") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "param_1[2] = param_1[2] + iVar2 * 4;" (assignment_expression "param_1[2] = param_1[2] + iVar2 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_1[2] + iVar2 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4")))) (; ";")) (if_statement "if (iVar2 < iVar3) {\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }" (if "if") (parenthesized_expression "(iVar2 < iVar3)" (( "(") (binary_expression "iVar2 < iVar3" (identifier "iVar2") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\nLAB_0024ba0a:\n        *param_3 = 0;\n        return iVar4;\n      }" ({ "{") (labeled_statement "LAB_0024ba0a:\n        *param_3 = 0;" (statement_identifier "LAB_0024ba0a") (: ":") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (labeled_statement "LAB_0024b993:\n      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (statement_identifier "LAB_0024b993") (: ":") (expression_statement "iVar2 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x24))(param_1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x24))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x24)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x24)" (* "*") (cast_expression "(code **)(*param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x24)" (( "(") (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";"))) (} "}"))) (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 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\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 = iVar2;\n      param_2[5] = (int)(piVar1 + 1);\n    }" ({ "{") (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_2[5] = (int)(piVar1 + 1);" (assignment_expression "param_2[5] = (int)(piVar1 + 1)" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(int)(piVar1 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" (else "else") (compound_statement "{\n      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);\n      if (iVar2 == -1) goto LAB_0024ba0a;\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_2 + 0x34))(param_2,iVar2)" (parenthesized_expression "(**(code **)(*param_2 + 0x34))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x34)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x34)" (* "*") (cast_expression "(code **)(*param_2 + 0x34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x34)" (( "(") (binary_expression "*param_2 + 0x34" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (argument_list "(param_2,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) goto LAB_0024ba0a;" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0024ba0a;" (goto "goto") (statement_identifier "LAB_0024ba0a") (; ";"))) (} "}")))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (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      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }\n    else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(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      iVar2 = *piVar1;\n      param_1[2] = (int)(piVar1 + 1);\n    }" ({ "{") (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "param_1[2] = (int)(piVar1 + 1);" (assignment_expression "param_1[2] = (int)(piVar1 + 1)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(piVar1 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }" (else "else") (compound_statement "{\n      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_1 + 0x28))(param_1);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x28))(param_1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x28))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x28))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x28)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x28)" (* "*") (cast_expression "(code **)(*param_1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x28)" (( "(") (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 == -1) {\n      return iVar4;\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      return iVar4;\n    }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (if_statement "if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;" (if "if") (parenthesized_expression "((int *)param_1[3] <= (int *)param_1[2])" (( "(") (binary_expression "(int *)param_1[3] <= (int *)param_1[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") (] "]"))) (<= "<=") (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 LAB_0024b993;" (goto "goto") (statement_identifier "LAB_0024b993") (; ";"))) (expression_statement "iVar2 = *(int *)param_1[2];" (assignment_expression "iVar2 = *(int *)param_1[2]" (identifier "iVar2") (= "=") (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") (] "]"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

int std::__copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>
              (wstreambuf *var_1,wstreambuf *var_5,bool *param_3)

{
  int *var_6;
  int var_2;
  int var_3;
  int var_4;
  
  *param_3 = true;
  if (*(int **)(var_1 + 8) < *(int **)(var_1 + 0xc)) {
    var_2 = **(int **)(var_1 + 8);
  }
  else {
    var_2 = (**(type_1 **)(*(int *)var_1 + 0x24))(var_1);
  }
  var_4 = 0;
  do {
    while( true ) {
      if (var_2 == -1) {
        return var_4;
      }
      var_3 = *(int *)(var_1 + 0xc) - *(int *)(var_1 + 8);
      if (var_3 < 5) break;
      var_3 = var_3 >> 2;
      var_2 = (**(type_1 **)(*(int *)var_5 + 0x30))(var_5,*(int *)(var_1 + 8),var_3);
      var_4 = var_4 + var_2;
      *(int *)(var_1 + 8) = *(int *)(var_1 + 8) + var_2 * 4;
      if (var_2 < var_3) {
LAB_0024ba0a:
        *param_3 = false;
        return var_4;
      }
LAB_0024b993:
      var_2 = (**(type_1 **)(*(int *)var_1 + 0x24))(var_1);
    }
    var_6 = *(int **)(var_5 + 0x14);
    if (var_6 < *(int **)(var_5 + 0x18)) {
      *var_6 = var_2;
      *(int **)(var_5 + 0x14) = var_6 + 1;
    }
    else {
      var_2 = (**(type_1 **)(*(int *)var_5 + 0x34))(var_5,var_2);
      if (var_2 == -1) goto LAB_0024ba0a;
    }
    var_4 = var_4 + 1;
    var_6 = *(int **)(var_1 + 8);
    if (var_6 < *(int **)(var_1 + 0xc)) {
      var_2 = *var_6;
      *(int **)(var_1 + 8) = var_6 + 1;
    }
    else {
      var_2 = (**(type_1 **)(*(int *)var_1 + 0x28))(var_1);
    }
    if (var_2 == -1) {
      return var_4;
    }
    if (*(int **)(var_1 + 0xc) <= *(int **)(var_1 + 8)) goto LAB_0024b993;
    var_2 = **(int **)(var_1 + 8);
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (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))))))) 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: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) 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: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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) (subscript_expression argument: (identifier) index: (number_literal)) (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: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement (identifier)))) (labeled_statement label: (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)))))))) (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: (primitive_type)) 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: (primitive_type)) 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: (goto_statement label: (statement_identifier))) (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))))))) condition: (parenthesized_expression (true))))))

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

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  *param_3 = 1;
  if ((int *)param_1[2] < (int *)param_1[3]) {
    iVar2 = *(int *)param_1[2];
  }
  else {
    iVar2 = (**(code **)(*param_1 + 0x24))(param_1);
  }
  iVar4 = 0;
  do {
    while( true ) {
      if (iVar2 == -1) {
        return iVar4;
      }
      iVar3 = param_1[3] - param_1[2];
      if (iVar3 < 5) break;
      iVar3 = iVar3 >> 2;
      iVar2 = (**(code **)(*param_2 + 0x30))(param_2,param_1[2],iVar3);
      iVar4 = iVar4 + iVar2;
      param_1[2] = param_1[2] + iVar2 * 4;
      if (iVar2 < iVar3) {
LAB_0024ba0a:
        *param_3 = 0;
        return iVar4;
      }
LAB_0024b993:
      iVar2 = (**(code **)(*param_1 + 0x24))(param_1);
    }
    piVar1 = (int *)param_2[5];
    if (piVar1 < (int *)param_2[6]) {
      *piVar1 = iVar2;
      param_2[5] = (int)(piVar1 + 1);
    }
    else {
      iVar2 = (**(code **)(*param_2 + 0x34))(param_2,iVar2);
      if (iVar2 == -1) goto LAB_0024ba0a;
    }
    iVar4 = iVar4 + 1;
    piVar1 = (int *)param_1[2];
    if (piVar1 < (int *)param_1[3]) {
      iVar2 = *piVar1;
      param_1[2] = (int)(piVar1 + 1);
    }
    else {
      iVar2 = (**(code **)(*param_1 + 0x28))(param_1);
    }
    if (iVar2 == -1) {
      return iVar4;
    }
    if ((int *)param_1[3] <= (int *)param_1[2]) goto LAB_0024b993;
    iVar2 = *(int *)param_1[2];
  } while( true );
}

