
void __regparm3 sqlite3DefaultRowEst(Index *pIdx)

{
  short *psVar1;
  int iVar2;
  ushort uVar3;
  uint uVar4;
  short sVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  int in_GS_OFFSET;
  undefined1 local_30 [6];
  LogEst aVal [5];
  
  psVar1 = pIdx->aiRowLogEst;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  uVar3 = 5;
  if (pIdx->nKeyCol < 6) {
    uVar3 = pIdx->nKeyCol;
  }
  aVal[0] = 0x21;
  aVal[1] = 0x20;
  sVar5 = pIdx->pTable->nRowLogEst;
  aVal[2] = 0x1e;
  aVal[3] = 0x1c;
  aVal[4] = 0x1a;
  uVar4 = (uint)uVar3;
  *psVar1 = sVar5;
  if (pIdx->pPartIdxWhere != (Expr *)0x0) {
    sVar5 = sVar5 + -10;
  }
  local_30._0_4_ = psVar1 + 1;
  if (sVar5 < 0x21) {
    sVar5 = 0x21;
  }
  uVar6 = uVar4 * 2;
  *psVar1 = sVar5;
  if (uVar6 < 4) {
    if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {
      psVar1[uVar4] = aVal[uVar4 - 1];
    }
  }
  else {
    psVar1[1] = 0x21;
    psVar1[2] = 0x20;
    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);
    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));
    uVar6 = iVar7 + uVar6 & 0xfffffffc;
    if (3 < uVar6) {
      uVar8 = 0;
      do {
        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =
             *(undefined4 *)((int)aVal + (uVar8 - iVar7));
        uVar8 = uVar8 + 4;
        local_30._0_4_ = pIdx;
      } while (uVar8 < uVar6);
    }
  }
  uVar6 = (uint)pIdx->nKeyCol;
  uVar4 = uVar4 + 1;
  if (uVar4 <= uVar6) {
    do {
      psVar1[uVar4] = 0x17;
      uVar6 = (uint)pIdx->nKeyCol;
      uVar4 = uVar4 + 1;
    } while ((int)uVar4 <= (int)uVar6);
  }
  if (pIdx->onError != '\0') {
    psVar1[uVar6] = 0;
  }
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



void __regparm3 FUN_0003f1e0(short *param_1)

{
  short *psVar1;
  ushort uVar2;
  uint uVar3;
  short sVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  int in_GS_OFFSET;
  undefined1 local_30 [4];
  short sStack_2c;
  undefined4 local_2a [2];
  undefined2 local_22;
  int local_20;
  
  psVar1 = *(short **)(param_1 + 4);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = 5;
  if ((ushort)param_1[0x19] < 6) {
    uVar2 = param_1[0x19];
  }
  local_2a[0] = 0x200021;
  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);
  local_2a[1] = 0x1c001e;
  local_22 = 0x1a;
  uVar3 = (uint)uVar2;
  *psVar1 = sVar4;
  if (*(int *)(param_1 + 0x12) != 0) {
    sVar4 = sVar4 + -10;
  }
  local_30 = (undefined1  [4])(psVar1 + 1);
  if (sVar4 < 0x21) {
    sVar4 = 0x21;
  }
  uVar5 = uVar3 * 2;
  *psVar1 = sVar4;
  if (uVar5 < 4) {
    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {
      psVar1[uVar3] = (&sStack_2c)[uVar3];
    }
  }
  else {
    psVar1[1] = 0x21;
    psVar1[2] = 0x20;
    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);
    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));
    uVar5 = iVar6 + uVar5 & 0xfffffffc;
    if (3 < uVar5) {
      uVar7 = 0;
      do {
        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =
             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));
        uVar7 = uVar7 + 4;
        local_30 = (undefined1  [4])param_1;
      } while (uVar7 < uVar5);
    }
  }
  uVar5 = (uint)(ushort)param_1[0x19];
  uVar3 = uVar3 + 1;
  if (uVar3 <= uVar5) {
    do {
      psVar1[uVar3] = 0x17;
      uVar5 = (uint)(ushort)param_1[0x19];
      uVar3 = uVar3 + 1;
    } while ((int)uVar3 <= (int)uVar5);
  }
  if ((char)param_1[0x1b] != '\0') {
    psVar1[uVar5] = 0;
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return;
}


