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

int std::__copy_streambufs_eof<char,std::char_traits<char>>
              (streambuf *param_1,streambuf *param_2,bool *param_3)

{
  uint uVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  byte *pbVar5;
  int iVar6;
  
  pbVar3 = *(byte **)(param_1 + 8);
  pbVar5 = *(byte **)(param_1 + 0xc);
  *param_3 = true;
  if (pbVar3 < pbVar5) {
    uVar1 = (uint)*pbVar3;
  }
  else {
    uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);
    if (uVar1 == 0xffffffff) {
      return 0;
    }
    pbVar5 = *(byte **)(param_1 + 0xc);
    pbVar3 = *(byte **)(param_1 + 8);
  }
  iVar6 = 0;
LAB_002355f0:
  iVar4 = (int)pbVar5 - (int)pbVar3;
  if (iVar4 < 2) goto LAB_00235631;
  do {
    iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4);
    *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2;
    iVar6 = iVar6 + iVar2;
    if (iVar2 < iVar4) {
LAB_00235696:
      *param_3 = false;
      return iVar6;
    }
    while( true ) {
      uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);
      if (uVar1 == 0xffffffff) {
        return iVar6;
      }
      pbVar3 = *(byte **)(param_1 + 8);
      iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;
      if (1 < iVar4) break;
LAB_00235631:
      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {
        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;
        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      }
      else {
        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);
        if (iVar4 == -1) goto LAB_00235696;
      }
      pbVar5 = *(byte **)(param_1 + 0xc);
      iVar6 = iVar6 + 1;
      if (*(byte **)(param_1 + 8) < pbVar5) {
        pbVar3 = *(byte **)(param_1 + 8) + 1;
        *(byte **)(param_1 + 8) = pbVar3;
      }
      else {
        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);
        if (iVar4 == -1) {
          return iVar6;
        }
        pbVar3 = *(byte **)(param_1 + 8);
        pbVar5 = *(byte **)(param_1 + 0xc);
      }
      if (pbVar3 < pbVar5) {
        uVar1 = (uint)*pbVar3;
        goto LAB_002355f0;
      }
    }
  } while( true );
}



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

{
  uint uVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  byte *pbVar5;
  int iVar6;
  
  pbVar3 = (byte *)param_1[2];
  pbVar5 = (byte *)param_1[3];
  *param_3 = 1;
  if (pbVar3 < pbVar5) {
    uVar1 = (uint)*pbVar3;
  }
  else {
    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);
    if (uVar1 == 0xffffffff) {
      return 0;
    }
    pbVar5 = (byte *)param_1[3];
    pbVar3 = (byte *)param_1[2];
  }
  iVar6 = 0;
LAB_002355f0:
  iVar4 = (int)pbVar5 - (int)pbVar3;
  if (iVar4 < 2) goto LAB_00235631;
  do {
    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);
    param_1[2] = param_1[2] + iVar2;
    iVar6 = iVar6 + iVar2;
    if (iVar2 < iVar4) {
LAB_00235696:
      *param_3 = 0;
      return iVar6;
    }
    while( true ) {
      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);
      if (uVar1 == 0xffffffff) {
        return iVar6;
      }
      pbVar3 = (byte *)param_1[2];
      iVar4 = param_1[3] - (int)pbVar3;
      if (1 < iVar4) break;
