
void Upsample(size_t width,size_t height,size_t scaled_width,uchar *pixels)

{
  int iVar1;
  uint uVar2;
  byte *pbVar3;
  int extraout_ECX;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  byte *pbVar8;
  int unaff_EDI;
  undefined8 uVar9;
  int local_44;
  byte *local_40;
  int local_20;
  byte *pbVar4;
  
  uVar9 = __x86_get_pc_thunk_di();
  iVar5 = (int)((ulonglong)uVar9 >> 0x20);
  uVar2 = (uint)uVar9;
  if (width == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,
                  (char *)(unaff_EDI + 0xda2fd));
  }
  iVar1 = iVar5 + -1;
  if (iVar5 == 0) {
    local_20 = 0x7fffffff;
  }
  else {
    local_44 = 0;
    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);
    local_20 = iVar5 + 0x7fffffff;
    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);
    do {
      *pbVar7 = *pbVar8;
      pbVar7[1] = *pbVar8;
      if (1 < uVar2) {
        pbVar4 = pbVar8;
        pbVar6 = pbVar7;
        do {
          pbVar3 = pbVar4 + -1;
          pbVar6[-2] = *pbVar3;
          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);
          pbVar4 = pbVar3;
          pbVar6 = pbVar6 + -2;
        } while (pbVar3 != pbVar8 + (1 - uVar2));
      }
      local_44 = local_44 + 1;
      pbVar8 = pbVar8 + -extraout_ECX;
      pbVar7 = pbVar7 + extraout_ECX * -2;
    } while (local_44 != iVar5);
  }
  if (0 < iVar1) {
    local_44 = 0;
    local_40 = (byte *)width;
    pbVar7 = (byte *)((width - 2) + uVar2 * 2);
    do {
      pbVar8 = local_40 + extraout_ECX;
      pbVar4 = pbVar8 + extraout_ECX;
      pbVar3 = local_40;
      pbVar6 = pbVar4;
      if (0 < (int)(uVar2 - 1)) {
        do {
          pbVar3 = local_40 + 2;
          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);
          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);
          local_40 = pbVar3;
          pbVar6 = pbVar6 + 2;
          pbVar8 = pbVar8 + 2;
        } while (pbVar3 != pbVar7);
        pbVar8 = pbVar3 + extraout_ECX;
        pbVar6 = pbVar8 + extraout_ECX;
      }
      local_44 = local_44 + 1;
      pbVar7 = pbVar7 + extraout_ECX * 2;
      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);
      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);
      local_40 = pbVar4;
    } while (local_44 != iVar1);
  }
  memcpy((void *)((iVar5 * 2 + -1) * extraout_ECX + width),
         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2);
  return;
}



void FUN_0022b0c0(byte *param_1)

{
  int iVar1;
  uint uVar2;
  byte *pbVar3;
  int extraout_ECX;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  byte *pbVar8;
  int unaff_EDI;
  undefined8 uVar9;
  int local_44;
  byte *local_40;
  int local_20;
  byte *pbVar4;
  
  uVar9 = FUN_0004c803();
  iVar5 = (int)((ulonglong)uVar9 >> 0x20);
  uVar2 = (uint)uVar9;
  if (param_1 == (byte *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,
                  (char *)(unaff_EDI + 0xda2fd));
  }
  iVar1 = iVar5 + -1;
  if (iVar5 == 0) {
    local_20 = 0x7fffffff;
  }
  else {
    local_44 = 0;
    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);
    local_20 = iVar5 + 0x7fffffff;
    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;
    do {
      *pbVar7 = *pbVar8;
      pbVar7[1] = *pbVar8;
      if (1 < uVar2) {
        pbVar4 = pbVar8;
        pbVar6 = pbVar7;
        do {
          pbVar3 = pbVar4 + -1;
          pbVar6[-2] = *pbVar3;
          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);
          pbVar4 = pbVar3;
          pbVar6 = pbVar6 + -2;
        } while (pbVar3 != pbVar8 + (1 - uVar2));
      }
      local_44 = local_44 + 1;
      pbVar8 = pbVar8 + -extraout_ECX;
      pbVar7 = pbVar7 + extraout_ECX * -2;
    } while (local_44 != iVar5);
  }
  if (0 < iVar1) {
    local_44 = 0;
    local_40 = param_1;
    pbVar7 = param_1 + uVar2 * 2 + -2;
    do {
      pbVar8 = local_40 + extraout_ECX;
      pbVar4 = pbVar8 + extraout_ECX;
      pbVar3 = local_40;
      pbVar6 = pbVar4;
      if (0 < (int)(uVar2 - 1)) {
        do {
          pbVar3 = local_40 + 2;
          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);
          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);
          local_40 = pbVar3;
          pbVar6 = pbVar6 + 2;
          pbVar8 = pbVar8 + 2;
        } while (pbVar3 != pbVar7);
        pbVar8 = pbVar3 + extraout_ECX;
        pbVar6 = pbVar8 + extraout_ECX;
      }
      local_44 = local_44 + 1;
      pbVar7 = pbVar7 + extraout_ECX * 2;
      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);
      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);
      local_40 = pbVar4;
    } while (local_44 != iVar1);
  }
  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);
  return;
}