PUSH EBP
MOV EDX,0x5
PUSH EDI
PUSH ESI
MOV ESI,0x1a
PUSH EBX
SUB ESP,0x2c
MOV EBX,dword ptr [EAX + 0xc]
MOV ECX,dword ptr [EAX + 0x8]
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],EDI
XOR EDI,EDI
CMP word ptr [EAX + 0x32],0x5
CMOVBE DX,word ptr [EAX + 0x32]
MOV dword ptr [ESP + 0x12],0x200021
MOVZX EBX,word ptr [EBX + 0x2c]
MOV dword ptr [ESP + 0x16],0x1c001e
MOV word ptr [ESP + 0x1a],SI
MOVZX EDX,DX
MOV word ptr [ECX],BX
MOV EDI,dword ptr [EAX + 0x24]
TEST EDI,EDI
JZ 0x0003f237
SUB EBX,0xa
MOV ESI,0x21
CMP BX,0x21
LEA EDI,[ECX + 0x2]
CMOVL EBX,ESI
LEA ESI,[EDX + EDX*0x1]
MOV dword ptr [ESP + 0xc],EDI
LEA EDI,[ESP + 0x12]
MOV word ptr [ECX],BX
CMP ESI,0x4
JNC 0x0003f2a8
TEST ESI,ESI
JNZ 0x0003f2f0
MOVZX EBX,word ptr [EAX + 0x32]
ADD EDX,0x1
CMP EDX,EBX
JG 0x0003f284
LEA ESI,[ESI]
MOV EBX,0x17
MOV word ptr [ECX + EDX*0x2],BX
MOVZX EBX,word ptr [EAX + 0x32]
ADD EDX,0x1
CMP EBX,EDX
JGE 0x0003f270
CMP byte ptr [EAX + 0x36],0x0
JZ 0x0003f290
XOR EAX,EAX
MOV word ptr [ECX + EBX*0x2],AX
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0003f310
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x12]
LEA EBX,[ECX + 0x2]
MOV dword ptr [ECX + 0x2],EBP
MOV EBP,dword ptr [ESP + ESI*0x1 + 0xe]
MOV dword ptr [ECX + ESI*0x1 + -0x2],EBP
LEA EBP,[ECX + 0x6]
AND EBP,0xfffffffc
SUB EBX,EBP
SUB EDI,EBX
ADD EBX,ESI
AND EBX,0xfffffffc
CMP EBX,0x4
JC 0x0003f261
MOV dword ptr [ESP + 0xc],EAX
AND EBX,0xfffffffc
XOR ESI,ESI
MOV EAX,dword ptr [EDI + ESI*0x1]
MOV dword ptr [EBP + ESI*0x1],EAX
ADD ESI,0x4
CMP ESI,EBX
JC 0x0003f2d7
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x0003f261
MOVZX EBX,byte ptr [EDI]
MOV byte ptr [ECX + 0x2],BL
TEST ESI,0x2
JZ 0x0003f261
MOVZX EDI,word ptr [EDI + ESI*0x1 + -0x2]
MOV word ptr [ECX + ESI*0x1],DI
JMP 0x0003f261
CALL 0x00116110
(translation_unit "void __regparm3 FUN_0003f1e0(short *param_1)\n\n{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0003f1e0(short *param_1)\n\n{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f1e0(short *param_1)" identifier (parameter_list "(short *param_1)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "short sVar4;" (sized_type_specifier "short" short) identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [4];" type_identifier (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "short sStack_2c;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 local_2a [2];" type_identifier (array_declarator "local_2a [2]" identifier [ number_literal ]) ;) (declaration "undefined2 local_22;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "psVar1 = *(short **)(param_1 + 4);" (assignment_expression "psVar1 = *(short **)(param_1 + 4)" identifier = (pointer_expression "*(short **)(param_1 + 4)" * (cast_expression "(short **)(param_1 + 4)" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" identifier = number_literal) ;) (if_statement "if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }" if (parenthesized_expression "((ushort)param_1[0x19] < 6)" ( (binary_expression "(ushort)param_1[0x19] < 6" (cast_expression "(ushort)param_1[0x19]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    uVar2 = param_1[0x19];\n  }" { (expression_statement "uVar2 = param_1[0x19];" (assignment_expression "uVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) })) (expression_statement "local_2a[0] = 0x200021;" (assignment_expression "local_2a[0] = 0x200021" (subscript_expression "local_2a[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);" (assignment_expression "sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c)" identifier = (pointer_expression "*(short *)(*(int *)(param_1 + 6) + 0x2c)" * (cast_expression "(short *)(*(int *)(param_1 + 6) + 0x2c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 6) + 0x2c)" ( (binary_expression "*(int *)(param_1 + 6) + 0x2c" (pointer_expression "*(int *)(param_1 + 6)" * (cast_expression "(int *)(param_1 + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "local_2a[1] = 0x1c001e;" (assignment_expression "local_2a[1] = 0x1c001e" (subscript_expression "local_2a[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_22 = 0x1a;" (assignment_expression "local_22 = 0x1a" identifier = number_literal) ;) (expression_statement "uVar3 = (uint)uVar2;" (assignment_expression "uVar3 = (uint)uVar2" identifier = (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*psVar1 = sVar4;" (assignment_expression "*psVar1 = sVar4" (pointer_expression "*psVar1" * identifier) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x12) != 0)" ( (binary_expression "*(int *)(param_1 + 0x12) != 0" (pointer_expression "*(int *)(param_1 + 0x12)" * (cast_expression "(int *)(param_1 + 0x12)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    sVar4 = sVar4 + -10;\n  }" { (expression_statement "sVar4 = sVar4 + -10;" (assignment_expression "sVar4 = sVar4 + -10" identifier = (binary_expression "sVar4 + -10" identifier + number_literal)) ;) })) (expression_statement "local_30 = (undefined1  [4])(psVar1 + 1);" (assignment_expression "local_30 = (undefined1  [4])(psVar1 + 1)" identifier = (call_expression "(undefined1  [4])(psVar1 + 1)" (parenthesized_expression "(undefined1  [4])" ( (subscript_expression "undefined1  [4]" identifier [ number_literal ]) )) (argument_list "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) )))) ;) (if_statement "if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }" if (parenthesized_expression "(sVar4 < 0x21)" ( (binary_expression "sVar4 < 0x21" identifier < number_literal) )) (compound_statement "{\n    sVar4 = 0x21;\n  }" { (expression_statement "sVar4 = 0x21;" (assignment_expression "sVar4 = 0x21" identifier = number_literal) ;) })) (expression_statement "uVar5 = uVar3 * 2;" (assignment_expression "uVar5 = uVar3 * 2" identifier = (binary_expression "uVar3 * 2" identifier * number_literal)) ;) (expression_statement "*psVar1 = sVar4;" (assignment_expression "*psVar1 = sVar4" (pointer_expression "*psVar1" * identifier) = identifier) ;) (if_statement "if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" if (parenthesized_expression "(uVar5 < 4)" ( (binary_expression "uVar5 < 4" identifier < number_literal) )) (compound_statement "{\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }" { (if_statement "if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }" if (parenthesized_expression "((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0))" ( (binary_expression "(uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)" (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)" ( (comma_expression "*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0" (assignment_expression "*(undefined1 *)(psVar1 + 1) = 0x21" (pointer_expression "*(undefined1 *)(psVar1 + 1)" * (cast_expression "(undefined1 *)(psVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) )))) = number_literal) , (binary_expression "(uVar5 & 2) != 0" (parenthesized_expression "(uVar5 & 2)" ( (binary_expression "uVar5 & 2" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }" { (expression_statement "psVar1[uVar3] = (&sStack_2c)[uVar3];" (assignment_expression "psVar1[uVar3] = (&sStack_2c)[uVar3]" (subscript_expression "psVar1[uVar3]" identifier [ identifier ]) = (subscript_expression "(&sStack_2c)[uVar3]" (parenthesized_expression "(&sStack_2c)" ( (pointer_expression "&sStack_2c" & identifier) )) [ identifier ])) ;) })) }) (else_clause "else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" else (compound_statement "{\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" { (expression_statement "psVar1[1] = 0x21;" (assignment_expression "psVar1[1] = 0x21" (subscript_expression "psVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "psVar1[2] = 0x20;" (assignment_expression "psVar1[2] = 0x20" (subscript_expression "psVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);" (assignment_expression "*(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2)" (pointer_expression "*(undefined4 *)(psVar1 + (uVar3 - 1))" * (cast_expression "(undefined4 *)(psVar1 + (uVar3 - 1))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + (uVar3 - 1))" ( (binary_expression "psVar1 + (uVar3 - 1)" identifier + (parenthesized_expression "(uVar3 - 1)" ( (binary_expression "uVar3 - 1" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined4 *)(local_30 + uVar5 + 2)" * (cast_expression "(undefined4 *)(local_30 + uVar5 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + uVar5 + 2)" ( (binary_expression "local_30 + uVar5 + 2" (binary_expression "local_30 + uVar5" identifier + identifier) + number_literal) ))))) ;) (expression_statement "iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));" (assignment_expression "iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" identifier = (binary_expression "(int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(2 - ((uint)(psVar1 + 3) & 0xfffffffc))" ( (binary_expression "2 - ((uint)(psVar1 + 3) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) ))) & number_literal) ))) )))) ;) (expression_statement "uVar5 = iVar6 + uVar5 & 0xfffffffc;" (assignment_expression "uVar5 = iVar6 + uVar5 & 0xfffffffc" identifier = (binary_expression "iVar6 + uVar5 & 0xfffffffc" (binary_expression "iVar6 + uVar5" identifier + identifier) & number_literal)) ;) (if_statement "if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }" if (parenthesized_expression "(3 < uVar5)" ( (binary_expression "3 < uVar5" number_literal < identifier) )) (compound_statement "{\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);" do (compound_statement "{\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      }" { (expression_statement "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));" (assignment_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6))" (pointer_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" * (cast_expression "(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" ( (binary_expression "((uint)(psVar1 + 3) & 0xfffffffc) + uVar7" (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = (pointer_expression "*(undefined4 *)((int)local_2a + (uVar7 - iVar6))" * (cast_expression "(undefined4 *)((int)local_2a + (uVar7 - iVar6))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2a + (uVar7 - iVar6))" ( (binary_expression "(int)local_2a + (uVar7 - iVar6)" (cast_expression "(int)local_2a" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar7 - iVar6)" ( (binary_expression "uVar7 - iVar6" identifier - identifier) ))) ))))) ;) (expression_statement "uVar7 = uVar7 + 4;" (assignment_expression "uVar7 = uVar7 + 4" identifier = (binary_expression "uVar7 + 4" identifier + number_literal)) ;) (expression_statement "local_30 = (undefined1  [4])param_1;" (assignment_expression "local_30 = (undefined1  [4])param_1" identifier = (cast_expression "(undefined1  [4])param_1" ( (type_descriptor "undefined1  [4]" type_identifier (abstract_array_declarator "[4]" [ number_literal ])) ) identifier)) ;) }) while (parenthesized_expression "(uVar7 < uVar5)" ( (binary_expression "uVar7 < uVar5" identifier < identifier) )) ;) })) }))) (expression_statement "uVar5 = (uint)(ushort)param_1[0x19];" (assignment_expression "uVar5 = (uint)(ushort)param_1[0x19]" identifier = (cast_expression "(uint)(ushort)param_1[0x19]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(ushort)param_1[0x19]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])))) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }" if (parenthesized_expression "(uVar3 <= uVar5)" ( (binary_expression "uVar3 <= uVar5" identifier <= identifier) )) (compound_statement "{\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }" { (do_statement "do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);" do (compound_statement "{\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "psVar1[uVar3] = 0x17;" (assignment_expression "psVar1[uVar3] = 0x17" (subscript_expression "psVar1[uVar3]" identifier [ identifier ]) = number_literal) ;) (expression_statement "uVar5 = (uint)(ushort)param_1[0x19];" (assignment_expression "uVar5 = (uint)(ushort)param_1[0x19]" identifier = (cast_expression "(uint)(ushort)param_1[0x19]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(ushort)param_1[0x19]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])))) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar3 <= (int)uVar5)" ( (binary_expression "(int)uVar3 <= (int)uVar5" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }" if (parenthesized_expression "((char)param_1[0x1b] != '\0')" ( (binary_expression "(char)param_1[0x1b] != '\0'" (cast_expression "(char)param_1[0x1b]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    psVar1[uVar5] = 0;\n  }" { (expression_statement "psVar1[uVar5] = 0;" (assignment_expression "psVar1[uVar5] = 0" (subscript_expression "psVar1[uVar5]" identifier [ identifier ]) = number_literal) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3DefaultRowEst(Index *pIdx)\n\n{\n  short *psVar1;\n  int iVar2;\n  ushort uVar3;\n  uint uVar4;\n  short sVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  undefined1 local_30 [6];\n  LogEst aVal [5];\n  \n  psVar1 = pIdx->aiRowLogEst;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar3 = 5;\n  if (pIdx->nKeyCol < 6) {\n    uVar3 = pIdx->nKeyCol;\n  }\n  aVal[0] = 0x21;\n  aVal[1] = 0x20;\n  sVar5 = pIdx->pTable->nRowLogEst;\n  aVal[2] = 0x1e;\n  aVal[3] = 0x1c;\n  aVal[4] = 0x1a;\n  uVar4 = (uint)uVar3;\n  *psVar1 = sVar5;\n  if (pIdx->pPartIdxWhere != (Expr *)0x0) {\n    sVar5 = sVar5 + -10;\n  }\n  local_30._0_4_ = psVar1 + 1;\n  if (sVar5 < 0x21) {\n    sVar5 = 0x21;\n  }\n  uVar6 = uVar4 * 2;\n  *psVar1 = sVar5;\n  if (uVar6 < 4) {\n    if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);\n    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar6 = iVar7 + uVar6 & 0xfffffffc;\n    if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }\n  }\n  uVar6 = (uint)pIdx->nKeyCol;\n  uVar4 = uVar4 + 1;\n  if (uVar4 <= uVar6) {\n    do {\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    } while ((int)uVar4 <= (int)uVar6);\n  }\n  if (pIdx->onError != '\0') {\n    psVar1[uVar6] = 0;\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3DefaultRowEst(Index *pIdx)\n\n{\n  short *psVar1;\n  int iVar2;\n  ushort uVar3;\n  uint uVar4;\n  short sVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  undefined1 local_30 [6];\n  LogEst aVal [5];\n  \n  psVar1 = pIdx->aiRowLogEst;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar3 = 5;\n  if (pIdx->nKeyCol < 6) {\n    uVar3 = pIdx->nKeyCol;\n  }\n  aVal[0] = 0x21;\n  aVal[1] = 0x20;\n  sVar5 = pIdx->pTable->nRowLogEst;\n  aVal[2] = 0x1e;\n  aVal[3] = 0x1c;\n  aVal[4] = 0x1a;\n  uVar4 = (uint)uVar3;\n  *psVar1 = sVar5;\n  if (pIdx->pPartIdxWhere != (Expr *)0x0) {\n    sVar5 = sVar5 + -10;\n  }\n  local_30._0_4_ = psVar1 + 1;\n  if (sVar5 < 0x21) {\n    sVar5 = 0x21;\n  }\n  uVar6 = uVar4 * 2;\n  *psVar1 = sVar5;\n  if (uVar6 < 4) {\n    if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);\n    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar6 = iVar7 + uVar6 & 0xfffffffc;\n    if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }\n  }\n  uVar6 = (uint)pIdx->nKeyCol;\n  uVar4 = uVar4 + 1;\n  if (uVar4 <= uVar6) {\n    do {\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    } while ((int)uVar4 <= (int)uVar6);\n  }\n  if (pIdx->onError != '\0') {\n    psVar1[uVar6] = 0;\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3DefaultRowEst(Index *pIdx)" identifier (parameter_list "(Index *pIdx)" ( (parameter_declaration "Index *pIdx" type_identifier (pointer_declarator "*pIdx" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  int iVar2;\n  ushort uVar3;\n  uint uVar4;\n  short sVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  undefined1 local_30 [6];\n  LogEst aVal [5];\n  \n  psVar1 = pIdx->aiRowLogEst;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar3 = 5;\n  if (pIdx->nKeyCol < 6) {\n    uVar3 = pIdx->nKeyCol;\n  }\n  aVal[0] = 0x21;\n  aVal[1] = 0x20;\n  sVar5 = pIdx->pTable->nRowLogEst;\n  aVal[2] = 0x1e;\n  aVal[3] = 0x1c;\n  aVal[4] = 0x1a;\n  uVar4 = (uint)uVar3;\n  *psVar1 = sVar5;\n  if (pIdx->pPartIdxWhere != (Expr *)0x0) {\n    sVar5 = sVar5 + -10;\n  }\n  local_30._0_4_ = psVar1 + 1;\n  if (sVar5 < 0x21) {\n    sVar5 = 0x21;\n  }\n  uVar6 = uVar4 * 2;\n  *psVar1 = sVar5;\n  if (uVar6 < 4) {\n    if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);\n    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar6 = iVar7 + uVar6 & 0xfffffffc;\n    if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }\n  }\n  uVar6 = (uint)pIdx->nKeyCol;\n  uVar4 = uVar4 + 1;\n  if (uVar4 <= uVar6) {\n    do {\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    } while ((int)uVar4 <= (int)uVar6);\n  }\n  if (pIdx->onError != '\0') {\n    psVar1[uVar6] = 0;\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "short sVar5;" (sized_type_specifier "short" short) identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [6];" type_identifier (array_declarator "local_30 [6]" identifier [ number_literal ]) ;) (declaration "LogEst aVal [5];" type_identifier (array_declarator "aVal [5]" identifier [ number_literal ]) ;) (expression_statement "psVar1 = pIdx->aiRowLogEst;" (assignment_expression "psVar1 = pIdx->aiRowLogEst" identifier = (field_expression "pIdx->aiRowLogEst" identifier -> field_identifier)) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;) (if_statement "if (pIdx->nKeyCol < 6) {\n    uVar3 = pIdx->nKeyCol;\n  }" if (parenthesized_expression "(pIdx->nKeyCol < 6)" ( (binary_expression "pIdx->nKeyCol < 6" (field_expression "pIdx->nKeyCol" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    uVar3 = pIdx->nKeyCol;\n  }" { (expression_statement "uVar3 = pIdx->nKeyCol;" (assignment_expression "uVar3 = pIdx->nKeyCol" identifier = (field_expression "pIdx->nKeyCol" identifier -> field_identifier)) ;) })) (expression_statement "aVal[0] = 0x21;" (assignment_expression "aVal[0] = 0x21" (subscript_expression "aVal[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aVal[1] = 0x20;" (assignment_expression "aVal[1] = 0x20" (subscript_expression "aVal[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "sVar5 = pIdx->pTable->nRowLogEst;" (assignment_expression "sVar5 = pIdx->pTable->nRowLogEst" identifier = (field_expression "pIdx->pTable->nRowLogEst" (field_expression "pIdx->pTable" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "aVal[2] = 0x1e;" (assignment_expression "aVal[2] = 0x1e" (subscript_expression "aVal[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aVal[3] = 0x1c;" (assignment_expression "aVal[3] = 0x1c" (subscript_expression "aVal[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aVal[4] = 0x1a;" (assignment_expression "aVal[4] = 0x1a" (subscript_expression "aVal[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar4 = (uint)uVar3;" (assignment_expression "uVar4 = (uint)uVar3" identifier = (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*psVar1 = sVar5;" (assignment_expression "*psVar1 = sVar5" (pointer_expression "*psVar1" * identifier) = identifier) ;) (if_statement "if (pIdx->pPartIdxWhere != (Expr *)0x0) {\n    sVar5 = sVar5 + -10;\n  }" if (parenthesized_expression "(pIdx->pPartIdxWhere != (Expr *)0x0)" ( (binary_expression "pIdx->pPartIdxWhere != (Expr *)0x0" (field_expression "pIdx->pPartIdxWhere" identifier -> field_identifier) != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar5 = sVar5 + -10;\n  }" { (expression_statement "sVar5 = sVar5 + -10;" (assignment_expression "sVar5 = sVar5 + -10" identifier = (binary_expression "sVar5 + -10" identifier + number_literal)) ;) })) (expression_statement "local_30._0_4_ = psVar1 + 1;" (assignment_expression "local_30._0_4_ = psVar1 + 1" (field_expression "local_30._0_4_" identifier . field_identifier) = (binary_expression "psVar1 + 1" identifier + number_literal)) ;) (if_statement "if (sVar5 < 0x21) {\n    sVar5 = 0x21;\n  }" if (parenthesized_expression "(sVar5 < 0x21)" ( (binary_expression "sVar5 < 0x21" identifier < number_literal) )) (compound_statement "{\n    sVar5 = 0x21;\n  }" { (expression_statement "sVar5 = 0x21;" (assignment_expression "sVar5 = 0x21" identifier = number_literal) ;) })) (expression_statement "uVar6 = uVar4 * 2;" (assignment_expression "uVar6 = uVar4 * 2" identifier = (binary_expression "uVar4 * 2" identifier * number_literal)) ;) (expression_statement "*psVar1 = sVar5;" (assignment_expression "*psVar1 = sVar5" (pointer_expression "*psVar1" * identifier) = identifier) ;) (if_statement "if (uVar6 < 4) {\n    if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);\n    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar6 = iVar7 + uVar6 & 0xfffffffc;\n    if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }\n  }" if (parenthesized_expression "(uVar6 < 4)" ( (binary_expression "uVar6 < 4" identifier < number_literal) )) (compound_statement "{\n    if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }\n  }" { (if_statement "if ((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)) {\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }" if (parenthesized_expression "((uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0))" ( (binary_expression "(uVar4 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0)" ( (comma_expression "*(undefined1 *)(psVar1 + 1) = 0x21, (uVar6 & 2) != 0" (assignment_expression "*(undefined1 *)(psVar1 + 1) = 0x21" (pointer_expression "*(undefined1 *)(psVar1 + 1)" * (cast_expression "(undefined1 *)(psVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) )))) = number_literal) , (binary_expression "(uVar6 & 2) != 0" (parenthesized_expression "(uVar6 & 2)" ( (binary_expression "uVar6 & 2" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n      psVar1[uVar4] = aVal[uVar4 - 1];\n    }" { (expression_statement "psVar1[uVar4] = aVal[uVar4 - 1];" (assignment_expression "psVar1[uVar4] = aVal[uVar4 - 1]" (subscript_expression "psVar1[uVar4]" identifier [ identifier ]) = (subscript_expression "aVal[uVar4 - 1]" identifier [ (binary_expression "uVar4 - 1" identifier - number_literal) ])) ;) })) }) (else_clause "else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);\n    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar6 = iVar7 + uVar6 & 0xfffffffc;\n    if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }\n  }" else (compound_statement "{\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);\n    iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar6 = iVar7 + uVar6 & 0xfffffffc;\n    if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }\n  }" { (expression_statement "psVar1[1] = 0x21;" (assignment_expression "psVar1[1] = 0x21" (subscript_expression "psVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "psVar1[2] = 0x20;" (assignment_expression "psVar1[2] = 0x20" (subscript_expression "psVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2);" (assignment_expression "*(undefined4 *)(psVar1 + (uVar4 - 1)) = *(undefined4 *)(local_30 + uVar6 + 2)" (pointer_expression "*(undefined4 *)(psVar1 + (uVar4 - 1))" * (cast_expression "(undefined4 *)(psVar1 + (uVar4 - 1))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + (uVar4 - 1))" ( (binary_expression "psVar1 + (uVar4 - 1)" identifier + (parenthesized_expression "(uVar4 - 1)" ( (binary_expression "uVar4 - 1" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined4 *)(local_30 + uVar6 + 2)" * (cast_expression "(undefined4 *)(local_30 + uVar6 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + uVar6 + 2)" ( (binary_expression "local_30 + uVar6 + 2" (binary_expression "local_30 + uVar6" identifier + identifier) + number_literal) ))))) ;) (expression_statement "iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));" (assignment_expression "iVar7 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" identifier = (binary_expression "(int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(2 - ((uint)(psVar1 + 3) & 0xfffffffc))" ( (binary_expression "2 - ((uint)(psVar1 + 3) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) ))) & number_literal) ))) )))) ;) (expression_statement "uVar6 = iVar7 + uVar6 & 0xfffffffc;" (assignment_expression "uVar6 = iVar7 + uVar6 & 0xfffffffc" identifier = (binary_expression "iVar7 + uVar6 & 0xfffffffc" (binary_expression "iVar7 + uVar6" identifier + identifier) & number_literal)) ;) (if_statement "if (3 < uVar6) {\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }" if (parenthesized_expression "(3 < uVar6)" ( (binary_expression "3 < uVar6" number_literal < identifier) )) (compound_statement "{\n      uVar8 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);\n    }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      } while (uVar8 < uVar6);" do (compound_statement "{\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));\n        uVar8 = uVar8 + 4;\n        local_30._0_4_ = pIdx;\n      }" { (expression_statement "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7));" (assignment_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8) =\n             *(undefined4 *)((int)aVal + (uVar8 - iVar7))" (pointer_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8)" * (cast_expression "(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(psVar1 + 3) & 0xfffffffc) + uVar8)" ( (binary_expression "((uint)(psVar1 + 3) & 0xfffffffc) + uVar8" (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = (pointer_expression "*(undefined4 *)((int)aVal + (uVar8 - iVar7))" * (cast_expression "(undefined4 *)((int)aVal + (uVar8 - iVar7))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aVal + (uVar8 - iVar7))" ( (binary_expression "(int)aVal + (uVar8 - iVar7)" (cast_expression "(int)aVal" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar8 - iVar7)" ( (binary_expression "uVar8 - iVar7" identifier - identifier) ))) ))))) ;) (expression_statement "uVar8 = uVar8 + 4;" (assignment_expression "uVar8 = uVar8 + 4" identifier = (binary_expression "uVar8 + 4" identifier + number_literal)) ;) (expression_statement "local_30._0_4_ = pIdx;" (assignment_expression "local_30._0_4_ = pIdx" (field_expression "local_30._0_4_" identifier . field_identifier) = identifier) ;) }) while (parenthesized_expression "(uVar8 < uVar6)" ( (binary_expression "uVar8 < uVar6" identifier < identifier) )) ;) })) }))) (expression_statement "uVar6 = (uint)pIdx->nKeyCol;" (assignment_expression "uVar6 = (uint)pIdx->nKeyCol" identifier = (cast_expression "(uint)pIdx->nKeyCol" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIdx->nKeyCol" identifier -> field_identifier))) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar4 <= uVar6) {\n    do {\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    } while ((int)uVar4 <= (int)uVar6);\n  }" if (parenthesized_expression "(uVar4 <= uVar6)" ( (binary_expression "uVar4 <= uVar6" identifier <= identifier) )) (compound_statement "{\n    do {\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    } while ((int)uVar4 <= (int)uVar6);\n  }" { (do_statement "do {\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    } while ((int)uVar4 <= (int)uVar6);" do (compound_statement "{\n      psVar1[uVar4] = 0x17;\n      uVar6 = (uint)pIdx->nKeyCol;\n      uVar4 = uVar4 + 1;\n    }" { (expression_statement "psVar1[uVar4] = 0x17;" (assignment_expression "psVar1[uVar4] = 0x17" (subscript_expression "psVar1[uVar4]" identifier [ identifier ]) = number_literal) ;) (expression_statement "uVar6 = (uint)pIdx->nKeyCol;" (assignment_expression "uVar6 = (uint)pIdx->nKeyCol" identifier = (cast_expression "(uint)pIdx->nKeyCol" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIdx->nKeyCol" identifier -> field_identifier))) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar4 <= (int)uVar6)" ( (binary_expression "(int)uVar4 <= (int)uVar6" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if (pIdx->onError != '\0') {\n    psVar1[uVar6] = 0;\n  }" if (parenthesized_expression "(pIdx->onError != '\0')" ( (binary_expression "pIdx->onError != '\0'" (field_expression "pIdx->onError" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    psVar1[uVar6] = 0;\n  }" { (expression_statement "psVar1[uVar6] = 0;" (assignment_expression "psVar1[uVar6] = 0" (subscript_expression "psVar1[uVar6]" identifier [ identifier ]) = number_literal) ;) })) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0003f1e0(short *param_1)\n\n{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0003f1e0(short *param_1)\n\n{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f1e0(short *param_1)" identifier (parameter_list "(short *param_1)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "short sVar4;" (sized_type_specifier "short" short) identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [4];" type_identifier (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "short sStack_2c;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 local_2a [2];" type_identifier (array_declarator "local_2a [2]" identifier [ number_literal ]) ;) (declaration "undefined2 local_22;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "psVar1 = *(short **)(param_1 + 4);" (assignment_expression "psVar1 = *(short **)(param_1 + 4)" identifier = (pointer_expression "*(short **)(param_1 + 4)" * (cast_expression "(short **)(param_1 + 4)" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" identifier = number_literal) ;) (if_statement "if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }" if (parenthesized_expression "((ushort)param_1[0x19] < 6)" ( (binary_expression "(ushort)param_1[0x19] < 6" (cast_expression "(ushort)param_1[0x19]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    uVar2 = param_1[0x19];\n  }" { (expression_statement "uVar2 = param_1[0x19];" (assignment_expression "uVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) })) (expression_statement "local_2a[0] = 0x200021;" (assignment_expression "local_2a[0] = 0x200021" (subscript_expression "local_2a[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);" (assignment_expression "sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c)" identifier = (pointer_expression "*(short *)(*(int *)(param_1 + 6) + 0x2c)" * (cast_expression "(short *)(*(int *)(param_1 + 6) + 0x2c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 6) + 0x2c)" ( (binary_expression "*(int *)(param_1 + 6) + 0x2c" (pointer_expression "*(int *)(param_1 + 6)" * (cast_expression "(int *)(param_1 + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "local_2a[1] = 0x1c001e;" (assignment_expression "local_2a[1] = 0x1c001e" (subscript_expression "local_2a[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_22 = 0x1a;" (assignment_expression "local_22 = 0x1a" identifier = number_literal) ;) (expression_statement "uVar3 = (uint)uVar2;" (assignment_expression "uVar3 = (uint)uVar2" identifier = (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*psVar1 = sVar4;" (assignment_expression "*psVar1 = sVar4" (pointer_expression "*psVar1" * identifier) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x12) != 0)" ( (binary_expression "*(int *)(param_1 + 0x12) != 0" (pointer_expression "*(int *)(param_1 + 0x12)" * (cast_expression "(int *)(param_1 + 0x12)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    sVar4 = sVar4 + -10;\n  }" { (expression_statement "sVar4 = sVar4 + -10;" (assignment_expression "sVar4 = sVar4 + -10" identifier = (binary_expression "sVar4 + -10" identifier + number_literal)) ;) })) (expression_statement "local_30 = (undefined1  [4])(psVar1 + 1);" (assignment_expression "local_30 = (undefined1  [4])(psVar1 + 1)" identifier = (call_expression "(undefined1  [4])(psVar1 + 1)" (parenthesized_expression "(undefined1  [4])" ( (subscript_expression "undefined1  [4]" identifier [ number_literal ]) )) (argument_list "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) )))) ;) (if_statement "if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }" if (parenthesized_expression "(sVar4 < 0x21)" ( (binary_expression "sVar4 < 0x21" identifier < number_literal) )) (compound_statement "{\n    sVar4 = 0x21;\n  }" { (expression_statement "sVar4 = 0x21;" (assignment_expression "sVar4 = 0x21" identifier = number_literal) ;) })) (expression_statement "uVar5 = uVar3 * 2;" (assignment_expression "uVar5 = uVar3 * 2" identifier = (binary_expression "uVar3 * 2" identifier * number_literal)) ;) (expression_statement "*psVar1 = sVar4;" (assignment_expression "*psVar1 = sVar4" (pointer_expression "*psVar1" * identifier) = identifier) ;) (if_statement "if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" if (parenthesized_expression "(uVar5 < 4)" ( (binary_expression "uVar5 < 4" identifier < number_literal) )) (compound_statement "{\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }" { (if_statement "if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }" if (parenthesized_expression "((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0))" ( (binary_expression "(uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)" (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)" ( (comma_expression "*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0" (assignment_expression "*(undefined1 *)(psVar1 + 1) = 0x21" (pointer_expression "*(undefined1 *)(psVar1 + 1)" * (cast_expression "(undefined1 *)(psVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) )))) = number_literal) , (binary_expression "(uVar5 & 2) != 0" (parenthesized_expression "(uVar5 & 2)" ( (binary_expression "uVar5 & 2" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }" { (expression_statement "psVar1[uVar3] = (&sStack_2c)[uVar3];" (assignment_expression "psVar1[uVar3] = (&sStack_2c)[uVar3]" (subscript_expression "psVar1[uVar3]" identifier [ identifier ]) = (subscript_expression "(&sStack_2c)[uVar3]" (parenthesized_expression "(&sStack_2c)" ( (pointer_expression "&sStack_2c" & identifier) )) [ identifier ])) ;) })) }) (else_clause "else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" else (compound_statement "{\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" { (expression_statement "psVar1[1] = 0x21;" (assignment_expression "psVar1[1] = 0x21" (subscript_expression "psVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "psVar1[2] = 0x20;" (assignment_expression "psVar1[2] = 0x20" (subscript_expression "psVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);" (assignment_expression "*(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2)" (pointer_expression "*(undefined4 *)(psVar1 + (uVar3 - 1))" * (cast_expression "(undefined4 *)(psVar1 + (uVar3 - 1))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar1 + (uVar3 - 1))" ( (binary_expression "psVar1 + (uVar3 - 1)" identifier + (parenthesized_expression "(uVar3 - 1)" ( (binary_expression "uVar3 - 1" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined4 *)(local_30 + uVar5 + 2)" * (cast_expression "(undefined4 *)(local_30 + uVar5 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + uVar5 + 2)" ( (binary_expression "local_30 + uVar5 + 2" (binary_expression "local_30 + uVar5" identifier + identifier) + number_literal) ))))) ;) (expression_statement "iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));" (assignment_expression "iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" identifier = (binary_expression "(int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(2 - ((uint)(psVar1 + 3) & 0xfffffffc))" ( (binary_expression "2 - ((uint)(psVar1 + 3) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) ))) & number_literal) ))) )))) ;) (expression_statement "uVar5 = iVar6 + uVar5 & 0xfffffffc;" (assignment_expression "uVar5 = iVar6 + uVar5 & 0xfffffffc" identifier = (binary_expression "iVar6 + uVar5 & 0xfffffffc" (binary_expression "iVar6 + uVar5" identifier + identifier) & number_literal)) ;) (if_statement "if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }" if (parenthesized_expression "(3 < uVar5)" ( (binary_expression "3 < uVar5" number_literal < identifier) )) (compound_statement "{\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);" do (compound_statement "{\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      }" { (expression_statement "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));" (assignment_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6))" (pointer_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" * (cast_expression "(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" ( (binary_expression "((uint)(psVar1 + 3) & 0xfffffffc) + uVar7" (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 3)" ( (binary_expression "psVar1 + 3" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = (pointer_expression "*(undefined4 *)((int)local_2a + (uVar7 - iVar6))" * (cast_expression "(undefined4 *)((int)local_2a + (uVar7 - iVar6))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2a + (uVar7 - iVar6))" ( (binary_expression "(int)local_2a + (uVar7 - iVar6)" (cast_expression "(int)local_2a" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar7 - iVar6)" ( (binary_expression "uVar7 - iVar6" identifier - identifier) ))) ))))) ;) (expression_statement "uVar7 = uVar7 + 4;" (assignment_expression "uVar7 = uVar7 + 4" identifier = (binary_expression "uVar7 + 4" identifier + number_literal)) ;) (expression_statement "local_30 = (undefined1  [4])param_1;" (assignment_expression "local_30 = (undefined1  [4])param_1" identifier = (cast_expression "(undefined1  [4])param_1" ( (type_descriptor "undefined1  [4]" type_identifier (abstract_array_declarator "[4]" [ number_literal ])) ) identifier)) ;) }) while (parenthesized_expression "(uVar7 < uVar5)" ( (binary_expression "uVar7 < uVar5" identifier < identifier) )) ;) })) }))) (expression_statement "uVar5 = (uint)(ushort)param_1[0x19];" (assignment_expression "uVar5 = (uint)(ushort)param_1[0x19]" identifier = (cast_expression "(uint)(ushort)param_1[0x19]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(ushort)param_1[0x19]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])))) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }" if (parenthesized_expression "(uVar3 <= uVar5)" ( (binary_expression "uVar3 <= uVar5" identifier <= identifier) )) (compound_statement "{\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }" { (do_statement "do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);" do (compound_statement "{\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "psVar1[uVar3] = 0x17;" (assignment_expression "psVar1[uVar3] = 0x17" (subscript_expression "psVar1[uVar3]" identifier [ identifier ]) = number_literal) ;) (expression_statement "uVar5 = (uint)(ushort)param_1[0x19];" (assignment_expression "uVar5 = (uint)(ushort)param_1[0x19]" identifier = (cast_expression "(uint)(ushort)param_1[0x19]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(ushort)param_1[0x19]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])))) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar3 <= (int)uVar5)" ( (binary_expression "(int)uVar3 <= (int)uVar5" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (if_statement "if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }" if (parenthesized_expression "((char)param_1[0x1b] != '\0')" ( (binary_expression "(char)param_1[0x1b] != '\0'" (cast_expression "(char)param_1[0x1b]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    psVar1[uVar5] = 0;\n  }" { (expression_statement "psVar1[uVar5] = 0;" (assignment_expression "psVar1[uVar5] = 0" (subscript_expression "psVar1[uVar5]" identifier [ identifier ]) = number_literal) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (subscript_expression IDENT [ LIT ]) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0003f1e0(short *param_1)\n\n{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003f1e0(short *param_1)" (identifier "FUN_0003f1e0") (parameter_list "(short *param_1)" (( "(") (parameter_declaration "short *param_1" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  short *psVar1;\n  ushort uVar2;\n  uint uVar3;\n  short sVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined1 local_30 [4];\n  short sStack_2c;\n  undefined4 local_2a [2];\n  undefined2 local_22;\n  int local_20;\n  \n  psVar1 = *(short **)(param_1 + 4);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = 5;\n  if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }\n  local_2a[0] = 0x200021;\n  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);\n  local_2a[1] = 0x1c001e;\n  local_22 = 0x1a;\n  uVar3 = (uint)uVar2;\n  *psVar1 = sVar4;\n  if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }\n  local_30 = (undefined1  [4])(psVar1 + 1);\n  if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }\n  uVar5 = uVar3 * 2;\n  *psVar1 = sVar4;\n  if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }\n  uVar5 = (uint)(ushort)param_1[0x19];\n  uVar3 = uVar3 + 1;\n  if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }\n  if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" ({ "{") (declaration "short *psVar1;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "short sVar4;" (sized_type_specifier "short" (short "short")) (identifier "sVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_30 [4];" (type_identifier "undefined1") (array_declarator "local_30 [4]" (identifier "local_30") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "short sStack_2c;" (sized_type_specifier "short" (short "short")) (identifier "sStack_2c") (; ";")) (declaration "undefined4 local_2a [2];" (type_identifier "undefined4") (array_declarator "local_2a [2]" (identifier "local_2a") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined2 local_22;" (type_identifier "undefined2") (identifier "local_22") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "psVar1 = *(short **)(param_1 + 4);" (assignment_expression "psVar1 = *(short **)(param_1 + 4)" (identifier "psVar1") (= "=") (pointer_expression "*(short **)(param_1 + 4)" (* "*") (cast_expression "(short **)(param_1 + 4)" (( "(") (type_descriptor "short **" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" (identifier "uVar2") (= "=") (number_literal "5")) (; ";")) (if_statement "if ((ushort)param_1[0x19] < 6) {\n    uVar2 = param_1[0x19];\n  }" (if "if") (parenthesized_expression "((ushort)param_1[0x19] < 6)" (( "(") (binary_expression "(ushort)param_1[0x19] < 6" (cast_expression "(ushort)param_1[0x19]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (< "<") (number_literal "6")) () ")")) (compound_statement "{\n    uVar2 = param_1[0x19];\n  }" ({ "{") (expression_statement "uVar2 = param_1[0x19];" (assignment_expression "uVar2 = param_1[0x19]" (identifier "uVar2") (= "=") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (} "}"))) (expression_statement "local_2a[0] = 0x200021;" (assignment_expression "local_2a[0] = 0x200021" (subscript_expression "local_2a[0]" (identifier "local_2a") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x200021")) (; ";")) (expression_statement "sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);" (assignment_expression "sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c)" (identifier "sVar4") (= "=") (pointer_expression "*(short *)(*(int *)(param_1 + 6) + 0x2c)" (* "*") (cast_expression "(short *)(*(int *)(param_1 + 6) + 0x2c)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 6) + 0x2c)" (( "(") (binary_expression "*(int *)(param_1 + 6) + 0x2c" (pointer_expression "*(int *)(param_1 + 6)" (* "*") (cast_expression "(int *)(param_1 + 6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "local_2a[1] = 0x1c001e;" (assignment_expression "local_2a[1] = 0x1c001e" (subscript_expression "local_2a[1]" (identifier "local_2a") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x1c001e")) (; ";")) (expression_statement "local_22 = 0x1a;" (assignment_expression "local_22 = 0x1a" (identifier "local_22") (= "=") (number_literal "0x1a")) (; ";")) (expression_statement "uVar3 = (uint)uVar2;" (assignment_expression "uVar3 = (uint)uVar2" (identifier "uVar3") (= "=") (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2"))) (; ";")) (expression_statement "*psVar1 = sVar4;" (assignment_expression "*psVar1 = sVar4" (pointer_expression "*psVar1" (* "*") (identifier "psVar1")) (= "=") (identifier "sVar4")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x12) != 0) {\n    sVar4 = sVar4 + -10;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x12) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x12) != 0" (pointer_expression "*(int *)(param_1 + 0x12)" (* "*") (cast_expression "(int *)(param_1 + 0x12)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x12)" (( "(") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    sVar4 = sVar4 + -10;\n  }" ({ "{") (expression_statement "sVar4 = sVar4 + -10;" (assignment_expression "sVar4 = sVar4 + -10" (identifier "sVar4") (= "=") (binary_expression "sVar4 + -10" (identifier "sVar4") (+ "+") (number_literal "-10"))) (; ";")) (} "}"))) (expression_statement "local_30 = (undefined1  [4])(psVar1 + 1);" (assignment_expression "local_30 = (undefined1  [4])(psVar1 + 1)" (identifier "local_30") (= "=") (call_expression "(undefined1  [4])(psVar1 + 1)" (parenthesized_expression "(undefined1  [4])" (( "(") (subscript_expression "undefined1  [4]" (identifier "undefined1") ([ "[") (number_literal "4") (] "]")) () ")")) (argument_list "(psVar1 + 1)" (( "(") (binary_expression "psVar1 + 1" (identifier "psVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (sVar4 < 0x21) {\n    sVar4 = 0x21;\n  }" (if "if") (parenthesized_expression "(sVar4 < 0x21)" (( "(") (binary_expression "sVar4 < 0x21" (identifier "sVar4") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n    sVar4 = 0x21;\n  }" ({ "{") (expression_statement "sVar4 = 0x21;" (assignment_expression "sVar4 = 0x21" (identifier "sVar4") (= "=") (number_literal "0x21")) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar3 * 2;" (assignment_expression "uVar5 = uVar3 * 2" (identifier "uVar5") (= "=") (binary_expression "uVar3 * 2" (identifier "uVar3") (* "*") (number_literal "2"))) (; ";")) (expression_statement "*psVar1 = sVar4;" (assignment_expression "*psVar1 = sVar4" (pointer_expression "*psVar1" (* "*") (identifier "psVar1")) (= "=") (identifier "sVar4")) (; ";")) (if_statement "if (uVar5 < 4) {\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }\n  else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" (if "if") (parenthesized_expression "(uVar5 < 4)" (( "(") (binary_expression "uVar5 < 4" (identifier "uVar5") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }\n  }" ({ "{") (if_statement "if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }" (if "if") (parenthesized_expression "((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0))" (( "(") (binary_expression "(uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)" (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)" (( "(") (comma_expression "*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0" (assignment_expression "*(undefined1 *)(psVar1 + 1) = 0x21" (pointer_expression "*(undefined1 *)(psVar1 + 1)" (* "*") (cast_expression "(undefined1 *)(psVar1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar1 + 1)" (( "(") (binary_expression "psVar1 + 1" (identifier "psVar1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0x21")) (, ",") (binary_expression "(uVar5 & 2) != 0" (parenthesized_expression "(uVar5 & 2)" (( "(") (binary_expression "uVar5 & 2" (identifier "uVar5") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      psVar1[uVar3] = (&sStack_2c)[uVar3];\n    }" ({ "{") (expression_statement "psVar1[uVar3] = (&sStack_2c)[uVar3];" (assignment_expression "psVar1[uVar3] = (&sStack_2c)[uVar3]" (subscript_expression "psVar1[uVar3]" (identifier "psVar1") ([ "[") (identifier "uVar3") (] "]")) (= "=") (subscript_expression "(&sStack_2c)[uVar3]" (parenthesized_expression "(&sStack_2c)" (( "(") (pointer_expression "&sStack_2c" (& "&") (identifier "sStack_2c")) () ")")) ([ "[") (identifier "uVar3") (] "]"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" (else "else") (compound_statement "{\n    psVar1[1] = 0x21;\n    psVar1[2] = 0x20;\n    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);\n    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));\n    uVar5 = iVar6 + uVar5 & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }\n  }" ({ "{") (expression_statement "psVar1[1] = 0x21;" (assignment_expression "psVar1[1] = 0x21" (subscript_expression "psVar1[1]" (identifier "psVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x21")) (; ";")) (expression_statement "psVar1[2] = 0x20;" (assignment_expression "psVar1[2] = 0x20" (subscript_expression "psVar1[2]" (identifier "psVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x20")) (; ";")) (expression_statement "*(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);" (assignment_expression "*(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2)" (pointer_expression "*(undefined4 *)(psVar1 + (uVar3 - 1))" (* "*") (cast_expression "(undefined4 *)(psVar1 + (uVar3 - 1))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar1 + (uVar3 - 1))" (( "(") (binary_expression "psVar1 + (uVar3 - 1)" (identifier "psVar1") (+ "+") (parenthesized_expression "(uVar3 - 1)" (( "(") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1")) () ")"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(local_30 + uVar5 + 2)" (* "*") (cast_expression "(undefined4 *)(local_30 + uVar5 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_30 + uVar5 + 2)" (( "(") (binary_expression "local_30 + uVar5 + 2" (binary_expression "local_30 + uVar5" (identifier "local_30") (+ "+") (identifier "uVar5")) (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));" (assignment_expression "iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" (identifier "iVar6") (= "=") (binary_expression "(int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc))" (cast_expression "(int)psVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar1")) (+ "+") (parenthesized_expression "(2 - ((uint)(psVar1 + 3) & 0xfffffffc))" (( "(") (binary_expression "2 - ((uint)(psVar1 + 3) & 0xfffffffc)" (number_literal "2") (- "-") (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" (( "(") (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(psVar1 + 3)" (( "(") (binary_expression "psVar1 + 3" (identifier "psVar1") (+ "+") (number_literal "3")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")))) (; ";")) (expression_statement "uVar5 = iVar6 + uVar5 & 0xfffffffc;" (assignment_expression "uVar5 = iVar6 + uVar5 & 0xfffffffc" (identifier "uVar5") (= "=") (binary_expression "iVar6 + uVar5 & 0xfffffffc" (binary_expression "iVar6 + uVar5" (identifier "iVar6") (+ "+") (identifier "uVar5")) (& "&") (number_literal "0xfffffffc"))) (; ";")) (if_statement "if (3 < uVar5) {\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }" (if "if") (parenthesized_expression "(3 < uVar5)" (( "(") (binary_expression "3 < uVar5" (number_literal "3") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n      uVar7 = 0;\n      do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);\n    }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      } while (uVar7 < uVar5);" (do "do") (compound_statement "{\n        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));\n        uVar7 = uVar7 + 4;\n        local_30 = (undefined1  [4])param_1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));" (assignment_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =\n             *(undefined4 *)((int)local_2a + (uVar7 - iVar6))" (pointer_expression "*(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" (* "*") (cast_expression "(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7)" (( "(") (binary_expression "((uint)(psVar1 + 3) & 0xfffffffc) + uVar7" (parenthesized_expression "((uint)(psVar1 + 3) & 0xfffffffc)" (( "(") (binary_expression "(uint)(psVar1 + 3) & 0xfffffffc" (call_expression "(uint)(psVar1 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(psVar1 + 3)" (( "(") (binary_expression "psVar1 + 3" (identifier "psVar1") (+ "+") (number_literal "3")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar7")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)((int)local_2a + (uVar7 - iVar6))" (* "*") (cast_expression "(undefined4 *)((int)local_2a + (uVar7 - iVar6))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_2a + (uVar7 - iVar6))" (( "(") (binary_expression "(int)local_2a + (uVar7 - iVar6)" (cast_expression "(int)local_2a" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2a")) (+ "+") (parenthesized_expression "(uVar7 - iVar6)" (( "(") (binary_expression "uVar7 - iVar6" (identifier "uVar7") (- "-") (identifier "iVar6")) () ")"))) () ")"))))) (; ";")) (expression_statement "uVar7 = uVar7 + 4;" (assignment_expression "uVar7 = uVar7 + 4" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 4" (identifier "uVar7") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "local_30 = (undefined1  [4])param_1;" (assignment_expression "local_30 = (undefined1  [4])param_1" (identifier "local_30") (= "=") (cast_expression "(undefined1  [4])param_1" (( "(") (type_descriptor "undefined1  [4]" (type_identifier "undefined1") (abstract_array_declarator "[4]" ([ "[") (number_literal "4") (] "]"))) () ")") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < uVar5)" (( "(") (binary_expression "uVar7 < uVar5" (identifier "uVar7") (< "<") (identifier "uVar5")) () ")")) (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar5 = (uint)(ushort)param_1[0x19];" (assignment_expression "uVar5 = (uint)(ushort)param_1[0x19]" (identifier "uVar5") (= "=") (cast_expression "(uint)(ushort)param_1[0x19]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(ushort)param_1[0x19]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))))) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar3 <= uVar5) {\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }" (if "if") (parenthesized_expression "(uVar3 <= uVar5)" (( "(") (binary_expression "uVar3 <= uVar5" (identifier "uVar3") (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n    do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);\n  }" ({ "{") (do_statement "do {\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    } while ((int)uVar3 <= (int)uVar5);" (do "do") (compound_statement "{\n      psVar1[uVar3] = 0x17;\n      uVar5 = (uint)(ushort)param_1[0x19];\n      uVar3 = uVar3 + 1;\n    }" ({ "{") (expression_statement "psVar1[uVar3] = 0x17;" (assignment_expression "psVar1[uVar3] = 0x17" (subscript_expression "psVar1[uVar3]" (identifier "psVar1") ([ "[") (identifier "uVar3") (] "]")) (= "=") (number_literal "0x17")) (; ";")) (expression_statement "uVar5 = (uint)(ushort)param_1[0x19];" (assignment_expression "uVar5 = (uint)(ushort)param_1[0x19]" (identifier "uVar5") (= "=") (cast_expression "(uint)(ushort)param_1[0x19]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(ushort)param_1[0x19]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))))) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)uVar3 <= (int)uVar5)" (( "(") (binary_expression "(int)uVar3 <= (int)uVar5" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (<= "<=") (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5"))) () ")")) (; ";")) (} "}"))) (if_statement "if ((char)param_1[0x1b] != '\0') {\n    psVar1[uVar5] = 0;\n  }" (if "if") (parenthesized_expression "((char)param_1[0x1b] != '\0')" (( "(") (binary_expression "(char)param_1[0x1b] != '\0'" (cast_expression "(char)param_1[0x1b]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[0x1b]" (identifier "param_1") ([ "[") (number_literal "0x1b") (] "]"))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    psVar1[uVar5] = 0;\n  }" ({ "{") (expression_statement "psVar1[uVar5] = 0;" (assignment_expression "psVar1[uVar5] = 0" (subscript_expression "psVar1[uVar5]" (identifier "psVar1") ([ "[") (identifier "uVar5") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pIdx)

{
  short *var_3;
  int var_9;
  type_2 uVar3;
  type_3 var_4;
  short var_2;
  type_3 var_5;
  int var_7;
  type_3 var_8;
  int var_1;
  type_4 var_6 [6];
  type_5 aVal [5];
  
  var_3 = pIdx->aiRowLogEst;
  var_9 = *(int *)(var_1 + 0x14);
  uVar3 = 5;
  if (pIdx->nKeyCol < 6) {
    uVar3 = pIdx->nKeyCol;
  }
  aVal[0] = 0x21;
  aVal[1] = 0x20;
  var_2 = pIdx->pTable->nRowLogEst;
  aVal[2] = 0x1e;
  aVal[3] = 0x1c;
  aVal[4] = 0x1a;
  var_4 = (type_3)uVar3;
  *var_3 = var_2;
  if (pIdx->pPartIdxWhere != (type_6 *)0x0) {
    var_2 = var_2 + -10;
  }
  var_6._0_4_ = var_3 + 1;
  if (var_2 < 0x21) {
    var_2 = 0x21;
  }
  var_5 = var_4 * 2;
  *var_3 = var_2;
  if (var_5 < 4) {
    if ((var_4 != 0) && (*(type_4 *)(var_3 + 1) = 0x21, (var_5 & 2) != 0)) {
      var_3[var_4] = aVal[var_4 - 1];
    }
  }
  else {
    var_3[1] = 0x21;
    var_3[2] = 0x20;
    *(type_7 *)(var_3 + (var_4 - 1)) = *(type_7 *)(var_6 + var_5 + 2);
    var_7 = (int)var_3 + (2 - ((type_3)(var_3 + 3) & 0xfffffffc));
    var_5 = var_7 + var_5 & 0xfffffffc;
    if (3 < var_5) {
      var_8 = 0;
      do {
        *(type_7 *)(((type_3)(var_3 + 3) & 0xfffffffc) + var_8) =
             *(type_7 *)((int)aVal + (var_8 - var_7));
        var_8 = var_8 + 4;
        var_6._0_4_ = pIdx;
      } while (var_8 < var_5);
    }
  }
  var_5 = (type_3)pIdx->nKeyCol;
  var_4 = var_4 + 1;
  if (var_4 <= var_5) {
    do {
      var_3[var_4] = 0x17;
      var_5 = (type_3)pIdx->nKeyCol;
      var_4 = var_4 + 1;
    } while ((int)var_4 <= (int)var_5);
  }
  if (pIdx->onError != '\0') {
    var_3[var_5] = 0;
  }
  if (var_9 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_10();
  }
  return;
}


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

void __regparm3 MASKED(short *param_1)

{
  short *psVar1;
  ushort uVar2;
  uint uVar3;
  short sVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  int in_GS_OFFSET;
  undefined1 local_30 [4];
  short sStack_2c;
  undefined4 local_2a [2];
  undefined2 local_22;
  int local_20;
  
  psVar1 = *(short **)(param_1 + 4);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = 5;
  if ((ushort)param_1[0x19] < 6) {
    uVar2 = param_1[0x19];
  }
  local_2a[0] = 0x200021;
  sVar4 = *(short *)(*(int *)(param_1 + 6) + 0x2c);
  local_2a[1] = 0x1c001e;
  local_22 = 0x1a;
  uVar3 = (uint)uVar2;
  *psVar1 = sVar4;
  if (*(int *)(param_1 + 0x12) != 0) {
    sVar4 = sVar4 + -10;
  }
  local_30 = (undefined1  [4])(psVar1 + 1);
  if (sVar4 < 0x21) {
    sVar4 = 0x21;
  }
  uVar5 = uVar3 * 2;
  *psVar1 = sVar4;
  if (uVar5 < 4) {
    if ((uVar3 != 0) && (*(undefined1 *)(psVar1 + 1) = 0x21, (uVar5 & 2) != 0)) {
      psVar1[uVar3] = (&sStack_2c)[uVar3];
    }
  }
  else {
    psVar1[1] = 0x21;
    psVar1[2] = 0x20;
    *(undefined4 *)(psVar1 + (uVar3 - 1)) = *(undefined4 *)(local_30 + uVar5 + 2);
    iVar6 = (int)psVar1 + (2 - ((uint)(psVar1 + 3) & 0xfffffffc));
    uVar5 = iVar6 + uVar5 & 0xfffffffc;
    if (3 < uVar5) {
      uVar7 = 0;
      do {
        *(undefined4 *)(((uint)(psVar1 + 3) & 0xfffffffc) + uVar7) =
             *(undefined4 *)((int)local_2a + (uVar7 - iVar6));
        uVar7 = uVar7 + 4;
        local_30 = (undefined1  [4])param_1;
      } while (uVar7 < uVar5);
    }
  }
  uVar5 = (uint)(ushort)param_1[0x19];
  uVar3 = uVar3 + 1;
  if (uVar3 <= uVar5) {
    do {
      psVar1[uVar3] = 0x17;
      uVar5 = (uint)(ushort)param_1[0x19];
      uVar3 = uVar3 + 1;
    } while ((int)uVar3 <= (int)uVar5);
  }
  if ((char)param_1[0x1b] != '\0') {
    psVar1[uVar5] = 0;
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return;
}

