
u32 sqlite3FkOldmask(Parse *pParse,Table *pTab)

{
  short *psVar1;
  FKey *pFVar2;
  sColMap *psVar3;
  uint uVar4;
  u32 uVar5;
  short *psVar6;
  long in_FS_OFFSET;
  Index *pIdx;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar5 = 0;
  if ((pParse->db->flags & 0x4000) != 0) {
    for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {
      if (0 < pFVar2->nCol) {
        psVar3 = pFVar2->aCol;
        do {
          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);
          if (0x1f < psVar3->iFrom) {
            uVar4 = 0xffffffff;
          }
          uVar5 = uVar5 | uVar4;
          psVar3 = psVar3 + 1;
        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)
                );
      }
    }
    pFVar2 = sqlite3FkReferences(pTab);
    if (pFVar2 != (FKey *)0x0) {
      do {
        pIdx = (Index *)0x0;
        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);
        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {
          psVar6 = pIdx->aiColumn;
          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;
          do {
            uVar4 = 0xffffffff;
            if (*psVar6 < 0x20) {
              uVar4 = 1 << ((byte)*psVar6 & 0x1f);
            }
            uVar5 = uVar5 | uVar4;
            psVar6 = psVar6 + 1;
          } while (psVar1 != psVar6);
        }
        pFVar2 = pFVar2->pNextTo;
      } while (pFVar2 != (FKey *)0x0);
    }
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



uint FUN_0012ecbb(long *param_1,long param_2)

