
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original name: __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,
   std::vector<gold::Output_section*> > > */

__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
 std::_V2::
 __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>_>
           (Output_section **__first,Output_section *__middle,Output_section *__last,
           Output_section *param_4)

{
  _func_int_varargs **pp_Var1;
  Output_section *pOVar2;
  _func_int_varargs ***ppp_Var3;
  uint64_t *puVar4;
  Output_section *pOVar5;
  Output_section *pOVar6;
  int iVar7;
  size_t __n;
  int iVar8;
  int iVar9;
  int local_2c;
  
  if (__middle == __last) {
    *__first = param_4;
    return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
            )__first;
  }
  if (param_4 == __last) {
    *__first = __middle;
  }
  else {
    pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle);
    local_2c = (int)param_4 - (int)__middle >> 2;
    iVar8 = (int)__last - (int)__middle >> 2;
    pOVar6 = __last;
    if (local_2c - iVar8 == iVar8) {
      do {
        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;
        puVar4 = &(__middle->super_Output_data).address_;
        (__middle->super_Output_data)._vptr_Output_data =
             (pOVar6->super_Output_data)._vptr_Output_data;
        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;
        __middle = (Output_section *)puVar4;
        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;
      } while (__last != (Output_section *)puVar4);
      *__first = __last;
      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
              )__first;
    }
    while( true ) {
      iVar9 = local_2c - iVar8;
      if (iVar8 < iVar9) {
        do {
          iVar7 = iVar8;
          if (iVar7 == 1) {
            puVar4 = &(__middle->super_Output_data).address_;
            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;
            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;
            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {
              memmove(__middle,puVar4,local_2c * 4 - 4);
            }
            ppp_Var3[-1] = pp_Var1;
            *__first = pOVar5;
            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
                    )__first;
          }
          if (0 < iVar9) {
            iVar8 = 0;
            do {
              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];
              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =
                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];
              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;
              iVar8 = iVar8 + 1;
            } while (iVar9 != iVar8);
            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);
          }
          if (local_2c % iVar7 == 0) goto LAB_00113798;
          iVar8 = iVar7 - local_2c % iVar7;
          iVar9 = iVar7 - iVar8;
          local_2c = iVar7;
        } while (iVar8 < iVar9);
      }
      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;
      if (iVar9 == 1) break;
      __middle = (Output_section *)(ppp_Var3 + -iVar9);
      if (0 < iVar8) {
        iVar7 = 0;
        pOVar6 = __middle;
        do {
          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;
          ppp_Var3 = ppp_Var3 + -1;
          pOVar2 = *(Output_section **)pOVar6;
          iVar7 = iVar7 + 1;
          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;
          *ppp_Var3 = (_func_int_varargs **)pOVar2;
        } while (iVar7 != iVar8);
        __middle = (Output_section *)((int)__middle + iVar7 * -4);
      }
      iVar8 = local_2c % iVar9;
      local_2c = iVar9;
      if (iVar8 == 0) {
LAB_00113798:
        *__first = pOVar5;
        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
                )__first;
      }
    }
    pp_Var1 = ppp_Var3[-1];
    if (__middle != (Output_section *)(ppp_Var3 + -1)) {
      __n = (int)(ppp_Var3 + -1) - (int)__middle;
      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);
    }
    (__middle->super_Output_data)._vptr_Output_data = pp_Var1;
    *__first = pOVar5;
  }
  return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
          )__first;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int * FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int iVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  int local_2c;
  
  if (param_2 == param_3) {
    *param_1 = (int)param_4;
    return param_1;
  }
  if (param_4 == param_3) {
    *param_1 = (int)param_2;
  }
  else {
    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;
    local_2c = (int)param_4 - (int)param_2 >> 2;
    iVar6 = (int)param_3 - (int)param_2 >> 2;
    puVar4 = param_3;
    if (local_2c - iVar6 == iVar6) {
      do {
        uVar1 = *param_2;
        puVar3 = param_2 + 1;
        *param_2 = *puVar4;
        *puVar4 = uVar1;
        param_2 = puVar3;
        puVar4 = puVar4 + 1;
      } while (param_3 != puVar3);
      *param_1 = (int)param_3;
      return param_1;
    }
    while( true ) {
      iVar7 = local_2c - iVar6;
      if (iVar6 < iVar7) {
        do {
          iVar5 = iVar6;
          if (iVar5 == 1) {
            uVar1 = *param_2;
            if (param_2 + 1 != param_2 + local_2c) {
              memmove(param_2,param_2 + 1,local_2c * 4 - 4);
            }
            (param_2 + local_2c)[-1] = uVar1;
            *param_1 = iVar2;
            return param_1;
          }
          if (0 < iVar7) {
            iVar6 = 0;
            do {
              uVar1 = param_2[iVar6];
              param_2[iVar6] = param_2[iVar5 + iVar6];
              param_2[iVar5 + iVar6] = uVar1;
              iVar6 = iVar6 + 1;
            } while (iVar7 != iVar6);
            param_2 = param_2 + iVar7;
          }
          if (local_2c % iVar5 == 0) goto LAB_00113798;
          iVar6 = iVar5 - local_2c % iVar5;
          iVar7 = iVar5 - iVar6;
          local_2c = iVar5;
        } while (iVar6 < iVar7);
      }
      puVar4 = param_2 + local_2c;
      if (iVar7 == 1) break;
      param_2 = puVar4 + -iVar7;
      if (0 < iVar6) {
        iVar5 = 0;
        puVar3 = param_2;
        do {
          puVar3 = puVar3 + -1;
          puVar4 = puVar4 + -1;
          uVar1 = *puVar3;
          iVar5 = iVar5 + 1;
          *puVar3 = *puVar4;
          *puVar4 = uVar1;
        } while (iVar5 != iVar6);
        param_2 = param_2 + -iVar5;
      }
      iVar6 = local_2c % iVar7;
      local_2c = iVar7;
      if (iVar6 == 0) {
LAB_00113798:
        *param_1 = iVar2;
        return param_1;
      }
    }
    uVar1 = puVar4[-1];
    if (param_2 != puVar4 + -1) {
      __n = (int)(puVar4 + -1) - (int)param_2;
      memmove((void *)((int)puVar4 - __n),param_2,__n);
    }
    *param_2 = uVar1;
    *param_1 = iVar2;
  }
  return param_1;
}