PUSH EBP
PUSH EDI
CALL 0x0004c803
ADD EDI,0x1adf39
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV dword ptr [ESP + 0x14],ECX
MOV ECX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [ESP + 0x28],EDI
TEST ECX,ECX
JZ 0x0022b2c8
LEA EDI,[EDX + -0x1]
MOV dword ptr [ESP + 0x18],EDI
TEST EDX,EDX
JZ 0x0022b2bb
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x8],0x0
MOV ESI,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x10]
IMUL ESI,EAX
ADD EAX,EAX
LEA EDX,[EDI + -0x1]
MOV EBX,EAX
NEG EBX
MOV dword ptr [ESP + 0xc],EBX
MOV EBX,dword ptr [ESP + 0x1c]
ADD ESI,EDX
ADD ESI,dword ptr [ESP + 0x50]
ADD EBX,0x7fffffff
IMUL EAX,EBX
MOV dword ptr [ESP + 0x2c],EBX
LEA EBP,[EAX + EDX*0x2]
ADD EBP,dword ptr [ESP + 0x50]
MOV EAX,0x1
SUB EAX,EDI
MOV dword ptr [ESP + 0x20],EAX
LEA ESI,[ESI]
MOVZX ECX,byte ptr [ESI]
MOV EAX,ESI
MOV EDX,EBP
CMP dword ptr [ESP + 0x10],0x1
MOV byte ptr [EBP],CL
MOVZX ECX,byte ptr [ESI]
MOV byte ptr [EBP + 0x1],CL
JBE 0x0022b18f
MOV EDI,dword ptr [ESP + 0x20]
ADD EDI,ESI
LEA ESI,[ESI]
SUB EAX,0x1
MOVZX ECX,byte ptr [EAX]
SUB EDX,0x2
MOV byte ptr [EDX],CL
MOVZX EBX,byte ptr [EAX]
MOVZX ECX,byte ptr [EAX + 0x1]
LEA ECX,[EBX + ECX*0x1 + 0x1]
SHR ECX,0x1
MOV byte ptr [EDX + 0x1],CL
CMP EAX,EDI
JNZ 0x0022b170
ADD dword ptr [ESP + 0x8],0x1
SUB ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x8]
ADD EBP,dword ptr [ESP + 0xc]
CMP EAX,dword ptr [ESP + 0x1c]
JNZ 0x0022b150
MOV EDX,dword ptr [ESP + 0x18]
TEST EDX,EDX
JLE 0x0022b27f
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x8],0x0
MOV ESI,dword ptr [ESP + 0x14]
MOV EBP,dword ptr [ESP + 0x50]
LEA EDI,[EAX + -0x1]
MOV dword ptr [ESP + 0x24],EDI
LEA EDI,[ESI + ESI*0x1]
MOV dword ptr [ESP + 0x20],EDI
MOV EDI,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0xc],EBP
MOV EBP,ESI
LEA EDI,[EDI + EAX*0x2 + -0x2]
LEA ESI,[ESI]
MOV ECX,dword ptr [ESP + 0xc]
LEA ESI,[ECX + EBP*0x1]
LEA EAX,[EBP + ESI*0x1]
MOV dword ptr [ESP + 0xc],EAX
MOV EBX,EAX
MOV EAX,dword ptr [ESP + 0x24]
TEST EAX,EAX
JLE 0x0022b249
LEA ESI,[ESI]
MOVZX EDX,byte ptr [ECX]
ADD ECX,0x2
ADD ESI,0x2
ADD EBX,0x2
MOVZX EAX,byte ptr [EBX + -0x2]
LEA EAX,[EDX + EAX*0x1 + 0x1]
SHR EAX,0x1
MOV byte ptr [ESI + -0x2],AL
MOVZX EDX,byte ptr [ECX + -0x2]
MOVZX EAX,byte ptr [ECX]
LEA EAX,[EDX + EAX*0x1 + 0x2]
MOVZX EDX,byte ptr [EBX + -0x2]
ADD EAX,EDX
MOVZX EDX,byte ptr [EBX]
ADD EAX,EDX
SHR EAX,0x2
MOV byte ptr [ESI + -0x1],AL
CMP ECX,EDI
JNZ 0x0022b208
LEA ESI,[EBP + ECX*0x1]
LEA EBX,[EBP + ESI*0x1]
MOVZX EDX,byte ptr [ECX]
MOVZX EAX,byte ptr [EBX]
ADD dword ptr [ESP + 0x8],0x1
ADD EDI,dword ptr [ESP + 0x20]
LEA EAX,[EDX + EAX*0x1 + 0x1]
SHR EAX,0x1
MOV byte ptr [ESI],AL
MOVZX EAX,byte ptr [ECX + 0x1]
MOVZX EDX,byte ptr [EBX + 0x1]
LEA EAX,[EAX + EDX*0x1 + 0x1]
SHR EAX,0x1
MOV byte ptr [ESI + 0x1],AL
MOV EAX,dword ptr [ESP + 0x8]
CMP EAX,dword ptr [ESP + 0x18]
JNZ 0x0022b1e8
MOV EAX,dword ptr [ESP + 0x1c]
SUB ESP,0x4
MOV EDI,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x14]
LEA EAX,[EAX + EAX*0x1 + -0x1]
IMUL EAX,EDI
LEA ECX,[EDI + EDI*0x1]
ADD EAX,dword ptr [ESP + 0x54]
IMUL ECX,dword ptr [ESP + 0x30]
ADD EDX,EDX
ADD ECX,dword ptr [ESP + 0x54]
PUSH EDX
PUSH ECX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x38]
CALL 0x00031e30
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x2c],0x7fffffff
JMP 0x0022b1a6
MOV EBX,dword ptr [ESP + 0x28]
LEA EAX,[EBX + 0xfff2c3c4]
PUSH EAX
LEA EAX,[EBX + 0xfff2c309]
PUSH 0x1bc
PUSH EAX
LEA EAX,[EBX + 0xfff33450]
PUSH EAX
CALL 0x000313d0
(translation_unit "void FUN_0022b0c0(byte *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}\n\n" (function_definition "void FUN_0022b0c0(byte *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}" primitive_type (function_declarator "FUN_0022b0c0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "uVar9 = FUN_0004c803();" (assignment_expression "uVar9 = FUN_0004c803()" identifier = (call_expression "FUN_0004c803()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar9 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = (uint)uVar9;" (assignment_expression "uVar2 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (param_1 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" if (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" { comment (expression_statement "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));" (call_expression "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" identifier (argument_list "((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" ( (cast_expression "(char *)(unaff_EDI + 0xe1389)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xe1389)" ( (binary_expression "unaff_EDI + 0xe1389" identifier + number_literal) ))) , (cast_expression "(char *)(unaff_EDI + 0xda242)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xda242)" ( (binary_expression "unaff_EDI + 0xda242" identifier + number_literal) ))) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xda2fd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xda2fd)" ( (binary_expression "unaff_EDI + 0xda2fd" identifier + number_literal) ))) ))) ;) })) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = 0x7fffffff;\n  }" { (expression_statement "local_20 = 0x7fffffff;" (assignment_expression "local_20 = 0x7fffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" else (compound_statement "{\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);" (assignment_expression "pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1)" identifier = (binary_expression "param_1 + iVar1 * extraout_ECX + (uVar2 - 1)" (binary_expression "param_1 + iVar1 * extraout_ECX" identifier + (binary_expression "iVar1 * extraout_ECX" identifier * identifier)) + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )))) ;) (expression_statement "local_20 = iVar5 + 0x7fffffff;" (assignment_expression "local_20 = iVar5 + 0x7fffffff" identifier = (binary_expression "iVar5 + 0x7fffffff" identifier + number_literal)) ;) (expression_statement "pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;" (assignment_expression "pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" identifier = (binary_expression "param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" (binary_expression "param_1 + extraout_ECX * 2 * local_20" identifier + (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" identifier * number_literal) * identifier)) + (binary_expression "(uVar2 - 1) * 2" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) * number_literal))) ;) (do_statement "do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);" do (compound_statement "{\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    }" { (expression_statement "*pbVar7 = *pbVar8;" (assignment_expression "*pbVar7 = *pbVar8" (pointer_expression "*pbVar7" * identifier) = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar7[1] = *pbVar8;" (assignment_expression "pbVar7[1] = *pbVar8" (subscript_expression "pbVar7[1]" identifier [ number_literal ]) = (pointer_expression "*pbVar8" * identifier)) ;) (if_statement "if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" { (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar7;" (assignment_expression "pbVar6 = pbVar7" identifier = identifier) ;) (do_statement "do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));" do (compound_statement "{\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        }" { (expression_statement "pbVar3 = pbVar4 + -1;" (assignment_expression "pbVar3 = pbVar4 + -1" identifier = (binary_expression "pbVar4 + -1" identifier + number_literal)) ;) (expression_statement "pbVar6[-2] = *pbVar3;" (assignment_expression "pbVar6[-2] = *pbVar3" (subscript_expression "pbVar6[-2]" identifier [ number_literal ]) = (pointer_expression "*pbVar3" * identifier)) ;) (expression_statement "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);" (assignment_expression "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (subscript_expression "pbVar6[-1]" identifier [ number_literal ]) = (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" ( (binary_expression "*pbVar3 + 1 + (uint)*pbVar4 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar4" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" * identifier) + number_literal) + (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar6 + -2;" (assignment_expression "pbVar6 = pbVar6 + -2" identifier = (binary_expression "pbVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar8 + (1 - uVar2))" ( (binary_expression "pbVar3 != pbVar8 + (1 - uVar2)" identifier != (binary_expression "pbVar8 + (1 - uVar2)" identifier + (parenthesized_expression "(1 - uVar2)" ( (binary_expression "1 - uVar2" number_literal - identifier) )))) )) ;) })) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + -extraout_ECX;" (assignment_expression "pbVar8 = pbVar8 + -extraout_ECX" identifier = (binary_expression "pbVar8 + -extraout_ECX" identifier + (unary_expression "-extraout_ECX" - identifier))) ;) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * -2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * -2" identifier = (binary_expression "pbVar7 + extraout_ECX * -2" identifier + (binary_expression "extraout_ECX * -2" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_44 != iVar5)" ( (binary_expression "local_44 != iVar5" identifier != identifier) )) ;) }))) (if_statement "if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = param_1;" (assignment_expression "local_40 = param_1" identifier = identifier) ;) (expression_statement "pbVar7 = param_1 + uVar2 * 2 + -2;" (assignment_expression "pbVar7 = param_1 + uVar2 * 2 + -2" identifier = (binary_expression "param_1 + uVar2 * 2 + -2" (binary_expression "param_1 + uVar2 * 2" identifier + (binary_expression "uVar2 * 2" identifier * number_literal)) + number_literal)) ;) (do_statement "do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);" do (compound_statement "{\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    }" { (expression_statement "pbVar8 = local_40 + extraout_ECX;" (assignment_expression "pbVar8 = local_40 + extraout_ECX" identifier = (binary_expression "local_40 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar4 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar4 = pbVar8 + extraout_ECX" identifier = (binary_expression "pbVar8 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar3 = local_40;" (assignment_expression "pbVar3 = local_40" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" if (parenthesized_expression "(0 < (int)(uVar2 - 1))" ( (binary_expression "0 < (int)(uVar2 - 1)" number_literal < (cast_expression "(int)(uVar2 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )))) )) (compound_statement "{\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" { (do_statement "do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);" do (compound_statement "{\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        }" { (expression_statement "pbVar3 = local_40 + 2;" (assignment_expression "pbVar3 = local_40 + 2" identifier = (binary_expression "local_40 + 2" identifier + number_literal)) ;) (expression_statement "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" * identifier) = (call_expression "(byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*local_40 + 1 + (uint)*pbVar6 >> 1)" ( (binary_expression "*local_40 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*local_40 + 1 + (uint)*pbVar6" (binary_expression "*local_40 + 1" (pointer_expression "*local_40" * identifier) + number_literal) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);" (assignment_expression "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) = (call_expression "(byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" ( (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2]" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6" (binary_expression "*local_40 + 2 + (uint)*pbVar3" (binary_expression "*local_40 + 2" (pointer_expression "*local_40" * identifier) + number_literal) + (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (cast_expression "(uint)pbVar6[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[2]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "local_40 = pbVar3;" (assignment_expression "local_40 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar6 + 2;" (assignment_expression "pbVar6 = pbVar6 + 2" identifier = (binary_expression "pbVar6 + 2" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 2;" (assignment_expression "pbVar8 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar7)" ( (binary_expression "pbVar3 != pbVar7" identifier != identifier) )) ;) (expression_statement "pbVar8 = pbVar3 + extraout_ECX;" (assignment_expression "pbVar8 = pbVar3 + extraout_ECX" identifier = (binary_expression "pbVar3 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar6 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar6 = pbVar8 + extraout_ECX" identifier = (binary_expression "pbVar8 + extraout_ECX" identifier + identifier)) ;) })) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * 2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * 2" identifier = (binary_expression "pbVar7 + extraout_ECX * 2" identifier + (binary_expression "extraout_ECX * 2" identifier * number_literal))) ;) (expression_statement "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" * identifier) = (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" ( (binary_expression "*pbVar3 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar6" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" * identifier) + number_literal) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);" (assignment_expression "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) = (call_expression "(byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" ( (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1] >> 1" (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1]" (binary_expression "pbVar3[1] + 1" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) + number_literal) + (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" identifier = identifier) ;) }) while (parenthesized_expression "(local_44 != iVar1)" ( (binary_expression "local_44 != iVar1" identifier != identifier) )) ;) })) (expression_statement "memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);" (call_expression "memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2)" identifier (argument_list "(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2)" ( (binary_expression "param_1 + (iVar5 * 2 + -1) * extraout_ECX" identifier + (binary_expression "(iVar5 * 2 + -1) * extraout_ECX" (parenthesized_expression "(iVar5 * 2 + -1)" ( (binary_expression "iVar5 * 2 + -1" (binary_expression "iVar5 * 2" identifier * number_literal) + number_literal) )) * identifier)) , (binary_expression "param_1 + extraout_ECX * 2 * local_20" identifier + (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" identifier * number_literal) * identifier)) , (binary_expression "uVar2 * 2" identifier * number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void Upsample(size_t width,size_t height,size_t scaled_width,uchar *pixels)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = __x86_get_pc_thunk_di();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (width == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = (byte *)width;\n    pbVar7 = (byte *)((width - 2) + uVar2 * 2);\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy((void *)((iVar5 * 2 + -1) * extraout_ECX + width),\n         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2);\n  return;\n}\n\n" (function_definition "void Upsample(size_t width,size_t height,size_t scaled_width,uchar *pixels)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = __x86_get_pc_thunk_di();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (width == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = (byte *)width;\n    pbVar7 = (byte *)((width - 2) + uVar2 * 2);\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy((void *)((iVar5 * 2 + -1) * extraout_ECX + width),\n         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2);\n  return;\n}" primitive_type (function_declarator "Upsample(size_t width,size_t height,size_t scaled_width,uchar *pixels)" identifier (parameter_list "(size_t width,size_t height,size_t scaled_width,uchar *pixels)" ( (parameter_declaration "size_t width" primitive_type identifier) , (parameter_declaration "size_t height" primitive_type identifier) , (parameter_declaration "size_t scaled_width" primitive_type identifier) , (parameter_declaration "uchar *pixels" type_identifier (pointer_declarator "*pixels" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = __x86_get_pc_thunk_di();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (width == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = (byte *)width;\n    pbVar7 = (byte *)((width - 2) + uVar2 * 2);\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy((void *)((iVar5 * 2 + -1) * extraout_ECX + width),\n         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "uVar9 = __x86_get_pc_thunk_di();" (assignment_expression "uVar9 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar9 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = (uint)uVar9;" (assignment_expression "uVar2 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (width == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" if (parenthesized_expression "(width == 0)" ( (binary_expression "width == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" { comment (expression_statement "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));" (call_expression "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" identifier (argument_list "((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" ( (cast_expression "(char *)(unaff_EDI + 0xe1389)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xe1389)" ( (binary_expression "unaff_EDI + 0xe1389" identifier + number_literal) ))) , (cast_expression "(char *)(unaff_EDI + 0xda242)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xda242)" ( (binary_expression "unaff_EDI + 0xda242" identifier + number_literal) ))) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xda2fd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xda2fd)" ( (binary_expression "unaff_EDI + 0xda2fd" identifier + number_literal) ))) ))) ;) })) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = 0x7fffffff;\n  }" { (expression_statement "local_20 = 0x7fffffff;" (assignment_expression "local_20 = 0x7fffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_44 = 0;\n    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" else (compound_statement "{\n    local_44 = 0;\n    pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width);" (assignment_expression "pbVar8 = (byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width)" identifier = (cast_expression "(byte *)(iVar1 * extraout_ECX + (uVar2 - 1) + width)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 * extraout_ECX + (uVar2 - 1) + width)" ( (binary_expression "iVar1 * extraout_ECX + (uVar2 - 1) + width" (binary_expression "iVar1 * extraout_ECX + (uVar2 - 1)" (binary_expression "iVar1 * extraout_ECX" identifier * identifier) + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))) + identifier) )))) ;) (expression_statement "local_20 = iVar5 + 0x7fffffff;" (assignment_expression "local_20 = iVar5 + 0x7fffffff" identifier = (binary_expression "iVar5 + 0x7fffffff" identifier + number_literal)) ;) (expression_statement "pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width);" (assignment_expression "pbVar7 = (byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width)" identifier = (cast_expression "(byte *)(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width)" ( (binary_expression "extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2 + width" (binary_expression "extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" identifier * number_literal) * identifier) + (binary_expression "(uVar2 - 1) * 2" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) * number_literal)) + identifier) )))) ;) (do_statement "do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);" do (compound_statement "{\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    }" { (expression_statement "*pbVar7 = *pbVar8;" (assignment_expression "*pbVar7 = *pbVar8" (pointer_expression "*pbVar7" * identifier) = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar7[1] = *pbVar8;" (assignment_expression "pbVar7[1] = *pbVar8" (subscript_expression "pbVar7[1]" identifier [ number_literal ]) = (pointer_expression "*pbVar8" * identifier)) ;) (if_statement "if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" { (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar7;" (assignment_expression "pbVar6 = pbVar7" identifier = identifier) ;) (do_statement "do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));" do (compound_statement "{\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        }" { (expression_statement "pbVar3 = pbVar4 + -1;" (assignment_expression "pbVar3 = pbVar4 + -1" identifier = (binary_expression "pbVar4 + -1" identifier + number_literal)) ;) (expression_statement "pbVar6[-2] = *pbVar3;" (assignment_expression "pbVar6[-2] = *pbVar3" (subscript_expression "pbVar6[-2]" identifier [ number_literal ]) = (pointer_expression "*pbVar3" * identifier)) ;) (expression_statement "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);" (assignment_expression "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (subscript_expression "pbVar6[-1]" identifier [ number_literal ]) = (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" ( (binary_expression "*pbVar3 + 1 + (uint)*pbVar4 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar4" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" * identifier) + number_literal) + (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar6 + -2;" (assignment_expression "pbVar6 = pbVar6 + -2" identifier = (binary_expression "pbVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar8 + (1 - uVar2))" ( (binary_expression "pbVar3 != pbVar8 + (1 - uVar2)" identifier != (binary_expression "pbVar8 + (1 - uVar2)" identifier + (parenthesized_expression "(1 - uVar2)" ( (binary_expression "1 - uVar2" number_literal - identifier) )))) )) ;) })) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + -extraout_ECX;" (assignment_expression "pbVar8 = pbVar8 + -extraout_ECX" identifier = (binary_expression "pbVar8 + -extraout_ECX" identifier + (unary_expression "-extraout_ECX" - identifier))) ;) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * -2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * -2" identifier = (binary_expression "pbVar7 + extraout_ECX * -2" identifier + (binary_expression "extraout_ECX * -2" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_44 != iVar5)" ( (binary_expression "local_44 != iVar5" identifier != identifier) )) ;) }))) (if_statement "if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = (byte *)width;\n    pbVar7 = (byte *)((width - 2) + uVar2 * 2);\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    local_44 = 0;\n    local_40 = (byte *)width;\n    pbVar7 = (byte *)((width - 2) + uVar2 * 2);\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = (byte *)width;" (assignment_expression "local_40 = (byte *)width" identifier = (cast_expression "(byte *)width" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar7 = (byte *)((width - 2) + uVar2 * 2);" (assignment_expression "pbVar7 = (byte *)((width - 2) + uVar2 * 2)" identifier = (cast_expression "(byte *)((width - 2) + uVar2 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((width - 2) + uVar2 * 2)" ( (binary_expression "(width - 2) + uVar2 * 2" (parenthesized_expression "(width - 2)" ( (binary_expression "width - 2" identifier - number_literal) )) + (binary_expression "uVar2 * 2" identifier * number_literal)) )))) ;) (do_statement "do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);" do (compound_statement "{\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    }" { (expression_statement "pbVar8 = local_40 + extraout_ECX;" (assignment_expression "pbVar8 = local_40 + extraout_ECX" identifier = (binary_expression "local_40 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar4 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar4 = pbVar8 + extraout_ECX" identifier = (binary_expression "pbVar8 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar3 = local_40;" (assignment_expression "pbVar3 = local_40" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" if (parenthesized_expression "(0 < (int)(uVar2 - 1))" ( (binary_expression "0 < (int)(uVar2 - 1)" number_literal < (cast_expression "(int)(uVar2 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )))) )) (compound_statement "{\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" { (do_statement "do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);" do (compound_statement "{\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        }" { (expression_statement "pbVar3 = local_40 + 2;" (assignment_expression "pbVar3 = local_40 + 2" identifier = (binary_expression "local_40 + 2" identifier + number_literal)) ;) (expression_statement "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" * identifier) = (call_expression "(byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*local_40 + 1 + (uint)*pbVar6 >> 1)" ( (binary_expression "*local_40 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*local_40 + 1 + (uint)*pbVar6" (binary_expression "*local_40 + 1" (pointer_expression "*local_40" * identifier) + number_literal) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);" (assignment_expression "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) = (call_expression "(byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" ( (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2]" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6" (binary_expression "*local_40 + 2 + (uint)*pbVar3" (binary_expression "*local_40 + 2" (pointer_expression "*local_40" * identifier) + number_literal) + (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (cast_expression "(uint)pbVar6[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[2]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "local_40 = pbVar3;" (assignment_expression "local_40 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar6 + 2;" (assignment_expression "pbVar6 = pbVar6 + 2" identifier = (binary_expression "pbVar6 + 2" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 2;" (assignment_expression "pbVar8 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar7)" ( (binary_expression "pbVar3 != pbVar7" identifier != identifier) )) ;) (expression_statement "pbVar8 = pbVar3 + extraout_ECX;" (assignment_expression "pbVar8 = pbVar3 + extraout_ECX" identifier = (binary_expression "pbVar3 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar6 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar6 = pbVar8 + extraout_ECX" identifier = (binary_expression "pbVar8 + extraout_ECX" identifier + identifier)) ;) })) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * 2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * 2" identifier = (binary_expression "pbVar7 + extraout_ECX * 2" identifier + (binary_expression "extraout_ECX * 2" identifier * number_literal))) ;) (expression_statement "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" * identifier) = (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" ( (binary_expression "*pbVar3 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar6" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" * identifier) + number_literal) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);" (assignment_expression "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) = (call_expression "(byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" ( (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1] >> 1" (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1]" (binary_expression "pbVar3[1] + 1" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) + number_literal) + (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" identifier = identifier) ;) }) while (parenthesized_expression "(local_44 != iVar1)" ( (binary_expression "local_44 != iVar1" identifier != identifier) )) ;) })) (expression_statement "memcpy((void *)((iVar5 * 2 + -1) * extraout_ECX + width),\n         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2);" (call_expression "memcpy((void *)((iVar5 * 2 + -1) * extraout_ECX + width),\n         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2)" identifier (argument_list "((void *)((iVar5 * 2 + -1) * extraout_ECX + width),\n         (void *)(extraout_ECX * 2 * local_20 + width),uVar2 * 2)" ( (cast_expression "(void *)((iVar5 * 2 + -1) * extraout_ECX + width)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((iVar5 * 2 + -1) * extraout_ECX + width)" ( (binary_expression "(iVar5 * 2 + -1) * extraout_ECX + width" (binary_expression "(iVar5 * 2 + -1) * extraout_ECX" (parenthesized_expression "(iVar5 * 2 + -1)" ( (binary_expression "iVar5 * 2 + -1" (binary_expression "iVar5 * 2" identifier * number_literal) + number_literal) )) * identifier) + identifier) ))) , (cast_expression "(void *)(extraout_ECX * 2 * local_20 + width)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX * 2 * local_20 + width)" ( (binary_expression "extraout_ECX * 2 * local_20 + width" (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" identifier * number_literal) * identifier) + identifier) ))) , (binary_expression "uVar2 * 2" identifier * number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0022b0c0(byte *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}\n\n" (function_definition "void FUN_0022b0c0(byte *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}" primitive_type (function_declarator "FUN_0022b0c0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "uVar9 = FUN_0004c803();" (assignment_expression "uVar9 = FUN_0004c803()" identifier = (call_expression "FUN_0004c803()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar9 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = (uint)uVar9;" (assignment_expression "uVar2 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" if (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" { (expression_statement "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));" (call_expression "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" identifier (argument_list "((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" ( (cast_expression "(char *)(unaff_EDI + 0xe1389)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xe1389)" ( (binary_expression "unaff_EDI + 0xe1389" identifier + number_literal) ))) , (cast_expression "(char *)(unaff_EDI + 0xda242)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xda242)" ( (binary_expression "unaff_EDI + 0xda242" identifier + number_literal) ))) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xda2fd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xda2fd)" ( (binary_expression "unaff_EDI + 0xda2fd" identifier + number_literal) ))) ))) ;) })) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = 0x7fffffff;\n  }" { (expression_statement "local_20 = 0x7fffffff;" (assignment_expression "local_20 = 0x7fffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" else (compound_statement "{\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);" (assignment_expression "pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1)" identifier = (binary_expression "param_1 + iVar1 * extraout_ECX + (uVar2 - 1)" (binary_expression "param_1 + iVar1 * extraout_ECX" identifier + (binary_expression "iVar1 * extraout_ECX" identifier * identifier)) + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )))) ;) (expression_statement "local_20 = iVar5 + 0x7fffffff;" (assignment_expression "local_20 = iVar5 + 0x7fffffff" identifier = (binary_expression "iVar5 + 0x7fffffff" identifier + number_literal)) ;) (expression_statement "pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;" (assignment_expression "pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" identifier = (binary_expression "param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" (binary_expression "param_1 + extraout_ECX * 2 * local_20" identifier + (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" identifier * number_literal) * identifier)) + (binary_expression "(uVar2 - 1) * 2" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) * number_literal))) ;) (do_statement "do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);" do (compound_statement "{\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    }" { (expression_statement "*pbVar7 = *pbVar8;" (assignment_expression "*pbVar7 = *pbVar8" (pointer_expression "*pbVar7" * identifier) = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar7[1] = *pbVar8;" (assignment_expression "pbVar7[1] = *pbVar8" (subscript_expression "pbVar7[1]" identifier [ number_literal ]) = (pointer_expression "*pbVar8" * identifier)) ;) (if_statement "if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" { (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar7;" (assignment_expression "pbVar6 = pbVar7" identifier = identifier) ;) (do_statement "do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));" do (compound_statement "{\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        }" { (expression_statement "pbVar3 = pbVar4 + -1;" (assignment_expression "pbVar3 = pbVar4 + -1" identifier = (binary_expression "pbVar4 + -1" identifier + number_literal)) ;) (expression_statement "pbVar6[-2] = *pbVar3;" (assignment_expression "pbVar6[-2] = *pbVar3" (subscript_expression "pbVar6[-2]" identifier [ number_literal ]) = (pointer_expression "*pbVar3" * identifier)) ;) (expression_statement "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);" (assignment_expression "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (subscript_expression "pbVar6[-1]" identifier [ number_literal ]) = (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" ( (binary_expression "*pbVar3 + 1 + (uint)*pbVar4 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar4" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" * identifier) + number_literal) + (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar6 + -2;" (assignment_expression "pbVar6 = pbVar6 + -2" identifier = (binary_expression "pbVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar8 + (1 - uVar2))" ( (binary_expression "pbVar3 != pbVar8 + (1 - uVar2)" identifier != (binary_expression "pbVar8 + (1 - uVar2)" identifier + (parenthesized_expression "(1 - uVar2)" ( (binary_expression "1 - uVar2" number_literal - identifier) )))) )) ;) })) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + -extraout_ECX;" (assignment_expression "pbVar8 = pbVar8 + -extraout_ECX" identifier = (binary_expression "pbVar8 + -extraout_ECX" identifier + (unary_expression "-extraout_ECX" - identifier))) ;) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * -2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * -2" identifier = (binary_expression "pbVar7 + extraout_ECX * -2" identifier + (binary_expression "extraout_ECX * -2" identifier * number_literal))) ;) }) while (parenthesized_expression "(local_44 != iVar5)" ( (binary_expression "local_44 != iVar5" identifier != identifier) )) ;) }))) (if_statement "if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = param_1;" (assignment_expression "local_40 = param_1" identifier = identifier) ;) (expression_statement "pbVar7 = param_1 + uVar2 * 2 + -2;" (assignment_expression "pbVar7 = param_1 + uVar2 * 2 + -2" identifier = (binary_expression "param_1 + uVar2 * 2 + -2" (binary_expression "param_1 + uVar2 * 2" identifier + (binary_expression "uVar2 * 2" identifier * number_literal)) + number_literal)) ;) (do_statement "do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);" do (compound_statement "{\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    }" { (expression_statement "pbVar8 = local_40 + extraout_ECX;" (assignment_expression "pbVar8 = local_40 + extraout_ECX" identifier = (binary_expression "local_40 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar4 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar4 = pbVar8 + extraout_ECX" identifier = (binary_expression "pbVar8 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar3 = local_40;" (assignment_expression "pbVar3 = local_40" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" if (parenthesized_expression "(0 < (int)(uVar2 - 1))" ( (binary_expression "0 < (int)(uVar2 - 1)" number_literal < (cast_expression "(int)(uVar2 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )))) )) (compound_statement "{\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" { (do_statement "do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);" do (compound_statement "{\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        }" { (expression_statement "pbVar3 = local_40 + 2;" (assignment_expression "pbVar3 = local_40 + 2" identifier = (binary_expression "local_40 + 2" identifier + number_literal)) ;) (expression_statement "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" * identifier) = (call_expression "(byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*local_40 + 1 + (uint)*pbVar6 >> 1)" ( (binary_expression "*local_40 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*local_40 + 1 + (uint)*pbVar6" (binary_expression "*local_40 + 1" (pointer_expression "*local_40" * identifier) + number_literal) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);" (assignment_expression "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) = (call_expression "(byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" ( (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2]" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6" (binary_expression "*local_40 + 2 + (uint)*pbVar3" (binary_expression "*local_40 + 2" (pointer_expression "*local_40" * identifier) + number_literal) + (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (cast_expression "(uint)pbVar6[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[2]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "local_40 = pbVar3;" (assignment_expression "local_40 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar6 = pbVar6 + 2;" (assignment_expression "pbVar6 = pbVar6 + 2" identifier = (binary_expression "pbVar6 + 2" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 2;" (assignment_expression "pbVar8 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar7)" ( (binary_expression "pbVar3 != pbVar7" identifier != identifier) )) ;) (expression_statement "pbVar8 = pbVar3 + extraout_ECX;" (assignment_expression "pbVar8 = pbVar3 + extraout_ECX" identifier = (binary_expression "pbVar3 + extraout_ECX" identifier + identifier)) ;) (expression_statement "pbVar6 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar6 = pbVar8 + extraout_ECX" identifier = (binary_expression "pbVar8 + extraout_ECX" identifier + identifier)) ;) })) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * 2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * 2" identifier = (binary_expression "pbVar7 + extraout_ECX * 2" identifier + (binary_expression "extraout_ECX * 2" identifier * number_literal))) ;) (expression_statement "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" * identifier) = (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" ( (binary_expression "*pbVar3 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar6" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" * identifier) + number_literal) + (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) >> number_literal) )))) ;) (expression_statement "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);" (assignment_expression "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) = (call_expression "(byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" ( (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1] >> 1" (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1]" (binary_expression "pbVar3[1] + 1" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) + number_literal) + (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" identifier = identifier) ;) }) while (parenthesized_expression "(local_44 != iVar1)" ( (binary_expression "local_44 != iVar1" identifier != identifier) )) ;) })) (expression_statement "memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);" (call_expression "memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2)" identifier (argument_list "(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2)" ( (binary_expression "param_1 + (iVar5 * 2 + -1) * extraout_ECX" identifier + (binary_expression "(iVar5 * 2 + -1) * extraout_ECX" (parenthesized_expression "(iVar5 * 2 + -1)" ( (binary_expression "iVar5 * 2 + -1" (binary_expression "iVar5 * 2" identifier * number_literal) + number_literal) )) * identifier)) , (binary_expression "param_1 + extraout_ECX * 2 * local_20" identifier + (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" identifier * number_literal) * identifier)) , (binary_expression "uVar2 * 2" identifier * number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * IDENT)) + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (binary_expression IDENT * LIT) * IDENT)) + (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) * LIT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - IDENT) )))) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) )))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + LIT) )) * IDENT)) , (binary_expression IDENT + (binary_expression (binary_expression IDENT * LIT) * IDENT)) , (binary_expression IDENT * LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0022b0c0(byte *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0022b0c0(byte *param_1)" (identifier "FUN_0022b0c0") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int extraout_ECX;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  int local_44;\n  byte *local_40;\n  int local_20;\n  byte *pbVar4;\n  \n  uVar9 = FUN_0004c803();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  uVar2 = (uint)uVar9;\n  if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }\n  iVar1 = iVar5 + -1;\n  if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }\n  if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }\n  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "byte *local_40;" (type_identifier "byte") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (expression_statement "uVar9 = FUN_0004c803();" (assignment_expression "uVar9 = FUN_0004c803()" (identifier "uVar9") (= "=") (call_expression "FUN_0004c803()" (identifier "FUN_0004c803") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar9 >> 0x20)" (identifier "iVar5") (= "=") (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar2 = (uint)uVar9;" (assignment_expression "uVar2 = (uint)uVar9" (identifier "uVar2") (= "=") (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9"))) (; ";")) (if_statement "if (param_1 == (byte *)0x0) {\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" (if "if") (parenthesized_expression "(param_1 == (byte *)0x0)" (( "(") (binary_expression "param_1 == (byte *)0x0" (identifier "param_1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));\n  }" ({ "{") (expression_statement "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd));" (call_expression "__assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" (identifier "__assert_fail") (argument_list "((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,\n                  (char *)(unaff_EDI + 0xda2fd))" (( "(") (cast_expression "(char *)(unaff_EDI + 0xe1389)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xe1389)" (( "(") (binary_expression "unaff_EDI + 0xe1389" (identifier "unaff_EDI") (+ "+") (number_literal "0xe1389")) () ")"))) (, ",") (cast_expression "(char *)(unaff_EDI + 0xda242)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xda242)" (( "(") (binary_expression "unaff_EDI + 0xda242" (identifier "unaff_EDI") (+ "+") (number_literal "0xda242")) () ")"))) (, ",") (number_literal "0x1bc") (, ",") (cast_expression "(char *)(unaff_EDI + 0xda2fd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xda2fd)" (( "(") (binary_expression "unaff_EDI + 0xda2fd" (identifier "unaff_EDI") (+ "+") (number_literal "0xda2fd")) () ")"))) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar5 == 0) {\n    local_20 = 0x7fffffff;\n  }\n  else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_20 = 0x7fffffff;\n  }" ({ "{") (expression_statement "local_20 = 0x7fffffff;" (assignment_expression "local_20 = 0x7fffffff" (identifier "local_20") (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}")) (else_clause "else {\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" (else "else") (compound_statement "{\n    local_44 = 0;\n    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);\n    local_20 = iVar5 + 0x7fffffff;\n    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;\n    do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);\n  }" ({ "{") (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);" (assignment_expression "pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1)" (identifier "pbVar8") (= "=") (binary_expression "param_1 + iVar1 * extraout_ECX + (uVar2 - 1)" (binary_expression "param_1 + iVar1 * extraout_ECX" (identifier "param_1") (+ "+") (binary_expression "iVar1 * extraout_ECX" (identifier "iVar1") (* "*") (identifier "extraout_ECX"))) (+ "+") (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "local_20 = iVar5 + 0x7fffffff;" (assignment_expression "local_20 = iVar5 + 0x7fffffff" (identifier "local_20") (= "=") (binary_expression "iVar5 + 0x7fffffff" (identifier "iVar5") (+ "+") (number_literal "0x7fffffff"))) (; ";")) (expression_statement "pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;" (assignment_expression "pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" (identifier "pbVar7") (= "=") (binary_expression "param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2" (binary_expression "param_1 + extraout_ECX * 2 * local_20" (identifier "param_1") (+ "+") (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" (identifier "extraout_ECX") (* "*") (number_literal "2")) (* "*") (identifier "local_20"))) (+ "+") (binary_expression "(uVar2 - 1) * 2" (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")")) (* "*") (number_literal "2")))) (; ";")) (do_statement "do {\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    } while (local_44 != iVar5);" (do "do") (compound_statement "{\n      *pbVar7 = *pbVar8;\n      pbVar7[1] = *pbVar8;\n      if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }\n      local_44 = local_44 + 1;\n      pbVar8 = pbVar8 + -extraout_ECX;\n      pbVar7 = pbVar7 + extraout_ECX * -2;\n    }" ({ "{") (expression_statement "*pbVar7 = *pbVar8;" (assignment_expression "*pbVar7 = *pbVar8" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "pbVar7[1] = *pbVar8;" (assignment_expression "pbVar7[1] = *pbVar8" (subscript_expression "pbVar7[1]" (identifier "pbVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (if_statement "if (1 < uVar2) {\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" (if "if") (parenthesized_expression "(1 < uVar2)" (( "(") (binary_expression "1 < uVar2" (number_literal "1") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n        pbVar4 = pbVar8;\n        pbVar6 = pbVar7;\n        do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));\n      }" ({ "{") (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" (identifier "pbVar4") (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "pbVar6 = pbVar7;" (assignment_expression "pbVar6 = pbVar7" (identifier "pbVar6") (= "=") (identifier "pbVar7")) (; ";")) (do_statement "do {\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        } while (pbVar3 != pbVar8 + (1 - uVar2));" (do "do") (compound_statement "{\n          pbVar3 = pbVar4 + -1;\n          pbVar6[-2] = *pbVar3;\n          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);\n          pbVar4 = pbVar3;\n          pbVar6 = pbVar6 + -2;\n        }" ({ "{") (expression_statement "pbVar3 = pbVar4 + -1;" (assignment_expression "pbVar3 = pbVar4 + -1" (identifier "pbVar3") (= "=") (binary_expression "pbVar4 + -1" (identifier "pbVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pbVar6[-2] = *pbVar3;" (assignment_expression "pbVar6[-2] = *pbVar3" (subscript_expression "pbVar6[-2]" (identifier "pbVar6") ([ "[") (number_literal "-2") (] "]")) (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (expression_statement "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);" (assignment_expression "pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (subscript_expression "pbVar6[-1]" (identifier "pbVar6") ([ "[") (number_literal "-1") (] "]")) (= "=") (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*pbVar3 + 1 + (uint)*pbVar4 >> 1)" (( "(") (binary_expression "*pbVar3 + 1 + (uint)*pbVar4 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar4" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" (identifier "pbVar4") (= "=") (identifier "pbVar3")) (; ";")) (expression_statement "pbVar6 = pbVar6 + -2;" (assignment_expression "pbVar6 = pbVar6 + -2" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + -2" (identifier "pbVar6") (+ "+") (number_literal "-2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar3 != pbVar8 + (1 - uVar2))" (( "(") (binary_expression "pbVar3 != pbVar8 + (1 - uVar2)" (identifier "pbVar3") (!= "!=") (binary_expression "pbVar8 + (1 - uVar2)" (identifier "pbVar8") (+ "+") (parenthesized_expression "(1 - uVar2)" (( "(") (binary_expression "1 - uVar2" (number_literal "1") (- "-") (identifier "uVar2")) () ")")))) () ")")) (; ";")) (} "}"))) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" (identifier "local_44") (= "=") (binary_expression "local_44 + 1" (identifier "local_44") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + -extraout_ECX;" (assignment_expression "pbVar8 = pbVar8 + -extraout_ECX" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + -extraout_ECX" (identifier "pbVar8") (+ "+") (unary_expression "-extraout_ECX" (- "-") (identifier "extraout_ECX")))) (; ";")) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * -2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * -2" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + extraout_ECX * -2" (identifier "pbVar7") (+ "+") (binary_expression "extraout_ECX * -2" (identifier "extraout_ECX") (* "*") (number_literal "-2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_44 != iVar5)" (( "(") (binary_expression "local_44 != iVar5" (identifier "local_44") (!= "!=") (identifier "iVar5")) () ")")) (; ";")) (} "}")))) (if_statement "if (0 < iVar1) {\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    local_44 = 0;\n    local_40 = param_1;\n    pbVar7 = param_1 + uVar2 * 2 + -2;\n    do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);\n  }" ({ "{") (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = param_1;" (assignment_expression "local_40 = param_1" (identifier "local_40") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pbVar7 = param_1 + uVar2 * 2 + -2;" (assignment_expression "pbVar7 = param_1 + uVar2 * 2 + -2" (identifier "pbVar7") (= "=") (binary_expression "param_1 + uVar2 * 2 + -2" (binary_expression "param_1 + uVar2 * 2" (identifier "param_1") (+ "+") (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2"))) (+ "+") (number_literal "-2"))) (; ";")) (do_statement "do {\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    } while (local_44 != iVar1);" (do "do") (compound_statement "{\n      pbVar8 = local_40 + extraout_ECX;\n      pbVar4 = pbVar8 + extraout_ECX;\n      pbVar3 = local_40;\n      pbVar6 = pbVar4;\n      if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }\n      local_44 = local_44 + 1;\n      pbVar7 = pbVar7 + extraout_ECX * 2;\n      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);\n      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);\n      local_40 = pbVar4;\n    }" ({ "{") (expression_statement "pbVar8 = local_40 + extraout_ECX;" (assignment_expression "pbVar8 = local_40 + extraout_ECX" (identifier "pbVar8") (= "=") (binary_expression "local_40 + extraout_ECX" (identifier "local_40") (+ "+") (identifier "extraout_ECX"))) (; ";")) (expression_statement "pbVar4 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar4 = pbVar8 + extraout_ECX" (identifier "pbVar4") (= "=") (binary_expression "pbVar8 + extraout_ECX" (identifier "pbVar8") (+ "+") (identifier "extraout_ECX"))) (; ";")) (expression_statement "pbVar3 = local_40;" (assignment_expression "pbVar3 = local_40" (identifier "pbVar3") (= "=") (identifier "local_40")) (; ";")) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" (identifier "pbVar6") (= "=") (identifier "pbVar4")) (; ";")) (if_statement "if (0 < (int)(uVar2 - 1)) {\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" (if "if") (parenthesized_expression "(0 < (int)(uVar2 - 1))" (( "(") (binary_expression "0 < (int)(uVar2 - 1)" (number_literal "0") (< "<") (cast_expression "(int)(uVar2 - 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")")))) () ")")) (compound_statement "{\n        do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);\n        pbVar8 = pbVar3 + extraout_ECX;\n        pbVar6 = pbVar8 + extraout_ECX;\n      }" ({ "{") (do_statement "do {\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        } while (pbVar3 != pbVar7);" (do "do") (compound_statement "{\n          pbVar3 = local_40 + 2;\n          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);\n          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);\n          local_40 = pbVar3;\n          pbVar6 = pbVar6 + 2;\n          pbVar8 = pbVar8 + 2;\n        }" ({ "{") (expression_statement "pbVar3 = local_40 + 2;" (assignment_expression "pbVar3 = local_40 + 2" (identifier "pbVar3") (= "=") (binary_expression "local_40 + 2" (identifier "local_40") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (= "=") (call_expression "(byte)(*local_40 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*local_40 + 1 + (uint)*pbVar6 >> 1)" (( "(") (binary_expression "*local_40 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*local_40 + 1 + (uint)*pbVar6" (binary_expression "*local_40 + 1" (pointer_expression "*local_40" (* "*") (identifier "local_40")) (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar6"))) (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);" (assignment_expression "pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (subscript_expression "pbVar8[1]" (identifier "pbVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2)" (( "(") (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2]" (binary_expression "*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6" (binary_expression "*local_40 + 2 + (uint)*pbVar3" (binary_expression "*local_40 + 2" (pointer_expression "*local_40" (* "*") (identifier "local_40")) (+ "+") (number_literal "2")) (+ "+") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (+ "+") (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar6"))) (+ "+") (cast_expression "(uint)pbVar6[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar6[2]" (identifier "pbVar6") ([ "[") (number_literal "2") (] "]")))) (>> ">>") (number_literal "2")) () ")")))) (; ";")) (expression_statement "local_40 = pbVar3;" (assignment_expression "local_40 = pbVar3" (identifier "local_40") (= "=") (identifier "pbVar3")) (; ";")) (expression_statement "pbVar6 = pbVar6 + 2;" (assignment_expression "pbVar6 = pbVar6 + 2" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 2" (identifier "pbVar6") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 2;" (assignment_expression "pbVar8 = pbVar8 + 2" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 2" (identifier "pbVar8") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar3 != pbVar7)" (( "(") (binary_expression "pbVar3 != pbVar7" (identifier "pbVar3") (!= "!=") (identifier "pbVar7")) () ")")) (; ";")) (expression_statement "pbVar8 = pbVar3 + extraout_ECX;" (assignment_expression "pbVar8 = pbVar3 + extraout_ECX" (identifier "pbVar8") (= "=") (binary_expression "pbVar3 + extraout_ECX" (identifier "pbVar3") (+ "+") (identifier "extraout_ECX"))) (; ";")) (expression_statement "pbVar6 = pbVar8 + extraout_ECX;" (assignment_expression "pbVar6 = pbVar8 + extraout_ECX" (identifier "pbVar6") (= "=") (binary_expression "pbVar8 + extraout_ECX" (identifier "pbVar8") (+ "+") (identifier "extraout_ECX"))) (; ";")) (} "}"))) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" (identifier "local_44") (= "=") (binary_expression "local_44 + 1" (identifier "local_44") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar7 = pbVar7 + extraout_ECX * 2;" (assignment_expression "pbVar7 = pbVar7 + extraout_ECX * 2" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + extraout_ECX * 2" (identifier "pbVar7") (+ "+") (binary_expression "extraout_ECX * 2" (identifier "extraout_ECX") (* "*") (number_literal "2")))) (; ";")) (expression_statement "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);" (assignment_expression "*pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (= "=") (call_expression "(byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*pbVar3 + 1 + (uint)*pbVar6 >> 1)" (( "(") (binary_expression "*pbVar3 + 1 + (uint)*pbVar6 >> 1" (binary_expression "*pbVar3 + 1 + (uint)*pbVar6" (binary_expression "*pbVar3 + 1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar6"))) (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);" (assignment_expression "pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (subscript_expression "pbVar8[1]" (identifier "pbVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1)" (( "(") (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1] >> 1" (binary_expression "pbVar3[1] + 1 + (uint)pbVar6[1]" (binary_expression "pbVar3[1] + 1" (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1")) (+ "+") (cast_expression "(uint)pbVar6[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]")))) (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" (identifier "local_40") (= "=") (identifier "pbVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_44 != iVar1)" (( "(") (binary_expression "local_44 != iVar1" (identifier "local_44") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);" (call_expression "memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2)" (identifier "memcpy") (argument_list "(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2)" (( "(") (binary_expression "param_1 + (iVar5 * 2 + -1) * extraout_ECX" (identifier "param_1") (+ "+") (binary_expression "(iVar5 * 2 + -1) * extraout_ECX" (parenthesized_expression "(iVar5 * 2 + -1)" (( "(") (binary_expression "iVar5 * 2 + -1" (binary_expression "iVar5 * 2" (identifier "iVar5") (* "*") (number_literal "2")) (+ "+") (number_literal "-1")) () ")")) (* "*") (identifier "extraout_ECX"))) (, ",") (binary_expression "param_1 + extraout_ECX * 2 * local_20" (identifier "param_1") (+ "+") (binary_expression "extraout_ECX * 2 * local_20" (binary_expression "extraout_ECX * 2" (identifier "extraout_ECX") (* "*") (number_literal "2")) (* "*") (identifier "local_20"))) (, ",") (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(size_t var_2,size_t height,size_t scaled_width,type_1 *pixels)

{
  int var_6;
  type_2 var_8;
  type_3 *var_12;
  int var_7;
  int var_5;
  type_3 *var_11;
  type_3 *var_15;
  type_3 *var_13;
  int var_4;
  type_4 uVar9;
  int var_14;
  type_3 *var_16;
  int var_9;
  type_3 *var_10;
  
  uVar9 = var_1();
  var_5 = (int)((type_5)uVar9 >> 0x20);
  var_8 = (type_2)uVar9;
  if (var_2 == 0) {
                    /* WARNING: Subroutine does not return */
    var_3((char *)(var_4 + 0xe1389),(char *)(var_4 + 0xda242),0x1bc,
                  (char *)(var_4 + 0xda2fd));
  }
  var_6 = var_5 + -1;
  if (var_5 == 0) {
    var_9 = 0x7fffffff;
  }
  else {
    var_14 = 0;
    var_13 = (type_3 *)(var_6 * var_7 + (var_8 - 1) + var_2);
    var_9 = var_5 + 0x7fffffff;
    var_15 = (type_3 *)(var_7 * 2 * var_9 + (var_8 - 1) * 2 + var_2);
    do {
      *var_15 = *var_13;
      var_15[1] = *var_13;
      if (1 < var_8) {
        var_10 = var_13;
        var_11 = var_15;
        do {
          var_12 = var_10 + -1;
          var_11[-2] = *var_12;
          var_11[-1] = (type_3)(*var_12 + 1 + (type_2)*var_10 >> 1);
          var_10 = var_12;
          var_11 = var_11 + -2;
        } while (var_12 != var_13 + (1 - var_8));
      }
      var_14 = var_14 + 1;
      var_13 = var_13 + -var_7;
      var_15 = var_15 + var_7 * -2;
    } while (var_14 != var_5);
  }
  if (0 < var_6) {
    var_14 = 0;
    var_16 = (type_3 *)var_2;
    var_15 = (type_3 *)((var_2 - 2) + var_8 * 2);
    do {
      var_13 = var_16 + var_7;
      var_10 = var_13 + var_7;
      var_12 = var_16;
      var_11 = var_10;
      if (0 < (int)(var_8 - 1)) {
        do {
          var_12 = var_16 + 2;
          *var_13 = (type_3)(*var_16 + 1 + (type_2)*var_11 >> 1);
          var_13[1] = (type_3)(*var_16 + 2 + (type_2)*var_12 + (type_2)*var_11 + (type_2)var_11[2] >> 2);
          var_16 = var_12;
          var_11 = var_11 + 2;
          var_13 = var_13 + 2;
        } while (var_12 != var_15);
        var_13 = var_12 + var_7;
        var_11 = var_13 + var_7;
      }
      var_14 = var_14 + 1;
      var_15 = var_15 + var_7 * 2;
      *var_13 = (type_3)(*var_12 + 1 + (type_2)*var_11 >> 1);
      var_13[1] = (type_3)(var_12[1] + 1 + (type_2)var_11[1] >> 1);
      var_16 = var_10;
    } while (var_14 != var_6);
  }
  var_17((void *)((var_5 * 2 + -1) * var_7 + var_2),
         (void *)(var_7 * 2 * var_9 + var_2),var_8 * 2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (number_literal) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))) right: (number_literal)))))) (expression_statement (assignment_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: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (unary_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(byte *param_1)

{
  int iVar1;
  uint uVar2;
  byte *pbVar3;
  int extraout_ECX;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  byte *pbVar8;
  int unaff_EDI;
  undefined8 uVar9;
  int local_44;
  byte *local_40;
  int local_20;
  byte *pbVar4;
  
  uVar9 = FUN_0004c803();
  iVar5 = (int)((ulonglong)uVar9 >> 0x20);
  uVar2 = (uint)uVar9;
  if (param_1 == (byte *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail((char *)(unaff_EDI + 0xe1389),(char *)(unaff_EDI + 0xda242),0x1bc,
                  (char *)(unaff_EDI + 0xda2fd));
  }
  iVar1 = iVar5 + -1;
  if (iVar5 == 0) {
    local_20 = 0x7fffffff;
  }
  else {
    local_44 = 0;
    pbVar8 = param_1 + iVar1 * extraout_ECX + (uVar2 - 1);
    local_20 = iVar5 + 0x7fffffff;
    pbVar7 = param_1 + extraout_ECX * 2 * local_20 + (uVar2 - 1) * 2;
    do {
      *pbVar7 = *pbVar8;
      pbVar7[1] = *pbVar8;
      if (1 < uVar2) {
        pbVar4 = pbVar8;
        pbVar6 = pbVar7;
        do {
          pbVar3 = pbVar4 + -1;
          pbVar6[-2] = *pbVar3;
          pbVar6[-1] = (byte)(*pbVar3 + 1 + (uint)*pbVar4 >> 1);
          pbVar4 = pbVar3;
          pbVar6 = pbVar6 + -2;
        } while (pbVar3 != pbVar8 + (1 - uVar2));
      }
      local_44 = local_44 + 1;
      pbVar8 = pbVar8 + -extraout_ECX;
      pbVar7 = pbVar7 + extraout_ECX * -2;
    } while (local_44 != iVar5);
  }
  if (0 < iVar1) {
    local_44 = 0;
    local_40 = param_1;
    pbVar7 = param_1 + uVar2 * 2 + -2;
    do {
      pbVar8 = local_40 + extraout_ECX;
      pbVar4 = pbVar8 + extraout_ECX;
      pbVar3 = local_40;
      pbVar6 = pbVar4;
      if (0 < (int)(uVar2 - 1)) {
        do {
          pbVar3 = local_40 + 2;
          *pbVar8 = (byte)(*local_40 + 1 + (uint)*pbVar6 >> 1);
          pbVar8[1] = (byte)(*local_40 + 2 + (uint)*pbVar3 + (uint)*pbVar6 + (uint)pbVar6[2] >> 2);
          local_40 = pbVar3;
          pbVar6 = pbVar6 + 2;
          pbVar8 = pbVar8 + 2;
        } while (pbVar3 != pbVar7);
        pbVar8 = pbVar3 + extraout_ECX;
        pbVar6 = pbVar8 + extraout_ECX;
      }
      local_44 = local_44 + 1;
      pbVar7 = pbVar7 + extraout_ECX * 2;
      *pbVar8 = (byte)(*pbVar3 + 1 + (uint)*pbVar6 >> 1);
      pbVar8[1] = (byte)(pbVar3[1] + 1 + (uint)pbVar6[1] >> 1);
      local_40 = pbVar4;
    } while (local_44 != iVar1);
  }
  memcpy(param_1 + (iVar5 * 2 + -1) * extraout_ECX,param_1 + extraout_ECX * 2 * local_20,uVar2 * 2);
  return;
}

