
void flipThisRun(bidi_char *from,uchar *level,wchar_t max,wchar_t count)

{
  byte *pbVar1;
  ushort uVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  undefined2 uVar6;
  wchar_t wVar7;
  bidi_char *pbVar8;
  wchar_t start;
  bidi_char *pbVar9;
  long lVar10;
  wchar_t wVar11;
  
  wVar7 = L'\0';
  start = L'\0';
  do {
    if (wVar7 <= start) {
      wVar7 = start;
    }
    if (count <= wVar7) {
      return;
    }
    wVar7 = findIndexOfRun(level,start,count,max);
    start = wVar7;
    if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {
      lVar10 = (long)(wVar7 + L'\x01');
      do {
        start = (wchar_t)lVar10;
        if (count <= start) break;
        pbVar1 = level + lVar10;
        lVar10 = lVar10 + 1;
      } while (max <= (int)(uint)*pbVar1);
    }
    if (wVar7 < start + L'\xffffffff') {
      pbVar8 = from + (start + L'\xffffffff');
      pbVar9 = from + wVar7;
      wVar11 = wVar7;
      do {
        uVar3 = pbVar8->origwc;
        uVar4 = pbVar8->wc;
        uVar2 = pbVar8->index;
        uVar5 = pbVar9->wc;
        pbVar8->origwc = pbVar9->origwc;
        pbVar8->wc = uVar5;
        uVar6 = *(undefined2 *)&pbVar9->field_0xa;
        pbVar8->index = pbVar9->index;
        *(undefined2 *)&pbVar8->field_0xa = uVar6;
        pbVar9->origwc = uVar3;
        pbVar9->wc = uVar4;
        pbVar9->index = uVar2;
        wVar11 = wVar11 + L'\x01';
        pbVar8 = pbVar8 + -1;
        pbVar9 = pbVar9 + 1;
      } while (wVar11 < ~wVar11 + wVar7 + start);
      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);
    }
  } while( true );
}



void FUN_0012052d(long param_1,long param_2,int param_3,int param_4)

