
void estimateIndexWidth(Index *pIdx)

{
  short *psVar1;
  LogEst LVar2;
  uint uVar3;
  short *psVar4;
  int iVar5;
  
  if (pIdx->nColumn == 0) {
    iVar5 = 0;
  }
  else {
    psVar4 = pIdx->aiColumn;
    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;
    iVar5 = 0;
    do {
      uVar3 = 1;
      if (-1 < *psVar4) {
        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;
      }
      iVar5 = iVar5 + uVar3;
      psVar4 = psVar4 + 1;
    } while (psVar4 != psVar1);
  }
  LVar2 = sqlite3LogEst((ulong)(uint)(iVar5 << 2));
  pIdx->szIdxRow = LVar2;
  return;
}



void FUN_0013cd13(long param_1)

{
  short *psVar1;
  undefined2 uVar2;
  uint uVar3;
  short *psVar4;
  int iVar5;
  
  if (*(ushort *)(param_1 + 0x60) == 0) {
    iVar5 = 0;
  }
  else {
    psVar4 = *(short **)(param_1 + 8);
    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;
    iVar5 = 0;
    do {
      uVar3 = 1;
      if (-1 < *psVar4) {
        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +
                               (long)*psVar4 * 0x20);
      }
      iVar5 = iVar5 + uVar3;
      psVar4 = psVar4 + 1;
    } while (psVar4 != psVar1);
  }
  uVar2 = FUN_0013ccc3(iVar5 << 2);
  *(undefined2 *)(param_1 + 0x5c) = uVar2;
  return;
}


PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x18]
MOV R9,qword ptr [RAX + 0x8]
MOVZX EAX,word ptr [RDI + 0x60]
TEST AX,AX
JZ 0x0013cd68
MOV RDX,qword ptr [RDI + 0x8]
MOVZX EAX,AX
LEA EAX,[RAX + -0x1]
LEA R8,[RDX + RAX*0x2 + 0x2]
MOV EDI,0x0
MOV ESI,0x1
JMP 0x0013cd4e
ADD EDI,ECX
ADD RDX,0x2
CMP RDX,R8
JZ 0x0013cd6d
MOVZX EAX,word ptr [RDX]
MOV ECX,ESI
TEST AX,AX
JS 0x0013cd43
MOVSX RAX,AX
SHL RAX,0x5
MOVZX ECX,byte ptr [R9 + RAX*0x1 + 0x1a]
JMP 0x0013cd43
MOV EDI,0x0
SHL EDI,0x2
MOV EDI,EDI
CALL 0x0013ccc3
MOV word ptr [RBX + 0x5c],AX
POP RBX
RET
(translation_unit "void FUN_0013cd13(long param_1)\n\n{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0013cd13(long param_1)\n\n{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0013cd13(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "short *psVar4;" (sized_type_specifier "short" short) (pointer_declarator "*psVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x60) == 0)" ( (binary_expression "*(ushort *)(param_1 + 0x60) == 0" (pointer_expression "*(ushort *)(param_1 + 0x60)" * (cast_expression "(ushort *)(param_1 + 0x60)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" else (compound_statement "{\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" { (expression_statement "psVar4 = *(short **)(param_1 + 8);" (assignment_expression "psVar4 = *(short **)(param_1 + 8)" identifier = (pointer_expression "*(short **)(param_1 + 8)" * (cast_expression "(short **)(param_1 + 8)" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;" (assignment_expression "psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1" identifier = (binary_expression "psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1" (binary_expression "psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1)" identifier + (call_expression "(ulong)(*(ushort *)(param_1 + 0x60) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(ushort *)(param_1 + 0x60) - 1)" ( (binary_expression "*(ushort *)(param_1 + 0x60) - 1" (pointer_expression "*(ushort *)(param_1 + 0x60)" * (cast_expression "(ushort *)(param_1 + 0x60)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) - number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);" do (compound_statement "{\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }" if (parenthesized_expression "(-1 < *psVar4)" ( (binary_expression "-1 < *psVar4" number_literal < (pointer_expression "*psVar4" * identifier)) )) (compound_statement "{\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }" { (expression_statement "uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);" (assignment_expression "uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" identifier = (binary_expression "(uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20" (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a" (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + 8)" * (cast_expression "(long *)(*(long *)(param_1 + 0x18) + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x18) + 8)" ( (binary_expression "*(long *)(param_1 + 0x18) + 8" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) + number_literal) + (binary_expression "(long)*psVar4 * 0x20" (cast_expression "(long)*psVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*psVar4" * identifier)) * number_literal)) ))))) ;) })) (expression_statement "iVar5 = iVar5 + uVar3;" (assignment_expression "iVar5 = iVar5 + uVar3" identifier = (binary_expression "iVar5 + uVar3" identifier + identifier)) ;) (expression_statement "psVar4 = psVar4 + 1;" (assignment_expression "psVar4 = psVar4 + 1" identifier = (binary_expression "psVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar4 != psVar1)" ( (binary_expression "psVar4 != psVar1" identifier != identifier) )) ;) }))) (expression_statement "uVar2 = FUN_0013ccc3(iVar5 << 2);" (assignment_expression "uVar2 = FUN_0013ccc3(iVar5 << 2)" identifier = (call_expression "FUN_0013ccc3(iVar5 << 2)" identifier (argument_list "(iVar5 << 2)" ( (binary_expression "iVar5 << 2" identifier << number_literal) )))) ;) (expression_statement "*(undefined2 *)(param_1 + 0x5c) = uVar2;" (assignment_expression "*(undefined2 *)(param_1 + 0x5c) = uVar2" (pointer_expression "*(undefined2 *)(param_1 + 0x5c)" * (cast_expression "(undefined2 *)(param_1 + 0x5c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void estimateIndexWidth(Index *pIdx)\n\n{\n  short *psVar1;\n  LogEst LVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (pIdx->nColumn == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = pIdx->aiColumn;\n    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  LVar2 = sqlite3LogEst((ulong)(uint)(iVar5 << 2));\n  pIdx->szIdxRow = LVar2;\n  return;\n}\n\n" (function_definition "void estimateIndexWidth(Index *pIdx)\n\n{\n  short *psVar1;\n  LogEst LVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (pIdx->nColumn == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = pIdx->aiColumn;\n    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  LVar2 = sqlite3LogEst((ulong)(uint)(iVar5 << 2));\n  pIdx->szIdxRow = LVar2;\n  return;\n}" primitive_type (function_declarator "estimateIndexWidth(Index *pIdx)" identifier (parameter_list "(Index *pIdx)" ( (parameter_declaration "Index *pIdx" type_identifier (pointer_declarator "*pIdx" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  LogEst LVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (pIdx->nColumn == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = pIdx->aiColumn;\n    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  LVar2 = sqlite3LogEst((ulong)(uint)(iVar5 << 2));\n  pIdx->szIdxRow = LVar2;\n  return;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "LogEst LVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "short *psVar4;" (sized_type_specifier "short" short) (pointer_declarator "*psVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (pIdx->nColumn == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = pIdx->aiColumn;\n    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" if (parenthesized_expression "(pIdx->nColumn == 0)" ( (binary_expression "pIdx->nColumn == 0" (field_expression "pIdx->nColumn" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    psVar4 = pIdx->aiColumn;\n    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" else (compound_statement "{\n    psVar4 = pIdx->aiColumn;\n    psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" { (expression_statement "psVar4 = pIdx->aiColumn;" (assignment_expression "psVar4 = pIdx->aiColumn" identifier = (field_expression "pIdx->aiColumn" identifier -> field_identifier)) ;) (expression_statement "psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1;" (assignment_expression "psVar1 = psVar4 + (ulong)(pIdx->nColumn - 1) + 1" identifier = (binary_expression "psVar4 + (ulong)(pIdx->nColumn - 1) + 1" (binary_expression "psVar4 + (ulong)(pIdx->nColumn - 1)" identifier + (call_expression "(ulong)(pIdx->nColumn - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(pIdx->nColumn - 1)" ( (binary_expression "pIdx->nColumn - 1" (field_expression "pIdx->nColumn" identifier -> field_identifier) - number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);" do (compound_statement "{\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (-1 < *psVar4) {\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }" if (parenthesized_expression "(-1 < *psVar4)" ( (binary_expression "-1 < *psVar4" number_literal < (pointer_expression "*psVar4" * identifier)) )) (compound_statement "{\n        uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;\n      }" { (expression_statement "uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst;" (assignment_expression "uVar3 = (uint)pIdx->pTable->aCol[*psVar4].szEst" identifier = (cast_expression "(uint)pIdx->pTable->aCol[*psVar4].szEst" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIdx->pTable->aCol[*psVar4].szEst" (subscript_expression "pIdx->pTable->aCol[*psVar4]" (field_expression "pIdx->pTable->aCol" (field_expression "pIdx->pTable" identifier -> field_identifier) -> field_identifier) [ (pointer_expression "*psVar4" * identifier) ]) . field_identifier))) ;) })) (expression_statement "iVar5 = iVar5 + uVar3;" (assignment_expression "iVar5 = iVar5 + uVar3" identifier = (binary_expression "iVar5 + uVar3" identifier + identifier)) ;) (expression_statement "psVar4 = psVar4 + 1;" (assignment_expression "psVar4 = psVar4 + 1" identifier = (binary_expression "psVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar4 != psVar1)" ( (binary_expression "psVar4 != psVar1" identifier != identifier) )) ;) }))) (expression_statement "LVar2 = sqlite3LogEst((ulong)(uint)(iVar5 << 2));" (assignment_expression "LVar2 = sqlite3LogEst((ulong)(uint)(iVar5 << 2))" identifier = (call_expression "sqlite3LogEst((ulong)(uint)(iVar5 << 2))" identifier (argument_list "((ulong)(uint)(iVar5 << 2))" ( (call_expression "(ulong)(uint)(iVar5 << 2)" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) (argument_list "(iVar5 << 2)" ( (binary_expression "iVar5 << 2" identifier << number_literal) ))) )))) ;) (expression_statement "pIdx->szIdxRow = LVar2;" (assignment_expression "pIdx->szIdxRow = LVar2" (field_expression "pIdx->szIdxRow" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0013cd13(long param_1)\n\n{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0013cd13(long param_1)\n\n{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0013cd13(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "short *psVar4;" (sized_type_specifier "short" short) (pointer_declarator "*psVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x60) == 0)" ( (binary_expression "*(ushort *)(param_1 + 0x60) == 0" (pointer_expression "*(ushort *)(param_1 + 0x60)" * (cast_expression "(ushort *)(param_1 + 0x60)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" else (compound_statement "{\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" { (expression_statement "psVar4 = *(short **)(param_1 + 8);" (assignment_expression "psVar4 = *(short **)(param_1 + 8)" identifier = (pointer_expression "*(short **)(param_1 + 8)" * (cast_expression "(short **)(param_1 + 8)" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;" (assignment_expression "psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1" identifier = (binary_expression "psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1" (binary_expression "psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1)" identifier + (call_expression "(ulong)(*(ushort *)(param_1 + 0x60) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(ushort *)(param_1 + 0x60) - 1)" ( (binary_expression "*(ushort *)(param_1 + 0x60) - 1" (pointer_expression "*(ushort *)(param_1 + 0x60)" * (cast_expression "(ushort *)(param_1 + 0x60)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) - number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);" do (compound_statement "{\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }" if (parenthesized_expression "(-1 < *psVar4)" ( (binary_expression "-1 < *psVar4" number_literal < (pointer_expression "*psVar4" * identifier)) )) (compound_statement "{\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }" { (expression_statement "uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);" (assignment_expression "uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" identifier = (binary_expression "(uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20" (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a" (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + 8)" * (cast_expression "(long *)(*(long *)(param_1 + 0x18) + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x18) + 8)" ( (binary_expression "*(long *)(param_1 + 0x18) + 8" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) + number_literal) + (binary_expression "(long)*psVar4 * 0x20" (cast_expression "(long)*psVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*psVar4" * identifier)) * number_literal)) ))))) ;) })) (expression_statement "iVar5 = iVar5 + uVar3;" (assignment_expression "iVar5 = iVar5 + uVar3" identifier = (binary_expression "iVar5 + uVar3" identifier + identifier)) ;) (expression_statement "psVar4 = psVar4 + 1;" (assignment_expression "psVar4 = psVar4 + 1" identifier = (binary_expression "psVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(psVar4 != psVar1)" ( (binary_expression "psVar4 != psVar1" identifier != identifier) )) ;) }))) (expression_statement "uVar2 = FUN_0013ccc3(iVar5 << 2);" (assignment_expression "uVar2 = FUN_0013ccc3(iVar5 << 2)" identifier = (call_expression "FUN_0013ccc3(iVar5 << 2)" identifier (argument_list "(iVar5 << 2)" ( (binary_expression "iVar5 << 2" identifier << number_literal) )))) ;) (expression_statement "*(undefined2 *)(param_1 + 0x5c) = uVar2;" (assignment_expression "*(undefined2 *)(param_1 + 0x5c) = uVar2" (pointer_expression "*(undefined2 *)(param_1 + 0x5c)" * (cast_expression "(undefined2 *)(param_1 + 0x5c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (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 = LIT) ;) }) (else_clause else (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)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_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 != IDENT) )) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0013cd13(long param_1)\n\n{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013cd13(long param_1)" (identifier "FUN_0013cd13") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  short *psVar1;\n  undefined2 uVar2;\n  uint uVar3;\n  short *psVar4;\n  int iVar5;\n  \n  if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }\n  uVar2 = FUN_0013ccc3(iVar5 << 2);\n  *(undefined2 *)(param_1 + 0x5c) = uVar2;\n  return;\n}" ({ "{") (declaration "short *psVar1;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "undefined2 uVar2;" (type_identifier "undefined2") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "short *psVar4;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar4" (* "*") (identifier "psVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if (*(ushort *)(param_1 + 0x60) == 0) {\n    iVar5 = 0;\n  }\n  else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" (if "if") (parenthesized_expression "(*(ushort *)(param_1 + 0x60) == 0)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x60) == 0" (pointer_expression "*(ushort *)(param_1 + 0x60)" (* "*") (cast_expression "(ushort *)(param_1 + 0x60)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" (else "else") (compound_statement "{\n    psVar4 = *(short **)(param_1 + 8);\n    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;\n    iVar5 = 0;\n    do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);\n  }" ({ "{") (expression_statement "psVar4 = *(short **)(param_1 + 8);" (assignment_expression "psVar4 = *(short **)(param_1 + 8)" (identifier "psVar4") (= "=") (pointer_expression "*(short **)(param_1 + 8)" (* "*") (cast_expression "(short **)(param_1 + 8)" (( "(") (type_descriptor "short **" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;" (assignment_expression "psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1" (identifier "psVar1") (= "=") (binary_expression "psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1" (binary_expression "psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1)" (identifier "psVar4") (+ "+") (call_expression "(ulong)(*(ushort *)(param_1 + 0x60) - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(ushort *)(param_1 + 0x60) - 1)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x60) - 1" (pointer_expression "*(ushort *)(param_1 + 0x60)" (* "*") (cast_expression "(ushort *)(param_1 + 0x60)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (- "-") (number_literal "1")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    } while (psVar4 != psVar1);" (do "do") (compound_statement "{\n      uVar3 = 1;\n      if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }\n      iVar5 = iVar5 + uVar3;\n      psVar4 = psVar4 + 1;\n    }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (-1 < *psVar4) {\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }" (if "if") (parenthesized_expression "(-1 < *psVar4)" (( "(") (binary_expression "-1 < *psVar4" (number_literal "-1") (< "<") (pointer_expression "*psVar4" (* "*") (identifier "psVar4"))) () ")")) (compound_statement "{\n        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);\n      }" ({ "{") (expression_statement "uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20);" (assignment_expression "uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20)" (( "(") (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +\n                               (long)*psVar4 * 0x20" (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a" (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x18) + 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x18) + 8" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x1a")) (+ "+") (binary_expression "(long)*psVar4 * 0x20" (cast_expression "(long)*psVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*psVar4" (* "*") (identifier "psVar4"))) (* "*") (number_literal "0x20"))) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + uVar3;" (assignment_expression "iVar5 = iVar5 + uVar3" (identifier "iVar5") (= "=") (binary_expression "iVar5 + uVar3" (identifier "iVar5") (+ "+") (identifier "uVar3"))) (; ";")) (expression_statement "psVar4 = psVar4 + 1;" (assignment_expression "psVar4 = psVar4 + 1" (identifier "psVar4") (= "=") (binary_expression "psVar4 + 1" (identifier "psVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(psVar4 != psVar1)" (( "(") (binary_expression "psVar4 != psVar1" (identifier "psVar4") (!= "!=") (identifier "psVar1")) () ")")) (; ";")) (} "}")))) (expression_statement "uVar2 = FUN_0013ccc3(iVar5 << 2);" (assignment_expression "uVar2 = FUN_0013ccc3(iVar5 << 2)" (identifier "uVar2") (= "=") (call_expression "FUN_0013ccc3(iVar5 << 2)" (identifier "FUN_0013ccc3") (argument_list "(iVar5 << 2)" (( "(") (binary_expression "iVar5 << 2" (identifier "iVar5") (<< "<<") (number_literal "2")) () ")")))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x5c) = uVar2;" (assignment_expression "*(undefined2 *)(param_1 + 0x5c) = uVar2" (pointer_expression "*(undefined2 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pIdx)

{
  short *var_4;
  type_2 LVar2;
  type_3 var_3;
  short *var_1;
  int var_2;
  
  if (pIdx->nColumn == 0) {
    var_2 = 0;
  }
  else {
    var_1 = pIdx->aiColumn;
    var_4 = var_1 + (ulong)(pIdx->nColumn - 1) + 1;
    var_2 = 0;
    do {
      var_3 = 1;
      if (-1 < *var_1) {
        var_3 = (type_3)pIdx->pTable->aCol[*var_1].szEst;
      }
      var_2 = var_2 + var_3;
      var_1 = var_1 + 1;
    } while (var_1 != var_4);
  }
  LVar2 = var_5((ulong)(type_3)(var_2 << 2));
  pIdx->szIdxRow = LVar2;
  return;
}


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

void MASKED(long param_1)

{
  short *psVar1;
  undefined2 uVar2;
  uint uVar3;
  short *psVar4;
  int iVar5;
  
  if (*(ushort *)(param_1 + 0x60) == 0) {
    iVar5 = 0;
  }
  else {
    psVar4 = *(short **)(param_1 + 8);
    psVar1 = psVar4 + (ulong)(*(ushort *)(param_1 + 0x60) - 1) + 1;
    iVar5 = 0;
    do {
      uVar3 = 1;
      if (-1 < *psVar4) {
        uVar3 = (uint)*(byte *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x1a +
                               (long)*psVar4 * 0x20);
      }
      iVar5 = iVar5 + uVar3;
      psVar4 = psVar4 + 1;
    } while (psVar4 != psVar1);
  }
  uVar2 = FUN_0013ccc3(iVar5 << 2);
  *(undefined2 *)(param_1 + 0x5c) = uVar2;
  return;
}