{
  short *psVar1;
  long lVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  short *psVar6;
  long in_FS_OFFSET;
  long local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar5 = 0;
  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {
    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {
      if (0 < *(int *)(lVar2 + 0x28)) {
        piVar3 = (int *)(lVar2 + 0x40);
        do {
          uVar4 = 1 << ((byte)*piVar3 & 0x1f);
          if (0x1f < *piVar3) {
            uVar4 = 0xffffffff;
          }
          uVar5 = uVar5 | uVar4;
          piVar3 = piVar3 + 4;
        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));
      }
    }
    lVar2 = FUN_00111606(param_2);
    if (lVar2 != 0) {
      do {
        local_48 = 0;
        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);
        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {
          psVar6 = *(short **)(local_48 + 8);
          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;
          do {
            uVar4 = 0xffffffff;
            if (*psVar6 < 0x20) {
              uVar4 = 1 << ((byte)*psVar6 & 0x1f);
            }
            uVar5 = uVar5 | uVar4;
            psVar6 = psVar6 + 1;
          } while (psVar1 != psVar6);
        }
        lVar2 = *(long *)(lVar2 + 0x18);
      } while (lVar2 != 0);
    }
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV RAX,qword ptr [RDI]
MOV EBX,0x0
TEST byte ptr [RAX + 0x31],0x40
JZ 0x0012edd8
MOV R15,RDI
MOV R14,RSI
MOV RDI,qword ptr [RSI + 0x20]
MOV R9D,0xffffffff
MOV R8D,0x1
TEST RDI,RDI
JNZ 0x0012ed63
MOV RDI,R14
CALL 0x00111606
MOV R12,RAX
TEST RAX,RAX
JZ 0x0012edd8
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
MOV R13D,0x1
MOV EBP,0xffffffff
JMP 0x0012ed76
LEA RAX,[RDI + 0x40]
LEA EDX,[RDX + -0x1]
SHL RDX,0x4
LEA RSI,[RDI + RDX*0x1 + 0x50]
MOV ECX,dword ptr [RAX]
MOV EDX,R8D
SHL EDX,CL
CMP ECX,0x20
CMOVGE EDX,R9D
OR EBX,EDX
ADD RAX,0x10
CMP RAX,RSI
JNZ 0x0012ed41
MOV RDI,qword ptr [RDI + 0x8]
TEST RDI,RDI
JZ 0x0012ed06
MOV EDX,dword ptr [RDI + 0x28]
TEST EDX,EDX
JG 0x0012ed31
JMP 0x0012ed5a
MOV R12,qword ptr [R12 + 0x18]
TEST R12,R12
JZ 0x0012edd8
MOV qword ptr [RSP + 0x10],0x0
MOV R8D,0x0
MOV RCX,qword ptr [RSP + 0x8]
MOV RDX,R12
MOV RSI,R14
MOV RDI,R15
CALL 0x0012e9e7
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x0012ed6c
MOVZX EDX,word ptr [RAX + 0x5e]
TEST DX,DX
JZ 0x0012ed6c
MOV RSI,qword ptr [RAX + 0x8]
MOVZX EDX,DX
LEA EAX,[RDX + -0x1]
LEA RDI,[RSI + RAX*0x2 + 0x2]
MOVZX ECX,word ptr [RSI]
MOV EAX,EBP
MOV EDX,R13D
SHL EDX,CL
CMP CX,0x20
CMOVL EAX,EDX
OR EBX,EAX
ADD RSI,0x2
CMP RDI,RSI
JNZ 0x0012edba
JMP 0x0012ed6c
MOV EAX,EBX
MOV RBX,qword ptr [RSP + 0x18]
XOR RBX,qword ptr FS:[0x28]
JNZ 0x0012edf9
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CALL 0x0010c0d0
(translation_unit "uint FUN_0012ecbb(long *param_1,long param_2)\n\n{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "uint FUN_0012ecbb(long *param_1,long param_2)\n\n{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_0012ecbb(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "short *psVar6;" (sized_type_specifier "short" short) (pointer_declarator "*psVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }" if (parenthesized_expression "((*(byte *)(*param_1 + 0x31) & 0x40) != 0)" ( (binary_expression "(*(byte *)(*param_1 + 0x31) & 0x40) != 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x31) & 0x40)" ( (binary_expression "*(byte *)(*param_1 + 0x31) & 0x40" (pointer_expression "*(byte *)(*param_1 + 0x31)" * (cast_expression "(byte *)(*param_1 + 0x31)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x31)" ( (binary_expression "*param_1 + 0x31" (pointer_expression "*param_1" * identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }" { (for_statement "for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }" for ( (assignment_expression "lVar2 = *(long *)(param_2 + 0x20)" identifier = (pointer_expression "*(long *)(param_2 + 0x20)" * (cast_expression "(long *)(param_2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ; (binary_expression "lVar2 != 0" identifier != number_literal) ; (assignment_expression "lVar2 = *(long *)(lVar2 + 8)" identifier = (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }" { (if_statement "if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }" if (parenthesized_expression "(0 < *(int *)(lVar2 + 0x28))" ( (binary_expression "0 < *(int *)(lVar2 + 0x28)" number_literal < (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }" { (expression_statement "piVar3 = (int *)(lVar2 + 0x40);" (assignment_expression "piVar3 = (int *)(lVar2 + 0x40)" identifier = (cast_expression "(int *)(lVar2 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) ;) (do_statement "do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));" do (compound_statement "{\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        }" { (expression_statement "uVar4 = 1 << ((byte)*piVar3 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*piVar3 & 0x1f)" identifier = (binary_expression "1 << ((byte)*piVar3 & 0x1f)" number_literal << (parenthesized_expression "((byte)*piVar3 & 0x1f)" ( (binary_expression "(byte)*piVar3 & 0x1f" (binary_expression "(byte)*piVar3" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) (if_statement "if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }" if (parenthesized_expression "(0x1f < *piVar3)" ( (binary_expression "0x1f < *piVar3" number_literal < (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n            uVar4 = 0xffffffff;\n          }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" identifier = (binary_expression "uVar5 | uVar4" identifier | identifier)) ;) (expression_statement "piVar3 = piVar3 + 4;" (assignment_expression "piVar3 = piVar3 + 4" identifier = (binary_expression "piVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10))" ( (binary_expression "piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" identifier != (cast_expression "(int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" ( (binary_expression "lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10" (binary_expression "lVar2 + 0x50" identifier + number_literal) + (binary_expression "(ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10" (call_expression "(ulong)(*(int *)(lVar2 + 0x28) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(lVar2 + 0x28) - 1)" ( (binary_expression "*(int *)(lVar2 + 0x28) - 1" (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) - number_literal) ))) * number_literal)) )))) )) ;) })) })) (expression_statement "lVar2 = FUN_00111606(param_2);" (assignment_expression "lVar2 = FUN_00111606(param_2)" identifier = (call_expression "FUN_00111606(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }" { (do_statement "do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);" do (compound_statement "{\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      }" { (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);" (call_expression "FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0)" identifier (argument_list "(param_1,param_2,lVar2,&local_48,0)" ( identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) , number_literal ))) ;) (if_statement "if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" if (parenthesized_expression "((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0))" ( (binary_expression "(local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)" (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(ushort *)(local_48 + 0x5e) != 0)" ( (binary_expression "*(ushort *)(local_48 + 0x5e) != 0" (pointer_expression "*(ushort *)(local_48 + 0x5e)" * (cast_expression "(ushort *)(local_48 + 0x5e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x5e)" ( (binary_expression "local_48 + 0x5e" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" { (expression_statement "psVar6 = *(short **)(local_48 + 8);" (assignment_expression "psVar6 = *(short **)(local_48 + 8)" identifier = (pointer_expression "*(short **)(local_48 + 8)" * (cast_expression "(short **)(local_48 + 8)" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_48 + 8)" ( (binary_expression "local_48 + 8" identifier + number_literal) ))))) ;) (expression_statement "psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;" (assignment_expression "psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1" identifier = (binary_expression "psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1" (binary_expression "psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1)" identifier + (call_expression "(ulong)(*(ushort *)(local_48 + 0x5e) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(ushort *)(local_48 + 0x5e) - 1)" ( (binary_expression "*(ushort *)(local_48 + 0x5e) - 1" (pointer_expression "*(ushort *)(local_48 + 0x5e)" * (cast_expression "(ushort *)(local_48 + 0x5e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x5e)" ( (binary_expression "local_48 + 0x5e" identifier + number_literal) )))) - number_literal) )))) + number_literal)) ;) (do_statement "do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);" do (compound_statement "{\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" if (parenthesized_expression "(*psVar6 < 0x20)" ( (binary_expression "*psVar6 < 0x20" (pointer_expression "*psVar6" * identifier) < number_literal) )) (compound_statement "{\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" { (expression_statement "uVar4 = 1 << ((byte)*psVar6 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*psVar6 & 0x1f)" identifier = (binary_expression "1 << ((byte)*psVar6 & 0x1f)" number_literal << (parenthesized_expression "((byte)*psVar6 & 0x1f)" ( (binary_expression "(byte)*psVar6 & 0x1f" (binary_expression "(byte)*psVar6" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) })) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" identifier = (binary_expression "uVar5 | uVar4" identifier | identifier)) ;) (expression_statement "psVar6 = psVar6 + 1;" (assignment_expression "psVar6 = psVar6 + 1" identifier = (binary_expression "psVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar1 != psVar6)" ( (binary_expression "psVar1 != psVar6" identifier != identifier) )) ;) })) (expression_statement "lVar2 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x18)" identifier = (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) })) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "u32 sqlite3FkOldmask(Parse *pParse,Table *pTab)\n\n{\n  short *psVar1;\n  FKey *pFVar2;\n  sColMap *psVar3;\n  uint uVar4;\n  u32 uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  Index *pIdx;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((pParse->db->flags & 0x4000) != 0) {\n    for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }\n    pFVar2 = sqlite3FkReferences(pTab);\n    if (pFVar2 != (FKey *)0x0) {\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "u32 sqlite3FkOldmask(Parse *pParse,Table *pTab)\n\n{\n  short *psVar1;\n  FKey *pFVar2;\n  sColMap *psVar3;\n  uint uVar4;\n  u32 uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  Index *pIdx;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((pParse->db->flags & 0x4000) != 0) {\n    for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }\n    pFVar2 = sqlite3FkReferences(pTab);\n    if (pFVar2 != (FKey *)0x0) {\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "sqlite3FkOldmask(Parse *pParse,Table *pTab)" identifier (parameter_list "(Parse *pParse,Table *pTab)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  FKey *pFVar2;\n  sColMap *psVar3;\n  uint uVar4;\n  u32 uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  Index *pIdx;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((pParse->db->flags & 0x4000) != 0) {\n    for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }\n    pFVar2 = sqlite3FkReferences(pTab);\n    if (pFVar2 != (FKey *)0x0) {\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "FKey *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "sColMap *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "u32 uVar5;" type_identifier identifier ;) (declaration "short *psVar6;" (sized_type_specifier "short" short) (pointer_declarator "*psVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "Index *pIdx;" type_identifier (pointer_declarator "*pIdx" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if ((pParse->db->flags & 0x4000) != 0) {\n    for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }\n    pFVar2 = sqlite3FkReferences(pTab);\n    if (pFVar2 != (FKey *)0x0) {\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }\n  }" if (parenthesized_expression "((pParse->db->flags & 0x4000) != 0)" ( (binary_expression "(pParse->db->flags & 0x4000) != 0" (parenthesized_expression "(pParse->db->flags & 0x4000)" ( (binary_expression "pParse->db->flags & 0x4000" (field_expression "pParse->db->flags" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }\n    pFVar2 = sqlite3FkReferences(pTab);\n    if (pFVar2 != (FKey *)0x0) {\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }\n  }" { (for_statement "for (pFVar2 = pTab->pFKey; pFVar2 != (FKey *)0x0; pFVar2 = pFVar2->pNextFrom) {\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }" for ( (assignment_expression "pFVar2 = pTab->pFKey" identifier = (field_expression "pTab->pFKey" identifier -> field_identifier)) ; (binary_expression "pFVar2 != (FKey *)0x0" identifier != (cast_expression "(FKey *)0x0" ( (type_descriptor "FKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pFVar2 = pFVar2->pNextFrom" identifier = (field_expression "pFVar2->pNextFrom" identifier -> field_identifier)) ) (compound_statement "{\n      if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }\n    }" { (if_statement "if (0 < pFVar2->nCol) {\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }" if (parenthesized_expression "(0 < pFVar2->nCol)" ( (binary_expression "0 < pFVar2->nCol" number_literal < (field_expression "pFVar2->nCol" identifier -> field_identifier)) )) (compound_statement "{\n        psVar3 = pFVar2->aCol;\n        do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );\n      }" { (expression_statement "psVar3 = pFVar2->aCol;" (assignment_expression "psVar3 = pFVar2->aCol" identifier = (field_expression "pFVar2->aCol" identifier -> field_identifier)) ;) (do_statement "do {\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        } while (psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                );" do (compound_statement "{\n          uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);\n          if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          psVar3 = psVar3 + 1;\n        }" { (expression_statement "uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)psVar3->iFrom & 0x1f)" identifier = (binary_expression "1 << ((byte)psVar3->iFrom & 0x1f)" number_literal << (parenthesized_expression "((byte)psVar3->iFrom & 0x1f)" ( (binary_expression "(byte)psVar3->iFrom & 0x1f" (cast_expression "(byte)psVar3->iFrom" ( (type_descriptor "byte" type_identifier) ) (field_expression "psVar3->iFrom" identifier -> field_identifier)) & number_literal) )))) ;) (if_statement "if (0x1f < psVar3->iFrom) {\n            uVar4 = 0xffffffff;\n          }" if (parenthesized_expression "(0x1f < psVar3->iFrom)" ( (binary_expression "0x1f < psVar3->iFrom" number_literal < (field_expression "psVar3->iFrom" identifier -> field_identifier)) )) (compound_statement "{\n            uVar4 = 0xffffffff;\n          }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" identifier = (binary_expression "uVar5 | uVar4" identifier | identifier)) ;) (expression_statement "psVar3 = psVar3 + 1;" (assignment_expression "psVar3 = psVar3 + 1" identifier = (binary_expression "psVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)\n                )" ( (binary_expression "psVar3 != (sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)" identifier != (cast_expression "(sColMap *)(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)" ( (type_descriptor "sColMap *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d)" ( (binary_expression "pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10 + -0x2d" (binary_expression "pFVar2[1].aAction + (ulong)(pFVar2->nCol - 1) * 0x10" (field_expression "pFVar2[1].aAction" (subscript_expression "pFVar2[1]" identifier [ number_literal ]) . field_identifier) + (binary_expression "(ulong)(pFVar2->nCol - 1) * 0x10" (call_expression "(ulong)(pFVar2->nCol - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(pFVar2->nCol - 1)" ( (binary_expression "pFVar2->nCol - 1" (field_expression "pFVar2->nCol" identifier -> field_identifier) - number_literal) ))) * number_literal)) + number_literal) )))) )) ;) })) })) (expression_statement "pFVar2 = sqlite3FkReferences(pTab);" (assignment_expression "pFVar2 = sqlite3FkReferences(pTab)" identifier = (call_expression "sqlite3FkReferences(pTab)" identifier (argument_list "(pTab)" ( identifier )))) ;) (if_statement "if (pFVar2 != (FKey *)0x0) {\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }" if (parenthesized_expression "(pFVar2 != (FKey *)0x0)" ( (binary_expression "pFVar2 != (FKey *)0x0" identifier != (cast_expression "(FKey *)0x0" ( (type_descriptor "FKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);\n    }" { (do_statement "do {\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      } while (pFVar2 != (FKey *)0x0);" do (compound_statement "{\n        pIdx = (Index *)0x0;\n        sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);\n        if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        pFVar2 = pFVar2->pNextTo;\n      }" { (expression_statement "pIdx = (Index *)0x0;" (assignment_expression "pIdx = (Index *)0x0" identifier = (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0);" (call_expression "sqlite3FkLocateIndex(pParse,pTab,pFVar2,&pIdx,(int **)0x0)" identifier (argument_list "(pParse,pTab,pFVar2,&pIdx,(int **)0x0)" ( identifier , identifier , identifier , (pointer_expression "&pIdx" & identifier) , (cast_expression "(int **)0x0" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) (if_statement "if ((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)) {\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" if (parenthesized_expression "((pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0))" ( (binary_expression "(pIdx != (Index *)0x0) && (pIdx->nKeyCol != 0)" (parenthesized_expression "(pIdx != (Index *)0x0)" ( (binary_expression "pIdx != (Index *)0x0" identifier != (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pIdx->nKeyCol != 0)" ( (binary_expression "pIdx->nKeyCol != 0" (field_expression "pIdx->nKeyCol" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n          psVar6 = pIdx->aiColumn;\n          psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" { (expression_statement "psVar6 = pIdx->aiColumn;" (assignment_expression "psVar6 = pIdx->aiColumn" identifier = (field_expression "pIdx->aiColumn" identifier -> field_identifier)) ;) (expression_statement "psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1;" (assignment_expression "psVar1 = psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1" identifier = (binary_expression "psVar6 + (ulong)(pIdx->nKeyCol - 1) + 1" (binary_expression "psVar6 + (ulong)(pIdx->nKeyCol - 1)" identifier + (call_expression "(ulong)(pIdx->nKeyCol - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(pIdx->nKeyCol - 1)" ( (binary_expression "pIdx->nKeyCol - 1" (field_expression "pIdx->nKeyCol" identifier -> field_identifier) - number_literal) )))) + number_literal)) ;) (do_statement "do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);" do (compound_statement "{\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" if (parenthesized_expression "(*psVar6 < 0x20)" ( (binary_expression "*psVar6 < 0x20" (pointer_expression "*psVar6" * identifier) < number_literal) )) (compound_statement "{\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" { (expression_statement "uVar4 = 1 << ((byte)*psVar6 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*psVar6 & 0x1f)" identifier = (binary_expression "1 << ((byte)*psVar6 & 0x1f)" number_literal << (parenthesized_expression "((byte)*psVar6 & 0x1f)" ( (binary_expression "(byte)*psVar6 & 0x1f" (binary_expression "(byte)*psVar6" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) })) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" identifier = (binary_expression "uVar5 | uVar4" identifier | identifier)) ;) (expression_statement "psVar6 = psVar6 + 1;" (assignment_expression "psVar6 = psVar6 + 1" identifier = (binary_expression "psVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar1 != psVar6)" ( (binary_expression "psVar1 != psVar6" identifier != identifier) )) ;) })) (expression_statement "pFVar2 = pFVar2->pNextTo;" (assignment_expression "pFVar2 = pFVar2->pNextTo" identifier = (field_expression "pFVar2->pNextTo" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pFVar2 != (FKey *)0x0)" ( (binary_expression "pFVar2 != (FKey *)0x0" identifier != (cast_expression "(FKey *)0x0" ( (type_descriptor "FKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "uint FUN_0012ecbb(long *param_1,long param_2)\n\n{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "uint FUN_0012ecbb(long *param_1,long param_2)\n\n{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_0012ecbb(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "short *psVar6;" (sized_type_specifier "short" short) (pointer_declarator "*psVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }" if (parenthesized_expression "((*(byte *)(*param_1 + 0x31) & 0x40) != 0)" ( (binary_expression "(*(byte *)(*param_1 + 0x31) & 0x40) != 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x31) & 0x40)" ( (binary_expression "*(byte *)(*param_1 + 0x31) & 0x40" (pointer_expression "*(byte *)(*param_1 + 0x31)" * (cast_expression "(byte *)(*param_1 + 0x31)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x31)" ( (binary_expression "*param_1 + 0x31" (pointer_expression "*param_1" * identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }" { (for_statement "for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }" for ( (assignment_expression "lVar2 = *(long *)(param_2 + 0x20)" identifier = (pointer_expression "*(long *)(param_2 + 0x20)" * (cast_expression "(long *)(param_2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ; (binary_expression "lVar2 != 0" identifier != number_literal) ; (assignment_expression "lVar2 = *(long *)(lVar2 + 8)" identifier = (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }" { (if_statement "if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }" if (parenthesized_expression "(0 < *(int *)(lVar2 + 0x28))" ( (binary_expression "0 < *(int *)(lVar2 + 0x28)" number_literal < (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }" { (expression_statement "piVar3 = (int *)(lVar2 + 0x40);" (assignment_expression "piVar3 = (int *)(lVar2 + 0x40)" identifier = (cast_expression "(int *)(lVar2 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) ;) (do_statement "do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));" do (compound_statement "{\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        }" { (expression_statement "uVar4 = 1 << ((byte)*piVar3 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*piVar3 & 0x1f)" identifier = (binary_expression "1 << ((byte)*piVar3 & 0x1f)" number_literal << (parenthesized_expression "((byte)*piVar3 & 0x1f)" ( (binary_expression "(byte)*piVar3 & 0x1f" (binary_expression "(byte)*piVar3" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) (if_statement "if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }" if (parenthesized_expression "(0x1f < *piVar3)" ( (binary_expression "0x1f < *piVar3" number_literal < (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n            uVar4 = 0xffffffff;\n          }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" identifier = (binary_expression "uVar5 | uVar4" identifier | identifier)) ;) (expression_statement "piVar3 = piVar3 + 4;" (assignment_expression "piVar3 = piVar3 + 4" identifier = (binary_expression "piVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10))" ( (binary_expression "piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" identifier != (cast_expression "(int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" ( (binary_expression "lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10" (binary_expression "lVar2 + 0x50" identifier + number_literal) + (binary_expression "(ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10" (call_expression "(ulong)(*(int *)(lVar2 + 0x28) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(lVar2 + 0x28) - 1)" ( (binary_expression "*(int *)(lVar2 + 0x28) - 1" (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) - number_literal) ))) * number_literal)) )))) )) ;) })) })) (expression_statement "lVar2 = FUN_00111606(param_2);" (assignment_expression "lVar2 = FUN_00111606(param_2)" identifier = (call_expression "FUN_00111606(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }" { (do_statement "do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);" do (compound_statement "{\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      }" { (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);" (call_expression "FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0)" identifier (argument_list "(param_1,param_2,lVar2,&local_48,0)" ( identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) , number_literal ))) ;) (if_statement "if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" if (parenthesized_expression "((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0))" ( (binary_expression "(local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)" (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(ushort *)(local_48 + 0x5e) != 0)" ( (binary_expression "*(ushort *)(local_48 + 0x5e) != 0" (pointer_expression "*(ushort *)(local_48 + 0x5e)" * (cast_expression "(ushort *)(local_48 + 0x5e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x5e)" ( (binary_expression "local_48 + 0x5e" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" { (expression_statement "psVar6 = *(short **)(local_48 + 8);" (assignment_expression "psVar6 = *(short **)(local_48 + 8)" identifier = (pointer_expression "*(short **)(local_48 + 8)" * (cast_expression "(short **)(local_48 + 8)" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_48 + 8)" ( (binary_expression "local_48 + 8" identifier + number_literal) ))))) ;) (expression_statement "psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;" (assignment_expression "psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1" identifier = (binary_expression "psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1" (binary_expression "psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1)" identifier + (call_expression "(ulong)(*(ushort *)(local_48 + 0x5e) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(ushort *)(local_48 + 0x5e) - 1)" ( (binary_expression "*(ushort *)(local_48 + 0x5e) - 1" (pointer_expression "*(ushort *)(local_48 + 0x5e)" * (cast_expression "(ushort *)(local_48 + 0x5e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x5e)" ( (binary_expression "local_48 + 0x5e" identifier + number_literal) )))) - number_literal) )))) + number_literal)) ;) (do_statement "do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);" do (compound_statement "{\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" if (parenthesized_expression "(*psVar6 < 0x20)" ( (binary_expression "*psVar6 < 0x20" (pointer_expression "*psVar6" * identifier) < number_literal) )) (compound_statement "{\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" { (expression_statement "uVar4 = 1 << ((byte)*psVar6 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*psVar6 & 0x1f)" identifier = (binary_expression "1 << ((byte)*psVar6 & 0x1f)" number_literal << (parenthesized_expression "((byte)*psVar6 & 0x1f)" ( (binary_expression "(byte)*psVar6 & 0x1f" (binary_expression "(byte)*psVar6" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) })) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" identifier = (binary_expression "uVar5 | uVar4" identifier | identifier)) ;) (expression_statement "psVar6 = psVar6 + 1;" (assignment_expression "psVar6 = psVar6 + 1" identifier = (binary_expression "psVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar1 != psVar6)" ( (binary_expression "psVar1 != psVar6" identifier != identifier) )) ;) })) (expression_statement "lVar2 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x18)" identifier = (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) })) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) ))) * LIT)) )))) )) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression & IDENT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) )))) + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) & LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "uint FUN_0012ecbb(long *param_1,long param_2)\n\n{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "uint") (function_declarator "FUN_0012ecbb(long *param_1,long param_2)" (identifier "FUN_0012ecbb") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  short *psVar1;\n  long lVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  short *psVar6;\n  long in_FS_OFFSET;\n  long local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar5 = 0;\n  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "short *psVar1;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "short *psVar6;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar6" (* "*") (identifier "psVar6")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "long local_48;" (sized_type_specifier "long" (long "long")) (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(*param_1 + 0x31) & 0x40) != 0)" (( "(") (binary_expression "(*(byte *)(*param_1 + 0x31) & 0x40) != 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x31) & 0x40)" (( "(") (binary_expression "*(byte *)(*param_1 + 0x31) & 0x40" (pointer_expression "*(byte *)(*param_1 + 0x31)" (* "*") (cast_expression "(byte *)(*param_1 + 0x31)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x31)" (( "(") (binary_expression "*param_1 + 0x31" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x31")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }\n    lVar2 = FUN_00111606(param_2);\n    if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }\n  }" ({ "{") (for_statement "for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }" (for "for") (( "(") (assignment_expression "lVar2 = *(long *)(param_2 + 0x20)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_2 + 0x20)" (* "*") (cast_expression "(long *)(param_2 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "lVar2 = *(long *)(lVar2 + 8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 8)" (* "*") (cast_expression "(long *)(lVar2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")"))))) () ")") (compound_statement "{\n      if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }\n    }" ({ "{") (if_statement "if (0 < *(int *)(lVar2 + 0x28)) {\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }" (if "if") (parenthesized_expression "(0 < *(int *)(lVar2 + 0x28))" (( "(") (binary_expression "0 < *(int *)(lVar2 + 0x28)" (number_literal "0") (< "<") (pointer_expression "*(int *)(lVar2 + 0x28)" (* "*") (cast_expression "(int *)(lVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n        piVar3 = (int *)(lVar2 + 0x40);\n        do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));\n      }" ({ "{") (expression_statement "piVar3 = (int *)(lVar2 + 0x40);" (assignment_expression "piVar3 = (int *)(lVar2 + 0x40)" (identifier "piVar3") (= "=") (cast_expression "(int *)(lVar2 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x40)" (( "(") (binary_expression "lVar2 + 0x40" (identifier "lVar2") (+ "+") (number_literal "0x40")) () ")")))) (; ";")) (do_statement "do {\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));" (do "do") (compound_statement "{\n          uVar4 = 1 << ((byte)*piVar3 & 0x1f);\n          if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }\n          uVar5 = uVar5 | uVar4;\n          piVar3 = piVar3 + 4;\n        }" ({ "{") (expression_statement "uVar4 = 1 << ((byte)*piVar3 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*piVar3 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "1 << ((byte)*piVar3 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)*piVar3 & 0x1f)" (( "(") (binary_expression "(byte)*piVar3 & 0x1f" (binary_expression "(byte)*piVar3" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "piVar3")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (0x1f < *piVar3) {\n            uVar4 = 0xffffffff;\n          }" (if "if") (parenthesized_expression "(0x1f < *piVar3)" (( "(") (binary_expression "0x1f < *piVar3" (number_literal "0x1f") (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n            uVar4 = 0xffffffff;\n          }" ({ "{") (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" (identifier "uVar5") (= "=") (binary_expression "uVar5 | uVar4" (identifier "uVar5") (| "|") (identifier "uVar4"))) (; ";")) (expression_statement "piVar3 = piVar3 + 4;" (assignment_expression "piVar3 = piVar3 + 4" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10))" (( "(") (binary_expression "piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" (identifier "piVar3") (!= "!=") (cast_expression "(int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10)" (( "(") (binary_expression "lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10" (binary_expression "lVar2 + 0x50" (identifier "lVar2") (+ "+") (number_literal "0x50")) (+ "+") (binary_expression "(ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10" (call_expression "(ulong)(*(int *)(lVar2 + 0x28) - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(int *)(lVar2 + 0x28) - 1)" (( "(") (binary_expression "*(int *)(lVar2 + 0x28) - 1" (pointer_expression "*(int *)(lVar2 + 0x28)" (* "*") (cast_expression "(int *)(lVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")")))) (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "0x10"))) () ")")))) () ")")) (; ";")) (} "}"))) (} "}"))) (expression_statement "lVar2 = FUN_00111606(param_2);" (assignment_expression "lVar2 = FUN_00111606(param_2)" (identifier "lVar2") (= "=") (call_expression "FUN_00111606(param_2)" (identifier "FUN_00111606") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (lVar2 != 0) {\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);\n    }" ({ "{") (do_statement "do {\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      } while (lVar2 != 0);" (do "do") (compound_statement "{\n        local_48 = 0;\n        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);\n        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }\n        lVar2 = *(long *)(lVar2 + 0x18);\n      }" ({ "{") (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);" (call_expression "FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0)" (identifier "FUN_0012e9e7") (argument_list "(param_1,param_2,lVar2,&local_48,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "lVar2") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" (if "if") (parenthesized_expression "((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0))" (( "(") (binary_expression "(local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)" (parenthesized_expression "(local_48 != 0)" (( "(") (binary_expression "local_48 != 0" (identifier "local_48") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(ushort *)(local_48 + 0x5e) != 0)" (( "(") (binary_expression "*(ushort *)(local_48 + 0x5e) != 0" (pointer_expression "*(ushort *)(local_48 + 0x5e)" (* "*") (cast_expression "(ushort *)(local_48 + 0x5e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x5e)" (( "(") (binary_expression "local_48 + 0x5e" (identifier "local_48") (+ "+") (number_literal "0x5e")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          psVar6 = *(short **)(local_48 + 8);\n          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;\n          do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);\n        }" ({ "{") (expression_statement "psVar6 = *(short **)(local_48 + 8);" (assignment_expression "psVar6 = *(short **)(local_48 + 8)" (identifier "psVar6") (= "=") (pointer_expression "*(short **)(local_48 + 8)" (* "*") (cast_expression "(short **)(local_48 + 8)" (( "(") (type_descriptor "short **" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_48 + 8)" (( "(") (binary_expression "local_48 + 8" (identifier "local_48") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;" (assignment_expression "psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1" (identifier "psVar1") (= "=") (binary_expression "psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1" (binary_expression "psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1)" (identifier "psVar6") (+ "+") (call_expression "(ulong)(*(ushort *)(local_48 + 0x5e) - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(ushort *)(local_48 + 0x5e) - 1)" (( "(") (binary_expression "*(ushort *)(local_48 + 0x5e) - 1" (pointer_expression "*(ushort *)(local_48 + 0x5e)" (* "*") (cast_expression "(ushort *)(local_48 + 0x5e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x5e)" (( "(") (binary_expression "local_48 + 0x5e" (identifier "local_48") (+ "+") (number_literal "0x5e")) () ")")))) (- "-") (number_literal "1")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          } while (psVar1 != psVar6);" (do "do") (compound_statement "{\n            uVar4 = 0xffffffff;\n            if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }\n            uVar5 = uVar5 | uVar4;\n            psVar6 = psVar6 + 1;\n          }" ({ "{") (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*psVar6 < 0x20) {\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" (if "if") (parenthesized_expression "(*psVar6 < 0x20)" (( "(") (binary_expression "*psVar6 < 0x20" (pointer_expression "*psVar6" (* "*") (identifier "psVar6")) (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n              uVar4 = 1 << ((byte)*psVar6 & 0x1f);\n            }" ({ "{") (expression_statement "uVar4 = 1 << ((byte)*psVar6 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*psVar6 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "1 << ((byte)*psVar6 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)*psVar6 & 0x1f)" (( "(") (binary_expression "(byte)*psVar6 & 0x1f" (binary_expression "(byte)*psVar6" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "psVar6")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 | uVar4;" (assignment_expression "uVar5 = uVar5 | uVar4" (identifier "uVar5") (= "=") (binary_expression "uVar5 | uVar4" (identifier "uVar5") (| "|") (identifier "uVar4"))) (; ";")) (expression_statement "psVar6 = psVar6 + 1;" (assignment_expression "psVar6 = psVar6 + 1" (identifier "psVar6") (= "=") (binary_expression "psVar6 + 1" (identifier "psVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(psVar1 != psVar6)" (( "(") (binary_expression "psVar1 != psVar6" (identifier "psVar1") (!= "!=") (identifier "psVar6")) () ")")) (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x18)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 0x18)" (* "*") (cast_expression "(long *)(lVar2 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x18)" (( "(") (binary_expression "lVar2 + 0x18" (identifier "lVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar5;\n  }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 *pParse,type_3 *pTab)

{
  short *var_10;
  type_4 *var_2;
  type_5 *var_5;
  type_6 var_4;
  type_1 var_3;
  short *var_9;
  long var_1;
  type_7 *var_8;
  long var_11;
  
  var_11 = *(long *)(var_1 + 0x28);
  var_3 = 0;
  if ((pParse->db->flags & 0x4000) != 0) {
    for (var_2 = pTab->pFKey; var_2 != (type_4 *)0x0; var_2 = var_2->pNextFrom) {
      if (0 < var_2->nCol) {
        var_5 = var_2->aCol;
        do {
          var_4 = 1 << ((type_8)var_5->iFrom & 0x1f);
          if (0x1f < var_5->iFrom) {
            var_4 = 0xffffffff;
          }
          var_3 = var_3 | var_4;
          var_5 = var_5 + 1;
        } while (var_5 != (type_5 *)(var_2[1].aAction + (ulong)(var_2->nCol - 1) * 0x10 + -0x2d)
                );
      }
    }
    var_2 = var_6(pTab);
    if (var_2 != (type_4 *)0x0) {
      do {
        var_8 = (type_7 *)0x0;
        var_7(pParse,pTab,var_2,&var_8,(int **)0x0);
        if ((var_8 != (type_7 *)0x0) && (var_8->nKeyCol != 0)) {
          var_9 = var_8->aiColumn;
          var_10 = var_9 + (ulong)(var_8->nKeyCol - 1) + 1;
          do {
            var_4 = 0xffffffff;
            if (*var_9 < 0x20) {
              var_4 = 1 << ((type_8)*var_9 & 0x1f);
            }
            var_3 = var_3 | var_4;
            var_9 = var_9 + 1;
          } while (var_10 != var_9);
        }
        var_2 = var_2->pNextTo;
      } while (var_2 != (type_4 *)0x0);
    }
  }
  if (var_11 == *(long *)(var_1 + 0x28)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

uint MASKED(long *param_1,long param_2)

{
  short *psVar1;
  long lVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  short *psVar6;
  long in_FS_OFFSET;
  long local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar5 = 0;
  if ((*(byte *)(*param_1 + 0x31) & 0x40) != 0) {
    for (lVar2 = *(long *)(param_2 + 0x20); lVar2 != 0; lVar2 = *(long *)(lVar2 + 8)) {
      if (0 < *(int *)(lVar2 + 0x28)) {
        piVar3 = (int *)(lVar2 + 0x40);
        do {
          uVar4 = 1 << ((byte)*piVar3 & 0x1f);
          if (0x1f < *piVar3) {
            uVar4 = 0xffffffff;
          }
          uVar5 = uVar5 | uVar4;
          piVar3 = piVar3 + 4;
        } while (piVar3 != (int *)(lVar2 + 0x50 + (ulong)(*(int *)(lVar2 + 0x28) - 1) * 0x10));
      }
    }
    lVar2 = FUN_00111606(param_2);
    if (lVar2 != 0) {
      do {
        local_48 = 0;
        FUN_0012e9e7(param_1,param_2,lVar2,&local_48,0);
        if ((local_48 != 0) && (*(ushort *)(local_48 + 0x5e) != 0)) {
          psVar6 = *(short **)(local_48 + 8);
          psVar1 = psVar6 + (ulong)(*(ushort *)(local_48 + 0x5e) - 1) + 1;
          do {
            uVar4 = 0xffffffff;
            if (*psVar6 < 0x20) {
              uVar4 = 1 << ((byte)*psVar6 & 0x1f);
            }
            uVar5 = uVar5 | uVar4;
            psVar6 = psVar6 + 1;
          } while (psVar1 != psVar6);
        }
        lVar2 = *(long *)(lVar2 + 0x18);
      } while (lVar2 != 0);
    }
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

