
Index * __regparm2 sqlite3AllocateIndexObject(sqlite3 *db,i16 nCol,int nExtra,char **ppExtra)

{
  Index *pIVar1;
  int iVar2;
  uint uVar3;
  LogEst *pLVar4;
  u64 in_stack_ffffffe4;
  
  iVar2 = (int)nCol;
  uVar3 = iVar2 * 4 + 7U & 0xfffffff8;
  pIVar1 = (Index *)sqlite3DbMallocZero(db,in_stack_ffffffe4);
  if (pIVar1 != (Index *)0x0) {
    pIVar1->nColumn = nCol;
    pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn);
    pIVar1->azColl = (char **)&pIVar1[1].aiColumn;
    pIVar1->aiRowLogEst = pLVar4;
    pLVar4 = pLVar4 + iVar2 + 1;
    pIVar1->aiColumn = pLVar4;
    pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2);
    pIVar1->nKeyCol = nCol - 1;
    *(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8);
  }
  return pIVar1;
}



void __regparm2 FUN_00028510(undefined4 param_1,short param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  
  iVar3 = (int)param_2;
  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;
  iVar2 = FUN_00028410();
  if (iVar2 != 0) {
    *(short *)(iVar2 + 0x34) = param_2;
    iVar5 = uVar4 + iVar2 + 0x48;
    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;
    iVar1 = iVar3 * 2 + 2;
    *(int *)(iVar2 + 8) = iVar5;
    iVar5 = iVar5 + iVar1;
    *(int *)(iVar2 + 4) = iVar5;
    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;
    *(short *)(iVar2 + 0x32) = param_2 + -1;
    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;
  }
  return;
}