LAB_00235631:
      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {
        *(undefined1 *)param_2[5] = (char)uVar1;
        param_2[5] = param_2[5] + 1;
      }
      else {
        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);
        if (iVar4 == -1) goto LAB_00235696;
      }
      pbVar5 = (byte *)param_1[3];
      iVar6 = iVar6 + 1;
      if ((byte *)param_1[2] < pbVar5) {
        pbVar3 = (byte *)param_1[2] + 1;
        param_1[2] = (int)pbVar3;
      }
      else {
        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);
        if (iVar4 == -1) {
          return iVar6;
        }
        pbVar3 = (byte *)param_1[2];
        pbVar5 = (byte *)param_1[3];
      }
      if (pbVar3 < pbVar5) {
        uVar1 = (uint)*pbVar3;
        goto LAB_002355f0;
      }
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x28]
MOV EBP,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESI + 0x8]
MOV EBX,dword ptr [ESI + 0xc]
MOV byte ptr [EAX],0x1
CMP EBX,EDX
JBE 0x002356a7
MOVZX EAX,byte ptr [EDX]
XOR EDI,EDI
LEA ESI,[ESI]
SUB EBX,EDX
CMP EBX,0x1
JLE 0x00235631
SUB ESP,0x4
MOV EAX,dword ptr [EBP]
PUSH EBX
PUSH EDX
PUSH EBP
CALL dword ptr [EAX + 0x30]
ADD dword ptr [ESI + 0x8],EAX
ADD EDI,EAX
ADD ESP,0x10
CMP EBX,EAX
JG 0x00235696
SUB ESP,0xc
MOV EAX,dword ptr [ESI]
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00235671
MOV EBX,dword ptr [ESI + 0xc]
MOV EDX,dword ptr [ESI + 0x8]
SUB EBX,EDX
CMP EBX,0x1
JG 0x002355f7
MOV EDX,dword ptr [EBP + 0x14]
CMP EDX,dword ptr [EBP + 0x18]
JNC 0x00235680
MOV byte ptr [EDX],AL
ADD dword ptr [EBP + 0x14],0x1
MOV EDX,dword ptr [ESI + 0x8]
MOV EBX,dword ptr [ESI + 0xc]
ADD EDI,0x1
CMP EDX,EBX
JNC 0x00235660
ADD EDX,0x1
MOV dword ptr [ESI + 0x8],EDX
CMP EBX,EDX
JBE 0x00235613
MOVZX EAX,byte ptr [EDX]
JMP 0x002355f0
SUB ESP,0xc
MOV EAX,dword ptr [ESI]
PUSH ESI
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x002356c5
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
MOVZX EAX,AL
MOV EDX,dword ptr [EBP]
PUSH EAX
PUSH EBP
CALL dword ptr [EDX + 0x34]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x0023563f
MOV EAX,dword ptr [ESP + 0x28]
MOV byte ptr [EAX],0x0
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EAX,dword ptr [ESI]
XOR EDI,EDI
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00235671
MOV EBX,dword ptr [ESI + 0xc]
MOV EDX,dword ptr [ESI + 0x8]
JMP 0x002355e7
MOV EDX,dword ptr [ESI + 0x8]
MOV EBX,dword ptr [ESI + 0xc]
JMP 0x00235652
(translation_unit "int FUN_002355c0(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_002355c0(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_002355c0(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  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (compound_statement "{\n    uVar1 = (uint)*pbVar3;\n  }" { (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(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 )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) }))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (labeled_statement "LAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;" statement_identifier : (expression_statement "iVar4 = (int)pbVar5 - (int)pbVar3;" (assignment_expression "iVar4 = (int)pbVar5 - (int)pbVar3" identifier = (binary_expression "(int)pbVar5 - (int)pbVar3" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (if_statement "if (iVar4 < 2) goto LAB_00235631;" if (parenthesized_expression "(iVar4 < 2)" ( (binary_expression "iVar4 < 2" identifier < number_literal) )) (goto_statement "goto LAB_00235631;" goto statement_identifier ;)) (do_statement "do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4)" identifier = (call_expression "(**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4)" (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,pbVar3,iVar4)" ( identifier , identifier , identifier )))) ;) (expression_statement "param_1[2] = param_1[2] + iVar2;" (assignment_expression "param_1[2] = param_1[2] + iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "iVar6 = iVar6 + iVar2;" (assignment_expression "iVar6 = iVar6 + iVar2" identifier = (binary_expression "iVar6 + iVar2" identifier + identifier)) ;) (if_statement "if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }" if (parenthesized_expression "(iVar2 < iVar4)" ( (binary_expression "iVar2 < iVar4" identifier < identifier) )) (compound_statement "{\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }" { (labeled_statement "LAB_00235696:\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 iVar6;" return identifier ;) })) (while_statement "while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(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 )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar4 = param_1[3] - (int)pbVar3;" (assignment_expression "iVar4 = param_1[3] - (int)pbVar3" identifier = (binary_expression "param_1[3] - (int)pbVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (1 < iVar4) break;" if (parenthesized_expression "(1 < iVar4)" ( (binary_expression "1 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" statement_identifier : (if_statement "if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" if (parenthesized_expression "((undefined1 *)param_2[5] < (undefined1 *)param_2[6])" ( (binary_expression "(undefined1 *)param_2[5] < (undefined1 *)param_2[6]" (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ])) < (cast_expression "(undefined1 *)param_2[6]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[6]" identifier [ number_literal ]))) )) (compound_statement "{\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }" { (expression_statement "*(undefined1 *)param_2[5] = (char)uVar1;" (assignment_expression "*(undefined1 *)param_2[5] = (char)uVar1" (pointer_expression "*(undefined1 *)param_2[5]" * (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2[5] = param_2[5] + 1;" (assignment_expression "param_2[5] = param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (binary_expression "param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" { (expression_statement "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff)" identifier = (call_expression "(**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff)" (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,uVar1 & 0xff)" ( identifier , (binary_expression "uVar1 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00235696;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00235696;" goto statement_identifier ;)) })))) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" if (parenthesized_expression "((byte *)param_1[2] < pbVar5)" ( (binary_expression "(byte *)param_1[2] < pbVar5" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }" { (expression_statement "pbVar3 = (byte *)param_1[2] + 1;" (assignment_expression "pbVar3 = (byte *)param_1[2] + 1" identifier = (binary_expression "(byte *)param_1[2] + 1" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "param_1[2] = (int)pbVar3;" (assignment_expression "param_1[2] = (int)pbVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" { (expression_statement "iVar4 = (**(code **)(*param_1 + 0x28))(param_1);" (assignment_expression "iVar4 = (**(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 (iVar4 == -1) {\n          return iVar6;\n        }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n          return iVar6;\n        }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (compound_statement "{\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" { (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (goto_statement "goto LAB_002355f0;" goto statement_identifier ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* int std::__copy_streambufs_eof<char, std::char_traits<char> >(std::streambuf*, std::streambuf*,\n   bool&) */\n\nint std::__copy_streambufs_eof<char,std::char_traits<char>>\n              (streambuf *param_1,streambuf *param_2,bool *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = *(byte **)(param_1 + 8);\n  pbVar5 = *(byte **)(param_1 + 0xc);\n  *param_3 = true;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = *(byte **)(param_1 + 0xc);\n    pbVar3 = *(byte **)(param_1 + 8);\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4);\n    *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = false;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = *(byte **)(param_1 + 8);\n      iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = *(byte **)(param_1 + 0xc);\n      iVar6 = iVar6 + 1;\n      if (*(byte **)(param_1 + 8) < pbVar5) {\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}\n\n" comment comment (declaration "int std::__copy_streambufs_eof<char,std::char_traits<char>>\n              (streambuf *param_1,streambuf *param_2,bool *param_3)\n\n{\n  uint uVar1;" primitive_type (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>\n              (streambuf *param_1,streambuf *param_2,bool *param_3)\n\n{\n  uint" identifier : : (function_declarator "char_traits<char>>\n              (streambuf *param_1,streambuf *param_2,bool *param_3)" identifier (ERROR "<char>>" < primitive_type >>) (parameter_list "(streambuf *param_1,streambuf *param_2,bool *param_3)" ( (parameter_declaration "streambuf *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "streambuf *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "bool *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) { identifier) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "pbVar3 = *(byte **)(param_1 + 8);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pbVar5 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar5 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = true;" (assignment_expression "*param_3 = true" (pointer_expression "*param_3" * identifier) = true) ;) (if_statement "if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = *(byte **)(param_1 + 0xc);\n    pbVar3 = *(byte **)(param_1 + 8);\n  }" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (compound_statement "{\n    uVar1 = (uint)*pbVar3;\n  }" { (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = *(byte **)(param_1 + 0xc);\n    pbVar3 = *(byte **)(param_1 + 8);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = *(byte **)(param_1 + 0xc);\n    pbVar3 = *(byte **)(param_1 + 8);\n  }" { (expression_statement "uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(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 )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar5 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pbVar3 = *(byte **)(param_1 + 8);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (labeled_statement "LAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;" statement_identifier : (expression_statement "iVar4 = (int)pbVar5 - (int)pbVar3;" (assignment_expression "iVar4 = (int)pbVar5 - (int)pbVar3" identifier = (binary_expression "(int)pbVar5 - (int)pbVar3" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (if_statement "if (iVar4 < 2) goto LAB_00235631;" if (parenthesized_expression "(iVar4 < 2)" ( (binary_expression "iVar4 < 2" identifier < number_literal) )) (goto_statement "goto LAB_00235631;" goto statement_identifier ;)) (do_statement "do {\n    iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4);\n    *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = false;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = *(byte **)(param_1 + 8);\n      iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = *(byte **)(param_1 + 0xc);\n      iVar6 = iVar6 + 1;\n      if (*(byte **)(param_1 + 8) < pbVar5) {\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4);\n    *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = false;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = *(byte **)(param_1 + 8);\n      iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = *(byte **)(param_1 + 0xc);\n      iVar6 = iVar6 + 1;\n      if (*(byte **)(param_1 + 8) < pbVar5) {\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4);" (assignment_expression "iVar2 = (**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4)" identifier = (call_expression "(**(code **)(*(int *)param_2 + 0x30))(param_2,pbVar3,iVar4)" (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,pbVar3,iVar4)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + iVar2" (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" (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 "iVar6 = iVar6 + iVar2;" (assignment_expression "iVar6 = iVar6 + iVar2" identifier = (binary_expression "iVar6 + iVar2" identifier + identifier)) ;) (if_statement "if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = false;\n      return iVar6;\n    }" if (parenthesized_expression "(iVar2 < iVar4)" ( (binary_expression "iVar2 < iVar4" identifier < identifier) )) (compound_statement "{\nLAB_00235696:\n      *param_3 = false;\n      return iVar6;\n    }" { (labeled_statement "LAB_00235696:\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 iVar6;" return identifier ;) })) (while_statement "while( true ) {\n      uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = *(byte **)(param_1 + 8);\n      iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = *(byte **)(param_1 + 0xc);\n      iVar6 = iVar6 + 1;\n      if (*(byte **)(param_1 + 8) < pbVar5) {\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = *(byte **)(param_1 + 8);\n      iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = *(byte **)(param_1 + 0xc);\n      iVar6 = iVar6 + 1;\n      if (*(byte **)(param_1 + 8) < pbVar5) {\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" { (expression_statement "uVar1 = (**(code **)(*(int *)param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(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 )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pbVar3 = *(byte **)(param_1 + 8);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) - (int)pbVar3" identifier = (binary_expression "*(int *)(param_1 + 0xc) - (int)pbVar3" (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) )))) - (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (1 < iVar4) break;" if (parenthesized_expression "(1 < iVar4)" ( (binary_expression "1 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00235631:\n      if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" statement_identifier : (if_statement "if (*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)) {\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" if (parenthesized_expression "(*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18))" ( (binary_expression "*(undefined1 **)(param_2 + 0x14) < *(undefined1 **)(param_2 + 0x18)" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < (pointer_expression "*(undefined1 **)(param_2 + 0x18)" * (cast_expression "(undefined1 **)(param_2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        **(undefined1 **)(param_2 + 0x14) = (char)uVar1;\n        *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      }" { (expression_statement "**(undefined1 **)(param_2 + 0x14) = (char)uVar1;" (assignment_expression "**(undefined1 **)(param_2 + 0x14) = (char)uVar1" (pointer_expression "**(undefined1 **)(param_2 + 0x14)" * (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" { (expression_statement "iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff);" (assignment_expression "iVar4 = (**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff)" identifier = (call_expression "(**(code **)(*(int *)param_2 + 0x34))(param_2,uVar1 & 0xff)" (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,uVar1 & 0xff)" ( identifier , (binary_expression "uVar1 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00235696;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00235696;" goto statement_identifier ;)) })))) (expression_statement "pbVar5 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar5 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (*(byte **)(param_1 + 8) < pbVar5) {\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }" if (parenthesized_expression "(*(byte **)(param_1 + 8) < pbVar5)" ( (binary_expression "*(byte **)(param_1 + 8) < pbVar5" (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        pbVar3 = *(byte **)(param_1 + 8) + 1;\n        *(byte **)(param_1 + 8) = pbVar3;\n      }" { (expression_statement "pbVar3 = *(byte **)(param_1 + 8) + 1;" (assignment_expression "pbVar3 = *(byte **)(param_1 + 8) + 1" identifier = (binary_expression "*(byte **)(param_1 + 8) + 1" (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(byte **)(param_1 + 8) = pbVar3;" (assignment_expression "*(byte **)(param_1 + 8) = pbVar3" (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = *(byte **)(param_1 + 8);\n        pbVar5 = *(byte **)(param_1 + 0xc);\n      }" { (expression_statement "iVar4 = (**(code **)(*(int *)param_1 + 0x28))(param_1);" (assignment_expression "iVar4 = (**(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 (iVar4 == -1) {\n          return iVar6;\n        }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n          return iVar6;\n        }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pbVar3 = *(byte **)(param_1 + 8);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pbVar5 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar5 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }))) (if_statement "if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (compound_statement "{\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" { (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (goto_statement "goto LAB_002355f0;" goto statement_identifier ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) (ERROR "}" }))
(translation_unit "int FUN_002355c0(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_002355c0(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_002355c0(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  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (compound_statement "{\n    uVar1 = (uint)*pbVar3;\n  }" { (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(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 )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) }))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (labeled_statement "LAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;" statement_identifier : (expression_statement "iVar4 = (int)pbVar5 - (int)pbVar3;" (assignment_expression "iVar4 = (int)pbVar5 - (int)pbVar3" identifier = (binary_expression "(int)pbVar5 - (int)pbVar3" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (if_statement "if (iVar4 < 2) goto LAB_00235631;" if (parenthesized_expression "(iVar4 < 2)" ( (binary_expression "iVar4 < 2" identifier < number_literal) )) (goto_statement "goto LAB_00235631;" goto statement_identifier ;)) (do_statement "do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4)" identifier = (call_expression "(**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4)" (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,pbVar3,iVar4)" ( identifier , identifier , identifier )))) ;) (expression_statement "param_1[2] = param_1[2] + iVar2;" (assignment_expression "param_1[2] = param_1[2] + iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "iVar6 = iVar6 + iVar2;" (assignment_expression "iVar6 = iVar6 + iVar2" identifier = (binary_expression "iVar6 + iVar2" identifier + identifier)) ;) (if_statement "if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }" if (parenthesized_expression "(iVar2 < iVar4)" ( (binary_expression "iVar2 < iVar4" identifier < identifier) )) (compound_statement "{\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }" { (labeled_statement "LAB_00235696:\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 iVar6;" return identifier ;) })) (while_statement "while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(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 )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar4 = param_1[3] - (int)pbVar3;" (assignment_expression "iVar4 = param_1[3] - (int)pbVar3" identifier = (binary_expression "param_1[3] - (int)pbVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (1 < iVar4) break;" if (parenthesized_expression "(1 < iVar4)" ( (binary_expression "1 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" statement_identifier : (if_statement "if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" if (parenthesized_expression "((undefined1 *)param_2[5] < (undefined1 *)param_2[6])" ( (binary_expression "(undefined1 *)param_2[5] < (undefined1 *)param_2[6]" (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ])) < (cast_expression "(undefined1 *)param_2[6]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[6]" identifier [ number_literal ]))) )) (compound_statement "{\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }" { (expression_statement "*(undefined1 *)param_2[5] = (char)uVar1;" (assignment_expression "*(undefined1 *)param_2[5] = (char)uVar1" (pointer_expression "*(undefined1 *)param_2[5]" * (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2[5] = param_2[5] + 1;" (assignment_expression "param_2[5] = param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (binary_expression "param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" { (expression_statement "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff)" identifier = (call_expression "(**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff)" (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,uVar1 & 0xff)" ( identifier , (binary_expression "uVar1 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00235696;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00235696;" goto statement_identifier ;)) })))) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" if (parenthesized_expression "((byte *)param_1[2] < pbVar5)" ( (binary_expression "(byte *)param_1[2] < pbVar5" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }" { (expression_statement "pbVar3 = (byte *)param_1[2] + 1;" (assignment_expression "pbVar3 = (byte *)param_1[2] + 1" identifier = (binary_expression "(byte *)param_1[2] + 1" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "param_1[2] = (int)pbVar3;" (assignment_expression "param_1[2] = (int)pbVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" { (expression_statement "iVar4 = (**(code **)(*param_1 + 0x28))(param_1);" (assignment_expression "iVar4 = (**(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 (iVar4 == -1) {\n          return iVar6;\n        }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n          return iVar6;\n        }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (compound_statement "{\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" { (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (goto_statement "goto LAB_002355f0;" goto statement_identifier ;) })) })) }) 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (do_statement do (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 , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (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 ;) })) (while_statement while (parenthesized_expression ( BOOL )) (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 ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + 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 , (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_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 < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (goto_statement goto statement_identifier ;) })) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_002355c0(int *param_1,int *param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_002355c0(int *param_1,int *param_2,undefined1 *param_3)" (identifier "FUN_002355c0") (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  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  int iVar6;\n  \n  pbVar3 = (byte *)param_1[2];\n  pbVar5 = (byte *)param_1[3];\n  *param_3 = 1;\n  if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }\n  iVar6 = 0;\nLAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;\n  if (iVar4 < 2) goto LAB_00235631;\n  do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (if_statement "if (pbVar3 < pbVar5) {\n    uVar1 = (uint)*pbVar3;\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" (if "if") (parenthesized_expression "(pbVar3 < pbVar5)" (( "(") (binary_expression "pbVar3 < pbVar5" (identifier "pbVar3") (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n    uVar1 = (uint)*pbVar3;\n  }" ({ "{") (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" (else "else") (compound_statement "{\n    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n    if (uVar1 == 0xffffffff) {\n      return 0;\n    }\n    pbVar5 = (byte *)param_1[3];\n    pbVar3 = (byte *)param_1[2];\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x24))(param_1)" (identifier "uVar1") (= "=") (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") () ")")))) (; ";")) (if_statement "if (uVar1 == 0xffffffff) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_002355f0:\n  iVar4 = (int)pbVar5 - (int)pbVar3;" (statement_identifier "LAB_002355f0") (: ":") (expression_statement "iVar4 = (int)pbVar5 - (int)pbVar3;" (assignment_expression "iVar4 = (int)pbVar5 - (int)pbVar3" (identifier "iVar4") (= "=") (binary_expression "(int)pbVar5 - (int)pbVar3" (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")) (- "-") (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3")))) (; ";"))) (if_statement "if (iVar4 < 2) goto LAB_00235631;" (if "if") (parenthesized_expression "(iVar4 < 2)" (( "(") (binary_expression "iVar4 < 2" (identifier "iVar4") (< "<") (number_literal "2")) () ")")) (goto_statement "goto LAB_00235631;" (goto "goto") (statement_identifier "LAB_00235631") (; ";"))) (do_statement "do {\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);\n    param_1[2] = param_1[2] + iVar2;\n    iVar6 = iVar6 + iVar2;\n    if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }\n    while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);" (assignment_expression "iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4)" (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,pbVar3,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "pbVar3") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "param_1[2] = param_1[2] + iVar2;" (assignment_expression "param_1[2] = param_1[2] + iVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_1[2] + iVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "iVar6 = iVar6 + iVar2;" (assignment_expression "iVar6 = iVar6 + iVar2" (identifier "iVar6") (= "=") (binary_expression "iVar6 + iVar2" (identifier "iVar6") (+ "+") (identifier "iVar2"))) (; ";")) (if_statement "if (iVar2 < iVar4) {\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }" (if "if") (parenthesized_expression "(iVar2 < iVar4)" (( "(") (binary_expression "iVar2 < iVar4" (identifier "iVar2") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\nLAB_00235696:\n      *param_3 = 0;\n      return iVar6;\n    }" ({ "{") (labeled_statement "LAB_00235696:\n      *param_3 = 0;" (statement_identifier "LAB_00235696") (: ":") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (while_statement "while( true ) {\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);\n      if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }\n      pbVar3 = (byte *)param_1[2];\n      iVar4 = param_1[3] - (int)pbVar3;\n      if (1 < iVar4) break;\nLAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }\n      pbVar5 = (byte *)param_1[3];\n      iVar6 = iVar6 + 1;\n      if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }\n      if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }\n    }" ({ "{") (expression_statement "uVar1 = (**(code **)(*param_1 + 0x24))(param_1);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x24))(param_1)" (identifier "uVar1") (= "=") (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") () ")")))) (; ";")) (if_statement "if (uVar1 == 0xffffffff) {\n        return iVar6;\n      }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        return iVar6;\n      }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "iVar4 = param_1[3] - (int)pbVar3;" (assignment_expression "iVar4 = param_1[3] - (int)pbVar3" (identifier "iVar4") (= "=") (binary_expression "param_1[3] - (int)pbVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (- "-") (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3")))) (; ";")) (if_statement "if (1 < iVar4) break;" (if "if") (parenthesized_expression "(1 < iVar4)" (( "(") (binary_expression "1 < iVar4" (number_literal "1") (< "<") (identifier "iVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_00235631:\n      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" (statement_identifier "LAB_00235631") (: ":") (if_statement "if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }\n      else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" (if "if") (parenthesized_expression "((undefined1 *)param_2[5] < (undefined1 *)param_2[6])" (( "(") (binary_expression "(undefined1 *)param_2[5] < (undefined1 *)param_2[6]" (cast_expression "(undefined1 *)param_2[5]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (< "<") (cast_expression "(undefined1 *)param_2[6]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n        *(undefined1 *)param_2[5] = (char)uVar1;\n        param_2[5] = param_2[5] + 1;\n      }" ({ "{") (expression_statement "*(undefined1 *)param_2[5] = (char)uVar1;" (assignment_expression "*(undefined1 *)param_2[5] = (char)uVar1" (pointer_expression "*(undefined1 *)param_2[5]" (* "*") (cast_expression "(undefined1 *)param_2[5]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")))) (= "=") (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1"))) (; ";")) (expression_statement "param_2[5] = param_2[5] + 1;" (assignment_expression "param_2[5] = param_2[5] + 1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_2[5] + 1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);\n        if (iVar4 == -1) goto LAB_00235696;\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff)" (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,uVar1 & 0xff)" (( "(") (identifier "param_2") (, ",") (binary_expression "uVar1 & 0xff" (identifier "uVar1") (& "&") (number_literal "0xff")) () ")")))) (; ";")) (if_statement "if (iVar4 == -1) goto LAB_00235696;" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00235696;" (goto "goto") (statement_identifier "LAB_00235696") (; ";"))) (} "}"))))) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((byte *)param_1[2] < pbVar5) {\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }\n      else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" (if "if") (parenthesized_expression "((byte *)param_1[2] < pbVar5)" (( "(") (binary_expression "(byte *)param_1[2] < pbVar5" (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n        pbVar3 = (byte *)param_1[2] + 1;\n        param_1[2] = (int)pbVar3;\n      }" ({ "{") (expression_statement "pbVar3 = (byte *)param_1[2] + 1;" (assignment_expression "pbVar3 = (byte *)param_1[2] + 1" (identifier "pbVar3") (= "=") (binary_expression "(byte *)param_1[2] + 1" (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[2] = (int)pbVar3;" (assignment_expression "param_1[2] = (int)pbVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3"))) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);\n        if (iVar4 == -1) {\n          return iVar6;\n        }\n        pbVar3 = (byte *)param_1[2];\n        pbVar5 = (byte *)param_1[3];\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_1 + 0x28))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 0x28))(param_1)" (identifier "iVar4") (= "=") (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 (iVar4 == -1) {\n          return iVar6;\n        }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          return iVar6;\n        }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "pbVar3 = (byte *)param_1[2];" (assignment_expression "pbVar3 = (byte *)param_1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")))) (if_statement "if (pbVar3 < pbVar5) {\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" (if "if") (parenthesized_expression "(pbVar3 < pbVar5)" (( "(") (binary_expression "pbVar3 < pbVar5" (identifier "pbVar3") (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n        uVar1 = (uint)*pbVar3;\n        goto LAB_002355f0;\n      }" ({ "{") (expression_statement "uVar1 = (uint)*pbVar3;" (assignment_expression "uVar1 = (uint)*pbVar3" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (goto_statement "goto LAB_002355f0;" (goto "goto") (statement_identifier "LAB_002355f0") (; ";")) (} "}"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

int std::__copy_streambufs_eof<char,std::char_traits<char>>
              (streambuf *var_1,streambuf *var_8,bool *param_3)

{
  uint var_4;
  int var_6;
  type_1 *var_2;
  int var_5;
  type_1 *var_3;
  int var_7;
  
  var_2 = *(type_1 **)(var_1 + 8);
  var_3 = *(type_1 **)(var_1 + 0xc);
  *param_3 = true;
  if (var_2 < var_3) {
    var_4 = (uint)*var_2;
  }
  else {
    var_4 = (**(type_2 **)(*(int *)var_1 + 0x24))(var_1);
    if (var_4 == 0xffffffff) {
      return 0;
    }
    var_3 = *(type_1 **)(var_1 + 0xc);
    var_2 = *(type_1 **)(var_1 + 8);
  }
  var_7 = 0;
LAB_002355f0:
  var_5 = (int)var_3 - (int)var_2;
  if (var_5 < 2) goto LAB_00235631;
  do {
    var_6 = (**(type_2 **)(*(int *)var_8 + 0x30))(var_8,var_2,var_5);
    *(int *)(var_1 + 8) = *(int *)(var_1 + 8) + var_6;
    var_7 = var_7 + var_6;
    if (var_6 < var_5) {
LAB_00235696:
      *param_3 = false;
      return var_7;
    }
    while( true ) {
      var_4 = (**(type_2 **)(*(int *)var_1 + 0x24))(var_1);
      if (var_4 == 0xffffffff) {
        return var_7;
      }
      var_2 = *(type_1 **)(var_1 + 8);
      var_5 = *(int *)(var_1 + 0xc) - (int)var_2;
      if (1 < var_5) break;
LAB_00235631:
      if (*(type_3 **)(var_8 + 0x14) < *(type_3 **)(var_8 + 0x18)) {
        **(type_3 **)(var_8 + 0x14) = (char)var_4;
        *(int *)(var_8 + 0x14) = *(int *)(var_8 + 0x14) + 1;
      }
      else {
        var_5 = (**(type_2 **)(*(int *)var_8 + 0x34))(var_8,var_4 & 0xff);
        if (var_5 == -1) goto LAB_00235696;
      }
      var_3 = *(type_1 **)(var_1 + 0xc);
      var_7 = var_7 + 1;
      if (*(type_1 **)(var_1 + 8) < var_3) {
        var_2 = *(type_1 **)(var_1 + 8) + 1;
        *(type_1 **)(var_1 + 8) = var_2;
      }
      else {
        var_5 = (**(type_2 **)(*(int *)var_1 + 0x28))(var_1);
        if (var_5 == -1) {
          return var_7;
        }
        var_2 = *(type_1 **)(var_1 + 8);
        var_3 = *(type_1 **)(var_1 + 0xc);
      }
      if (var_2 < var_3) {
        var_4 = (uint)*var_2;
        goto LAB_002355f0;
      }
    }
  } 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (do_statement body: (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) (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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (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)))) (while_statement condition: (parenthesized_expression (true)) body: (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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (break_statement)) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (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) (binary_expression left: (identifier) right: (number_literal)))))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (goto_statement label: (statement_identifier))))))) condition: (parenthesized_expression (true))))))

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

{
  uint uVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  byte *pbVar5;
  int iVar6;
  
  pbVar3 = (byte *)param_1[2];
  pbVar5 = (byte *)param_1[3];
  *param_3 = 1;
  if (pbVar3 < pbVar5) {
    uVar1 = (uint)*pbVar3;
  }
  else {
    uVar1 = (**(code **)(*param_1 + 0x24))(param_1);
    if (uVar1 == 0xffffffff) {
      return 0;
    }
    pbVar5 = (byte *)param_1[3];
    pbVar3 = (byte *)param_1[2];
  }
  iVar6 = 0;
LAB_002355f0:
  iVar4 = (int)pbVar5 - (int)pbVar3;
  if (iVar4 < 2) goto LAB_00235631;
  do {
    iVar2 = (**(code **)(*param_2 + 0x30))(param_2,pbVar3,iVar4);
    param_1[2] = param_1[2] + iVar2;
    iVar6 = iVar6 + iVar2;
    if (iVar2 < iVar4) {
LAB_00235696:
      *param_3 = 0;
      return iVar6;
    }
    while( true ) {
      uVar1 = (**(code **)(*param_1 + 0x24))(param_1);
      if (uVar1 == 0xffffffff) {
        return iVar6;
      }
      pbVar3 = (byte *)param_1[2];
      iVar4 = param_1[3] - (int)pbVar3;
      if (1 < iVar4) break;
LAB_00235631:
      if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {
        *(undefined1 *)param_2[5] = (char)uVar1;
        param_2[5] = param_2[5] + 1;
      }
      else {
        iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar1 & 0xff);
        if (iVar4 == -1) goto LAB_00235696;
      }
      pbVar5 = (byte *)param_1[3];
      iVar6 = iVar6 + 1;
      if ((byte *)param_1[2] < pbVar5) {
        pbVar3 = (byte *)param_1[2] + 1;
        param_1[2] = (int)pbVar3;
      }
      else {
        iVar4 = (**(code **)(*param_1 + 0x28))(param_1);
        if (iVar4 == -1) {
          return iVar6;
        }
        pbVar3 = (byte *)param_1[2];
        pbVar5 = (byte *)param_1[3];
      }
      if (pbVar3 < pbVar5) {
        uVar1 = (uint)*pbVar3;
        goto LAB_002355f0;
      }
    }
  } while( true );
}