CALL 0x0004fb76
ADD EAX,0x1ee9db
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x34]
CMP EAX,EDX
JZ 0x00113750
CMP ECX,EDX
JZ 0x00113734
MOV EBX,ECX
SUB ECX,EDX
MOV ESI,EAX
SUB EBX,EAX
ADD ECX,EAX
SAR EBX,0x2
MOV dword ptr [ESP + 0xc],ECX
MOV EDI,EBX
MOV dword ptr [ESP],EBX
MOV EBX,EDX
SUB EBX,EAX
SAR EBX,0x2
SUB EDI,EBX
CMP EDI,EBX
JZ 0x00113764
LEA ESI,[ESI]
NOP
MOV EDI,dword ptr [ESP]
SUB EDI,EBX
CMP EDI,EBX
JLE 0x001136d2
CMP EBX,0x1
JZ 0x001137e1
LEA EDX,[ESI + EBX*0x4]
TEST EDI,EDI
JLE 0x001136b6
XOR EAX,EAX
LEA ESI,[ESI]
NOP
MOV ECX,dword ptr [ESI + EAX*0x4]
MOV EBP,dword ptr [EDX + EAX*0x4]
MOV dword ptr [ESI + EAX*0x4],EBP
MOV dword ptr [EDX + EAX*0x4],ECX
ADD EAX,0x1
CMP EDI,EAX
JNZ 0x001136a0
LEA ESI,[ESI + EDI*0x4]
MOV EAX,dword ptr [ESP]
CDQ
IDIV EBX
TEST EDX,EDX
JZ 0x00113798
MOV dword ptr [ESP],EBX
MOV EDI,dword ptr [ESP]
SUB EBX,EDX
SUB EDI,EBX
CMP EDI,EBX
JG 0x00113689
MOV EAX,dword ptr [ESP]
LEA EAX,[ESI + EAX*0x4]
CMP EDI,0x1
JZ 0x001137b0
LEA EDX,[EDI*0x4 + 0x0]
MOV ESI,EAX
SUB ESI,EDX
TEST EBX,EBX
JLE 0x00113720
MOV dword ptr [ESP + 0x4],ESI
SUB EAX,0x4
LEA ECX,[ESI + -0x4]
XOR EDX,EDX
LEA ESI,[ESI]
MOV EBP,dword ptr [ECX]
MOV ESI,dword ptr [EAX]
ADD EDX,0x1
SUB EAX,0x4
SUB ECX,0x4
MOV dword ptr [ECX + 0x4],ESI
MOV dword ptr [EAX + 0x4],EBP
CMP EDX,EBX
JNZ 0x00113700
MOV ESI,dword ptr [ESP + 0x4]
SHL EDX,0x2
SUB ESI,EDX
MOV EAX,dword ptr [ESP]
CDQ
IDIV EDI
MOV EBX,EDX
TEST EDX,EDX
JZ 0x00113798
MOV dword ptr [ESP],EDI
JMP 0x00113680
MOV EBX,dword ptr [ESP + 0x30]
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],ECX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV ECX,EDX
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV ESI,dword ptr [ECX]
MOV EBX,dword ptr [EAX]
ADD EAX,0x4
ADD ECX,0x4
MOV dword ptr [EAX + -0x4],ESI
MOV dword ptr [ECX + -0x4],EBX
CMP EDX,EAX
JNZ 0x00113770
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV EAX,dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EBX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
LEA EDX,[EAX + -0x4]
MOV EDI,dword ptr [EAX + -0x4]
CMP ESI,EDX
JZ 0x001137d0
SUB EDX,ESI
SUB ESP,0x4
SUB EAX,EDX
PUSH EDX
PUSH ESI
PUSH EAX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000268a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0xc]
MOV dword ptr [ESI],EDI
MOV dword ptr [EAX],EBX
JMP 0x0011373a
MOV EAX,dword ptr [ESP]
LEA EDX,[ESI + 0x4]
MOV EDI,dword ptr [ESI]
SHL EAX,0x2
LEA EBP,[ESI + EAX*0x1]
CMP EDX,EBP
JZ 0x00113808
SUB ESP,0x4
SUB EAX,0x4
PUSH EAX
PUSH EDX
PUSH ESI
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000268a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0xc]
MOV dword ptr [EBP + -0x4],EDI
MOV dword ptr [EAX],EBX
JMP 0x0011373a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" * (function_declarator "FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }" if (parenthesized_expression "(param_2 == param_3)" ( (binary_expression "param_2 == param_3" identifier == identifier) )) (compound_statement "{\n    *param_1 = (int)param_4;\n    return param_1;\n  }" { (expression_statement "*param_1 = (int)param_4;" (assignment_expression "*param_1 = (int)param_4" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (if_statement "if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" if (parenthesized_expression "(param_4 == param_3)" ( (binary_expression "param_4 == param_3" identifier == identifier) )) (compound_statement "{\n    *param_1 = (int)param_2;\n  }" { (expression_statement "*param_1 = (int)param_2;" (assignment_expression "*param_1 = (int)param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" else (compound_statement "{\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" { (expression_statement "iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;" (assignment_expression "iVar2 = ((int)param_4 - (int)param_3) + (int)param_2" identifier = (binary_expression "((int)param_4 - (int)param_3) + (int)param_2" (parenthesized_expression "((int)param_4 - (int)param_3)" ( (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_2c = (int)param_4 - (int)param_2 >> 2;" (assignment_expression "local_2c = (int)param_4 - (int)param_2 >> 2" identifier = (binary_expression "(int)param_4 - (int)param_2 >> 2" (binary_expression "(int)param_4 - (int)param_2" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "iVar6 = (int)param_3 - (int)param_2 >> 2;" (assignment_expression "iVar6 = (int)param_3 - (int)param_2 >> 2" identifier = (binary_expression "(int)param_3 - (int)param_2 >> 2" (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "puVar4 = param_3;" (assignment_expression "puVar4 = param_3" identifier = identifier) ;) (if_statement "if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }" if (parenthesized_expression "(local_2c - iVar6 == iVar6)" ( (binary_expression "local_2c - iVar6 == iVar6" (binary_expression "local_2c - iVar6" identifier - identifier) == identifier) )) (compound_statement "{\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }" { (do_statement "do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);" do (compound_statement "{\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      }" { (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar3 = param_2 + 1;" (assignment_expression "puVar3 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = *puVar4;" (assignment_expression "*param_2 = *puVar4" (pointer_expression "*param_2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 != puVar3)" ( (binary_expression "param_3 != puVar3" identifier != identifier) )) ;) (expression_statement "*param_1 = (int)param_3;" (assignment_expression "*param_1 = (int)param_3" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (while_statement "while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }" { (expression_statement "iVar7 = local_2c - iVar6;" (assignment_expression "iVar7 = local_2c - iVar6" identifier = (binary_expression "local_2c - iVar6" identifier - identifier)) ;) (if_statement "if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }" { (do_statement "do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);" do (compound_statement "{\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        }" { (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }" { (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }" if (parenthesized_expression "(param_2 + 1 != param_2 + local_2c)" ( (binary_expression "param_2 + 1 != param_2 + local_2c" (binary_expression "param_2 + 1" identifier + number_literal) != (binary_expression "param_2 + local_2c" identifier + identifier)) )) (compound_statement "{\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }" { (expression_statement "memmove(param_2,param_2 + 1,local_2c * 4 - 4);" (call_expression "memmove(param_2,param_2 + 1,local_2c * 4 - 4)" identifier (argument_list "(param_2,param_2 + 1,local_2c * 4 - 4)" ( identifier , (binary_expression "param_2 + 1" identifier + number_literal) , (binary_expression "local_2c * 4 - 4" (binary_expression "local_2c * 4" identifier * number_literal) - number_literal) ))) ;) })) (expression_statement "(param_2 + local_2c)[-1] = uVar1;" (assignment_expression "(param_2 + local_2c)[-1] = uVar1" (subscript_expression "(param_2 + local_2c)[-1]" (parenthesized_expression "(param_2 + local_2c)" ( (binary_expression "param_2 + local_2c" identifier + identifier) )) [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (if_statement "if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);" do (compound_statement "{\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            }" { (expression_statement "uVar1 = param_2[iVar6];" (assignment_expression "uVar1 = param_2[iVar6]" identifier = (subscript_expression "param_2[iVar6]" identifier [ identifier ])) ;) (expression_statement "param_2[iVar6] = param_2[iVar5 + iVar6];" (assignment_expression "param_2[iVar6] = param_2[iVar5 + iVar6]" (subscript_expression "param_2[iVar6]" identifier [ identifier ]) = (subscript_expression "param_2[iVar5 + iVar6]" identifier [ (binary_expression "iVar5 + iVar6" identifier + identifier) ])) ;) (expression_statement "param_2[iVar5 + iVar6] = uVar1;" (assignment_expression "param_2[iVar5 + iVar6] = uVar1" (subscript_expression "param_2[iVar5 + iVar6]" identifier [ (binary_expression "iVar5 + iVar6" identifier + identifier) ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != iVar6)" ( (binary_expression "iVar7 != iVar6" identifier != identifier) )) ;) (expression_statement "param_2 = param_2 + iVar7;" (assignment_expression "param_2 = param_2 + iVar7" identifier = (binary_expression "param_2 + iVar7" identifier + identifier)) ;) })) (if_statement "if (local_2c % iVar5 == 0) goto LAB_00113798;" if (parenthesized_expression "(local_2c % iVar5 == 0)" ( (binary_expression "local_2c % iVar5 == 0" (binary_expression "local_2c % iVar5" identifier % identifier) == number_literal) )) (goto_statement "goto LAB_00113798;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar5 - local_2c % iVar5;" (assignment_expression "iVar6 = iVar5 - local_2c % iVar5" identifier = (binary_expression "iVar5 - local_2c % iVar5" identifier - (binary_expression "local_2c % iVar5" identifier % identifier))) ;) (expression_statement "iVar7 = iVar5 - iVar6;" (assignment_expression "iVar7 = iVar5 - iVar6" identifier = (binary_expression "iVar5 - iVar6" identifier - identifier)) ;) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) ;) })) (expression_statement "puVar4 = param_2 + local_2c;" (assignment_expression "puVar4 = param_2 + local_2c" identifier = (binary_expression "param_2 + local_2c" identifier + identifier)) ;) (if_statement "if (iVar7 == 1) break;" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_2 = puVar4 + -iVar7;" (assignment_expression "param_2 = puVar4 + -iVar7" identifier = (binary_expression "puVar4 + -iVar7" identifier + (unary_expression "-iVar7" - identifier))) ;) (if_statement "if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" identifier = identifier) ;) (do_statement "do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);" do (compound_statement "{\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + -1;" (assignment_expression "puVar4 = puVar4 + -1" identifier = (binary_expression "puVar4 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar4;" (assignment_expression "*puVar3 = *puVar4" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar5 != iVar6)" ( (binary_expression "iVar5 != iVar6" identifier != identifier) )) ;) (expression_statement "param_2 = param_2 + -iVar5;" (assignment_expression "param_2 = param_2 + -iVar5" identifier = (binary_expression "param_2 + -iVar5" identifier + (unary_expression "-iVar5" - identifier))) ;) })) (expression_statement "iVar6 = local_2c % iVar7;" (assignment_expression "iVar6 = local_2c % iVar7" identifier = (binary_expression "local_2c % iVar7" identifier % identifier)) ;) (expression_statement "local_2c = iVar7;" (assignment_expression "local_2c = iVar7" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }" { (labeled_statement "LAB_00113798:\n        *param_1 = iVar2;" statement_identifier : (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;)) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "uVar1 = puVar4[-1];" (assignment_expression "uVar1 = puVar4[-1]" identifier = (subscript_expression "puVar4[-1]" identifier [ number_literal ])) ;) (if_statement "if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }" if (parenthesized_expression "(param_2 != puVar4 + -1)" ( (binary_expression "param_2 != puVar4 + -1" identifier != (binary_expression "puVar4 + -1" identifier + number_literal)) )) (compound_statement "{\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }" { (expression_statement "__n = (int)(puVar4 + -1) - (int)param_2;" (assignment_expression "__n = (int)(puVar4 + -1) - (int)param_2" identifier = (binary_expression "(int)(puVar4 + -1) - (int)param_2" (cast_expression "(int)(puVar4 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar4 + -1)" ( (binary_expression "puVar4 + -1" identifier + number_literal) ))) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "memmove((void *)((int)puVar4 - __n),param_2,__n);" (call_expression "memmove((void *)((int)puVar4 - __n),param_2,__n)" identifier (argument_list "((void *)((int)puVar4 - __n),param_2,__n)" ( (cast_expression "(void *)((int)puVar4 - __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 - __n)" ( (binary_expression "(int)puVar4 - __n" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) ))) , identifier , identifier ))) ;) })) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original name: __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,\n   std::vector<gold::Output_section*> > > */\n\n__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>_>\n           (Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4)\n\n{\n  _func_int_varargs **pp_Var1;\n  Output_section *pOVar2;\n  _func_int_varargs ***ppp_Var3;\n  uint64_t *puVar4;\n  Output_section *pOVar5;\n  Output_section *pOVar6;\n  int iVar7;\n  size_t __n;\n  int iVar8;\n  int iVar9;\n  int local_2c;\n  \n  if (__middle == __last) {\n    *__first = param_4;\n    return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            )__first;\n  }\n  if (param_4 == __last) {\n    *__first = __middle;\n  }\n  else {\n    pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle);\n    local_2c = (int)param_4 - (int)__middle >> 2;\n    iVar8 = (int)__last - (int)__middle >> 2;\n    pOVar6 = __last;\n    if (local_2c - iVar8 == iVar8) {\n      do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);\n      *__first = __last;\n      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;\n    }\n    while( true ) {\n      iVar9 = local_2c - iVar8;\n      if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }\n      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n      if (iVar9 == 1) break;\n      __middle = (Output_section *)(ppp_Var3 + -iVar9);\n      if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }\n      iVar8 = local_2c % iVar9;\n      local_2c = iVar9;\n      if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }\n    }\n    pp_Var1 = ppp_Var3[-1];\n    if (__middle != (Output_section *)(ppp_Var3 + -1)) {\n      __n = (int)(ppp_Var3 + -1) - (int)__middle;\n      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);\n    }\n    (__middle->super_Output_data)._vptr_Output_data = pp_Var1;\n    *__first = pOVar5;\n  }\n  return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n          )__first;\n}\n\n" comment comment (expression_statement "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>_>\n           (Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4)\n\n{\n  _func_int_varargs **pp_Var1;" (update_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>_>\n           (Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4)\n\n{\n  _func_int_varargs **pp_Var1" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>_>\n           (Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4)\n\n{\n  _func_int_varargs **pp_Var1" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx::__normal_iterator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::_V2::\n __rotate<__gnu_cxx" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > identifier) (ERROR "::_V2::\n __rotate" : : identifier : : identifier) < identifier) (ERROR "::__normal_iterator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (binary_expression "(Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4)\n\n{\n  _func_int_varargs **pp_Var1" (parenthesized_expression "(Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4)" ( (comma_expression "Output_section **__first,Output_section *__middle,Output_section *__last,\n           Output_section *param_4" (binary_expression "Output_section **__first" identifier * (pointer_expression "*__first" * identifier)) , (comma_expression "Output_section *__middle,Output_section *__last,\n           Output_section *param_4" (binary_expression "Output_section *__middle" identifier * identifier) , (comma_expression "Output_section *__last,\n           Output_section *param_4" (binary_expression "Output_section *__last" identifier * identifier) , (binary_expression "Output_section *param_4" identifier * identifier)))) )) (ERROR "{\n  _func_int_varargs" { identifier) * (pointer_expression "*pp_Var1" * identifier))) --) ;) (declaration "Output_section *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "_func_int_varargs ***ppp_Var3;" type_identifier (pointer_declarator "***ppp_Var3" * (pointer_declarator "**ppp_Var3" * (pointer_declarator "*ppp_Var3" * identifier))) ;) (declaration "uint64_t *puVar4;" primitive_type (pointer_declarator "*puVar4" * identifier) ;) (declaration "Output_section *pOVar5;" type_identifier (pointer_declarator "*pOVar5" * identifier) ;) (declaration "Output_section *pOVar6;" type_identifier (pointer_declarator "*pOVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (__middle == __last) {\n    *__first = param_4;\n    return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            )__first;\n  }" if (parenthesized_expression "(__middle == __last)" ( (binary_expression "__middle == __last" identifier == identifier) )) (compound_statement "{\n    *__first = param_4;\n    return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            )__first;\n  }" { (expression_statement "*__first = param_4;" (assignment_expression "*__first = param_4" (pointer_expression "*__first" * identifier) = identifier) ;) (return_statement "return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            )__first;" return (parenthesized_expression "(__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            )__first" ( (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            )__first" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) identifier) )) ;) })) (if_statement "if (param_4 == __last) {\n    *__first = __middle;\n  }\n  else {\n    pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle);\n    local_2c = (int)param_4 - (int)__middle >> 2;\n    iVar8 = (int)__last - (int)__middle >> 2;\n    pOVar6 = __last;\n    if (local_2c - iVar8 == iVar8) {\n      do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);\n      *__first = __last;\n      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;\n    }\n    while( true ) {\n      iVar9 = local_2c - iVar8;\n      if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }\n      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n      if (iVar9 == 1) break;\n      __middle = (Output_section *)(ppp_Var3 + -iVar9);\n      if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }\n      iVar8 = local_2c % iVar9;\n      local_2c = iVar9;\n      if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }\n    }\n    pp_Var1 = ppp_Var3[-1];\n    if (__middle != (Output_section *)(ppp_Var3 + -1)) {\n      __n = (int)(ppp_Var3 + -1) - (int)__middle;\n      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);\n    }\n    (__middle->super_Output_data)._vptr_Output_data = pp_Var1;\n    *__first = pOVar5;\n  }" if (parenthesized_expression "(param_4 == __last)" ( (binary_expression "param_4 == __last" identifier == identifier) )) (compound_statement "{\n    *__first = __middle;\n  }" { (expression_statement "*__first = __middle;" (assignment_expression "*__first = __middle" (pointer_expression "*__first" * identifier) = identifier) ;) }) (else_clause "else {\n    pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle);\n    local_2c = (int)param_4 - (int)__middle >> 2;\n    iVar8 = (int)__last - (int)__middle >> 2;\n    pOVar6 = __last;\n    if (local_2c - iVar8 == iVar8) {\n      do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);\n      *__first = __last;\n      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;\n    }\n    while( true ) {\n      iVar9 = local_2c - iVar8;\n      if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }\n      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n      if (iVar9 == 1) break;\n      __middle = (Output_section *)(ppp_Var3 + -iVar9);\n      if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }\n      iVar8 = local_2c % iVar9;\n      local_2c = iVar9;\n      if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }\n    }\n    pp_Var1 = ppp_Var3[-1];\n    if (__middle != (Output_section *)(ppp_Var3 + -1)) {\n      __n = (int)(ppp_Var3 + -1) - (int)__middle;\n      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);\n    }\n    (__middle->super_Output_data)._vptr_Output_data = pp_Var1;\n    *__first = pOVar5;\n  }" else (compound_statement "{\n    pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle);\n    local_2c = (int)param_4 - (int)__middle >> 2;\n    iVar8 = (int)__last - (int)__middle >> 2;\n    pOVar6 = __last;\n    if (local_2c - iVar8 == iVar8) {\n      do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);\n      *__first = __last;\n      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;\n    }\n    while( true ) {\n      iVar9 = local_2c - iVar8;\n      if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }\n      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n      if (iVar9 == 1) break;\n      __middle = (Output_section *)(ppp_Var3 + -iVar9);\n      if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }\n      iVar8 = local_2c % iVar9;\n      local_2c = iVar9;\n      if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }\n    }\n    pp_Var1 = ppp_Var3[-1];\n    if (__middle != (Output_section *)(ppp_Var3 + -1)) {\n      __n = (int)(ppp_Var3 + -1) - (int)__middle;\n      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);\n    }\n    (__middle->super_Output_data)._vptr_Output_data = pp_Var1;\n    *__first = pOVar5;\n  }" { (expression_statement "pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle);" (assignment_expression "pOVar5 = (Output_section *)(((int)param_4 - (int)__last) + (int)__middle)" identifier = (cast_expression "(Output_section *)(((int)param_4 - (int)__last) + (int)__middle)" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)param_4 - (int)__last) + (int)__middle)" ( (binary_expression "((int)param_4 - (int)__last) + (int)__middle" (parenthesized_expression "((int)param_4 - (int)__last)" ( (binary_expression "(int)param_4 - (int)__last" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__last" ( (type_descriptor "int" primitive_type) ) identifier)) )) + (cast_expression "(int)__middle" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "local_2c = (int)param_4 - (int)__middle >> 2;" (assignment_expression "local_2c = (int)param_4 - (int)__middle >> 2" identifier = (binary_expression "(int)param_4 - (int)__middle >> 2" (binary_expression "(int)param_4 - (int)__middle" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__middle" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "iVar8 = (int)__last - (int)__middle >> 2;" (assignment_expression "iVar8 = (int)__last - (int)__middle >> 2" identifier = (binary_expression "(int)__last - (int)__middle >> 2" (binary_expression "(int)__last - (int)__middle" (cast_expression "(int)__last" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__middle" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "pOVar6 = __last;" (assignment_expression "pOVar6 = __last" identifier = identifier) ;) (if_statement "if (local_2c - iVar8 == iVar8) {\n      do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);\n      *__first = __last;\n      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;\n    }" if (parenthesized_expression "(local_2c - iVar8 == iVar8)" ( (binary_expression "local_2c - iVar8 == iVar8" (binary_expression "local_2c - iVar8" identifier - identifier) == identifier) )) (compound_statement "{\n      do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);\n      *__first = __last;\n      return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;\n    }" { (do_statement "do {\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      } while (__last != (Output_section *)puVar4);" do (compound_statement "{\n        pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n        puVar4 = &(__middle->super_Output_data).address_;\n        (__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;\n        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;\n        __middle = (Output_section *)puVar4;\n        pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;\n      }" { (expression_statement "pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;" (assignment_expression "pp_Var1 = (__middle->super_Output_data)._vptr_Output_data" identifier = (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "puVar4 = &(__middle->super_Output_data).address_;" (assignment_expression "puVar4 = &(__middle->super_Output_data).address_" identifier = (pointer_expression "&(__middle->super_Output_data).address_" & (field_expression "(__middle->super_Output_data).address_" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "(__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data;" (assignment_expression "(__middle->super_Output_data)._vptr_Output_data =\n             (pOVar6->super_Output_data)._vptr_Output_data" (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier) = (field_expression "(pOVar6->super_Output_data)._vptr_Output_data" (parenthesized_expression "(pOVar6->super_Output_data)" ( (field_expression "pOVar6->super_Output_data" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;" (assignment_expression "(pOVar6->super_Output_data)._vptr_Output_data = pp_Var1" (field_expression "(pOVar6->super_Output_data)._vptr_Output_data" (parenthesized_expression "(pOVar6->super_Output_data)" ( (field_expression "pOVar6->super_Output_data" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "__middle = (Output_section *)puVar4;" (assignment_expression "__middle = (Output_section *)puVar4" identifier = (cast_expression "(Output_section *)puVar4" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_;" (assignment_expression "pOVar6 = (Output_section *)&(pOVar6->super_Output_data).address_" identifier = (cast_expression "(Output_section *)&(pOVar6->super_Output_data).address_" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pOVar6->super_Output_data).address_" & (field_expression "(pOVar6->super_Output_data).address_" (parenthesized_expression "(pOVar6->super_Output_data)" ( (field_expression "pOVar6->super_Output_data" identifier -> field_identifier) )) . field_identifier)))) ;) }) while (parenthesized_expression "(__last != (Output_section *)puVar4)" ( (binary_expression "__last != (Output_section *)puVar4" identifier != (cast_expression "(Output_section *)puVar4" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) ;) (expression_statement "*__first = __last;" (assignment_expression "*__first = __last" (pointer_expression "*__first" * identifier) = identifier) ;) (return_statement "return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first;" return (parenthesized_expression "(__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first" ( (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n              )__first" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) identifier) )) ;) })) (while_statement "while( true ) {\n      iVar9 = local_2c - iVar8;\n      if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }\n      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n      if (iVar9 == 1) break;\n      __middle = (Output_section *)(ppp_Var3 + -iVar9);\n      if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }\n      iVar8 = local_2c % iVar9;\n      local_2c = iVar9;\n      if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar9 = local_2c - iVar8;\n      if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }\n      ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n      if (iVar9 == 1) break;\n      __middle = (Output_section *)(ppp_Var3 + -iVar9);\n      if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }\n      iVar8 = local_2c % iVar9;\n      local_2c = iVar9;\n      if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }\n    }" { (expression_statement "iVar9 = local_2c - iVar8;" (assignment_expression "iVar9 = local_2c - iVar8" identifier = (binary_expression "local_2c - iVar8" identifier - identifier)) ;) (if_statement "if (iVar8 < iVar9) {\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }" if (parenthesized_expression "(iVar8 < iVar9)" ( (binary_expression "iVar8 < iVar9" identifier < identifier) )) (compound_statement "{\n        do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);\n      }" { (do_statement "do {\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        } while (iVar8 < iVar9);" do (compound_statement "{\n          iVar7 = iVar8;\n          if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }\n          if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }\n          if (local_2c % iVar7 == 0) goto LAB_00113798;\n          iVar8 = iVar7 - local_2c % iVar7;\n          iVar9 = iVar7 - iVar8;\n          local_2c = iVar7;\n        }" { (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (if_statement "if (iVar7 == 1) {\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n            puVar4 = &(__middle->super_Output_data).address_;\n            pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;\n            ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;\n            if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }\n            ppp_Var3[-1] = pp_Var1;\n            *__first = pOVar5;\n            return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;\n          }" { (expression_statement "puVar4 = &(__middle->super_Output_data).address_;" (assignment_expression "puVar4 = &(__middle->super_Output_data).address_" identifier = (pointer_expression "&(__middle->super_Output_data).address_" & (field_expression "(__middle->super_Output_data).address_" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "pp_Var1 = (__middle->super_Output_data)._vptr_Output_data;" (assignment_expression "pp_Var1 = (__middle->super_Output_data)._vptr_Output_data" identifier = (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;" (assignment_expression "ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c" identifier = (binary_expression "&(__middle->super_Output_data)._vptr_Output_data + local_2c" (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) + identifier)) ;) (if_statement "if ((_func_int_varargs ***)puVar4 != ppp_Var3) {\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }" if (parenthesized_expression "((_func_int_varargs ***)puVar4 != ppp_Var3)" ( (binary_expression "(_func_int_varargs ***)puVar4 != ppp_Var3" (cast_expression "(_func_int_varargs ***)puVar4" ( (type_descriptor "_func_int_varargs ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier) != identifier) )) (compound_statement "{\n              memmove(__middle,puVar4,local_2c * 4 - 4);\n            }" { (expression_statement "memmove(__middle,puVar4,local_2c * 4 - 4);" (call_expression "memmove(__middle,puVar4,local_2c * 4 - 4)" identifier (argument_list "(__middle,puVar4,local_2c * 4 - 4)" ( identifier , identifier , (binary_expression "local_2c * 4 - 4" (binary_expression "local_2c * 4" identifier * number_literal) - number_literal) ))) ;) })) (expression_statement "ppp_Var3[-1] = pp_Var1;" (assignment_expression "ppp_Var3[-1] = pp_Var1" (subscript_expression "ppp_Var3[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*__first = pOVar5;" (assignment_expression "*__first = pOVar5" (pointer_expression "*__first" * identifier) = identifier) ;) (return_statement "return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first;" return (parenthesized_expression "(__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first" ( (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    )__first" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) identifier) )) ;) })) (if_statement "if (0 < iVar9) {\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (compound_statement "{\n            iVar8 = 0;\n            do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);\n            __middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);\n          }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            } while (iVar9 != iVar8);" do (compound_statement "{\n              pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];\n              (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;\n              iVar8 = iVar8 + 1;\n            }" { (expression_statement "pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8];" (assignment_expression "pp_Var1 = (&(__middle->super_Output_data)._vptr_Output_data)[iVar8]" identifier = (subscript_expression "(&(__middle->super_Output_data)._vptr_Output_data)[iVar8]" (parenthesized_expression "(&(__middle->super_Output_data)._vptr_Output_data)" ( (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) )) [ identifier ])) ;) (expression_statement "(&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8];" (assignment_expression "(&(__middle->super_Output_data)._vptr_Output_data)[iVar8] =\n                   (&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8]" (subscript_expression "(&(__middle->super_Output_data)._vptr_Output_data)[iVar8]" (parenthesized_expression "(&(__middle->super_Output_data)._vptr_Output_data)" ( (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) )) [ identifier ]) = (subscript_expression "(&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8]" (parenthesized_expression "(&(__middle->super_Output_data)._vptr_Output_data)" ( (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) )) [ (binary_expression "iVar7 + iVar8" identifier + identifier) ])) ;) (expression_statement "(&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1;" (assignment_expression "(&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8] = pp_Var1" (subscript_expression "(&(__middle->super_Output_data)._vptr_Output_data)[iVar7 + iVar8]" (parenthesized_expression "(&(__middle->super_Output_data)._vptr_Output_data)" ( (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) )) [ (binary_expression "iVar7 + iVar8" identifier + identifier) ]) = identifier) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 != iVar8)" ( (binary_expression "iVar9 != iVar8" identifier != identifier) )) ;) (expression_statement "__middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9);" (assignment_expression "__middle = (Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9)" identifier = (cast_expression "(Output_section *)(&(__middle->super_Output_data)._vptr_Output_data + iVar9)" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&(__middle->super_Output_data)._vptr_Output_data + iVar9)" ( (binary_expression "&(__middle->super_Output_data)._vptr_Output_data + iVar9" (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) + identifier) )))) ;) })) (if_statement "if (local_2c % iVar7 == 0) goto LAB_00113798;" if (parenthesized_expression "(local_2c % iVar7 == 0)" ( (binary_expression "local_2c % iVar7 == 0" (binary_expression "local_2c % iVar7" identifier % identifier) == number_literal) )) (goto_statement "goto LAB_00113798;" goto statement_identifier ;)) (expression_statement "iVar8 = iVar7 - local_2c % iVar7;" (assignment_expression "iVar8 = iVar7 - local_2c % iVar7" identifier = (binary_expression "iVar7 - local_2c % iVar7" identifier - (binary_expression "local_2c % iVar7" identifier % identifier))) ;) (expression_statement "iVar9 = iVar7 - iVar8;" (assignment_expression "iVar9 = iVar7 - iVar8" identifier = (binary_expression "iVar7 - iVar8" identifier - identifier)) ;) (expression_statement "local_2c = iVar7;" (assignment_expression "local_2c = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(iVar8 < iVar9)" ( (binary_expression "iVar8 < iVar9" identifier < identifier) )) ;) })) (expression_statement "ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c;" (assignment_expression "ppp_Var3 = &(__middle->super_Output_data)._vptr_Output_data + local_2c" identifier = (binary_expression "&(__middle->super_Output_data)._vptr_Output_data + local_2c" (pointer_expression "&(__middle->super_Output_data)._vptr_Output_data" & (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier)) + identifier)) ;) (if_statement "if (iVar9 == 1) break;" if (parenthesized_expression "(iVar9 == 1)" ( (binary_expression "iVar9 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "__middle = (Output_section *)(ppp_Var3 + -iVar9);" (assignment_expression "__middle = (Output_section *)(ppp_Var3 + -iVar9)" identifier = (cast_expression "(Output_section *)(ppp_Var3 + -iVar9)" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppp_Var3 + -iVar9)" ( (binary_expression "ppp_Var3 + -iVar9" identifier + (unary_expression "-iVar9" - identifier)) )))) ;) (if_statement "if (0 < iVar8) {\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n        iVar7 = 0;\n        pOVar6 = __middle;\n        do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);\n        __middle = (Output_section *)((int)__middle + iVar7 * -4);\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "pOVar6 = __middle;" (assignment_expression "pOVar6 = __middle" identifier = identifier) ;) (do_statement "do {\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        } while (iVar7 != iVar8);" do (compound_statement "{\n          pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;\n          ppp_Var3 = ppp_Var3 + -1;\n          pOVar2 = *(Output_section **)pOVar6;\n          iVar7 = iVar7 + 1;\n          *(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;\n          *ppp_Var3 = (_func_int_varargs **)pOVar2;\n        }" { (expression_statement "pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_;" (assignment_expression "pOVar6 = (Output_section *)&pOVar6[-1].reloc_section_" identifier = (cast_expression "(Output_section *)&pOVar6[-1].reloc_section_" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pOVar6[-1].reloc_section_" & (field_expression "pOVar6[-1].reloc_section_" (subscript_expression "pOVar6[-1]" identifier [ number_literal ]) . field_identifier)))) ;) (expression_statement "ppp_Var3 = ppp_Var3 + -1;" (assignment_expression "ppp_Var3 = ppp_Var3 + -1" identifier = (binary_expression "ppp_Var3 + -1" identifier + number_literal)) ;) (expression_statement "pOVar2 = *(Output_section **)pOVar6;" (assignment_expression "pOVar2 = *(Output_section **)pOVar6" identifier = (pointer_expression "*(Output_section **)pOVar6" * (cast_expression "(Output_section **)pOVar6" ( (type_descriptor "Output_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(Output_section **)pOVar6 = (Output_section *)*ppp_Var3;" (assignment_expression "*(Output_section **)pOVar6 = (Output_section *)*ppp_Var3" (pointer_expression "*(Output_section **)pOVar6" * (cast_expression "(Output_section **)pOVar6" ( (type_descriptor "Output_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (cast_expression "(Output_section *)*ppp_Var3" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppp_Var3" * identifier))) ;) (expression_statement "*ppp_Var3 = (_func_int_varargs **)pOVar2;" (assignment_expression "*ppp_Var3 = (_func_int_varargs **)pOVar2" (pointer_expression "*ppp_Var3" * identifier) = (cast_expression "(_func_int_varargs **)pOVar2" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) }) while (parenthesized_expression "(iVar7 != iVar8)" ( (binary_expression "iVar7 != iVar8" identifier != identifier) )) ;) (expression_statement "__middle = (Output_section *)((int)__middle + iVar7 * -4);" (assignment_expression "__middle = (Output_section *)((int)__middle + iVar7 * -4)" identifier = (cast_expression "(Output_section *)((int)__middle + iVar7 * -4)" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__middle + iVar7 * -4)" ( (binary_expression "(int)__middle + iVar7 * -4" (cast_expression "(int)__middle" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar7 * -4" identifier * number_literal)) )))) ;) })) (expression_statement "iVar8 = local_2c % iVar9;" (assignment_expression "iVar8 = local_2c % iVar9" identifier = (binary_expression "local_2c % iVar9" identifier % identifier)) ;) (expression_statement "local_2c = iVar9;" (assignment_expression "local_2c = iVar9" identifier = identifier) ;) (if_statement "if (iVar8 == 0) {\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00113798:\n        *__first = pOVar5;\n        return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;\n      }" { (labeled_statement "LAB_00113798:\n        *__first = pOVar5;" statement_identifier : (expression_statement "*__first = pOVar5;" (assignment_expression "*__first = pOVar5" (pointer_expression "*__first" * identifier) = identifier) ;)) (return_statement "return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first;" return (parenthesized_expression "(__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first" ( (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                )__first" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) identifier) )) ;) })) })) (expression_statement "pp_Var1 = ppp_Var3[-1];" (assignment_expression "pp_Var1 = ppp_Var3[-1]" identifier = (subscript_expression "ppp_Var3[-1]" identifier [ number_literal ])) ;) (if_statement "if (__middle != (Output_section *)(ppp_Var3 + -1)) {\n      __n = (int)(ppp_Var3 + -1) - (int)__middle;\n      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);\n    }" if (parenthesized_expression "(__middle != (Output_section *)(ppp_Var3 + -1))" ( (binary_expression "__middle != (Output_section *)(ppp_Var3 + -1)" identifier != (cast_expression "(Output_section *)(ppp_Var3 + -1)" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppp_Var3 + -1)" ( (binary_expression "ppp_Var3 + -1" identifier + number_literal) )))) )) (compound_statement "{\n      __n = (int)(ppp_Var3 + -1) - (int)__middle;\n      memmove((void *)((int)ppp_Var3 - __n),__middle,__n);\n    }" { (expression_statement "__n = (int)(ppp_Var3 + -1) - (int)__middle;" (assignment_expression "__n = (int)(ppp_Var3 + -1) - (int)__middle" identifier = (binary_expression "(int)(ppp_Var3 + -1) - (int)__middle" (cast_expression "(int)(ppp_Var3 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(ppp_Var3 + -1)" ( (binary_expression "ppp_Var3 + -1" identifier + number_literal) ))) - (cast_expression "(int)__middle" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "memmove((void *)((int)ppp_Var3 - __n),__middle,__n);" (call_expression "memmove((void *)((int)ppp_Var3 - __n),__middle,__n)" identifier (argument_list "((void *)((int)ppp_Var3 - __n),__middle,__n)" ( (cast_expression "(void *)((int)ppp_Var3 - __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppp_Var3 - __n)" ( (binary_expression "(int)ppp_Var3 - __n" (cast_expression "(int)ppp_Var3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) ))) , identifier , identifier ))) ;) })) (expression_statement "(__middle->super_Output_data)._vptr_Output_data = pp_Var1;" (assignment_expression "(__middle->super_Output_data)._vptr_Output_data = pp_Var1" (field_expression "(__middle->super_Output_data)._vptr_Output_data" (parenthesized_expression "(__middle->super_Output_data)" ( (field_expression "__middle->super_Output_data" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*__first = pOVar5;" (assignment_expression "*__first = pOVar5" (pointer_expression "*__first" * identifier) = identifier) ;) }))) (ERROR "return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n          )__first;\n}" return ( (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n          )__first" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) identifier) ; }))
(translation_unit "int * FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}\n\n" (function_definition "int * FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" * (function_declarator "FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }" if (parenthesized_expression "(param_2 == param_3)" ( (binary_expression "param_2 == param_3" identifier == identifier) )) (compound_statement "{\n    *param_1 = (int)param_4;\n    return param_1;\n  }" { (expression_statement "*param_1 = (int)param_4;" (assignment_expression "*param_1 = (int)param_4" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (if_statement "if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" if (parenthesized_expression "(param_4 == param_3)" ( (binary_expression "param_4 == param_3" identifier == identifier) )) (compound_statement "{\n    *param_1 = (int)param_2;\n  }" { (expression_statement "*param_1 = (int)param_2;" (assignment_expression "*param_1 = (int)param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" else (compound_statement "{\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" { (expression_statement "iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;" (assignment_expression "iVar2 = ((int)param_4 - (int)param_3) + (int)param_2" identifier = (binary_expression "((int)param_4 - (int)param_3) + (int)param_2" (parenthesized_expression "((int)param_4 - (int)param_3)" ( (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_2c = (int)param_4 - (int)param_2 >> 2;" (assignment_expression "local_2c = (int)param_4 - (int)param_2 >> 2" identifier = (binary_expression "(int)param_4 - (int)param_2 >> 2" (binary_expression "(int)param_4 - (int)param_2" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "iVar6 = (int)param_3 - (int)param_2 >> 2;" (assignment_expression "iVar6 = (int)param_3 - (int)param_2 >> 2" identifier = (binary_expression "(int)param_3 - (int)param_2 >> 2" (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "puVar4 = param_3;" (assignment_expression "puVar4 = param_3" identifier = identifier) ;) (if_statement "if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }" if (parenthesized_expression "(local_2c - iVar6 == iVar6)" ( (binary_expression "local_2c - iVar6 == iVar6" (binary_expression "local_2c - iVar6" identifier - identifier) == identifier) )) (compound_statement "{\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }" { (do_statement "do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);" do (compound_statement "{\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      }" { (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar3 = param_2 + 1;" (assignment_expression "puVar3 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = *puVar4;" (assignment_expression "*param_2 = *puVar4" (pointer_expression "*param_2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 != puVar3)" ( (binary_expression "param_3 != puVar3" identifier != identifier) )) ;) (expression_statement "*param_1 = (int)param_3;" (assignment_expression "*param_1 = (int)param_3" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (while_statement "while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }" { (expression_statement "iVar7 = local_2c - iVar6;" (assignment_expression "iVar7 = local_2c - iVar6" identifier = (binary_expression "local_2c - iVar6" identifier - identifier)) ;) (if_statement "if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }" { (do_statement "do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);" do (compound_statement "{\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        }" { (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }" { (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }" if (parenthesized_expression "(param_2 + 1 != param_2 + local_2c)" ( (binary_expression "param_2 + 1 != param_2 + local_2c" (binary_expression "param_2 + 1" identifier + number_literal) != (binary_expression "param_2 + local_2c" identifier + identifier)) )) (compound_statement "{\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }" { (expression_statement "memmove(param_2,param_2 + 1,local_2c * 4 - 4);" (call_expression "memmove(param_2,param_2 + 1,local_2c * 4 - 4)" identifier (argument_list "(param_2,param_2 + 1,local_2c * 4 - 4)" ( identifier , (binary_expression "param_2 + 1" identifier + number_literal) , (binary_expression "local_2c * 4 - 4" (binary_expression "local_2c * 4" identifier * number_literal) - number_literal) ))) ;) })) (expression_statement "(param_2 + local_2c)[-1] = uVar1;" (assignment_expression "(param_2 + local_2c)[-1] = uVar1" (subscript_expression "(param_2 + local_2c)[-1]" (parenthesized_expression "(param_2 + local_2c)" ( (binary_expression "param_2 + local_2c" identifier + identifier) )) [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (if_statement "if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);" do (compound_statement "{\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            }" { (expression_statement "uVar1 = param_2[iVar6];" (assignment_expression "uVar1 = param_2[iVar6]" identifier = (subscript_expression "param_2[iVar6]" identifier [ identifier ])) ;) (expression_statement "param_2[iVar6] = param_2[iVar5 + iVar6];" (assignment_expression "param_2[iVar6] = param_2[iVar5 + iVar6]" (subscript_expression "param_2[iVar6]" identifier [ identifier ]) = (subscript_expression "param_2[iVar5 + iVar6]" identifier [ (binary_expression "iVar5 + iVar6" identifier + identifier) ])) ;) (expression_statement "param_2[iVar5 + iVar6] = uVar1;" (assignment_expression "param_2[iVar5 + iVar6] = uVar1" (subscript_expression "param_2[iVar5 + iVar6]" identifier [ (binary_expression "iVar5 + iVar6" identifier + identifier) ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != iVar6)" ( (binary_expression "iVar7 != iVar6" identifier != identifier) )) ;) (expression_statement "param_2 = param_2 + iVar7;" (assignment_expression "param_2 = param_2 + iVar7" identifier = (binary_expression "param_2 + iVar7" identifier + identifier)) ;) })) (if_statement "if (local_2c % iVar5 == 0) goto LAB_00113798;" if (parenthesized_expression "(local_2c % iVar5 == 0)" ( (binary_expression "local_2c % iVar5 == 0" (binary_expression "local_2c % iVar5" identifier % identifier) == number_literal) )) (goto_statement "goto LAB_00113798;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar5 - local_2c % iVar5;" (assignment_expression "iVar6 = iVar5 - local_2c % iVar5" identifier = (binary_expression "iVar5 - local_2c % iVar5" identifier - (binary_expression "local_2c % iVar5" identifier % identifier))) ;) (expression_statement "iVar7 = iVar5 - iVar6;" (assignment_expression "iVar7 = iVar5 - iVar6" identifier = (binary_expression "iVar5 - iVar6" identifier - identifier)) ;) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) ;) })) (expression_statement "puVar4 = param_2 + local_2c;" (assignment_expression "puVar4 = param_2 + local_2c" identifier = (binary_expression "param_2 + local_2c" identifier + identifier)) ;) (if_statement "if (iVar7 == 1) break;" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_2 = puVar4 + -iVar7;" (assignment_expression "param_2 = puVar4 + -iVar7" identifier = (binary_expression "puVar4 + -iVar7" identifier + (unary_expression "-iVar7" - identifier))) ;) (if_statement "if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" identifier = identifier) ;) (do_statement "do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);" do (compound_statement "{\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + -1;" (assignment_expression "puVar4 = puVar4 + -1" identifier = (binary_expression "puVar4 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar4;" (assignment_expression "*puVar3 = *puVar4" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar5 != iVar6)" ( (binary_expression "iVar5 != iVar6" identifier != identifier) )) ;) (expression_statement "param_2 = param_2 + -iVar5;" (assignment_expression "param_2 = param_2 + -iVar5" identifier = (binary_expression "param_2 + -iVar5" identifier + (unary_expression "-iVar5" - identifier))) ;) })) (expression_statement "iVar6 = local_2c % iVar7;" (assignment_expression "iVar6 = local_2c % iVar7" identifier = (binary_expression "local_2c % iVar7" identifier % identifier)) ;) (expression_statement "local_2c = iVar7;" (assignment_expression "local_2c = iVar7" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }" { (labeled_statement "LAB_00113798:\n        *param_1 = iVar2;" statement_identifier : (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;)) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "uVar1 = puVar4[-1];" (assignment_expression "uVar1 = puVar4[-1]" identifier = (subscript_expression "puVar4[-1]" identifier [ number_literal ])) ;) (if_statement "if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }" if (parenthesized_expression "(param_2 != puVar4 + -1)" ( (binary_expression "param_2 != puVar4 + -1" identifier != (binary_expression "puVar4 + -1" identifier + number_literal)) )) (compound_statement "{\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }" { (expression_statement "__n = (int)(puVar4 + -1) - (int)param_2;" (assignment_expression "__n = (int)(puVar4 + -1) - (int)param_2" identifier = (binary_expression "(int)(puVar4 + -1) - (int)param_2" (cast_expression "(int)(puVar4 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar4 + -1)" ( (binary_expression "puVar4 + -1" identifier + number_literal) ))) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "memmove((void *)((int)puVar4 - __n),param_2,__n);" (call_expression "memmove((void *)((int)puVar4 - __n),param_2,__n)" identifier (argument_list "((void *)((int)puVar4 - __n),param_2,__n)" ( (cast_expression "(void *)((int)puVar4 - __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 - __n)" ( (binary_expression "(int)puVar4 - __n" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) ))) , identifier , identifier ))) ;) })) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) == IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression (binary_expression IDENT * LIT) - LIT) ))) ;) })) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (subscript_expression IDENT [ (binary_expression IDENT + IDENT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + IDENT) ]) = IDENT) ;) (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)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT % IDENT) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (binary_expression IDENT % IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - IDENT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) ))) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (* "*") (function_declarator "FUN_00113620(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "FUN_00113620") (parameter_list "(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }\n  if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }\n  return param_1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (if_statement "if (param_2 == param_3) {\n    *param_1 = (int)param_4;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 == param_3)" (( "(") (binary_expression "param_2 == param_3" (identifier "param_2") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n    *param_1 = (int)param_4;\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = (int)param_4;" (assignment_expression "*param_1 = (int)param_4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (param_4 == param_3) {\n    *param_1 = (int)param_2;\n  }\n  else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" (if "if") (parenthesized_expression "(param_4 == param_3)" (( "(") (binary_expression "param_4 == param_3" (identifier "param_4") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n    *param_1 = (int)param_2;\n  }" ({ "{") (expression_statement "*param_1 = (int)param_2;" (assignment_expression "*param_1 = (int)param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" (else "else") (compound_statement "{\n    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;\n    local_2c = (int)param_4 - (int)param_2 >> 2;\n    iVar6 = (int)param_3 - (int)param_2 >> 2;\n    puVar4 = param_3;\n    if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }\n    while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }\n    uVar1 = puVar4[-1];\n    if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }\n    *param_2 = uVar1;\n    *param_1 = iVar2;\n  }" ({ "{") (expression_statement "iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;" (assignment_expression "iVar2 = ((int)param_4 - (int)param_3) + (int)param_2" (identifier "iVar2") (= "=") (binary_expression "((int)param_4 - (int)param_3) + (int)param_2" (parenthesized_expression "((int)param_4 - (int)param_3)" (( "(") (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (+ "+") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "local_2c = (int)param_4 - (int)param_2 >> 2;" (assignment_expression "local_2c = (int)param_4 - (int)param_2 >> 2" (identifier "local_2c") (= "=") (binary_expression "(int)param_4 - (int)param_2 >> 2" (binary_expression "(int)param_4 - (int)param_2" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "iVar6 = (int)param_3 - (int)param_2 >> 2;" (assignment_expression "iVar6 = (int)param_3 - (int)param_2 >> 2" (identifier "iVar6") (= "=") (binary_expression "(int)param_3 - (int)param_2 >> 2" (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "puVar4 = param_3;" (assignment_expression "puVar4 = param_3" (identifier "puVar4") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (local_2c - iVar6 == iVar6) {\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(local_2c - iVar6 == iVar6)" (( "(") (binary_expression "local_2c - iVar6 == iVar6" (binary_expression "local_2c - iVar6" (identifier "local_2c") (- "-") (identifier "iVar6")) (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\n      do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);\n      *param_1 = (int)param_3;\n      return param_1;\n    }" ({ "{") (do_statement "do {\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      } while (param_3 != puVar3);" (do "do") (compound_statement "{\n        uVar1 = *param_2;\n        puVar3 = param_2 + 1;\n        *param_2 = *puVar4;\n        *puVar4 = uVar1;\n        param_2 = puVar3;\n        puVar4 = puVar4 + 1;\n      }" ({ "{") (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "puVar3 = param_2 + 1;" (assignment_expression "puVar3 = param_2 + 1" (identifier "puVar3") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = *puVar4;" (assignment_expression "*param_2 = *puVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" (identifier "param_2") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != puVar3)" (( "(") (binary_expression "param_3 != puVar3" (identifier "param_3") (!= "!=") (identifier "puVar3")) () ")")) (; ";")) (expression_statement "*param_1 = (int)param_3;" (assignment_expression "*param_1 = (int)param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (while_statement "while( true ) {\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar7 = local_2c - iVar6;\n      if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }\n      puVar4 = param_2 + local_2c;\n      if (iVar7 == 1) break;\n      param_2 = puVar4 + -iVar7;\n      if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }\n      iVar6 = local_2c % iVar7;\n      local_2c = iVar7;\n      if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }\n    }" ({ "{") (expression_statement "iVar7 = local_2c - iVar6;" (assignment_expression "iVar7 = local_2c - iVar6" (identifier "iVar7") (= "=") (binary_expression "local_2c - iVar6" (identifier "local_2c") (- "-") (identifier "iVar6"))) (; ";")) (if_statement "if (iVar6 < iVar7) {\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }" (if "if") (parenthesized_expression "(iVar6 < iVar7)" (( "(") (binary_expression "iVar6 < iVar7" (identifier "iVar6") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n        do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);\n      }" ({ "{") (do_statement "do {\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        } while (iVar6 < iVar7);" (do "do") (compound_statement "{\n          iVar5 = iVar6;\n          if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }\n          if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }\n          if (local_2c % iVar5 == 0) goto LAB_00113798;\n          iVar6 = iVar5 - local_2c % iVar5;\n          iVar7 = iVar5 - iVar6;\n          local_2c = iVar5;\n        }" ({ "{") (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (iVar5 == 1) {\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }" (if "if") (parenthesized_expression "(iVar5 == 1)" (( "(") (binary_expression "iVar5 == 1" (identifier "iVar5") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            uVar1 = *param_2;\n            if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }\n            (param_2 + local_2c)[-1] = uVar1;\n            *param_1 = iVar2;\n            return param_1;\n          }" ({ "{") (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (param_2 + 1 != param_2 + local_2c) {\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }" (if "if") (parenthesized_expression "(param_2 + 1 != param_2 + local_2c)" (( "(") (binary_expression "param_2 + 1 != param_2 + local_2c" (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (!= "!=") (binary_expression "param_2 + local_2c" (identifier "param_2") (+ "+") (identifier "local_2c"))) () ")")) (compound_statement "{\n              memmove(param_2,param_2 + 1,local_2c * 4 - 4);\n            }" ({ "{") (expression_statement "memmove(param_2,param_2 + 1,local_2c * 4 - 4);" (call_expression "memmove(param_2,param_2 + 1,local_2c * 4 - 4)" (identifier "memmove") (argument_list "(param_2,param_2 + 1,local_2c * 4 - 4)" (( "(") (identifier "param_2") (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (binary_expression "local_2c * 4 - 4" (binary_expression "local_2c * 4" (identifier "local_2c") (* "*") (number_literal "4")) (- "-") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (expression_statement "(param_2 + local_2c)[-1] = uVar1;" (assignment_expression "(param_2 + local_2c)[-1] = uVar1" (subscript_expression "(param_2 + local_2c)[-1]" (parenthesized_expression "(param_2 + local_2c)" (( "(") (binary_expression "param_2 + local_2c" (identifier "param_2") (+ "+") (identifier "local_2c")) () ")")) ([ "[") (number_literal "-1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (0 < iVar7) {\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n            iVar6 = 0;\n            do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);\n            param_2 = param_2 + iVar7;\n          }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            } while (iVar7 != iVar6);" (do "do") (compound_statement "{\n              uVar1 = param_2[iVar6];\n              param_2[iVar6] = param_2[iVar5 + iVar6];\n              param_2[iVar5 + iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n            }" ({ "{") (expression_statement "uVar1 = param_2[iVar6];" (assignment_expression "uVar1 = param_2[iVar6]" (identifier "uVar1") (= "=") (subscript_expression "param_2[iVar6]" (identifier "param_2") ([ "[") (identifier "iVar6") (] "]"))) (; ";")) (expression_statement "param_2[iVar6] = param_2[iVar5 + iVar6];" (assignment_expression "param_2[iVar6] = param_2[iVar5 + iVar6]" (subscript_expression "param_2[iVar6]" (identifier "param_2") ([ "[") (identifier "iVar6") (] "]")) (= "=") (subscript_expression "param_2[iVar5 + iVar6]" (identifier "param_2") ([ "[") (binary_expression "iVar5 + iVar6" (identifier "iVar5") (+ "+") (identifier "iVar6")) (] "]"))) (; ";")) (expression_statement "param_2[iVar5 + iVar6] = uVar1;" (assignment_expression "param_2[iVar5 + iVar6] = uVar1" (subscript_expression "param_2[iVar5 + iVar6]" (identifier "param_2") ([ "[") (binary_expression "iVar5 + iVar6" (identifier "iVar5") (+ "+") (identifier "iVar6")) (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != iVar6)" (( "(") (binary_expression "iVar7 != iVar6" (identifier "iVar7") (!= "!=") (identifier "iVar6")) () ")")) (; ";")) (expression_statement "param_2 = param_2 + iVar7;" (assignment_expression "param_2 = param_2 + iVar7" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar7" (identifier "param_2") (+ "+") (identifier "iVar7"))) (; ";")) (} "}"))) (if_statement "if (local_2c % iVar5 == 0) goto LAB_00113798;" (if "if") (parenthesized_expression "(local_2c % iVar5 == 0)" (( "(") (binary_expression "local_2c % iVar5 == 0" (binary_expression "local_2c % iVar5" (identifier "local_2c") (% "%") (identifier "iVar5")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00113798;" (goto "goto") (statement_identifier "LAB_00113798") (; ";"))) (expression_statement "iVar6 = iVar5 - local_2c % iVar5;" (assignment_expression "iVar6 = iVar5 - local_2c % iVar5" (identifier "iVar6") (= "=") (binary_expression "iVar5 - local_2c % iVar5" (identifier "iVar5") (- "-") (binary_expression "local_2c % iVar5" (identifier "local_2c") (% "%") (identifier "iVar5")))) (; ";")) (expression_statement "iVar7 = iVar5 - iVar6;" (assignment_expression "iVar7 = iVar5 - iVar6" (identifier "iVar7") (= "=") (binary_expression "iVar5 - iVar6" (identifier "iVar5") (- "-") (identifier "iVar6"))) (; ";")) (expression_statement "local_2c = iVar5;" (assignment_expression "local_2c = iVar5" (identifier "local_2c") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < iVar7)" (( "(") (binary_expression "iVar6 < iVar7" (identifier "iVar6") (< "<") (identifier "iVar7")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar4 = param_2 + local_2c;" (assignment_expression "puVar4 = param_2 + local_2c" (identifier "puVar4") (= "=") (binary_expression "param_2 + local_2c" (identifier "param_2") (+ "+") (identifier "local_2c"))) (; ";")) (if_statement "if (iVar7 == 1) break;" (if "if") (parenthesized_expression "(iVar7 == 1)" (( "(") (binary_expression "iVar7 == 1" (identifier "iVar7") (== "==") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_2 = puVar4 + -iVar7;" (assignment_expression "param_2 = puVar4 + -iVar7" (identifier "param_2") (= "=") (binary_expression "puVar4 + -iVar7" (identifier "puVar4") (+ "+") (unary_expression "-iVar7" (- "-") (identifier "iVar7")))) (; ";")) (if_statement "if (0 < iVar6) {\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n        iVar5 = 0;\n        puVar3 = param_2;\n        do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);\n        param_2 = param_2 + -iVar5;\n      }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" (identifier "puVar3") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        } while (iVar5 != iVar6);" (do "do") (compound_statement "{\n          puVar3 = puVar3 + -1;\n          puVar4 = puVar4 + -1;\n          uVar1 = *puVar3;\n          iVar5 = iVar5 + 1;\n          *puVar3 = *puVar4;\n          *puVar4 = uVar1;\n        }" ({ "{") (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -1" (identifier "puVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar4 = puVar4 + -1;" (assignment_expression "puVar4 = puVar4 + -1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + -1" (identifier "puVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" (identifier "uVar1") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = *puVar4;" (assignment_expression "*puVar3 = *puVar4" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar6)" (( "(") (binary_expression "iVar5 != iVar6" (identifier "iVar5") (!= "!=") (identifier "iVar6")) () ")")) (; ";")) (expression_statement "param_2 = param_2 + -iVar5;" (assignment_expression "param_2 = param_2 + -iVar5" (identifier "param_2") (= "=") (binary_expression "param_2 + -iVar5" (identifier "param_2") (+ "+") (unary_expression "-iVar5" (- "-") (identifier "iVar5")))) (; ";")) (} "}"))) (expression_statement "iVar6 = local_2c % iVar7;" (assignment_expression "iVar6 = local_2c % iVar7" (identifier "iVar6") (= "=") (binary_expression "local_2c % iVar7" (identifier "local_2c") (% "%") (identifier "iVar7"))) (; ";")) (expression_statement "local_2c = iVar7;" (assignment_expression "local_2c = iVar7" (identifier "local_2c") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar6 == 0) {\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00113798:\n        *param_1 = iVar2;\n        return param_1;\n      }" ({ "{") (labeled_statement "LAB_00113798:\n        *param_1 = iVar2;" (statement_identifier "LAB_00113798") (: ":") (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar1 = puVar4[-1];" (assignment_expression "uVar1 = puVar4[-1]" (identifier "uVar1") (= "=") (subscript_expression "puVar4[-1]" (identifier "puVar4") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (if_statement "if (param_2 != puVar4 + -1) {\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }" (if "if") (parenthesized_expression "(param_2 != puVar4 + -1)" (( "(") (binary_expression "param_2 != puVar4 + -1" (identifier "param_2") (!= "!=") (binary_expression "puVar4 + -1" (identifier "puVar4") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n      __n = (int)(puVar4 + -1) - (int)param_2;\n      memmove((void *)((int)puVar4 - __n),param_2,__n);\n    }" ({ "{") (expression_statement "__n = (int)(puVar4 + -1) - (int)param_2;" (assignment_expression "__n = (int)(puVar4 + -1) - (int)param_2" (identifier "__n") (= "=") (binary_expression "(int)(puVar4 + -1) - (int)param_2" (cast_expression "(int)(puVar4 + -1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar4 + -1)" (( "(") (binary_expression "puVar4 + -1" (identifier "puVar4") (+ "+") (number_literal "-1")) () ")"))) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "memmove((void *)((int)puVar4 - __n),param_2,__n);" (call_expression "memmove((void *)((int)puVar4 - __n),param_2,__n)" (identifier "memmove") (argument_list "((void *)((int)puVar4 - __n),param_2,__n)" (( "(") (cast_expression "(void *)((int)puVar4 - __n)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 - __n)" (( "(") (binary_expression "(int)puVar4 - __n" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (- "-") (identifier "__n")) () ")"))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original name: __rotate<__gnu_cxx::__normal_iterator<gold::Output_section**,
   std::vector<gold::Output_section*> > > */

var_1<var_2::var_7**,var_3::vector<var_2::var_7*,var_3::allocator<var_2::var_7*>var_4>var_4>
 var_5::_V2::
 __rotate<var_6::var_1<var_2::var_7**,var_3::vector<var_2::var_7*>var_4>var_4>
           (var_7 **var_11,var_7 *var_8,var_7 *var_9,
           var_7 *var_10)

{
  type_1 **pp_Var1;
  var_7 *pOVar2;
  type_1 ***var_16;
  uint64_t *puVar4;
  var_7 *pOVar5;
  var_7 *pOVar6;
  int var_15;
  size_t var_18;
  int var_13;
  int var_14;
  int var_12;
  
  if (var_8 == var_9) {
    *var_11 = var_10;
    return (var_1<var_2::var_7**,var_3::vector<var_2::var_7*,var_3::allocator<var_2::var_7*>var_4>var_4>
            )var_11;
  }
  if (var_10 == var_9) {
    *var_11 = var_8;
  }
  else {
    pOVar5 = (var_7 *)(((int)var_10 - (int)var_9) + (int)var_8);
    var_12 = (int)var_10 - (int)var_8 >> 2;
    var_13 = (int)var_9 - (int)var_8 >> 2;
    pOVar6 = var_9;
    if (var_12 - var_13 == var_13) {
      do {
        pp_Var1 = (var_8->super_Output_data)._vptr_Output_data;
        puVar4 = &(var_8->super_Output_data).address_;
        (var_8->super_Output_data)._vptr_Output_data =
             (pOVar6->super_Output_data)._vptr_Output_data;
        (pOVar6->super_Output_data)._vptr_Output_data = pp_Var1;
        var_8 = (var_7 *)puVar4;
        pOVar6 = (var_7 *)&(pOVar6->super_Output_data).address_;
      } while (var_9 != (var_7 *)puVar4);
      *var_11 = var_9;
      return (var_1<var_2::var_7**,var_3::vector<var_2::var_7*,var_3::allocator<var_2::var_7*>var_4>var_4>
              )var_11;
    }
    while( true ) {
      var_14 = var_12 - var_13;
      if (var_13 < var_14) {
        do {
          var_15 = var_13;
          if (var_15 == 1) {
            puVar4 = &(var_8->super_Output_data).address_;
            pp_Var1 = (var_8->super_Output_data)._vptr_Output_data;
            var_16 = &(var_8->super_Output_data)._vptr_Output_data + var_12;
            if ((type_1 ***)puVar4 != var_16) {
              var_17(var_8,puVar4,var_12 * 4 - 4);
            }
            var_16[-1] = pp_Var1;
            *var_11 = pOVar5;
            return (var_1<var_2::var_7**,var_3::vector<var_2::var_7*,var_3::allocator<var_2::var_7*>var_4>var_4>
                    )var_11;
          }
          if (0 < var_14) {
            var_13 = 0;
            do {
              pp_Var1 = (&(var_8->super_Output_data)._vptr_Output_data)[var_13];
              (&(var_8->super_Output_data)._vptr_Output_data)[var_13] =
                   (&(var_8->super_Output_data)._vptr_Output_data)[var_15 + var_13];
              (&(var_8->super_Output_data)._vptr_Output_data)[var_15 + var_13] = pp_Var1;
              var_13 = var_13 + 1;
            } while (var_14 != var_13);
            var_8 = (var_7 *)(&(var_8->super_Output_data)._vptr_Output_data + var_14);
          }
          if (var_12 % var_15 == 0) goto LAB_00113798;
          var_13 = var_15 - var_12 % var_15;
          var_14 = var_15 - var_13;
          var_12 = var_15;
        } while (var_13 < var_14);
      }
      var_16 = &(var_8->super_Output_data)._vptr_Output_data + var_12;
      if (var_14 == 1) break;
      var_8 = (var_7 *)(var_16 + -var_14);
      if (0 < var_13) {
        var_15 = 0;
        pOVar6 = var_8;
        do {
          pOVar6 = (var_7 *)&pOVar6[-1].reloc_section_;
          var_16 = var_16 + -1;
          pOVar2 = *(var_7 **)pOVar6;
          var_15 = var_15 + 1;
          *(var_7 **)pOVar6 = (var_7 *)*var_16;
          *var_16 = (type_1 **)pOVar2;
        } while (var_15 != var_13);
        var_8 = (var_7 *)((int)var_8 + var_15 * -4);
      }
      var_13 = var_12 % var_14;
      var_12 = var_14;
      if (var_13 == 0) {
LAB_00113798:
        *var_11 = pOVar5;
        return (var_1<var_2::var_7**,var_3::vector<var_2::var_7*,var_3::allocator<var_2::var_7*>var_4>var_4>
                )var_11;
      }
    }
    pp_Var1 = var_16[-1];
    if (var_8 != (var_7 *)(var_16 + -1)) {
      var_18 = (int)(var_16 + -1) - (int)var_8;
      var_17((void *)((int)var_16 - var_18),var_8,var_18);
    }
    (var_8->super_Output_data)._vptr_Output_data = pp_Var1;
    *var_11 = pOVar5;
  }
  return (var_1<var_2::var_7**,var_3::vector<var_2::var_7*,var_3::allocator<var_2::var_7*>var_4>var_4>
          )var_11;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int * MASKED(int *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int iVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  int local_2c;
  
  if (param_2 == param_3) {
    *param_1 = (int)param_4;
    return param_1;
  }
  if (param_4 == param_3) {
    *param_1 = (int)param_2;
  }
  else {
    iVar2 = ((int)param_4 - (int)param_3) + (int)param_2;
    local_2c = (int)param_4 - (int)param_2 >> 2;
    iVar6 = (int)param_3 - (int)param_2 >> 2;
    puVar4 = param_3;
    if (local_2c - iVar6 == iVar6) {
      do {
        uVar1 = *param_2;
        puVar3 = param_2 + 1;
        *param_2 = *puVar4;
        *puVar4 = uVar1;
        param_2 = puVar3;
        puVar4 = puVar4 + 1;
      } while (param_3 != puVar3);
      *param_1 = (int)param_3;
      return param_1;
    }
    while( true ) {
      iVar7 = local_2c - iVar6;
      if (iVar6 < iVar7) {
        do {
          iVar5 = iVar6;
          if (iVar5 == 1) {
            uVar1 = *param_2;
            if (param_2 + 1 != param_2 + local_2c) {
              memmove(param_2,param_2 + 1,local_2c * 4 - 4);
            }
            (param_2 + local_2c)[-1] = uVar1;
            *param_1 = iVar2;
            return param_1;
          }
          if (0 < iVar7) {
            iVar6 = 0;
            do {
              uVar1 = param_2[iVar6];
              param_2[iVar6] = param_2[iVar5 + iVar6];
              param_2[iVar5 + iVar6] = uVar1;
              iVar6 = iVar6 + 1;
            } while (iVar7 != iVar6);
            param_2 = param_2 + iVar7;
          }
          if (local_2c % iVar5 == 0) goto LAB_00113798;
          iVar6 = iVar5 - local_2c % iVar5;
          iVar7 = iVar5 - iVar6;
          local_2c = iVar5;
        } while (iVar6 < iVar7);
      }
      puVar4 = param_2 + local_2c;
      if (iVar7 == 1) break;
      param_2 = puVar4 + -iVar7;
      if (0 < iVar6) {
        iVar5 = 0;
        puVar3 = param_2;
        do {
          puVar3 = puVar3 + -1;
          puVar4 = puVar4 + -1;
          uVar1 = *puVar3;
          iVar5 = iVar5 + 1;
          *puVar3 = *puVar4;
          *puVar4 = uVar1;
        } while (iVar5 != iVar6);
        param_2 = param_2 + -iVar5;
      }
      iVar6 = local_2c % iVar7;
      local_2c = iVar7;
      if (iVar6 == 0) {
LAB_00113798:
        *param_1 = iVar2;
        return param_1;
      }
    }
    uVar1 = puVar4[-1];
    if (param_2 != puVar4 + -1) {
      __n = (int)(puVar4 + -1) - (int)param_2;
      memmove((void *)((int)puVar4 - __n),param_2,__n);
    }
    *param_2 = uVar1;
    *param_1 = iVar2;
  }
  return param_1;
}