PUSH EBP
MOVSX EBP,DX
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EDX
LEA EDX,[EBP*0x4 + 0x0]
LEA ESI,[EDX + 0x7]
LEA EDX,[EBP + EDX*0x1 + 0x9]
AND EDX,0xfffffff8
AND ESI,0xfffffff8
LEA EDI,[ESI + EDX*0x1 + 0x48]
SUB ESP,0xc
LEA EDX,[EDI + ECX*0x1]
MOV ECX,EDX
SAR ECX,0x1f
CALL 0x00028410
TEST EAX,EAX
JZ 0x00028573
LEA EDX,[EAX + 0x48]
MOV word ptr [EAX + 0x34],BX
ADD EDI,EAX
SUB EBX,0x1
ADD ESI,EDX
MOV dword ptr [EAX + 0x20],EDX
LEA EDX,[EBP + EBP*0x1 + 0x2]
MOV dword ptr [EAX + 0x8],ESI
ADD ESI,EDX
LEA EDX,[ESI + EDX*0x1 + -0x2]
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX + 0x1c],EDX
MOV EDX,dword ptr [ESP + 0x20]
MOV word ptr [EAX + 0x32],BX
MOV dword ptr [EDX],EDI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void __regparm2 FUN_00028510(undefined4 param_1,short param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_00028510(undefined4 param_1,short param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00028510(undefined4 param_1,short param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,short param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "short param_2" (sized_type_specifier "short" short) identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar3 = (int)param_2;" (assignment_expression "iVar3 = (int)param_2" identifier = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar4 = iVar3 * 4 + 7U & 0xfffffff8;" (assignment_expression "uVar4 = iVar3 * 4 + 7U & 0xfffffff8" identifier = (binary_expression "iVar3 * 4 + 7U & 0xfffffff8" (binary_expression "iVar3 * 4 + 7U" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) & number_literal)) ;) (expression_statement "iVar2 = FUN_00028410();" (assignment_expression "iVar2 = FUN_00028410()" identifier = (call_expression "FUN_00028410()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }" { (expression_statement "*(short *)(iVar2 + 0x34) = param_2;" (assignment_expression "*(short *)(iVar2 + 0x34) = param_2" (pointer_expression "*(short *)(iVar2 + 0x34)" * (cast_expression "(short *)(iVar2 + 0x34)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = uVar4 + iVar2 + 0x48;" (assignment_expression "iVar5 = uVar4 + iVar2 + 0x48" identifier = (binary_expression "uVar4 + iVar2 + 0x48" (binary_expression "uVar4 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x20) = iVar2 + 0x48;" (assignment_expression "*(int *)(iVar2 + 0x20) = iVar2 + 0x48" (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar2 + 0x48" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar3 * 2 + 2;" (assignment_expression "iVar1 = iVar3 * 2 + 2" identifier = (binary_expression "iVar3 * 2 + 2" (binary_expression "iVar3 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 8) = iVar5;" (assignment_expression "*(int *)(iVar2 + 8) = iVar5" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (expression_statement "*(int *)(iVar2 + 4) = iVar5;" (assignment_expression "*(int *)(iVar2 + 4) = iVar5" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;" (assignment_expression "*(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) = (binary_expression "iVar5 + -2 + iVar1" (binary_expression "iVar5 + -2" identifier + number_literal) + identifier)) ;) (expression_statement "*(short *)(iVar2 + 0x32) = param_2 + -1;" (assignment_expression "*(short *)(iVar2 + 0x32) = param_2 + -1" (pointer_expression "*(short *)(iVar2 + 0x32)" * (cast_expression "(short *)(iVar2 + 0x32)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x32)" ( (binary_expression "iVar2 + 0x32" identifier + number_literal) )))) = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "*param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;" (assignment_expression "*param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2" (pointer_expression "*param_3" * identifier) = (binary_expression "uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2" (binary_expression "uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8)" (binary_expression "uVar4 + 0x48" identifier + number_literal) + (parenthesized_expression "(iVar3 * 5 + 9U & 0xfffffff8)" ( (binary_expression "iVar3 * 5 + 9U & 0xfffffff8" (binary_expression "iVar3 * 5 + 9U" (binary_expression "iVar3 * 5" identifier * number_literal) + number_literal) & number_literal) ))) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "Index * __regparm2 sqlite3AllocateIndexObject(sqlite3 *db,i16 nCol,int nExtra,char **ppExtra)\n\n{\n  Index *pIVar1;\n  int iVar2;\n  uint uVar3;\n  LogEst *pLVar4;\n  u64 in_stack_ffffffe4;\n  \n  iVar2 = (int)nCol;\n  uVar3 = iVar2 * 4 + 7U & 0xfffffff8;\n  pIVar1 = (Index *)sqlite3DbMallocZero(db,in_stack_ffffffe4);\n  if (pIVar1 != (Index *)0x0) {\n    pIVar1->nColumn = nCol;\n    pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn);\n    pIVar1->azColl = (char **)&pIVar1[1].aiColumn;\n    pIVar1->aiRowLogEst = pLVar4;\n    pLVar4 = pLVar4 + iVar2 + 1;\n    pIVar1->aiColumn = pLVar4;\n    pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2);\n    pIVar1->nKeyCol = nCol - 1;\n    *(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8);\n  }\n  return pIVar1;\n}\n\n" (ERROR "Index * __regparm2 sqlite3AllocateIndexObject(sqlite3 *db,i16 nCol,int nExtra,char **ppExtra)" (binary_expression "Index * __regparm2 sqlite3AllocateIndexObject(sqlite3 *db,i16 nCol,int nExtra,char **ppExtra)" identifier * (ERROR "__regparm2" identifier) (call_expression "sqlite3AllocateIndexObject(sqlite3 *db,i16 nCol,int nExtra,char **ppExtra)" identifier (argument_list "(sqlite3 *db,i16 nCol,int nExtra,char **ppExtra)" ( (binary_expression "sqlite3 *db" identifier * identifier) , (ERROR "i16" identifier) identifier , (ERROR "int" identifier) identifier , (binary_expression "char **ppExtra" identifier * (pointer_expression "*ppExtra" * identifier)) ))))) (compound_statement "{\n  Index *pIVar1;\n  int iVar2;\n  uint uVar3;\n  LogEst *pLVar4;\n  u64 in_stack_ffffffe4;\n  \n  iVar2 = (int)nCol;\n  uVar3 = iVar2 * 4 + 7U & 0xfffffff8;\n  pIVar1 = (Index *)sqlite3DbMallocZero(db,in_stack_ffffffe4);\n  if (pIVar1 != (Index *)0x0) {\n    pIVar1->nColumn = nCol;\n    pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn);\n    pIVar1->azColl = (char **)&pIVar1[1].aiColumn;\n    pIVar1->aiRowLogEst = pLVar4;\n    pLVar4 = pLVar4 + iVar2 + 1;\n    pIVar1->aiColumn = pLVar4;\n    pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2);\n    pIVar1->nKeyCol = nCol - 1;\n    *(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8);\n  }\n  return pIVar1;\n}" { (declaration "Index *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "LogEst *pLVar4;" type_identifier (pointer_declarator "*pLVar4" * identifier) ;) (declaration "u64 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "iVar2 = (int)nCol;" (assignment_expression "iVar2 = (int)nCol" identifier = (cast_expression "(int)nCol" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar3 = iVar2 * 4 + 7U & 0xfffffff8;" (assignment_expression "uVar3 = iVar2 * 4 + 7U & 0xfffffff8" identifier = (binary_expression "iVar2 * 4 + 7U & 0xfffffff8" (binary_expression "iVar2 * 4 + 7U" (binary_expression "iVar2 * 4" identifier * number_literal) + number_literal) & number_literal)) ;) (expression_statement "pIVar1 = (Index *)sqlite3DbMallocZero(db,in_stack_ffffffe4);" (assignment_expression "pIVar1 = (Index *)sqlite3DbMallocZero(db,in_stack_ffffffe4)" identifier = (cast_expression "(Index *)sqlite3DbMallocZero(db,in_stack_ffffffe4)" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocZero(db,in_stack_ffffffe4)" identifier (argument_list "(db,in_stack_ffffffe4)" ( identifier , identifier ))))) ;) (if_statement "if (pIVar1 != (Index *)0x0) {\n    pIVar1->nColumn = nCol;\n    pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn);\n    pIVar1->azColl = (char **)&pIVar1[1].aiColumn;\n    pIVar1->aiRowLogEst = pLVar4;\n    pLVar4 = pLVar4 + iVar2 + 1;\n    pIVar1->aiColumn = pLVar4;\n    pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2);\n    pIVar1->nKeyCol = nCol - 1;\n    *(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8);\n  }" if (parenthesized_expression "(pIVar1 != (Index *)0x0)" ( (binary_expression "pIVar1 != (Index *)0x0" identifier != (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pIVar1->nColumn = nCol;\n    pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn);\n    pIVar1->azColl = (char **)&pIVar1[1].aiColumn;\n    pIVar1->aiRowLogEst = pLVar4;\n    pLVar4 = pLVar4 + iVar2 + 1;\n    pIVar1->aiColumn = pLVar4;\n    pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2);\n    pIVar1->nKeyCol = nCol - 1;\n    *(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8);\n  }" { (expression_statement "pIVar1->nColumn = nCol;" (assignment_expression "pIVar1->nColumn = nCol" (field_expression "pIVar1->nColumn" identifier -> field_identifier) = identifier) ;) (expression_statement "pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn);" (assignment_expression "pLVar4 = (LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn)" identifier = (cast_expression "(LogEst *)(uVar3 + (int)&pIVar1[1].aiColumn)" ( (type_descriptor "LogEst *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + (int)&pIVar1[1].aiColumn)" ( (binary_expression "uVar3 + (int)&pIVar1[1].aiColumn" identifier + (cast_expression "(int)&pIVar1[1].aiColumn" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pIVar1[1].aiColumn" & (field_expression "pIVar1[1].aiColumn" (subscript_expression "pIVar1[1]" identifier [ number_literal ]) . field_identifier)))) )))) ;) (expression_statement "pIVar1->azColl = (char **)&pIVar1[1].aiColumn;" (assignment_expression "pIVar1->azColl = (char **)&pIVar1[1].aiColumn" (field_expression "pIVar1->azColl" identifier -> field_identifier) = (cast_expression "(char **)&pIVar1[1].aiColumn" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&pIVar1[1].aiColumn" & (field_expression "pIVar1[1].aiColumn" (subscript_expression "pIVar1[1]" identifier [ number_literal ]) . field_identifier)))) ;) (expression_statement "pIVar1->aiRowLogEst = pLVar4;" (assignment_expression "pIVar1->aiRowLogEst = pLVar4" (field_expression "pIVar1->aiRowLogEst" identifier -> field_identifier) = identifier) ;) (expression_statement "pLVar4 = pLVar4 + iVar2 + 1;" (assignment_expression "pLVar4 = pLVar4 + iVar2 + 1" identifier = (binary_expression "pLVar4 + iVar2 + 1" (binary_expression "pLVar4 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "pIVar1->aiColumn = pLVar4;" (assignment_expression "pIVar1->aiColumn = pLVar4" (field_expression "pIVar1->aiColumn" identifier -> field_identifier) = identifier) ;) (expression_statement "pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2);" (assignment_expression "pIVar1->aSortOrder = (u8 *)(pLVar4 + iVar2)" (field_expression "pIVar1->aSortOrder" identifier -> field_identifier) = (cast_expression "(u8 *)(pLVar4 + iVar2)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pLVar4 + iVar2)" ( (binary_expression "pLVar4 + iVar2" identifier + identifier) )))) ;) (expression_statement "pIVar1->nKeyCol = nCol - 1;" (assignment_expression "pIVar1->nKeyCol = nCol - 1" (field_expression "pIVar1->nKeyCol" identifier -> field_identifier) = (binary_expression "nCol - 1" identifier - number_literal)) ;) (expression_statement "*(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8);" (assignment_expression "*(uint *)nExtra = (int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8)" (pointer_expression "*(uint *)nExtra" * (cast_expression "(uint *)nExtra" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)&pIVar1[1].aiColumn + uVar3 + (iVar2 * 5 + 9U & 0xfffffff8)" (binary_expression "(int)&pIVar1[1].aiColumn + uVar3" (cast_expression "(int)&pIVar1[1].aiColumn" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pIVar1[1].aiColumn" & (field_expression "pIVar1[1].aiColumn" (subscript_expression "pIVar1[1]" identifier [ number_literal ]) . field_identifier))) + identifier) + (parenthesized_expression "(iVar2 * 5 + 9U & 0xfffffff8)" ( (binary_expression "iVar2 * 5 + 9U & 0xfffffff8" (binary_expression "iVar2 * 5 + 9U" (binary_expression "iVar2 * 5" identifier * number_literal) + number_literal) & number_literal) )))) ;) })) (return_statement "return pIVar1;" return identifier ;) }))
(translation_unit "void __regparm2 FUN_00028510(undefined4 param_1,short param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_00028510(undefined4 param_1,short param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00028510(undefined4 param_1,short param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,short param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "short param_2" (sized_type_specifier "short" short) identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar3 = (int)param_2;" (assignment_expression "iVar3 = (int)param_2" identifier = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar4 = iVar3 * 4 + 7U & 0xfffffff8;" (assignment_expression "uVar4 = iVar3 * 4 + 7U & 0xfffffff8" identifier = (binary_expression "iVar3 * 4 + 7U & 0xfffffff8" (binary_expression "iVar3 * 4 + 7U" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) & number_literal)) ;) (expression_statement "iVar2 = FUN_00028410();" (assignment_expression "iVar2 = FUN_00028410()" identifier = (call_expression "FUN_00028410()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }" { (expression_statement "*(short *)(iVar2 + 0x34) = param_2;" (assignment_expression "*(short *)(iVar2 + 0x34) = param_2" (pointer_expression "*(short *)(iVar2 + 0x34)" * (cast_expression "(short *)(iVar2 + 0x34)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = uVar4 + iVar2 + 0x48;" (assignment_expression "iVar5 = uVar4 + iVar2 + 0x48" identifier = (binary_expression "uVar4 + iVar2 + 0x48" (binary_expression "uVar4 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x20) = iVar2 + 0x48;" (assignment_expression "*(int *)(iVar2 + 0x20) = iVar2 + 0x48" (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar2 + 0x48" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar3 * 2 + 2;" (assignment_expression "iVar1 = iVar3 * 2 + 2" identifier = (binary_expression "iVar3 * 2 + 2" (binary_expression "iVar3 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 8) = iVar5;" (assignment_expression "*(int *)(iVar2 + 8) = iVar5" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (expression_statement "*(int *)(iVar2 + 4) = iVar5;" (assignment_expression "*(int *)(iVar2 + 4) = iVar5" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;" (assignment_expression "*(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) = (binary_expression "iVar5 + -2 + iVar1" (binary_expression "iVar5 + -2" identifier + number_literal) + identifier)) ;) (expression_statement "*(short *)(iVar2 + 0x32) = param_2 + -1;" (assignment_expression "*(short *)(iVar2 + 0x32) = param_2 + -1" (pointer_expression "*(short *)(iVar2 + 0x32)" * (cast_expression "(short *)(iVar2 + 0x32)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x32)" ( (binary_expression "iVar2 + 0x32" identifier + number_literal) )))) = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "*param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;" (assignment_expression "*param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2" (pointer_expression "*param_3" * identifier) = (binary_expression "uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2" (binary_expression "uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8)" (binary_expression "uVar4 + 0x48" identifier + number_literal) + (parenthesized_expression "(iVar3 * 5 + 9U & 0xfffffff8)" ( (binary_expression "iVar3 * 5 + 9U & 0xfffffff8" (binary_expression "iVar3 * 5 + 9U" (binary_expression "iVar3 * 5" identifier * number_literal) + number_literal) & number_literal) ))) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier short) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * LIT) + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT * LIT) + LIT) & LIT) ))) + IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void __regparm2 FUN_00028510(undefined4 param_1,short param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00028510(undefined4 param_1,short param_2,int *param_3)" (identifier "FUN_00028510") (parameter_list "(undefined4 param_1,short param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "short param_2" (sized_type_specifier "short" (short "short")) (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  iVar3 = (int)param_2;\n  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;\n  iVar2 = FUN_00028410();\n  if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar3 = (int)param_2;" (assignment_expression "iVar3 = (int)param_2" (identifier "iVar3") (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "uVar4 = iVar3 * 4 + 7U & 0xfffffff8;" (assignment_expression "uVar4 = iVar3 * 4 + 7U & 0xfffffff8" (identifier "uVar4") (= "=") (binary_expression "iVar3 * 4 + 7U & 0xfffffff8" (binary_expression "iVar3 * 4 + 7U" (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4")) (+ "+") (number_literal "7U")) (& "&") (number_literal "0xfffffff8"))) (; ";")) (expression_statement "iVar2 = FUN_00028410();" (assignment_expression "iVar2 = FUN_00028410()" (identifier "iVar2") (= "=") (call_expression "FUN_00028410()" (identifier "FUN_00028410") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(short *)(iVar2 + 0x34) = param_2;\n    iVar5 = uVar4 + iVar2 + 0x48;\n    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;\n    iVar1 = iVar3 * 2 + 2;\n    *(int *)(iVar2 + 8) = iVar5;\n    iVar5 = iVar5 + iVar1;\n    *(int *)(iVar2 + 4) = iVar5;\n    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;\n    *(short *)(iVar2 + 0x32) = param_2 + -1;\n    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;\n  }" ({ "{") (expression_statement "*(short *)(iVar2 + 0x34) = param_2;" (assignment_expression "*(short *)(iVar2 + 0x34) = param_2" (pointer_expression "*(short *)(iVar2 + 0x34)" (* "*") (cast_expression "(short *)(iVar2 + 0x34)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar5 = uVar4 + iVar2 + 0x48;" (assignment_expression "iVar5 = uVar4 + iVar2 + 0x48" (identifier "iVar5") (= "=") (binary_expression "uVar4 + iVar2 + 0x48" (binary_expression "uVar4 + iVar2" (identifier "uVar4") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "0x48"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x20) = iVar2 + 0x48;" (assignment_expression "*(int *)(iVar2 + 0x20) = iVar2 + 0x48" (pointer_expression "*(int *)(iVar2 + 0x20)" (* "*") (cast_expression "(int *)(iVar2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "iVar2 + 0x48" (identifier "iVar2") (+ "+") (number_literal "0x48"))) (; ";")) (expression_statement "iVar1 = iVar3 * 2 + 2;" (assignment_expression "iVar1 = iVar3 * 2 + 2" (identifier "iVar1") (= "=") (binary_expression "iVar3 * 2 + 2" (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*(int *)(iVar2 + 8) = iVar5;" (assignment_expression "*(int *)(iVar2 + 8) = iVar5" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + iVar1" (identifier "iVar5") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "*(int *)(iVar2 + 4) = iVar5;" (assignment_expression "*(int *)(iVar2 + 4) = iVar5" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;" (assignment_expression "*(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "iVar5 + -2 + iVar1" (binary_expression "iVar5 + -2" (identifier "iVar5") (+ "+") (number_literal "-2")) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "*(short *)(iVar2 + 0x32) = param_2 + -1;" (assignment_expression "*(short *)(iVar2 + 0x32) = param_2 + -1" (pointer_expression "*(short *)(iVar2 + 0x32)" (* "*") (cast_expression "(short *)(iVar2 + 0x32)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x32)" (( "(") (binary_expression "iVar2 + 0x32" (identifier "iVar2") (+ "+") (number_literal "0x32")) () ")")))) (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;" (assignment_expression "*param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2" (binary_expression "uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8)" (binary_expression "uVar4 + 0x48" (identifier "uVar4") (+ "+") (number_literal "0x48")) (+ "+") (parenthesized_expression "(iVar3 * 5 + 9U & 0xfffffff8)" (( "(") (binary_expression "iVar3 * 5 + 9U & 0xfffffff8" (binary_expression "iVar3 * 5 + 9U" (binary_expression "iVar3 * 5" (identifier "iVar3") (* "*") (number_literal "5")) (+ "+") (number_literal "9U")) (& "&") (number_literal "0xfffffff8")) () ")"))) (+ "+") (identifier "iVar2"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 * __regparm2 sqlite3AllocateIndexObject(sqlite3 *db,i16 var_6,int nExtra,char **ppExtra)

{
  type_1 *var_3;
  int var_1;
  type_2 var_4;
  type_3 *var_5;
  type_4 in_stack_ffffffe4;
  
  var_1 = (int)var_6;
  var_4 = var_1 * 4 + 7U & 0xfffffff8;
  var_3 = (type_1 *)var_2(db,in_stack_ffffffe4);
  if (var_3 != (type_1 *)0x0) {
    var_3->nColumn = var_6;
    var_5 = (type_3 *)(var_4 + (int)&var_3[1].aiColumn);
    var_3->azColl = (char **)&var_3[1].aiColumn;
    var_3->aiRowLogEst = var_5;
    var_5 = var_5 + var_1 + 1;
    var_3->aiColumn = var_5;
    var_3->aSortOrder = (type_5 *)(var_5 + var_1);
    var_3->nKeyCol = var_6 - 1;
    *(type_2 *)nExtra = (int)&var_3[1].aiColumn + var_4 + (var_1 * 5 + 9U & 0xfffffff8);
  }
  return var_3;
}


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

void __regparm2 MASKED(undefined4 param_1,short param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  
  iVar3 = (int)param_2;
  uVar4 = iVar3 * 4 + 7U & 0xfffffff8;
  iVar2 = FUN_00028410();
  if (iVar2 != 0) {
    *(short *)(iVar2 + 0x34) = param_2;
    iVar5 = uVar4 + iVar2 + 0x48;
    *(int *)(iVar2 + 0x20) = iVar2 + 0x48;
    iVar1 = iVar3 * 2 + 2;
    *(int *)(iVar2 + 8) = iVar5;
    iVar5 = iVar5 + iVar1;
    *(int *)(iVar2 + 4) = iVar5;
    *(int *)(iVar2 + 0x1c) = iVar5 + -2 + iVar1;
    *(short *)(iVar2 + 0x32) = param_2 + -1;
    *param_3 = uVar4 + 0x48 + (iVar3 * 5 + 9U & 0xfffffff8) + iVar2;
  }
  return;
}

