
void __regparm3 sqlite3BitvecClear(Bitvec *p,u32 i,void *pBuf)

{
  int *piVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  
  if (p != (Bitvec *)0x0) {
    uVar4 = i - 1;
    do {
      uVar3 = p->iDivisor;
      if (uVar3 == 0) {
        if (p->iSize < 0xfa1) {
          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));
          return;
        }
        *(u32 *)pBuf = (p->u).aHash[0];
        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];
        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);
        iVar5 = (int)pBuf - (int)puVar6;
        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));
        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {
          *puVar6 = *puVar7;
          puVar7 = puVar7 + 1;
          puVar6 = puVar6 + 1;
        }
        (p->u).aHash[0] = 0;
        (p->u).aHash[0x7c] = 0;
        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);
        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;
        for (; uVar3 != 0; uVar3 = uVar3 - 1) {
          *puVar7 = 0;
          puVar7 = puVar7 + 1;
        }
        p->nSet = 0;
        piVar1 = (int *)((int)pBuf + 500);
        do {
                    /* WARNING: Load size is inaccurate */
          iVar5 = *pBuf;
          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {
            p->nSet = p->nSet + 1;
            uVar3 = (iVar5 - 1U) % 0x7d;
            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {
              uVar3 = uVar3 + 1;
              if (uVar3 == 0x7d) {
                uVar3 = 0;
              }
            }
                    /* WARNING: Load size is inaccurate */
            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;
          }
          pBuf = (void *)((int)pBuf + 4);
        } while (piVar1 != (int *)pBuf);
        return;
      }
      uVar2 = uVar4 / uVar3;
      uVar4 = uVar4 % uVar3;
      p = *(Bitvec **)((int)&p->u + uVar2 * 4);
    } while (p != (Bitvec *)0x0);
  }
  return;
}



void __regparm3 FUN_000417f0(uint *param_1,int param_2,uint *param_3)

{
  uint *puVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  
  if (param_1 != (uint *)0x0) {
    uVar5 = param_2 - 1;
    do {
      uVar4 = param_1[2];
      if (uVar4 == 0) {
        if (*param_1 < 0xfa1) {
          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);
          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));
          return;
        }
        *param_3 = param_1[3];
        param_3[0x7c] = param_1[0x7f];
        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);
        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));
        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);
        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {
          *puVar8 = *puVar7;
          puVar7 = puVar7 + 1;
          puVar8 = puVar8 + 1;
        }
        param_1[3] = 0;
        param_1[0x7f] = 0;
        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);
        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;
            uVar4 != 0; uVar4 = uVar4 - 1) {
          *puVar7 = 0;
          puVar7 = puVar7 + 1;
        }
        param_1[1] = 0;
        puVar1 = param_3 + 0x7d;
        do {
          uVar4 = *param_3;
          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {
            param_1[1] = param_1[1] + 1;
            uVar4 = (uVar4 - 1) % 0x7d;
            while (param_1[uVar4 + 3] != 0) {
              uVar4 = uVar4 + 1;
              if (uVar4 == 0x7d) {
                uVar4 = 0;
              }
            }
            param_1[uVar4 + 3] = *param_3;
          }
          param_3 = param_3 + 1;
        } while (puVar1 != param_3);
        return;
      }
      uVar3 = uVar5 / uVar4;
      uVar5 = uVar5 % uVar4;
      param_1 = (uint *)param_1[uVar3 + 3];
    } while (param_1 != (uint *)0x0);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV dword ptr [ESP],ECX