{
  byte *pbVar1;
  undefined2 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  ulong uVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  ulong uVar10;
  ulong uVar11;
  uint uVar12;
  
  uVar7 = 0;
  uVar11 = 0;
  do {
    iVar6 = (int)uVar7;
    if ((int)uVar7 <= (int)uVar11) {
      iVar6 = (int)uVar11;
    }
    if (param_4 <= iVar6) {
      return;
    }
    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);
    iVar6 = (int)uVar7;
    if (iVar6 < param_4) {
      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {
        uVar11 = uVar7 & 0xffffffff;
      }
      else {
        uVar10 = (ulong)(iVar6 + 1);
        do {
          uVar11 = uVar10 & 0xffffffff;
          if (param_4 <= (int)uVar10) break;
          pbVar1 = (byte *)(param_2 + uVar10);
          uVar10 = uVar10 + 1;
        } while (param_3 <= (int)(uint)*pbVar1);
      }
    }
    else {
      uVar11 = uVar7 & 0xffffffff;
    }
    iVar5 = (int)uVar11;
    if (iVar6 < iVar5 + -1) {
      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);
      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);
      uVar7 = uVar7 & 0xffffffff;
      do {
        uVar3 = *(undefined4 *)puVar8;
        uVar4 = *(undefined4 *)((long)puVar8 + 4);
        uVar2 = *(undefined2 *)(puVar8 + 1);
        *puVar8 = *puVar9;
        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);
        *(undefined4 *)puVar9 = uVar3;
        *(undefined4 *)((long)puVar9 + 4) = uVar4;
        *(undefined2 *)(puVar9 + 1) = uVar2;
        uVar12 = (int)uVar7 + 1;
        uVar7 = (ulong)uVar12;
        puVar8 = (undefined8 *)((long)puVar8 + -0xc);
        puVar9 = (undefined8 *)((long)puVar9 + 0xc);
      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));
      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));
    }
  } while( true );
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV R13,RDI
MOV R12,RSI
MOV EBP,EDX
MOV EBX,ECX
MOV EAX,0x0
MOV ESI,0x0
JMP 0x001205cb
MOV ESI,EAX
LEA EDX,[RSI + -0x1]
CMP EAX,EDX
JGE 0x001205cb
MOVSXD RDX,EDX
LEA RDX,[RDX + RDX*0x2]
LEA RCX,[R13 + RDX*0x4]
MOVSXD RDX,EAX
LEA RDX,[RDX + RDX*0x2]
LEA RDX,[R13 + RDX*0x4]
MOV EDI,EAX
MOV R11D,EAX
MOV R15D,ESI
MOV R10D,dword ptr [RCX]
MOV R9D,dword ptr [RCX + 0x4]
MOVZX R8D,word ptr [RCX + 0x8]
MOV R14,qword ptr [RDX]
MOV qword ptr [RCX],R14
MOV R14D,dword ptr [RDX + 0x8]
MOV dword ptr [RCX + 0x8],R14D
MOV dword ptr [RDX],R10D
MOV dword ptr [RDX + 0x4],R9D
MOV word ptr [RDX + 0x8],R8W
ADD EDI,0x1
SUB RCX,0xc
ADD RDX,0xc
MOV R8D,EDI
NOT R8D
ADD R8D,EAX
ADD R8D,ESI
CMP EDI,R8D
JL 0x00120576
MOV EAX,0xfffffffe
SUB EAX,R11D
ADD R15D,EAX
SHR R15D,0x1
LEA EAX,[R11 + R15*0x1 + 0x1]
CMP ESI,EAX
CMOVGE EAX,ESI
CMP EAX,EBX
JGE 0x0012061d
MOV ECX,EBP
MOV EDX,EBX
MOV RDI,R12
CALL 0x001204fb
CMP EBX,EAX
JLE 0x0012054d
MOVSXD RDX,EAX
MOVZX EDX,byte ptr [R12 + RDX*0x1]
CMP EBP,EDX
JG 0x00120616
LEA EDX,[RAX + 0x1]
MOVSXD RDX,EDX
MOV ESI,EDX
CMP EBX,EDX
JLE 0x0012054f
MOVZX ECX,byte ptr [R12 + RDX*0x1]
ADD RDX,0x1
CMP ECX,EBP
JGE 0x001205fa
JMP 0x0012054f
MOV ESI,EAX
JMP 0x0012054f
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_0012052d(long param_1,long param_2,int param_3,int param_4)\n\n{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_0012052d(long param_1,long param_2,int param_3,int param_4)\n\n{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0012052d(long param_1,long param_2,int param_3,int param_4)" identifier (parameter_list "(long param_1,long param_2,int param_3,int param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );" do (compound_statement "{\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  }" { (expression_statement "iVar6 = (int)uVar7;" (assignment_expression "iVar6 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }" if (parenthesized_expression "((int)uVar7 <= (int)uVar11)" ( (binary_expression "(int)uVar7 <= (int)uVar11" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      iVar6 = (int)uVar11;\n    }" { (expression_statement "iVar6 = (int)uVar11;" (assignment_expression "iVar6 = (int)uVar11" identifier = (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (if_statement "if (param_4 <= iVar6) {\n      return;\n    }" if (parenthesized_expression "(param_4 <= iVar6)" ( (binary_expression "param_4 <= iVar6" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);" (assignment_expression "uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3)" identifier = (call_expression "FUN_001204fb(param_2,uVar11,param_4,param_3)" identifier (argument_list "(param_2,uVar11,param_4,param_3)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar6 = (int)uVar7;" (assignment_expression "iVar6 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }" if (parenthesized_expression "(iVar6 < param_4)" ( (binary_expression "iVar6 < param_4" identifier < identifier) )) (compound_statement "{\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }" { (if_statement "if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" if (parenthesized_expression "((int)(uint)*(byte *)(param_2 + iVar6) < param_3)" ( (binary_expression "(int)(uint)*(byte *)(param_2 + iVar6) < param_3" (binary_expression "(int)(uint)*(byte *)(param_2 + iVar6)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_2 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar6)" ( (binary_expression "param_2 + iVar6" identifier + identifier) )))) < identifier) )) (compound_statement "{\n        uVar11 = uVar7 & 0xffffffff;\n      }" { (expression_statement "uVar11 = uVar7 & 0xffffffff;" (assignment_expression "uVar11 = uVar7 & 0xffffffff" identifier = (binary_expression "uVar7 & 0xffffffff" identifier & number_literal)) ;) }) (else_clause "else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" else (compound_statement "{\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" { (expression_statement "uVar10 = (ulong)(iVar6 + 1);" (assignment_expression "uVar10 = (ulong)(iVar6 + 1)" identifier = (call_expression "(ulong)(iVar6 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) (do_statement "do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);" do (compound_statement "{\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        }" { (expression_statement "uVar11 = uVar10 & 0xffffffff;" (assignment_expression "uVar11 = uVar10 & 0xffffffff" identifier = (binary_expression "uVar10 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if (param_4 <= (int)uVar10) break;" if (parenthesized_expression "(param_4 <= (int)uVar10)" ( (binary_expression "param_4 <= (int)uVar10" identifier <= (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = (byte *)(param_2 + uVar10);" (assignment_expression "pbVar1 = (byte *)(param_2 + uVar10)" identifier = (cast_expression "(byte *)(param_2 + uVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + uVar10)" ( (binary_expression "param_2 + uVar10" identifier + identifier) )))) ;) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 <= (int)(uint)*pbVar1)" ( (binary_expression "param_3 <= (int)(uint)*pbVar1" identifier <= (binary_expression "(int)(uint)*pbVar1" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) )) ;) }))) }) (else_clause "else {\n      uVar11 = uVar7 & 0xffffffff;\n    }" else (compound_statement "{\n      uVar11 = uVar7 & 0xffffffff;\n    }" { (expression_statement "uVar11 = uVar7 & 0xffffffff;" (assignment_expression "uVar11 = uVar7 & 0xffffffff" identifier = (binary_expression "uVar7 & 0xffffffff" identifier & number_literal)) ;) }))) (expression_statement "iVar5 = (int)uVar11;" (assignment_expression "iVar5 = (int)uVar11" identifier = (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }" if (parenthesized_expression "(iVar6 < iVar5 + -1)" ( (binary_expression "iVar6 < iVar5 + -1" identifier < (binary_expression "iVar5 + -1" identifier + number_literal)) )) (compound_statement "{\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }" { (expression_statement "puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);" (assignment_expression "puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc)" identifier = (cast_expression "(undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (long)(iVar5 + -1) * 0xc)" ( (binary_expression "param_1 + (long)(iVar5 + -1) * 0xc" identifier + (binary_expression "(long)(iVar5 + -1) * 0xc" (cast_expression "(long)(iVar5 + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar5 + -1)" ( (binary_expression "iVar5 + -1" identifier + number_literal) ))) * number_literal)) )))) ;) (expression_statement "puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);" (assignment_expression "puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc)" identifier = (cast_expression "(undefined8 *)(param_1 + (long)iVar6 * 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (long)iVar6 * 0xc)" ( (binary_expression "param_1 + (long)iVar6 * 0xc" identifier + (binary_expression "(long)iVar6 * 0xc" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "uVar7 = uVar7 & 0xffffffff;" (assignment_expression "uVar7 = uVar7 & 0xffffffff" identifier = (binary_expression "uVar7 & 0xffffffff" identifier & number_literal)) ;) (do_statement "do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));" do (compound_statement "{\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      }" { (expression_statement "uVar3 = *(undefined4 *)puVar8;" (assignment_expression "uVar3 = *(undefined4 *)puVar8" identifier = (pointer_expression "*(undefined4 *)puVar8" * (cast_expression "(undefined4 *)puVar8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = *(undefined4 *)((long)puVar8 + 4);" (assignment_expression "uVar4 = *(undefined4 *)((long)puVar8 + 4)" identifier = (pointer_expression "*(undefined4 *)((long)puVar8 + 4)" * (cast_expression "(undefined4 *)((long)puVar8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar8 + 4)" ( (binary_expression "(long)puVar8 + 4" (cast_expression "(long)puVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined2 *)(puVar8 + 1);" (assignment_expression "uVar2 = *(undefined2 *)(puVar8 + 1)" identifier = (pointer_expression "*(undefined2 *)(puVar8 + 1)" * (cast_expression "(undefined2 *)(puVar8 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) ))))) ;) (expression_statement "*puVar8 = *puVar9;" (assignment_expression "*puVar8 = *puVar9" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);" (assignment_expression "*(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1)" (pointer_expression "*(undefined4 *)(puVar8 + 1)" * (cast_expression "(undefined4 *)(puVar8 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar9 + 1)" * (cast_expression "(undefined4 *)(puVar9 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 1)" ( (binary_expression "puVar9 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)puVar9 = uVar3;" (assignment_expression "*(undefined4 *)puVar9 = uVar3" (pointer_expression "*(undefined4 *)puVar9" * (cast_expression "(undefined4 *)puVar9" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)((long)puVar9 + 4) = uVar4;" (assignment_expression "*(undefined4 *)((long)puVar9 + 4) = uVar4" (pointer_expression "*(undefined4 *)((long)puVar9 + 4)" * (cast_expression "(undefined4 *)((long)puVar9 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar9 + 4)" ( (binary_expression "(long)puVar9 + 4" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(puVar9 + 1) = uVar2;" (assignment_expression "*(undefined2 *)(puVar9 + 1) = uVar2" (pointer_expression "*(undefined2 *)(puVar9 + 1)" * (cast_expression "(undefined2 *)(puVar9 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 1)" ( (binary_expression "puVar9 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar12 = (int)uVar7 + 1;" (assignment_expression "uVar12 = (int)uVar7 + 1" identifier = (binary_expression "(int)uVar7 + 1" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar7 = (ulong)uVar12;" (assignment_expression "uVar7 = (ulong)uVar12" identifier = (cast_expression "(ulong)uVar12" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "puVar8 = (undefined8 *)((long)puVar8 + -0xc);" (assignment_expression "puVar8 = (undefined8 *)((long)puVar8 + -0xc)" identifier = (cast_expression "(undefined8 *)((long)puVar8 + -0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar8 + -0xc)" ( (binary_expression "(long)puVar8 + -0xc" (cast_expression "(long)puVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "puVar9 = (undefined8 *)((long)puVar9 + 0xc);" (assignment_expression "puVar9 = (undefined8 *)((long)puVar9 + 0xc)" identifier = (cast_expression "(undefined8 *)((long)puVar9 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar9 + 0xc)" ( (binary_expression "(long)puVar9 + 0xc" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5))" ( (binary_expression "(int)uVar12 < (int)(~uVar12 + iVar6 + iVar5)" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(~uVar12 + iVar6 + iVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~uVar12 + iVar6 + iVar5)" ( (binary_expression "~uVar12 + iVar6 + iVar5" (binary_expression "~uVar12 + iVar6" (unary_expression "~uVar12" ~ identifier) + identifier) + identifier) )))) )) ;) (expression_statement "uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));" (assignment_expression "uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" identifier = (call_expression "(ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" ( (binary_expression "iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1)" (binary_expression "iVar6 + 1" identifier + number_literal) + (parenthesized_expression "((uint)(iVar5 + (-2 - iVar6)) >> 1)" ( (binary_expression "(uint)(iVar5 + (-2 - iVar6)) >> 1" (call_expression "(uint)(iVar5 + (-2 - iVar6))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 + (-2 - iVar6))" ( (binary_expression "iVar5 + (-2 - iVar6)" identifier + (parenthesized_expression "(-2 - iVar6)" ( (binary_expression "-2 - iVar6" number_literal - identifier) ))) ))) >> number_literal) ))) )))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void flipThisRun(bidi_char *from,uchar *level,wchar_t max,wchar_t count)\n\n{\n  byte *pbVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined2 uVar6;\n  wchar_t wVar7;\n  bidi_char *pbVar8;\n  wchar_t start;\n  bidi_char *pbVar9;\n  long lVar10;\n  wchar_t wVar11;\n  \n  wVar7 = L'\0';\n  start = L'\0';\n  do {\n    if (wVar7 <= start) {\n      wVar7 = start;\n    }\n    if (count <= wVar7) {\n      return;\n    }\n    wVar7 = findIndexOfRun(level,start,count,max);\n    start = wVar7;\n    if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }\n    if (wVar7 < start + L'\xffffffff') {\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }\n  } while( true );\n}\n\n" (function_definition "void flipThisRun(bidi_char *from,uchar *level,wchar_t max,wchar_t count)\n\n{\n  byte *pbVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined2 uVar6;\n  wchar_t wVar7;\n  bidi_char *pbVar8;\n  wchar_t start;\n  bidi_char *pbVar9;\n  long lVar10;\n  wchar_t wVar11;\n  \n  wVar7 = L'\0';\n  start = L'\0';\n  do {\n    if (wVar7 <= start) {\n      wVar7 = start;\n    }\n    if (count <= wVar7) {\n      return;\n    }\n    wVar7 = findIndexOfRun(level,start,count,max);\n    start = wVar7;\n    if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }\n    if (wVar7 < start + L'\xffffffff') {\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }\n  } while( true );\n}" primitive_type (function_declarator "flipThisRun(bidi_char *from,uchar *level,wchar_t max,wchar_t count)" identifier (parameter_list "(bidi_char *from,uchar *level,wchar_t max,wchar_t count)" ( (parameter_declaration "bidi_char *from" type_identifier (pointer_declarator "*from" * identifier)) , (parameter_declaration "uchar *level" type_identifier (pointer_declarator "*level" * identifier)) , (parameter_declaration "wchar_t max" type_identifier identifier) , (parameter_declaration "wchar_t count" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined2 uVar6;\n  wchar_t wVar7;\n  bidi_char *pbVar8;\n  wchar_t start;\n  bidi_char *pbVar9;\n  long lVar10;\n  wchar_t wVar11;\n  \n  wVar7 = L'\0';\n  start = L'\0';\n  do {\n    if (wVar7 <= start) {\n      wVar7 = start;\n    }\n    if (count <= wVar7) {\n      return;\n    }\n    wVar7 = findIndexOfRun(level,start,count,max);\n    start = wVar7;\n    if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }\n    if (wVar7 < start + L'\xffffffff') {\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined2 uVar6;" type_identifier identifier ;) (declaration "wchar_t wVar7;" type_identifier identifier ;) (declaration "bidi_char *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "wchar_t start;" type_identifier identifier ;) (declaration "bidi_char *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "wchar_t wVar11;" type_identifier identifier ;) (expression_statement "wVar7 = L'\0';" (assignment_expression "wVar7 = L'\0'" identifier = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "start = L'\0';" (assignment_expression "start = L'\0'" identifier = (char_literal "L'\0'" L' escape_sequence ')) ;) (do_statement "do {\n    if (wVar7 <= start) {\n      wVar7 = start;\n    }\n    if (count <= wVar7) {\n      return;\n    }\n    wVar7 = findIndexOfRun(level,start,count,max);\n    start = wVar7;\n    if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }\n    if (wVar7 < start + L'\xffffffff') {\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }\n  } while( true );" do (compound_statement "{\n    if (wVar7 <= start) {\n      wVar7 = start;\n    }\n    if (count <= wVar7) {\n      return;\n    }\n    wVar7 = findIndexOfRun(level,start,count,max);\n    start = wVar7;\n    if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }\n    if (wVar7 < start + L'\xffffffff') {\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }\n  }" { (if_statement "if (wVar7 <= start) {\n      wVar7 = start;\n    }" if (parenthesized_expression "(wVar7 <= start)" ( (binary_expression "wVar7 <= start" identifier <= identifier) )) (compound_statement "{\n      wVar7 = start;\n    }" { (expression_statement "wVar7 = start;" (assignment_expression "wVar7 = start" identifier = identifier) ;) })) (if_statement "if (count <= wVar7) {\n      return;\n    }" if (parenthesized_expression "(count <= wVar7)" ( (binary_expression "count <= wVar7" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "wVar7 = findIndexOfRun(level,start,count,max);" (assignment_expression "wVar7 = findIndexOfRun(level,start,count,max)" identifier = (call_expression "findIndexOfRun(level,start,count,max)" identifier (argument_list "(level,start,count,max)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "start = wVar7;" (assignment_expression "start = wVar7" identifier = identifier) ;) (if_statement "if ((wVar7 < count) && (max <= (int)(uint)level[wVar7])) {\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }" if (parenthesized_expression "((wVar7 < count) && (max <= (int)(uint)level[wVar7]))" ( (binary_expression "(wVar7 < count) && (max <= (int)(uint)level[wVar7])" (parenthesized_expression "(wVar7 < count)" ( (binary_expression "wVar7 < count" identifier < identifier) )) && (parenthesized_expression "(max <= (int)(uint)level[wVar7])" ( (binary_expression "max <= (int)(uint)level[wVar7]" identifier <= (cast_expression "(int)(uint)level[wVar7]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)level[wVar7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "level[wVar7]" identifier [ identifier ])))) ))) )) (compound_statement "{\n      lVar10 = (long)(wVar7 + L'\x01');\n      do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);\n    }" { (expression_statement "lVar10 = (long)(wVar7 + L'\x01');" (assignment_expression "lVar10 = (long)(wVar7 + L'\x01')" identifier = (cast_expression "(long)(wVar7 + L'\x01')" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(wVar7 + L'\x01')" ( (binary_expression "wVar7 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence ')) )))) ;) (do_statement "do {\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      } while (max <= (int)(uint)*pbVar1);" do (compound_statement "{\n        start = (wchar_t)lVar10;\n        if (count <= start) break;\n        pbVar1 = level + lVar10;\n        lVar10 = lVar10 + 1;\n      }" { (expression_statement "start = (wchar_t)lVar10;" (assignment_expression "start = (wchar_t)lVar10" identifier = (cast_expression "(wchar_t)lVar10" ( (type_descriptor "wchar_t" type_identifier) ) identifier)) ;) (if_statement "if (count <= start) break;" if (parenthesized_expression "(count <= start)" ( (binary_expression "count <= start" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = level + lVar10;" (assignment_expression "pbVar1 = level + lVar10" identifier = (binary_expression "level + lVar10" identifier + identifier)) ;) (expression_statement "lVar10 = lVar10 + 1;" (assignment_expression "lVar10 = lVar10 + 1" identifier = (binary_expression "lVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(max <= (int)(uint)*pbVar1)" ( (binary_expression "max <= (int)(uint)*pbVar1" identifier <= (binary_expression "(int)(uint)*pbVar1" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) )) ;) })) (if_statement "if (wVar7 < start + L'\xffffffff') {\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }" if (parenthesized_expression "(wVar7 < start + L'\xffffffff')" ( (binary_expression "wVar7 < start + L'\xffffffff'" identifier < (binary_expression "start + L'\xffffffff'" identifier + (char_literal "L'\xffffffff'" L' escape_sequence character character character character '))) )) (compound_statement "{\n      pbVar8 = from + (start + L'\xffffffff');\n      pbVar9 = from + wVar7;\n      wVar11 = wVar7;\n      do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);\n      wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);\n    }" { (expression_statement "pbVar8 = from + (start + L'\xffffffff');" (assignment_expression "pbVar8 = from + (start + L'\xffffffff')" identifier = (binary_expression "from + (start + L'\xffffffff')" identifier + (parenthesized_expression "(start + L'\xffffffff')" ( (binary_expression "start + L'\xffffffff'" identifier + (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )))) ;) (expression_statement "pbVar9 = from + wVar7;" (assignment_expression "pbVar9 = from + wVar7" identifier = (binary_expression "from + wVar7" identifier + identifier)) ;) (expression_statement "wVar11 = wVar7;" (assignment_expression "wVar11 = wVar7" identifier = identifier) ;) (do_statement "do {\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      } while (wVar11 < ~wVar11 + wVar7 + start);" do (compound_statement "{\n        uVar3 = pbVar8->origwc;\n        uVar4 = pbVar8->wc;\n        uVar2 = pbVar8->index;\n        uVar5 = pbVar9->wc;\n        pbVar8->origwc = pbVar9->origwc;\n        pbVar8->wc = uVar5;\n        uVar6 = *(undefined2 *)&pbVar9->field_0xa;\n        pbVar8->index = pbVar9->index;\n        *(undefined2 *)&pbVar8->field_0xa = uVar6;\n        pbVar9->origwc = uVar3;\n        pbVar9->wc = uVar4;\n        pbVar9->index = uVar2;\n        wVar11 = wVar11 + L'\x01';\n        pbVar8 = pbVar8 + -1;\n        pbVar9 = pbVar9 + 1;\n      }" { (expression_statement "uVar3 = pbVar8->origwc;" (assignment_expression "uVar3 = pbVar8->origwc" identifier = (field_expression "pbVar8->origwc" identifier -> field_identifier)) ;) (expression_statement "uVar4 = pbVar8->wc;" (assignment_expression "uVar4 = pbVar8->wc" identifier = (field_expression "pbVar8->wc" identifier -> field_identifier)) ;) (expression_statement "uVar2 = pbVar8->index;" (assignment_expression "uVar2 = pbVar8->index" identifier = (field_expression "pbVar8->index" identifier -> field_identifier)) ;) (expression_statement "uVar5 = pbVar9->wc;" (assignment_expression "uVar5 = pbVar9->wc" identifier = (field_expression "pbVar9->wc" identifier -> field_identifier)) ;) (expression_statement "pbVar8->origwc = pbVar9->origwc;" (assignment_expression "pbVar8->origwc = pbVar9->origwc" (field_expression "pbVar8->origwc" identifier -> field_identifier) = (field_expression "pbVar9->origwc" identifier -> field_identifier)) ;) (expression_statement "pbVar8->wc = uVar5;" (assignment_expression "pbVar8->wc = uVar5" (field_expression "pbVar8->wc" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar6 = *(undefined2 *)&pbVar9->field_0xa;" (assignment_expression "uVar6 = *(undefined2 *)&pbVar9->field_0xa" identifier = (pointer_expression "*(undefined2 *)&pbVar9->field_0xa" * (cast_expression "(undefined2 *)&pbVar9->field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar9->field_0xa" & (field_expression "pbVar9->field_0xa" identifier -> field_identifier))))) ;) (expression_statement "pbVar8->index = pbVar9->index;" (assignment_expression "pbVar8->index = pbVar9->index" (field_expression "pbVar8->index" identifier -> field_identifier) = (field_expression "pbVar9->index" identifier -> field_identifier)) ;) (expression_statement "*(undefined2 *)&pbVar8->field_0xa = uVar6;" (assignment_expression "*(undefined2 *)&pbVar8->field_0xa = uVar6" (pointer_expression "*(undefined2 *)&pbVar8->field_0xa" * (cast_expression "(undefined2 *)&pbVar8->field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar8->field_0xa" & (field_expression "pbVar8->field_0xa" identifier -> field_identifier)))) = identifier) ;) (expression_statement "pbVar9->origwc = uVar3;" (assignment_expression "pbVar9->origwc = uVar3" (field_expression "pbVar9->origwc" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar9->wc = uVar4;" (assignment_expression "pbVar9->wc = uVar4" (field_expression "pbVar9->wc" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar9->index = uVar2;" (assignment_expression "pbVar9->index = uVar2" (field_expression "pbVar9->index" identifier -> field_identifier) = identifier) ;) (expression_statement "wVar11 = wVar11 + L'\x01';" (assignment_expression "wVar11 = wVar11 + L'\x01'" identifier = (binary_expression "wVar11 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence '))) ;) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) (expression_statement "pbVar9 = pbVar9 + 1;" (assignment_expression "pbVar9 = pbVar9 + 1" identifier = (binary_expression "pbVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(wVar11 < ~wVar11 + wVar7 + start)" ( (binary_expression "wVar11 < ~wVar11 + wVar7 + start" identifier < (binary_expression "~wVar11 + wVar7 + start" (binary_expression "~wVar11 + wVar7" (unary_expression "~wVar11" ~ identifier) + identifier) + identifier)) )) ;) (expression_statement "wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1);" (assignment_expression "wVar7 = wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1)" identifier = (binary_expression "wVar7 + L'\x01' + ((uint)(start + (-2 - wVar7)) >> 1)" (binary_expression "wVar7 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence ')) + (parenthesized_expression "((uint)(start + (-2 - wVar7)) >> 1)" ( (binary_expression "(uint)(start + (-2 - wVar7)) >> 1" (call_expression "(uint)(start + (-2 - wVar7))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(start + (-2 - wVar7))" ( (binary_expression "start + (-2 - wVar7)" identifier + (parenthesized_expression "(-2 - wVar7)" ( (binary_expression "-2 - wVar7" number_literal - identifier) ))) ))) >> number_literal) )))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_0012052d(long param_1,long param_2,int param_3,int param_4)\n\n{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_0012052d(long param_1,long param_2,int param_3,int param_4)\n\n{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0012052d(long param_1,long param_2,int param_3,int param_4)" identifier (parameter_list "(long param_1,long param_2,int param_3,int param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );" do (compound_statement "{\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  }" { (expression_statement "iVar6 = (int)uVar7;" (assignment_expression "iVar6 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }" if (parenthesized_expression "((int)uVar7 <= (int)uVar11)" ( (binary_expression "(int)uVar7 <= (int)uVar11" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      iVar6 = (int)uVar11;\n    }" { (expression_statement "iVar6 = (int)uVar11;" (assignment_expression "iVar6 = (int)uVar11" identifier = (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (if_statement "if (param_4 <= iVar6) {\n      return;\n    }" if (parenthesized_expression "(param_4 <= iVar6)" ( (binary_expression "param_4 <= iVar6" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);" (assignment_expression "uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3)" identifier = (call_expression "FUN_001204fb(param_2,uVar11,param_4,param_3)" identifier (argument_list "(param_2,uVar11,param_4,param_3)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar6 = (int)uVar7;" (assignment_expression "iVar6 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }" if (parenthesized_expression "(iVar6 < param_4)" ( (binary_expression "iVar6 < param_4" identifier < identifier) )) (compound_statement "{\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }" { (if_statement "if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" if (parenthesized_expression "((int)(uint)*(byte *)(param_2 + iVar6) < param_3)" ( (binary_expression "(int)(uint)*(byte *)(param_2 + iVar6) < param_3" (binary_expression "(int)(uint)*(byte *)(param_2 + iVar6)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_2 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar6)" ( (binary_expression "param_2 + iVar6" identifier + identifier) )))) < identifier) )) (compound_statement "{\n        uVar11 = uVar7 & 0xffffffff;\n      }" { (expression_statement "uVar11 = uVar7 & 0xffffffff;" (assignment_expression "uVar11 = uVar7 & 0xffffffff" identifier = (binary_expression "uVar7 & 0xffffffff" identifier & number_literal)) ;) }) (else_clause "else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" else (compound_statement "{\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" { (expression_statement "uVar10 = (ulong)(iVar6 + 1);" (assignment_expression "uVar10 = (ulong)(iVar6 + 1)" identifier = (call_expression "(ulong)(iVar6 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) (do_statement "do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);" do (compound_statement "{\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        }" { (expression_statement "uVar11 = uVar10 & 0xffffffff;" (assignment_expression "uVar11 = uVar10 & 0xffffffff" identifier = (binary_expression "uVar10 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if (param_4 <= (int)uVar10) break;" if (parenthesized_expression "(param_4 <= (int)uVar10)" ( (binary_expression "param_4 <= (int)uVar10" identifier <= (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = (byte *)(param_2 + uVar10);" (assignment_expression "pbVar1 = (byte *)(param_2 + uVar10)" identifier = (cast_expression "(byte *)(param_2 + uVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + uVar10)" ( (binary_expression "param_2 + uVar10" identifier + identifier) )))) ;) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 <= (int)(uint)*pbVar1)" ( (binary_expression "param_3 <= (int)(uint)*pbVar1" identifier <= (binary_expression "(int)(uint)*pbVar1" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) )) ;) }))) }) (else_clause "else {\n      uVar11 = uVar7 & 0xffffffff;\n    }" else (compound_statement "{\n      uVar11 = uVar7 & 0xffffffff;\n    }" { (expression_statement "uVar11 = uVar7 & 0xffffffff;" (assignment_expression "uVar11 = uVar7 & 0xffffffff" identifier = (binary_expression "uVar7 & 0xffffffff" identifier & number_literal)) ;) }))) (expression_statement "iVar5 = (int)uVar11;" (assignment_expression "iVar5 = (int)uVar11" identifier = (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }" if (parenthesized_expression "(iVar6 < iVar5 + -1)" ( (binary_expression "iVar6 < iVar5 + -1" identifier < (binary_expression "iVar5 + -1" identifier + number_literal)) )) (compound_statement "{\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }" { (expression_statement "puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);" (assignment_expression "puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc)" identifier = (cast_expression "(undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (long)(iVar5 + -1) * 0xc)" ( (binary_expression "param_1 + (long)(iVar5 + -1) * 0xc" identifier + (binary_expression "(long)(iVar5 + -1) * 0xc" (cast_expression "(long)(iVar5 + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar5 + -1)" ( (binary_expression "iVar5 + -1" identifier + number_literal) ))) * number_literal)) )))) ;) (expression_statement "puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);" (assignment_expression "puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc)" identifier = (cast_expression "(undefined8 *)(param_1 + (long)iVar6 * 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (long)iVar6 * 0xc)" ( (binary_expression "param_1 + (long)iVar6 * 0xc" identifier + (binary_expression "(long)iVar6 * 0xc" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "uVar7 = uVar7 & 0xffffffff;" (assignment_expression "uVar7 = uVar7 & 0xffffffff" identifier = (binary_expression "uVar7 & 0xffffffff" identifier & number_literal)) ;) (do_statement "do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));" do (compound_statement "{\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      }" { (expression_statement "uVar3 = *(undefined4 *)puVar8;" (assignment_expression "uVar3 = *(undefined4 *)puVar8" identifier = (pointer_expression "*(undefined4 *)puVar8" * (cast_expression "(undefined4 *)puVar8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = *(undefined4 *)((long)puVar8 + 4);" (assignment_expression "uVar4 = *(undefined4 *)((long)puVar8 + 4)" identifier = (pointer_expression "*(undefined4 *)((long)puVar8 + 4)" * (cast_expression "(undefined4 *)((long)puVar8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar8 + 4)" ( (binary_expression "(long)puVar8 + 4" (cast_expression "(long)puVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined2 *)(puVar8 + 1);" (assignment_expression "uVar2 = *(undefined2 *)(puVar8 + 1)" identifier = (pointer_expression "*(undefined2 *)(puVar8 + 1)" * (cast_expression "(undefined2 *)(puVar8 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) ))))) ;) (expression_statement "*puVar8 = *puVar9;" (assignment_expression "*puVar8 = *puVar9" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);" (assignment_expression "*(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1)" (pointer_expression "*(undefined4 *)(puVar8 + 1)" * (cast_expression "(undefined4 *)(puVar8 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar9 + 1)" * (cast_expression "(undefined4 *)(puVar9 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 1)" ( (binary_expression "puVar9 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)puVar9 = uVar3;" (assignment_expression "*(undefined4 *)puVar9 = uVar3" (pointer_expression "*(undefined4 *)puVar9" * (cast_expression "(undefined4 *)puVar9" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)((long)puVar9 + 4) = uVar4;" (assignment_expression "*(undefined4 *)((long)puVar9 + 4) = uVar4" (pointer_expression "*(undefined4 *)((long)puVar9 + 4)" * (cast_expression "(undefined4 *)((long)puVar9 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar9 + 4)" ( (binary_expression "(long)puVar9 + 4" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(puVar9 + 1) = uVar2;" (assignment_expression "*(undefined2 *)(puVar9 + 1) = uVar2" (pointer_expression "*(undefined2 *)(puVar9 + 1)" * (cast_expression "(undefined2 *)(puVar9 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 1)" ( (binary_expression "puVar9 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar12 = (int)uVar7 + 1;" (assignment_expression "uVar12 = (int)uVar7 + 1" identifier = (binary_expression "(int)uVar7 + 1" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar7 = (ulong)uVar12;" (assignment_expression "uVar7 = (ulong)uVar12" identifier = (cast_expression "(ulong)uVar12" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "puVar8 = (undefined8 *)((long)puVar8 + -0xc);" (assignment_expression "puVar8 = (undefined8 *)((long)puVar8 + -0xc)" identifier = (cast_expression "(undefined8 *)((long)puVar8 + -0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar8 + -0xc)" ( (binary_expression "(long)puVar8 + -0xc" (cast_expression "(long)puVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "puVar9 = (undefined8 *)((long)puVar9 + 0xc);" (assignment_expression "puVar9 = (undefined8 *)((long)puVar9 + 0xc)" identifier = (cast_expression "(undefined8 *)((long)puVar9 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar9 + 0xc)" ( (binary_expression "(long)puVar9 + 0xc" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5))" ( (binary_expression "(int)uVar12 < (int)(~uVar12 + iVar6 + iVar5)" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(~uVar12 + iVar6 + iVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~uVar12 + iVar6 + iVar5)" ( (binary_expression "~uVar12 + iVar6 + iVar5" (binary_expression "~uVar12 + iVar6" (unary_expression "~uVar12" ~ identifier) + identifier) + identifier) )))) )) ;) (expression_statement "uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));" (assignment_expression "uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" identifier = (call_expression "(ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" ( (binary_expression "iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1)" (binary_expression "iVar6 + 1" identifier + number_literal) + (parenthesized_expression "((uint)(iVar5 + (-2 - iVar6)) >> 1)" ( (binary_expression "(uint)(iVar5 + (-2 - iVar6)) >> 1" (call_expression "(uint)(iVar5 + (-2 - iVar6))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 + (-2 - iVar6))" ( (binary_expression "iVar5 + (-2 - iVar6)" identifier + (parenthesized_expression "(-2 - iVar6)" ( (binary_expression "-2 - iVar6" number_literal - identifier) ))) ))) >> number_literal) ))) )))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * IDENT)) )) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (unary_expression ~ IDENT) + IDENT) + IDENT) )))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) ))) >> LIT) ))) )))) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_0012052d(long param_1,long param_2,int param_3,int param_4)\n\n{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_0012052d(long param_1,long param_2,int param_3,int param_4)" (identifier "FUN_0012052d") (parameter_list "(long param_1,long param_2,int param_3,int param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  undefined2 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  \n  uVar7 = 0;\n  uVar11 = 0;\n  do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "undefined2 uVar2;" (type_identifier "undefined2") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined8 *puVar9;" (type_identifier "undefined8") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "ulong uVar10;" (type_identifier "ulong") (identifier "uVar10") (; ";")) (declaration "ulong uVar11;" (type_identifier "ulong") (identifier "uVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar6 = (int)uVar7;\n    if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }\n    if (param_4 <= iVar6) {\n      return;\n    }\n    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);\n    iVar6 = (int)uVar7;\n    if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }\n    iVar5 = (int)uVar11;\n    if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }\n  }" ({ "{") (expression_statement "iVar6 = (int)uVar7;" (assignment_expression "iVar6 = (int)uVar7" (identifier "iVar6") (= "=") (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7"))) (; ";")) (if_statement "if ((int)uVar7 <= (int)uVar11) {\n      iVar6 = (int)uVar11;\n    }" (if "if") (parenthesized_expression "((int)uVar7 <= (int)uVar11)" (( "(") (binary_expression "(int)uVar7 <= (int)uVar11" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (<= "<=") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) () ")")) (compound_statement "{\n      iVar6 = (int)uVar11;\n    }" ({ "{") (expression_statement "iVar6 = (int)uVar11;" (assignment_expression "iVar6 = (int)uVar11" (identifier "iVar6") (= "=") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) (; ";")) (} "}"))) (if_statement "if (param_4 <= iVar6) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_4 <= iVar6)" (( "(") (binary_expression "param_4 <= iVar6" (identifier "param_4") (<= "<=") (identifier "iVar6")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);" (assignment_expression "uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3)" (identifier "uVar7") (= "=") (call_expression "FUN_001204fb(param_2,uVar11,param_4,param_3)" (identifier "FUN_001204fb") (argument_list "(param_2,uVar11,param_4,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "uVar11") (, ",") (identifier "param_4") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar6 = (int)uVar7;" (assignment_expression "iVar6 = (int)uVar7" (identifier "iVar6") (= "=") (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7"))) (; ";")) (if_statement "if (iVar6 < param_4) {\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }\n    else {\n      uVar11 = uVar7 & 0xffffffff;\n    }" (if "if") (parenthesized_expression "(iVar6 < param_4)" (( "(") (binary_expression "iVar6 < param_4" (identifier "iVar6") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }\n    }" ({ "{") (if_statement "if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {\n        uVar11 = uVar7 & 0xffffffff;\n      }\n      else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" (if "if") (parenthesized_expression "((int)(uint)*(byte *)(param_2 + iVar6) < param_3)" (( "(") (binary_expression "(int)(uint)*(byte *)(param_2 + iVar6) < param_3" (binary_expression "(int)(uint)*(byte *)(param_2 + iVar6)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)(param_2 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar6)" (( "(") (binary_expression "param_2 + iVar6" (identifier "param_2") (+ "+") (identifier "iVar6")) () ")")))) (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n        uVar11 = uVar7 & 0xffffffff;\n      }" ({ "{") (expression_statement "uVar11 = uVar7 & 0xffffffff;" (assignment_expression "uVar11 = uVar7 & 0xffffffff" (identifier "uVar11") (= "=") (binary_expression "uVar7 & 0xffffffff" (identifier "uVar7") (& "&") (number_literal "0xffffffff"))) (; ";")) (} "}")) (else_clause "else {\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" (else "else") (compound_statement "{\n        uVar10 = (ulong)(iVar6 + 1);\n        do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);\n      }" ({ "{") (expression_statement "uVar10 = (ulong)(iVar6 + 1);" (assignment_expression "uVar10 = (ulong)(iVar6 + 1)" (identifier "uVar10") (= "=") (call_expression "(ulong)(iVar6 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar6 + 1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")))) (; ";")) (do_statement "do {\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        } while (param_3 <= (int)(uint)*pbVar1);" (do "do") (compound_statement "{\n          uVar11 = uVar10 & 0xffffffff;\n          if (param_4 <= (int)uVar10) break;\n          pbVar1 = (byte *)(param_2 + uVar10);\n          uVar10 = uVar10 + 1;\n        }" ({ "{") (expression_statement "uVar11 = uVar10 & 0xffffffff;" (assignment_expression "uVar11 = uVar10 & 0xffffffff" (identifier "uVar11") (= "=") (binary_expression "uVar10 & 0xffffffff" (identifier "uVar10") (& "&") (number_literal "0xffffffff"))) (; ";")) (if_statement "if (param_4 <= (int)uVar10) break;" (if "if") (parenthesized_expression "(param_4 <= (int)uVar10)" (( "(") (binary_expression "param_4 <= (int)uVar10" (identifier "param_4") (<= "<=") (cast_expression "(int)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar10"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar1 = (byte *)(param_2 + uVar10);" (assignment_expression "pbVar1 = (byte *)(param_2 + uVar10)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)(param_2 + uVar10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + uVar10)" (( "(") (binary_expression "param_2 + uVar10" (identifier "param_2") (+ "+") (identifier "uVar10")) () ")")))) (; ";")) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" (identifier "uVar10") (= "=") (binary_expression "uVar10 + 1" (identifier "uVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 <= (int)(uint)*pbVar1)" (( "(") (binary_expression "param_3 <= (int)(uint)*pbVar1" (identifier "param_3") (<= "<=") (binary_expression "(int)(uint)*pbVar1" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "pbVar1"))) () ")")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      uVar11 = uVar7 & 0xffffffff;\n    }" (else "else") (compound_statement "{\n      uVar11 = uVar7 & 0xffffffff;\n    }" ({ "{") (expression_statement "uVar11 = uVar7 & 0xffffffff;" (assignment_expression "uVar11 = uVar7 & 0xffffffff" (identifier "uVar11") (= "=") (binary_expression "uVar7 & 0xffffffff" (identifier "uVar7") (& "&") (number_literal "0xffffffff"))) (; ";")) (} "}")))) (expression_statement "iVar5 = (int)uVar11;" (assignment_expression "iVar5 = (int)uVar11" (identifier "iVar5") (= "=") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) (; ";")) (if_statement "if (iVar6 < iVar5 + -1) {\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }" (if "if") (parenthesized_expression "(iVar6 < iVar5 + -1)" (( "(") (binary_expression "iVar6 < iVar5 + -1" (identifier "iVar6") (< "<") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);\n      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);\n      uVar7 = uVar7 & 0xffffffff;\n      do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));\n      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));\n    }" ({ "{") (expression_statement "puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);" (assignment_expression "puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc)" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (long)(iVar5 + -1) * 0xc)" (( "(") (binary_expression "param_1 + (long)(iVar5 + -1) * 0xc" (identifier "param_1") (+ "+") (binary_expression "(long)(iVar5 + -1) * 0xc" (cast_expression "(long)(iVar5 + -1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar5 + -1)" (( "(") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1")) () ")"))) (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);" (assignment_expression "puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc)" (identifier "puVar9") (= "=") (cast_expression "(undefined8 *)(param_1 + (long)iVar6 * 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (long)iVar6 * 0xc)" (( "(") (binary_expression "param_1 + (long)iVar6 * 0xc" (identifier "param_1") (+ "+") (binary_expression "(long)iVar6 * 0xc" (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")) (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "uVar7 = uVar7 & 0xffffffff;" (assignment_expression "uVar7 = uVar7 & 0xffffffff" (identifier "uVar7") (= "=") (binary_expression "uVar7 & 0xffffffff" (identifier "uVar7") (& "&") (number_literal "0xffffffff"))) (; ";")) (do_statement "do {\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));" (do "do") (compound_statement "{\n        uVar3 = *(undefined4 *)puVar8;\n        uVar4 = *(undefined4 *)((long)puVar8 + 4);\n        uVar2 = *(undefined2 *)(puVar8 + 1);\n        *puVar8 = *puVar9;\n        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);\n        *(undefined4 *)puVar9 = uVar3;\n        *(undefined4 *)((long)puVar9 + 4) = uVar4;\n        *(undefined2 *)(puVar9 + 1) = uVar2;\n        uVar12 = (int)uVar7 + 1;\n        uVar7 = (ulong)uVar12;\n        puVar8 = (undefined8 *)((long)puVar8 + -0xc);\n        puVar9 = (undefined8 *)((long)puVar9 + 0xc);\n      }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)puVar8;" (assignment_expression "uVar3 = *(undefined4 *)puVar8" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)puVar8" (* "*") (cast_expression "(undefined4 *)puVar8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8")))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)((long)puVar8 + 4);" (assignment_expression "uVar4 = *(undefined4 *)((long)puVar8 + 4)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)((long)puVar8 + 4)" (* "*") (cast_expression "(undefined4 *)((long)puVar8 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar8 + 4)" (( "(") (binary_expression "(long)puVar8 + 4" (cast_expression "(long)puVar8" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar8")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined2 *)(puVar8 + 1);" (assignment_expression "uVar2 = *(undefined2 *)(puVar8 + 1)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined2 *)(puVar8 + 1)" (* "*") (cast_expression "(undefined2 *)(puVar8 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 1)" (( "(") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*puVar8 = *puVar9;" (assignment_expression "*puVar8 = *puVar9" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);" (assignment_expression "*(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1)" (pointer_expression "*(undefined4 *)(puVar8 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 1)" (( "(") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(puVar9 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar9 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 1)" (( "(") (binary_expression "puVar9 + 1" (identifier "puVar9") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)puVar9 = uVar3;" (assignment_expression "*(undefined4 *)puVar9 = uVar3" (pointer_expression "*(undefined4 *)puVar9" (* "*") (cast_expression "(undefined4 *)puVar9" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9"))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined4 *)((long)puVar9 + 4) = uVar4;" (assignment_expression "*(undefined4 *)((long)puVar9 + 4) = uVar4" (pointer_expression "*(undefined4 *)((long)puVar9 + 4)" (* "*") (cast_expression "(undefined4 *)((long)puVar9 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar9 + 4)" (( "(") (binary_expression "(long)puVar9 + 4" (cast_expression "(long)puVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar9")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*(undefined2 *)(puVar9 + 1) = uVar2;" (assignment_expression "*(undefined2 *)(puVar9 + 1) = uVar2" (pointer_expression "*(undefined2 *)(puVar9 + 1)" (* "*") (cast_expression "(undefined2 *)(puVar9 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 1)" (( "(") (binary_expression "puVar9 + 1" (identifier "puVar9") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar12 = (int)uVar7 + 1;" (assignment_expression "uVar12 = (int)uVar7 + 1" (identifier "uVar12") (= "=") (binary_expression "(int)uVar7 + 1" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = (ulong)uVar12;" (assignment_expression "uVar7 = (ulong)uVar12" (identifier "uVar7") (= "=") (cast_expression "(ulong)uVar12" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar12"))) (; ";")) (expression_statement "puVar8 = (undefined8 *)((long)puVar8 + -0xc);" (assignment_expression "puVar8 = (undefined8 *)((long)puVar8 + -0xc)" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)((long)puVar8 + -0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar8 + -0xc)" (( "(") (binary_expression "(long)puVar8 + -0xc" (cast_expression "(long)puVar8" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar8")) (+ "+") (number_literal "-0xc")) () ")")))) (; ";")) (expression_statement "puVar9 = (undefined8 *)((long)puVar9 + 0xc);" (assignment_expression "puVar9 = (undefined8 *)((long)puVar9 + 0xc)" (identifier "puVar9") (= "=") (cast_expression "(undefined8 *)((long)puVar9 + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar9 + 0xc)" (( "(") (binary_expression "(long)puVar9 + 0xc" (cast_expression "(long)puVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar9")) (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5))" (( "(") (binary_expression "(int)uVar12 < (int)(~uVar12 + iVar6 + iVar5)" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (< "<") (cast_expression "(int)(~uVar12 + iVar6 + iVar5)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(~uVar12 + iVar6 + iVar5)" (( "(") (binary_expression "~uVar12 + iVar6 + iVar5" (binary_expression "~uVar12 + iVar6" (unary_expression "~uVar12" (~ "~") (identifier "uVar12")) (+ "+") (identifier "iVar6")) (+ "+") (identifier "iVar5")) () ")")))) () ")")) (; ";")) (expression_statement "uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));" (assignment_expression "uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" (identifier "uVar7") (= "=") (call_expression "(ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1))" (( "(") (binary_expression "iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1)" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (parenthesized_expression "((uint)(iVar5 + (-2 - iVar6)) >> 1)" (( "(") (binary_expression "(uint)(iVar5 + (-2 - iVar6)) >> 1" (call_expression "(uint)(iVar5 + (-2 - iVar6))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar5 + (-2 - iVar6))" (( "(") (binary_expression "iVar5 + (-2 - iVar6)" (identifier "iVar5") (+ "+") (parenthesized_expression "(-2 - iVar6)" (( "(") (binary_expression "-2 - iVar6" (number_literal "-2") (- "-") (identifier "iVar6")) () ")"))) () ")"))) (>> ">>") (number_literal "1")) () ")"))) () ")")))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(type_1 *var_9,type_2 *var_6,type_3 var_5,type_3 var_3)

{
  type_4 *var_8;
  type_5 uVar2;
  type_6 uVar3;
  type_6 uVar4;
  type_6 uVar5;
  type_7 uVar6;
  type_3 var_1;
  type_1 *var_11;
  type_3 var_2;
  type_1 *var_12;
  long var_7;
  type_3 var_10;
  
  var_1 = L'\0';
  var_2 = L'\0';
  do {
    if (var_1 <= var_2) {
      var_1 = var_2;
    }
    if (var_3 <= var_1) {
      return;
    }
    var_1 = var_4(var_6,var_2,var_3,var_5);
    var_2 = var_1;
    if ((var_1 < var_3) && (var_5 <= (int)(type_6)var_6[var_1])) {
      var_7 = (long)(var_1 + L'\x01');
      do {
        var_2 = (type_3)var_7;
        if (var_3 <= var_2) break;
        var_8 = var_6 + var_7;
        var_7 = var_7 + 1;
      } while (var_5 <= (int)(type_6)*var_8);
    }
    if (var_1 < var_2 + L'\xffffffff') {
      var_11 = var_9 + (var_2 + L'\xffffffff');
      var_12 = var_9 + var_1;
      var_10 = var_1;
      do {
        uVar3 = var_11->origwc;
        uVar4 = var_11->wc;
        uVar2 = var_11->index;
        uVar5 = var_12->wc;
        var_11->origwc = var_12->origwc;
        var_11->wc = uVar5;
        uVar6 = *(type_7 *)&var_12->field_0xa;
        var_11->index = var_12->index;
        *(type_7 *)&var_11->field_0xa = uVar6;
        var_12->origwc = uVar3;
        var_12->wc = uVar4;
        var_12->index = uVar2;
        var_10 = var_10 + L'\x01';
        var_11 = var_11 + -1;
        var_12 = var_12 + 1;
      } while (var_10 < ~var_10 + var_1 + var_2);
      var_1 = var_1 + L'\x01' + ((type_6)(var_2 + (-2 - var_1)) >> 1);
    }
  } while( true );
}


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

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

{
  byte *pbVar1;
  undefined2 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  ulong uVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  ulong uVar10;
  ulong uVar11;
  uint uVar12;
  
  uVar7 = 0;
  uVar11 = 0;
  do {
    iVar6 = (int)uVar7;
    if ((int)uVar7 <= (int)uVar11) {
      iVar6 = (int)uVar11;
    }
    if (param_4 <= iVar6) {
      return;
    }
    uVar7 = FUN_001204fb(param_2,uVar11,param_4,param_3);
    iVar6 = (int)uVar7;
    if (iVar6 < param_4) {
      if ((int)(uint)*(byte *)(param_2 + iVar6) < param_3) {
        uVar11 = uVar7 & 0xffffffff;
      }
      else {
        uVar10 = (ulong)(iVar6 + 1);
        do {
          uVar11 = uVar10 & 0xffffffff;
          if (param_4 <= (int)uVar10) break;
          pbVar1 = (byte *)(param_2 + uVar10);
          uVar10 = uVar10 + 1;
        } while (param_3 <= (int)(uint)*pbVar1);
      }
    }
    else {
      uVar11 = uVar7 & 0xffffffff;
    }
    iVar5 = (int)uVar11;
    if (iVar6 < iVar5 + -1) {
      puVar8 = (undefined8 *)(param_1 + (long)(iVar5 + -1) * 0xc);
      puVar9 = (undefined8 *)(param_1 + (long)iVar6 * 0xc);
      uVar7 = uVar7 & 0xffffffff;
      do {
        uVar3 = *(undefined4 *)puVar8;
        uVar4 = *(undefined4 *)((long)puVar8 + 4);
        uVar2 = *(undefined2 *)(puVar8 + 1);
        *puVar8 = *puVar9;
        *(undefined4 *)(puVar8 + 1) = *(undefined4 *)(puVar9 + 1);
        *(undefined4 *)puVar9 = uVar3;
        *(undefined4 *)((long)puVar9 + 4) = uVar4;
        *(undefined2 *)(puVar9 + 1) = uVar2;
        uVar12 = (int)uVar7 + 1;
        uVar7 = (ulong)uVar12;
        puVar8 = (undefined8 *)((long)puVar8 + -0xc);
        puVar9 = (undefined8 *)((long)puVar9 + 0xc);
      } while ((int)uVar12 < (int)(~uVar12 + iVar6 + iVar5));
      uVar7 = (ulong)(iVar6 + 1 + ((uint)(iVar5 + (-2 - iVar6)) >> 1));
    }
  } while( true );
}