TEST EAX,EAX
JZ 0x0004183c
MOV EBX,EAX
SUB EDX,0x1
JMP 0x00041816
MOV EAX,EDX
XOR EDX,EDX
DIV EBP
MOV EBX,dword ptr [EBX + EAX*0x4 + 0xc]
TEST EBX,EBX
JZ 0x0004183c
MOV EBP,dword ptr [EBX + 0x8]
TEST EBP,EBP
JNZ 0x00041808
CMP dword ptr [EBX],0xfa0
JA 0x00041844
MOV ECX,EDX
MOV ESI,EDX
MOV EAX,0x1
AND ECX,0x7
SHR ESI,0x3
SHL EAX,CL
NOT EAX
AND byte ptr [EBX + ESI*0x1 + 0xc],AL
ADD ESP,0x4
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP]
MOV ECX,dword ptr [EBX + 0xc]
LEA EAX,[EBX + 0xc]
MOV dword ptr [EDI],ECX
MOV ECX,dword ptr [EBX + 0x1fc]
MOV dword ptr [EDI + 0x1f0],ECX
MOV ECX,EDI
LEA EDI,[EDI + 0x4]
AND EDI,0xfffffffc
MOV ESI,ECX
MOV dword ptr [ESP],ECX
SUB ESI,EDI
MOV ECX,ESI
MOV ESI,EAX
SUB ESI,ECX
ADD ECX,0x1f4
SHR ECX,0x2
MOVSD.REP ES:EDI,ESI
LEA EDI,[EBX + 0x10]
MOV dword ptr [EBX + 0xc],0x0
MOV dword ptr [EBX + 0x1fc],0x0
AND EDI,0xfffffffc
SUB EAX,EDI
LEA ECX,[EAX + 0x1f4]
MOV EAX,EBP
SHR ECX,0x2
STOSD.REP ES:EDI
MOV dword ptr [EBX + 0x4],0x0
LEA EDI,[EDX + 0x1]
MOV ECX,dword ptr [ESP]
LEA EBP,[ECX + 0x1f4]
JMP 0x000418cb
ADD ECX,0x4
CMP EBP,ECX
JZ 0x0004183c
MOV ESI,dword ptr [ECX]
TEST ESI,ESI
JZ 0x000418c0
CMP ESI,EDI
JZ 0x000418c0
SUB ESI,0x1
MOV EAX,0x10624dd3
ADD dword ptr [EBX + 0x4],0x1
MUL ESI
SHR EDX,0x3
IMUL EDX,EDX,0x7d
SUB ESI,EDX
MOV EDX,ESI
JMP 0x000418fe
ADD EDX,0x1
MOV EAX,0x0
CMP EDX,0x7d
CMOVZ EDX,EAX
MOV EAX,dword ptr [EBX + EDX*0x4 + 0xc]
TEST EAX,EAX
JNZ 0x000418f0
MOV EAX,dword ptr [ECX]
MOV dword ptr [EBX + EDX*0x4 + 0xc],EAX
JMP 0x000418c0
(translation_unit "void __regparm3 FUN_000417f0(uint *param_1,int param_2,uint *param_3)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000417f0(uint *param_1,int param_2,uint *param_3)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000417f0(uint *param_1,int param_2,uint *param_3)" identifier (parameter_list "(uint *param_1,int param_2,uint *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (if_statement "if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }" if (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }" { (expression_statement "uVar5 = param_2 - 1;" (assignment_expression "uVar5 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (do_statement "do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);" do (compound_statement "{\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    }" { (expression_statement "uVar4 = param_1[2];" (assignment_expression "uVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }" { (if_statement "if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }" if (parenthesized_expression "(*param_1 < 0xfa1)" ( (binary_expression "*param_1 < 0xfa1" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }" { (expression_statement "pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);" (assignment_expression "pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc)" identifier = (cast_expression "(byte *)((int)param_1 + (uVar5 >> 3) + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + (uVar5 >> 3) + 0xc)" ( (binary_expression "(int)param_1 + (uVar5 >> 3) + 0xc" (binary_expression "(int)param_1 + (uVar5 >> 3)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar5 >> 3)" ( (binary_expression "uVar5 >> 3" identifier >> number_literal) ))) + number_literal) )))) ;) (expression_statement "*pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));" (assignment_expression "*pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7))" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7))" (pointer_expression "*pbVar2" * identifier) & (unary_expression "~(byte)(1 << ((byte)uVar5 & 7))" ~ (call_expression "(byte)(1 << ((byte)uVar5 & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)uVar5 & 7))" ( (binary_expression "1 << ((byte)uVar5 & 7)" number_literal << (parenthesized_expression "((byte)uVar5 & 7)" ( (binary_expression "(byte)uVar5 & 7" (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )))))) ;) (return_statement "return;" return ;) })) (expression_statement "*param_3 = param_1[3];" (assignment_expression "*param_3 = param_1[3]" (pointer_expression "*param_3" * identifier) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_3[0x7c] = param_1[0x7f];" (assignment_expression "param_3[0x7c] = param_1[0x7f]" (subscript_expression "param_3[0x7c]" identifier [ number_literal ]) = (subscript_expression "param_1[0x7f]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc)" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));" (assignment_expression "puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6))" identifier = (cast_expression "(undefined4 *)((int)param_1 + (0xc - iVar6))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + (0xc - iVar6))" ( (binary_expression "(int)param_1 + (0xc - iVar6)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xc - iVar6)" ( (binary_expression "0xc - iVar6" number_literal - identifier) ))) )))) ;) (expression_statement "puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }" for ( (assignment_expression "uVar4 = iVar6 + 500U >> 2" identifier = (binary_expression "iVar6 + 500U >> 2" (binary_expression "iVar6 + 500U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }" { (expression_statement "*puVar8 = *puVar7;" (assignment_expression "*puVar8 = *puVar7" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x7f] = 0;" (assignment_expression "param_1[0x7f] = 0" (subscript_expression "param_1[0x7f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);" (assignment_expression "puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_1 + 4) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_1 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 4) & 0xfffffffc" (call_expression "(uint)(param_1 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" for ( (assignment_expression "uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)))" ( (binary_expression "(int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))" ( (binary_expression "0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_1 + 4) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_1 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 4) & 0xfffffffc" (call_expression "(uint)(param_1 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = param_3 + 0x7d;" (assignment_expression "puVar1 = param_3 + 0x7d" identifier = (binary_expression "param_3 + 0x7d" identifier + number_literal)) ;) (do_statement "do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);" do (compound_statement "{\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        }" { (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }" if (parenthesized_expression "((uVar4 != 0) && (uVar4 != uVar5 + 1))" ( (binary_expression "(uVar4 != 0) && (uVar4 != uVar5 + 1)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 != uVar5 + 1)" ( (binary_expression "uVar4 != uVar5 + 1" identifier != (binary_expression "uVar5 + 1" identifier + number_literal)) ))) )) (compound_statement "{\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }" { (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "uVar4 = (uVar4 - 1) % 0x7d;" (assignment_expression "uVar4 = (uVar4 - 1) % 0x7d" identifier = (binary_expression "(uVar4 - 1) % 0x7d" (parenthesized_expression "(uVar4 - 1)" ( (binary_expression "uVar4 - 1" identifier - number_literal) )) % number_literal)) ;) (while_statement "while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }" while (parenthesized_expression "(param_1[uVar4 + 3] != 0)" ( (binary_expression "param_1[uVar4 + 3] != 0" (subscript_expression "param_1[uVar4 + 3]" identifier [ (binary_expression "uVar4 + 3" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }" { (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }" if (parenthesized_expression "(uVar4 == 0x7d)" ( (binary_expression "uVar4 == 0x7d" identifier == number_literal) )) (compound_statement "{\n                uVar4 = 0;\n              }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) })) (expression_statement "param_1[uVar4 + 3] = *param_3;" (assignment_expression "param_1[uVar4 + 3] = *param_3" (subscript_expression "param_1[uVar4 + 3]" identifier [ (binary_expression "uVar4 + 3" identifier + number_literal) ]) = (pointer_expression "*param_3" * identifier)) ;) })) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != param_3)" ( (binary_expression "puVar1 != param_3" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = uVar5 / uVar4;" (assignment_expression "uVar3 = uVar5 / uVar4" identifier = (binary_expression "uVar5 / uVar4" identifier / identifier)) ;) (expression_statement "uVar5 = uVar5 % uVar4;" (assignment_expression "uVar5 = uVar5 % uVar4" identifier = (binary_expression "uVar5 % uVar4" identifier % identifier)) ;) (expression_statement "param_1 = (uint *)param_1[uVar3 + 3];" (assignment_expression "param_1 = (uint *)param_1[uVar3 + 3]" identifier = (cast_expression "(uint *)param_1[uVar3 + 3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[uVar3 + 3]" identifier [ (binary_expression "uVar3 + 3" identifier + number_literal) ]))) ;) }) while (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3BitvecClear(Bitvec *p,u32 i,void *pBuf)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  \n  if (p != (Bitvec *)0x0) {\n    uVar4 = i - 1;\n    do {\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    } while (p != (Bitvec *)0x0);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3BitvecClear(Bitvec *p,u32 i,void *pBuf)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  \n  if (p != (Bitvec *)0x0) {\n    uVar4 = i - 1;\n    do {\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    } while (p != (Bitvec *)0x0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3BitvecClear(Bitvec *p,u32 i,void *pBuf)" identifier (parameter_list "(Bitvec *p,u32 i,void *pBuf)" ( (parameter_declaration "Bitvec *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u32 i" type_identifier identifier) , (parameter_declaration "void *pBuf" primitive_type (pointer_declarator "*pBuf" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  \n  if (p != (Bitvec *)0x0) {\n    uVar4 = i - 1;\n    do {\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    } while (p != (Bitvec *)0x0);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (if_statement "if (p != (Bitvec *)0x0) {\n    uVar4 = i - 1;\n    do {\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    } while (p != (Bitvec *)0x0);\n  }" if (parenthesized_expression "(p != (Bitvec *)0x0)" ( (binary_expression "p != (Bitvec *)0x0" identifier != (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar4 = i - 1;\n    do {\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    } while (p != (Bitvec *)0x0);\n  }" { (expression_statement "uVar4 = i - 1;" (assignment_expression "uVar4 = i - 1" identifier = (binary_expression "i - 1" identifier - number_literal)) ;) (do_statement "do {\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    } while (p != (Bitvec *)0x0);" do (compound_statement "{\n      uVar3 = p->iDivisor;\n      if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }\n      uVar2 = uVar4 / uVar3;\n      uVar4 = uVar4 % uVar3;\n      p = *(Bitvec **)((int)&p->u + uVar2 * 4);\n    }" { (expression_statement "uVar3 = p->iDivisor;" (assignment_expression "uVar3 = p->iDivisor" identifier = (field_expression "p->iDivisor" identifier -> field_identifier)) ;) (if_statement "if (uVar3 == 0) {\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }\n        *(u32 *)pBuf = (p->u).aHash[0];\n        *(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];\n        puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);\n        iVar5 = (int)pBuf - (int)puVar6;\n        puVar7 = (undefined4 *)((int)p + (0xc - iVar5));\n        for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }\n        (p->u).aHash[0] = 0;\n        (p->u).aHash[0x7c] = 0;\n        puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);\n        uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;\n        for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        p->nSet = 0;\n        piVar1 = (int *)((int)pBuf + 500);\n        do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);\n        return;\n      }" { (if_statement "if (p->iSize < 0xfa1) {\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }" if (parenthesized_expression "(p->iSize < 0xfa1)" ( (binary_expression "p->iSize < 0xfa1" (field_expression "p->iSize" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n          (p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));\n          return;\n        }" { (expression_statement "(p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7));" (assignment_expression "(p->u).aBitmap[uVar4 >> 3] = (p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7))" (subscript_expression "(p->u).aBitmap[uVar4 >> 3]" (field_expression "(p->u).aBitmap" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ (binary_expression "uVar4 >> 3" identifier >> number_literal) ]) = (binary_expression "(p->u).aBitmap[uVar4 >> 3] & ~(byte)(1 << ((byte)uVar4 & 7))" (subscript_expression "(p->u).aBitmap[uVar4 >> 3]" (field_expression "(p->u).aBitmap" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ (binary_expression "uVar4 >> 3" identifier >> number_literal) ]) & (unary_expression "~(byte)(1 << ((byte)uVar4 & 7))" ~ (call_expression "(byte)(1 << ((byte)uVar4 & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)uVar4 & 7))" ( (binary_expression "1 << ((byte)uVar4 & 7)" number_literal << (parenthesized_expression "((byte)uVar4 & 7)" ( (binary_expression "(byte)uVar4 & 7" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )))))) ;) (return_statement "return;" return ;) })) (expression_statement "*(u32 *)pBuf = (p->u).aHash[0];" (assignment_expression "*(u32 *)pBuf = (p->u).aHash[0]" (pointer_expression "*(u32 *)pBuf" * (cast_expression "(u32 *)pBuf" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (subscript_expression "(p->u).aHash[0]" (field_expression "(p->u).aHash" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "*(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c];" (assignment_expression "*(u32 *)((int)pBuf + 0x1f0) = (p->u).aHash[0x7c]" (pointer_expression "*(u32 *)((int)pBuf + 0x1f0)" * (cast_expression "(u32 *)((int)pBuf + 0x1f0)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pBuf + 0x1f0)" ( (binary_expression "(int)pBuf + 0x1f0" (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (subscript_expression "(p->u).aHash[0x7c]" (field_expression "(p->u).aHash" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc);" (assignment_expression "puVar6 = (undefined4 *)((int)pBuf + 4U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((int)pBuf + 4U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pBuf + 4U & 0xfffffffc)" ( (binary_expression "(int)pBuf + 4U & 0xfffffffc" (binary_expression "(int)pBuf + 4U" (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal) )))) ;) (expression_statement "iVar5 = (int)pBuf - (int)puVar6;" (assignment_expression "iVar5 = (int)pBuf - (int)puVar6" identifier = (binary_expression "(int)pBuf - (int)puVar6" (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar7 = (undefined4 *)((int)p + (0xc - iVar5));" (assignment_expression "puVar7 = (undefined4 *)((int)p + (0xc - iVar5))" identifier = (cast_expression "(undefined4 *)((int)p + (0xc - iVar5))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + (0xc - iVar5))" ( (binary_expression "(int)p + (0xc - iVar5)" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xc - iVar5)" ( (binary_expression "0xc - iVar5" number_literal - identifier) ))) )))) ;) (for_statement "for (uVar3 = iVar5 + 500U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }" for ( (assignment_expression "uVar3 = iVar5 + 500U >> 2" identifier = (binary_expression "iVar5 + 500U >> 2" (binary_expression "iVar5 + 500U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n          *puVar6 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar6 = puVar6 + 1;\n        }" { (expression_statement "*puVar6 = *puVar7;" (assignment_expression "*puVar6 = *puVar7" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "(p->u).aHash[0] = 0;" (assignment_expression "(p->u).aHash[0] = 0" (subscript_expression "(p->u).aHash[0]" (field_expression "(p->u).aHash" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "(p->u).aHash[0x7c] = 0;" (assignment_expression "(p->u).aHash[0x7c] = 0" (subscript_expression "(p->u).aHash[0x7c]" (field_expression "(p->u).aHash" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc);" (assignment_expression "puVar7 = (undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)((int)&p->u + 4U) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)((int)&p->u + 4U) & 0xfffffffc)" ( (binary_expression "(uint)((int)&p->u + 4U) & 0xfffffffc" (call_expression "(uint)((int)&p->u + 4U)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)&p->u + 4U)" ( (binary_expression "(int)&p->u + 4U" (cast_expression "(int)&p->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2;" (assignment_expression "uVar3 = (uint)((int)p + (0x200 - (int)puVar7)) >> 2" identifier = (binary_expression "(uint)((int)p + (0x200 - (int)puVar7)) >> 2" (call_expression "(uint)((int)p + (0x200 - (int)puVar7))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)p + (0x200 - (int)puVar7))" ( (binary_expression "(int)p + (0x200 - (int)puVar7)" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x200 - (int)puVar7)" ( (binary_expression "0x200 - (int)puVar7" number_literal - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" for ( ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "p->nSet = 0;" (assignment_expression "p->nSet = 0" (field_expression "p->nSet" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar1 = (int *)((int)pBuf + 500);" (assignment_expression "piVar1 = (int *)((int)pBuf + 500)" identifier = (cast_expression "(int *)((int)pBuf + 500)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pBuf + 500)" ( (binary_expression "(int)pBuf + 500" (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        } while (piVar1 != (int *)pBuf);" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n          iVar5 = *pBuf;\n          if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }\n          pBuf = (void *)((int)pBuf + 4);\n        }" { comment (expression_statement "iVar5 = *pBuf;" (assignment_expression "iVar5 = *pBuf" identifier = (pointer_expression "*pBuf" * identifier)) ;) (if_statement "if ((iVar5 != 0) && (iVar5 != uVar4 + 1)) {\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }" if (parenthesized_expression "((iVar5 != 0) && (iVar5 != uVar4 + 1))" ( (binary_expression "(iVar5 != 0) && (iVar5 != uVar4 + 1)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar5 != uVar4 + 1)" ( (binary_expression "iVar5 != uVar4 + 1" identifier != (binary_expression "uVar4 + 1" identifier + number_literal)) ))) )) (compound_statement "{\n            p->nSet = p->nSet + 1;\n            uVar3 = (iVar5 - 1U) % 0x7d;\n            while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }\n                    /* WARNING: Load size is inaccurate */\n            *(int *)((int)&p->u + uVar3 * 4) = *pBuf;\n          }" { (expression_statement "p->nSet = p->nSet + 1;" (assignment_expression "p->nSet = p->nSet + 1" (field_expression "p->nSet" identifier -> field_identifier) = (binary_expression "p->nSet + 1" (field_expression "p->nSet" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar3 = (iVar5 - 1U) % 0x7d;" (assignment_expression "uVar3 = (iVar5 - 1U) % 0x7d" identifier = (binary_expression "(iVar5 - 1U) % 0x7d" (parenthesized_expression "(iVar5 - 1U)" ( (binary_expression "iVar5 - 1U" identifier - number_literal) )) % number_literal)) ;) (while_statement "while (*(int *)((int)&p->u + uVar3 * 4) != 0) {\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }" while (parenthesized_expression "(*(int *)((int)&p->u + uVar3 * 4) != 0)" ( (binary_expression "*(int *)((int)&p->u + uVar3 * 4) != 0" (pointer_expression "*(int *)((int)&p->u + uVar3 * 4)" * (cast_expression "(int *)((int)&p->u + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->u + uVar3 * 4)" ( (binary_expression "(int)&p->u + uVar3 * 4" (cast_expression "(int)&p->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n              uVar3 = uVar3 + 1;\n              if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }\n            }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 == 0x7d) {\n                uVar3 = 0;\n              }" if (parenthesized_expression "(uVar3 == 0x7d)" ( (binary_expression "uVar3 == 0x7d" identifier == number_literal) )) (compound_statement "{\n                uVar3 = 0;\n              }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) })) comment (expression_statement "*(int *)((int)&p->u + uVar3 * 4) = *pBuf;" (assignment_expression "*(int *)((int)&p->u + uVar3 * 4) = *pBuf" (pointer_expression "*(int *)((int)&p->u + uVar3 * 4)" * (cast_expression "(int *)((int)&p->u + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->u + uVar3 * 4)" ( (binary_expression "(int)&p->u + uVar3 * 4" (cast_expression "(int)&p->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = (pointer_expression "*pBuf" * identifier)) ;) })) (expression_statement "pBuf = (void *)((int)pBuf + 4);" (assignment_expression "pBuf = (void *)((int)pBuf + 4)" identifier = (cast_expression "(void *)((int)pBuf + 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pBuf + 4)" ( (binary_expression "(int)pBuf + 4" (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(piVar1 != (int *)pBuf)" ( (binary_expression "piVar1 != (int *)pBuf" identifier != (cast_expression "(int *)pBuf" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = uVar4 / uVar3;" (assignment_expression "uVar2 = uVar4 / uVar3" identifier = (binary_expression "uVar4 / uVar3" identifier / identifier)) ;) (expression_statement "uVar4 = uVar4 % uVar3;" (assignment_expression "uVar4 = uVar4 % uVar3" identifier = (binary_expression "uVar4 % uVar3" identifier % identifier)) ;) (expression_statement "p = *(Bitvec **)((int)&p->u + uVar2 * 4);" (assignment_expression "p = *(Bitvec **)((int)&p->u + uVar2 * 4)" identifier = (pointer_expression "*(Bitvec **)((int)&p->u + uVar2 * 4)" * (cast_expression "(Bitvec **)((int)&p->u + uVar2 * 4)" ( (type_descriptor "Bitvec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&p->u + uVar2 * 4)" ( (binary_expression "(int)&p->u + uVar2 * 4" (cast_expression "(int)&p->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "uVar2 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(p != (Bitvec *)0x0)" ( (binary_expression "p != (Bitvec *)0x0" identifier != (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000417f0(uint *param_1,int param_2,uint *param_3)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000417f0(uint *param_1,int param_2,uint *param_3)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000417f0(uint *param_1,int param_2,uint *param_3)" identifier (parameter_list "(uint *param_1,int param_2,uint *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (if_statement "if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }" if (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }" { (expression_statement "uVar5 = param_2 - 1;" (assignment_expression "uVar5 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (do_statement "do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);" do (compound_statement "{\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    }" { (expression_statement "uVar4 = param_1[2];" (assignment_expression "uVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }" { (if_statement "if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }" if (parenthesized_expression "(*param_1 < 0xfa1)" ( (binary_expression "*param_1 < 0xfa1" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }" { (expression_statement "pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);" (assignment_expression "pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc)" identifier = (cast_expression "(byte *)((int)param_1 + (uVar5 >> 3) + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + (uVar5 >> 3) + 0xc)" ( (binary_expression "(int)param_1 + (uVar5 >> 3) + 0xc" (binary_expression "(int)param_1 + (uVar5 >> 3)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar5 >> 3)" ( (binary_expression "uVar5 >> 3" identifier >> number_literal) ))) + number_literal) )))) ;) (expression_statement "*pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));" (assignment_expression "*pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7))" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7))" (pointer_expression "*pbVar2" * identifier) & (unary_expression "~(byte)(1 << ((byte)uVar5 & 7))" ~ (call_expression "(byte)(1 << ((byte)uVar5 & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)uVar5 & 7))" ( (binary_expression "1 << ((byte)uVar5 & 7)" number_literal << (parenthesized_expression "((byte)uVar5 & 7)" ( (binary_expression "(byte)uVar5 & 7" (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )))))) ;) (return_statement "return;" return ;) })) (expression_statement "*param_3 = param_1[3];" (assignment_expression "*param_3 = param_1[3]" (pointer_expression "*param_3" * identifier) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_3[0x7c] = param_1[0x7f];" (assignment_expression "param_3[0x7c] = param_1[0x7f]" (subscript_expression "param_3[0x7c]" identifier [ number_literal ]) = (subscript_expression "param_1[0x7f]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc)" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));" (assignment_expression "puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6))" identifier = (cast_expression "(undefined4 *)((int)param_1 + (0xc - iVar6))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + (0xc - iVar6))" ( (binary_expression "(int)param_1 + (0xc - iVar6)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xc - iVar6)" ( (binary_expression "0xc - iVar6" number_literal - identifier) ))) )))) ;) (expression_statement "puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }" for ( (assignment_expression "uVar4 = iVar6 + 500U >> 2" identifier = (binary_expression "iVar6 + 500U >> 2" (binary_expression "iVar6 + 500U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }" { (expression_statement "*puVar8 = *puVar7;" (assignment_expression "*puVar8 = *puVar7" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x7f] = 0;" (assignment_expression "param_1[0x7f] = 0" (subscript_expression "param_1[0x7f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);" (assignment_expression "puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_1 + 4) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_1 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 4) & 0xfffffffc" (call_expression "(uint)(param_1 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" for ( (assignment_expression "uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)))" ( (binary_expression "(int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))" ( (binary_expression "0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_1 + 4) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_1 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 4) & 0xfffffffc" (call_expression "(uint)(param_1 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = param_3 + 0x7d;" (assignment_expression "puVar1 = param_3 + 0x7d" identifier = (binary_expression "param_3 + 0x7d" identifier + number_literal)) ;) (do_statement "do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);" do (compound_statement "{\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        }" { (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }" if (parenthesized_expression "((uVar4 != 0) && (uVar4 != uVar5 + 1))" ( (binary_expression "(uVar4 != 0) && (uVar4 != uVar5 + 1)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 != uVar5 + 1)" ( (binary_expression "uVar4 != uVar5 + 1" identifier != (binary_expression "uVar5 + 1" identifier + number_literal)) ))) )) (compound_statement "{\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }" { (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "uVar4 = (uVar4 - 1) % 0x7d;" (assignment_expression "uVar4 = (uVar4 - 1) % 0x7d" identifier = (binary_expression "(uVar4 - 1) % 0x7d" (parenthesized_expression "(uVar4 - 1)" ( (binary_expression "uVar4 - 1" identifier - number_literal) )) % number_literal)) ;) (while_statement "while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }" while (parenthesized_expression "(param_1[uVar4 + 3] != 0)" ( (binary_expression "param_1[uVar4 + 3] != 0" (subscript_expression "param_1[uVar4 + 3]" identifier [ (binary_expression "uVar4 + 3" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }" { (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }" if (parenthesized_expression "(uVar4 == 0x7d)" ( (binary_expression "uVar4 == 0x7d" identifier == number_literal) )) (compound_statement "{\n                uVar4 = 0;\n              }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) })) (expression_statement "param_1[uVar4 + 3] = *param_3;" (assignment_expression "param_1[uVar4 + 3] = *param_3" (subscript_expression "param_1[uVar4 + 3]" identifier [ (binary_expression "uVar4 + 3" identifier + number_literal) ]) = (pointer_expression "*param_3" * identifier)) ;) })) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != param_3)" ( (binary_expression "puVar1 != param_3" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = uVar5 / uVar4;" (assignment_expression "uVar3 = uVar5 / uVar4" identifier = (binary_expression "uVar5 / uVar4" identifier / identifier)) ;) (expression_statement "uVar5 = uVar5 % uVar4;" (assignment_expression "uVar5 = uVar5 % uVar4" identifier = (binary_expression "uVar5 % uVar4" identifier % identifier)) ;) (expression_statement "param_1 = (uint *)param_1[uVar3 + 3];" (assignment_expression "param_1 = (uint *)param_1[uVar3 + 3]" identifier = (cast_expression "(uint *)param_1[uVar3 + 3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[uVar3 + 3]" identifier [ (binary_expression "uVar3 + 3" identifier + number_literal) ]))) ;) }) while (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & (unary_expression ~ (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) )))))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) % LIT)) ;) (while_statement while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000417f0(uint *param_1,int param_2,uint *param_3)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000417f0(uint *param_1,int param_2,uint *param_3)" (identifier "FUN_000417f0") (parameter_list "(uint *param_1,int param_2,uint *param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  \n  if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (if_statement "if (param_1 != (uint *)0x0) {\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }" (if "if") (parenthesized_expression "(param_1 != (uint *)0x0)" (( "(") (binary_expression "param_1 != (uint *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar5 = param_2 - 1;\n    do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);\n  }" ({ "{") (expression_statement "uVar5 = param_2 - 1;" (assignment_expression "uVar5 = param_2 - 1" (identifier "uVar5") (= "=") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1"))) (; ";")) (do_statement "do {\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    } while (param_1 != (uint *)0x0);" (do "do") (compound_statement "{\n      uVar4 = param_1[2];\n      if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }\n      uVar3 = uVar5 / uVar4;\n      uVar5 = uVar5 % uVar4;\n      param_1 = (uint *)param_1[uVar3 + 3];\n    }" ({ "{") (expression_statement "uVar4 = param_1[2];" (assignment_expression "uVar4 = param_1[2]" (identifier "uVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (uVar4 == 0) {\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }\n        *param_3 = param_1[3];\n        param_3[0x7c] = param_1[0x7f];\n        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);\n        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));\n        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }\n        param_1[3] = 0;\n        param_1[0x7f] = 0;\n        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);\n        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }\n        param_1[1] = 0;\n        puVar1 = param_3 + 0x7d;\n        do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);\n        return;\n      }" ({ "{") (if_statement "if (*param_1 < 0xfa1) {\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }" (if "if") (parenthesized_expression "(*param_1 < 0xfa1)" (( "(") (binary_expression "*param_1 < 0xfa1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (number_literal "0xfa1")) () ")")) (compound_statement "{\n          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);\n          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));\n          return;\n        }" ({ "{") (expression_statement "pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);" (assignment_expression "pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)((int)param_1 + (uVar5 >> 3) + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + (uVar5 >> 3) + 0xc)" (( "(") (binary_expression "(int)param_1 + (uVar5 >> 3) + 0xc" (binary_expression "(int)param_1 + (uVar5 >> 3)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (parenthesized_expression "(uVar5 >> 3)" (( "(") (binary_expression "uVar5 >> 3" (identifier "uVar5") (>> ">>") (number_literal "3")) () ")"))) (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "*pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));" (assignment_expression "*pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7))" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "*pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7))" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (& "&") (unary_expression "~(byte)(1 << ((byte)uVar5 & 7))" (~ "~") (call_expression "(byte)(1 << ((byte)uVar5 & 7))" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(1 << ((byte)uVar5 & 7))" (( "(") (binary_expression "1 << ((byte)uVar5 & 7)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)uVar5 & 7)" (( "(") (binary_expression "(byte)uVar5 & 7" (cast_expression "(byte)uVar5" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar5")) (& "&") (number_literal "7")) () ")"))) () ")")))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*param_3 = param_1[3];" (assignment_expression "*param_3 = param_1[3]" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_3[0x7c] = param_1[0x7f];" (assignment_expression "param_3[0x7c] = param_1[0x7f]" (subscript_expression "param_3[0x7c]" (identifier "param_3") ([ "[") (number_literal "0x7c") (] "]")) (= "=") (subscript_expression "param_1[0x7f]" (identifier "param_1") ([ "[") (number_literal "0x7f") (] "]"))) (; ";")) (expression_statement "iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc)" (identifier "iVar6") (= "=") (binary_expression "(int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc)" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (cast_expression "(int)((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))))) (; ";")) (expression_statement "puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));" (assignment_expression "puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6))" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)((int)param_1 + (0xc - iVar6))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + (0xc - iVar6))" (( "(") (binary_expression "(int)param_1 + (0xc - iVar6)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (parenthesized_expression "(0xc - iVar6)" (( "(") (binary_expression "0xc - iVar6" (number_literal "0xc") (- "-") (identifier "iVar6")) () ")"))) () ")")))) (; ";")) (expression_statement "puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }" (for "for") (( "(") (assignment_expression "uVar4 = iVar6 + 500U >> 2" (identifier "uVar4") (= "=") (binary_expression "iVar6 + 500U >> 2" (binary_expression "iVar6 + 500U" (identifier "iVar6") (+ "+") (number_literal "500U")) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n          *puVar8 = *puVar7;\n          puVar7 = puVar7 + 1;\n          puVar8 = puVar8 + 1;\n        }" ({ "{") (expression_statement "*puVar8 = *puVar7;" (assignment_expression "*puVar8 = *puVar7" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x7f] = 0;" (assignment_expression "param_1[0x7f] = 0" (subscript_expression "param_1[0x7f]" (identifier "param_1") ([ "[") (number_literal "0x7f") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);" (assignment_expression "puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)((uint)(param_1 + 4) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(param_1 + 4) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_1 + 4) & 0xfffffffc" (call_expression "(uint)(param_1 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;\n            uVar4 != 0; uVar4 = uVar4 - 1) {\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" (for "for") (( "(") (assignment_expression "uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2" (identifier "uVar4") (= "=") (binary_expression "(uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)))" (( "(") (binary_expression "(int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (parenthesized_expression "(0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))" (( "(") (binary_expression "0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc)" (number_literal "0x200") (- "-") (cast_expression "(int)((uint)(param_1 + 4) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(param_1 + 4) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_1 + 4) & 0xfffffffc" (call_expression "(uint)(param_1 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n          *puVar7 = 0;\n          puVar7 = puVar7 + 1;\n        }" ({ "{") (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = param_3 + 0x7d;" (assignment_expression "puVar1 = param_3 + 0x7d" (identifier "puVar1") (= "=") (binary_expression "param_3 + 0x7d" (identifier "param_3") (+ "+") (number_literal "0x7d"))) (; ";")) (do_statement "do {\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        } while (puVar1 != param_3);" (do "do") (compound_statement "{\n          uVar4 = *param_3;\n          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }\n          param_3 = param_3 + 1;\n        }" ({ "{") (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" (identifier "uVar4") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }" (if "if") (parenthesized_expression "((uVar4 != 0) && (uVar4 != uVar5 + 1))" (( "(") (binary_expression "(uVar4 != 0) && (uVar4 != uVar5 + 1)" (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar4 != uVar5 + 1)" (( "(") (binary_expression "uVar4 != uVar5 + 1" (identifier "uVar4") (!= "!=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n            param_1[1] = param_1[1] + 1;\n            uVar4 = (uVar4 - 1) % 0x7d;\n            while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }\n            param_1[uVar4 + 3] = *param_3;\n          }" ({ "{") (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = (uVar4 - 1) % 0x7d;" (assignment_expression "uVar4 = (uVar4 - 1) % 0x7d" (identifier "uVar4") (= "=") (binary_expression "(uVar4 - 1) % 0x7d" (parenthesized_expression "(uVar4 - 1)" (( "(") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1")) () ")")) (% "%") (number_literal "0x7d"))) (; ";")) (while_statement "while (param_1[uVar4 + 3] != 0) {\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }" (while "while") (parenthesized_expression "(param_1[uVar4 + 3] != 0)" (( "(") (binary_expression "param_1[uVar4 + 3] != 0" (subscript_expression "param_1[uVar4 + 3]" (identifier "param_1") ([ "[") (binary_expression "uVar4 + 3" (identifier "uVar4") (+ "+") (number_literal "3")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              uVar4 = uVar4 + 1;\n              if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }\n            }" ({ "{") (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar4 == 0x7d) {\n                uVar4 = 0;\n              }" (if "if") (parenthesized_expression "(uVar4 == 0x7d)" (( "(") (binary_expression "uVar4 == 0x7d" (identifier "uVar4") (== "==") (number_literal "0x7d")) () ")")) (compound_statement "{\n                uVar4 = 0;\n              }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "param_1[uVar4 + 3] = *param_3;" (assignment_expression "param_1[uVar4 + 3] = *param_3" (subscript_expression "param_1[uVar4 + 3]" (identifier "param_1") ([ "[") (binary_expression "uVar4 + 3" (identifier "uVar4") (+ "+") (number_literal "3")) (] "]")) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}"))) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != param_3)" (( "(") (binary_expression "puVar1 != param_3" (identifier "puVar1") (!= "!=") (identifier "param_3")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = uVar5 / uVar4;" (assignment_expression "uVar3 = uVar5 / uVar4" (identifier "uVar3") (= "=") (binary_expression "uVar5 / uVar4" (identifier "uVar5") (/ "/") (identifier "uVar4"))) (; ";")) (expression_statement "uVar5 = uVar5 % uVar4;" (assignment_expression "uVar5 = uVar5 % uVar4" (identifier "uVar5") (= "=") (binary_expression "uVar5 % uVar4" (identifier "uVar5") (% "%") (identifier "uVar4"))) (; ";")) (expression_statement "param_1 = (uint *)param_1[uVar3 + 3];" (assignment_expression "param_1 = (uint *)param_1[uVar3 + 3]" (identifier "param_1") (= "=") (cast_expression "(uint *)param_1[uVar3 + 3]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[uVar3 + 3]" (identifier "param_1") ([ "[") (binary_expression "uVar3 + 3" (identifier "uVar3") (+ "+") (number_literal "3")) (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (uint *)0x0)" (( "(") (binary_expression "param_1 != (uint *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *var_1,type_2 var_2,void *pBuf)

{
  int *var_8;
  type_3 var_9;
  type_3 var_3;
  type_3 var_4;
  int var_5;
  type_4 *var_7;
  type_4 *var_6;
  
  if (var_1 != (type_1 *)0x0) {
    var_4 = var_2 - 1;
    do {
      var_3 = var_1->iDivisor;
      if (var_3 == 0) {
        if (var_1->iSize < 0xfa1) {
          (var_1->u).aBitmap[var_4 >> 3] = (var_1->u).aBitmap[var_4 >> 3] & ~(type_5)(1 << ((type_5)var_4 & 7));
          return;
        }
        *(type_2 *)pBuf = (var_1->u).aHash[0];
        *(type_2 *)((int)pBuf + 0x1f0) = (var_1->u).aHash[0x7c];
        var_7 = (type_4 *)((int)pBuf + 4U & 0xfffffffc);
        var_5 = (int)pBuf - (int)var_7;
        var_6 = (type_4 *)((int)var_1 + (0xc - var_5));
        for (var_3 = var_5 + 500U >> 2; var_3 != 0; var_3 = var_3 - 1) {
          *var_7 = *var_6;
          var_6 = var_6 + 1;
          var_7 = var_7 + 1;
        }
        (var_1->u).aHash[0] = 0;
        (var_1->u).aHash[0x7c] = 0;
        var_6 = (type_4 *)((type_3)((int)&var_1->u + 4U) & 0xfffffffc);
        var_3 = (type_3)((int)var_1 + (0x200 - (int)var_6)) >> 2;
        for (; var_3 != 0; var_3 = var_3 - 1) {
          *var_6 = 0;
          var_6 = var_6 + 1;
        }
        var_1->nSet = 0;
        var_8 = (int *)((int)pBuf + 500);
        do {
                    /* WARNING: Load size is inaccurate */
          var_5 = *pBuf;
          if ((var_5 != 0) && (var_5 != var_4 + 1)) {
            var_1->nSet = var_1->nSet + 1;
            var_3 = (var_5 - 1U) % 0x7d;
            while (*(int *)((int)&var_1->u + var_3 * 4) != 0) {
              var_3 = var_3 + 1;
              if (var_3 == 0x7d) {
                var_3 = 0;
              }
            }
                    /* WARNING: Load size is inaccurate */
            *(int *)((int)&var_1->u + var_3 * 4) = *pBuf;
          }
          pBuf = (void *)((int)pBuf + 4);
        } while (var_8 != (int *)pBuf);
        return;
      }
      var_9 = var_4 / var_3;
      var_4 = var_4 % var_3;
      var_1 = *(type_1 **)((int)&var_1->u + var_9 * 4);
    } while (var_1 != (type_1 *)0x0);
  }
  return;
}


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

void __regparm3 MASKED(uint *param_1,int param_2,uint *param_3)

{
  uint *puVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  
  if (param_1 != (uint *)0x0) {
    uVar5 = param_2 - 1;
    do {
      uVar4 = param_1[2];
      if (uVar4 == 0) {
        if (*param_1 < 0xfa1) {
          pbVar2 = (byte *)((int)param_1 + (uVar5 >> 3) + 0xc);
          *pbVar2 = *pbVar2 & ~(byte)(1 << ((byte)uVar5 & 7));
          return;
        }
        *param_3 = param_1[3];
        param_3[0x7c] = param_1[0x7f];
        iVar6 = (int)param_3 - (int)((uint)(param_3 + 1) & 0xfffffffc);
        puVar7 = (undefined4 *)((int)param_1 + (0xc - iVar6));
        puVar8 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);
        for (uVar4 = iVar6 + 500U >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {
          *puVar8 = *puVar7;
          puVar7 = puVar7 + 1;
          puVar8 = puVar8 + 1;
        }
        param_1[3] = 0;
        param_1[0x7f] = 0;
        puVar7 = (undefined4 *)((uint)(param_1 + 4) & 0xfffffffc);
        for (uVar4 = (uint)((int)param_1 + (0x200 - (int)((uint)(param_1 + 4) & 0xfffffffc))) >> 2;
            uVar4 != 0; uVar4 = uVar4 - 1) {
          *puVar7 = 0;
          puVar7 = puVar7 + 1;
        }
        param_1[1] = 0;
        puVar1 = param_3 + 0x7d;
        do {
          uVar4 = *param_3;
          if ((uVar4 != 0) && (uVar4 != uVar5 + 1)) {
            param_1[1] = param_1[1] + 1;
            uVar4 = (uVar4 - 1) % 0x7d;
            while (param_1[uVar4 + 3] != 0) {
              uVar4 = uVar4 + 1;
              if (uVar4 == 0x7d) {
                uVar4 = 0;
              }
            }
            param_1[uVar4 + 3] = *param_3;
          }
          param_3 = param_3 + 1;
        } while (puVar1 != param_3);
        return;
      }
      uVar3 = uVar5 / uVar4;
      uVar5 = uVar5 % uVar4;
      param_1 = (uint *)param_1[uVar3 + 3];
    } while (param_1 != (uint *)0x0);
  }
  return;
}

