
/* DWARF original prototype: int makeSorterRecord(Parse * pParse, SortCtx * pSort, Select * pSelect,
   int regBase, int nBase, SortCtx * pSort) */

int makeSorterRecord(Parse *pParse,SortCtx *pSort,Select *pSelect,int regBase,int nBase,
                    SortCtx *pSort_1)

{
  ExprList *pEVar1;
  int iVar2;
  Vdbe *pVVar3;
  
  pVVar3 = pParse->pVdbe;
  iVar2 = pParse->nMem + 1;
  pParse->nMem = iVar2;
  pEVar1 = pSelect->pEList;
  if (pEVar1 != (ExprList *)0x0) {
    sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)
    ;
  }
  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))
            (pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2);
  return iVar2;
}



int FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar3 = *(undefined4 *)(param_1 + 8);
  iVar2 = *(int *)(param_1 + 0x2c) + 1;
  *(int *)(param_1 + 0x2c) = iVar2;
  puVar1 = (undefined4 *)*param_3;
  if (puVar1 != (undefined4 *)0x0) {
    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));
  }
  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);
  return iVar2;
}


lui gp,0xb
addiu gp,gp,-0x2aa0
addu gp,gp,t9
addiu sp,sp,-0x30
sw s1,0x24(sp)
sw gp,0x18(sp)
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s0,0x20(sp)
lw s0,0x2c(a0)
lw s2,0x8(a0)
addiu s0,s0,0x1
sw s0,0x2c(a0)
lw v0,0x0(a2)
beq v0,zero,0x000eb428
_or s1,a1,zero
or v1,a3,zero
lw t9,-0x7cc8(gp)
lw a2,0x0(v0)
or a3,zero,zero
lbu v0,0x4(v0)
lw a1,0x0(v1)
addiu t9,t9,-0x53b0
bal 0x000eac50
_sw v0,0x10(sp)
lw gp,0x18(sp)
lw a3,0x44(sp)
li a1,0x66
lw a2,0x40(sp)
or a0,s2,zero
lw t9,-0x7d60(gp)
subu a3,a3,s1
sw s0,0x10(sp)
addiu t9,t9,0x10fc
jalr t9
_addu a2,a2,s1
or v0,s0,zero
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}\n\n" (function_definition "int FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)" identifier (parameter_list "(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar2" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)*param_3;" (assignment_expression "puVar1 = (undefined4 *)*param_3" identifier = (cast_expression "(undefined4 *)*param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }" { (expression_statement "FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));" (call_expression "FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1))" identifier (argument_list "(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1))" ( identifier , (pointer_expression "*param_4" * identifier) , (pointer_expression "*puVar1" * identifier) , number_literal , (pointer_expression "*(undefined1 *)(puVar1 + 1)" * (cast_expression "(undefined1 *)(puVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) ))) ;) })) (expression_statement "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);" (call_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))" ( (pointer_expression "*(code *)(PTR_LAB_00190bc0 + 0x10fc)" * (cast_expression "(code *)(PTR_LAB_00190bc0 + 0x10fc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bc0 + 0x10fc)" ( (binary_expression "PTR_LAB_00190bc0 + 0x10fc" identifier + number_literal) )))) )) (argument_list "(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2)" ( identifier , number_literal , (binary_expression "param_5 + param_2" identifier + identifier) , (binary_expression "param_6 - param_2" identifier - identifier) , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: int makeSorterRecord(Parse * pParse, SortCtx * pSort, Select * pSelect,\n   int regBase, int nBase, SortCtx * pSort) */\n\nint makeSorterRecord(Parse *pParse,SortCtx *pSort,Select *pSelect,int regBase,int nBase,\n                    SortCtx *pSort_1)\n\n{\n  ExprList *pEVar1;\n  int iVar2;\n  Vdbe *pVVar3;\n  \n  pVVar3 = pParse->pVdbe;\n  iVar2 = pParse->nMem + 1;\n  pParse->nMem = iVar2;\n  pEVar1 = pSelect->pEList;\n  if (pEVar1 != (ExprList *)0x0) {\n    sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)\n    ;\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))\n            (pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2);\n  return iVar2;\n}\n\n" comment (function_definition "int makeSorterRecord(Parse *pParse,SortCtx *pSort,Select *pSelect,int regBase,int nBase,\n                    SortCtx *pSort_1)\n\n{\n  ExprList *pEVar1;\n  int iVar2;\n  Vdbe *pVVar3;\n  \n  pVVar3 = pParse->pVdbe;\n  iVar2 = pParse->nMem + 1;\n  pParse->nMem = iVar2;\n  pEVar1 = pSelect->pEList;\n  if (pEVar1 != (ExprList *)0x0) {\n    sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)\n    ;\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))\n            (pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2);\n  return iVar2;\n}" primitive_type (function_declarator "makeSorterRecord(Parse *pParse,SortCtx *pSort,Select *pSelect,int regBase,int nBase,\n                    SortCtx *pSort_1)" identifier (parameter_list "(Parse *pParse,SortCtx *pSort,Select *pSelect,int regBase,int nBase,\n                    SortCtx *pSort_1)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "SortCtx *pSort" type_identifier (pointer_declarator "*pSort" * identifier)) , (parameter_declaration "Select *pSelect" type_identifier (pointer_declarator "*pSelect" * identifier)) , (parameter_declaration "int regBase" primitive_type identifier) , (parameter_declaration "int nBase" primitive_type identifier) , (parameter_declaration "SortCtx *pSort_1" type_identifier (pointer_declarator "*pSort_1" * identifier)) ))) (compound_statement "{\n  ExprList *pEVar1;\n  int iVar2;\n  Vdbe *pVVar3;\n  \n  pVVar3 = pParse->pVdbe;\n  iVar2 = pParse->nMem + 1;\n  pParse->nMem = iVar2;\n  pEVar1 = pSelect->pEList;\n  if (pEVar1 != (ExprList *)0x0) {\n    sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)\n    ;\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))\n            (pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2);\n  return iVar2;\n}" { (declaration "ExprList *pEVar1;" type_identifier (pointer_declarator "*pEVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Vdbe *pVVar3;" type_identifier (pointer_declarator "*pVVar3" * identifier) ;) (expression_statement "pVVar3 = pParse->pVdbe;" (assignment_expression "pVVar3 = pParse->pVdbe" identifier = (field_expression "pParse->pVdbe" identifier -> field_identifier)) ;) (expression_statement "iVar2 = pParse->nMem + 1;" (assignment_expression "iVar2 = pParse->nMem + 1" identifier = (binary_expression "pParse->nMem + 1" (field_expression "pParse->nMem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nMem = iVar2;" (assignment_expression "pParse->nMem = iVar2" (field_expression "pParse->nMem" identifier -> field_identifier) = identifier) ;) (expression_statement "pEVar1 = pSelect->pEList;" (assignment_expression "pEVar1 = pSelect->pEList" identifier = (field_expression "pSelect->pEList" identifier -> field_identifier)) ;) (if_statement "if (pEVar1 != (ExprList *)0x0) {\n    sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)\n    ;\n  }" if (parenthesized_expression "(pEVar1 != (ExprList *)0x0)" ( (binary_expression "pEVar1 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)\n    ;\n  }" { (expression_statement "sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)\n    ;" (call_expression "sqlite3ExprCodeExprList(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)" identifier (argument_list "(pParse,*(ExprList **)regBase,pEVar1->nExpr,0,*(u8 *)&pEVar1->a[0].pExpr)" ( identifier , (pointer_expression "*(ExprList **)regBase" * (cast_expression "(ExprList **)regBase" ( (type_descriptor "ExprList **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (field_expression "pEVar1->nExpr" identifier -> field_identifier) , number_literal , (pointer_expression "*(u8 *)&pEVar1->a[0].pExpr" * (cast_expression "(u8 *)&pEVar1->a[0].pExpr" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar1->a[0].pExpr" & (field_expression "pEVar1->a[0].pExpr" (subscript_expression "pEVar1->a[0]" (field_expression "pEVar1->a" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) ))) ;) })) (expression_statement "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))\n            (pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2);" (call_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))\n            (pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))" ( (pointer_expression "*(code *)(PTR_LAB_00190bc0 + 0x10fc)" * (cast_expression "(code *)(PTR_LAB_00190bc0 + 0x10fc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bc0 + 0x10fc)" ( (binary_expression "PTR_LAB_00190bc0 + 0x10fc" identifier + number_literal) )))) )) (argument_list "(pVVar3,0x66,(int)&pSort->pOrderBy + nBase,(int)pSort_1 - (int)pSort,iVar2)" ( identifier , number_literal , (binary_expression "(int)&pSort->pOrderBy + nBase" (cast_expression "(int)&pSort->pOrderBy" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSort->pOrderBy" & (field_expression "pSort->pOrderBy" identifier -> field_identifier))) + identifier) , (binary_expression "(int)pSort_1 - (int)pSort" (cast_expression "(int)pSort_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pSort" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}\n\n" (function_definition "int FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)" identifier (parameter_list "(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar2" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)*param_3;" (assignment_expression "puVar1 = (undefined4 *)*param_3" identifier = (cast_expression "(undefined4 *)*param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }" { (expression_statement "FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));" (call_expression "FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1))" identifier (argument_list "(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1))" ( identifier , (pointer_expression "*param_4" * identifier) , (pointer_expression "*puVar1" * identifier) , number_literal , (pointer_expression "*(undefined1 *)(puVar1 + 1)" * (cast_expression "(undefined1 *)(puVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) ))) ;) })) (expression_statement "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);" (call_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))" ( (pointer_expression "*(code *)(PTR_LAB_00190bc0 + 0x10fc)" * (cast_expression "(code *)(PTR_LAB_00190bc0 + 0x10fc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bc0 + 0x10fc)" ( (binary_expression "PTR_LAB_00190bc0 + 0x10fc" identifier + number_literal) )))) )) (argument_list "(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2)" ( identifier , number_literal , (binary_expression "param_5 + param_2" identifier + identifier) , (binary_expression "param_6 - param_2" identifier - identifier) , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (pointer_expression * IDENT) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + IDENT) , (binary_expression IDENT - IDENT) , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000eb3c0(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)" (identifier "FUN_000eb3c0") (parameter_list "(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *(undefined4 *)(param_1 + 8);\n  iVar2 = *(int *)(param_1 + 0x2c) + 1;\n  *(int *)(param_1 + 0x2c) = iVar2;\n  puVar1 = (undefined4 *)*param_3;\n  if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }\n  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);\n  return iVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 8)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c) + 1" (identifier "iVar2") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar2" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_3;" (assignment_expression "puVar1 = (undefined4 *)*param_3" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));\n  }" ({ "{") (expression_statement "FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));" (call_expression "FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1))" (identifier "FUN_000eac50") (argument_list "(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (number_literal "0") (, ",") (pointer_expression "*(undefined1 *)(puVar1 + 1)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);" (call_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + 0x10fc))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190bc0 + 0x10fc)" (* "*") (cast_expression "(code *)(PTR_LAB_00190bc0 + 0x10fc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190bc0 + 0x10fc)" (( "(") (binary_expression "PTR_LAB_00190bc0 + 0x10fc" (identifier "PTR_LAB_00190bc0") (+ "+") (number_literal "0x10fc")) () ")")))) () ")")) (argument_list "(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2)" (( "(") (identifier "uVar3") (, ",") (number_literal "0x66") (, ",") (binary_expression "param_5 + param_2" (identifier "param_5") (+ "+") (identifier "param_2")) (, ",") (binary_expression "param_6 - param_2" (identifier "param_6") (- "-") (identifier "param_2")) (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* DWARF original prototype: int makeSorterRecord(Parse * pParse, SortCtx * pSort, Select * pSelect,
   int regBase, int nBase, SortCtx * pSort) */

int function_1(type_1 *pParse,type_2 *pSort,type_3 *pSelect,int regBase,int var_4,
                    type_2 *pSort_1)

{
  type_4 *var_1;
  int iVar2;
  type_5 *pVVar3;
  
  pVVar3 = pParse->pVdbe;
  iVar2 = pParse->nMem + 1;
  pParse->nMem = iVar2;
  var_1 = pSelect->pEList;
  if (var_1 != (type_4 *)0x0) {
    var_2(pParse,*(type_4 **)regBase,var_1->nExpr,0,*(type_6 *)&var_1->a[0].pExpr)
    ;
  }
  (*(type_7 *)(var_3 + 0x10fc))
            (pVVar3,0x66,(int)&pSort->pOrderBy + var_4,(int)pSort_1 - (int)pSort,iVar2);
  return iVar2;
}


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

int MASKED(int param_1,int param_2,int *param_3,undefined4 *param_4,int param_5,int param_6)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar3 = *(undefined4 *)(param_1 + 8);
  iVar2 = *(int *)(param_1 + 0x2c) + 1;
  *(int *)(param_1 + 0x2c) = iVar2;
  puVar1 = (undefined4 *)*param_3;
  if (puVar1 != (undefined4 *)0x0) {
    FUN_000eac50(param_1,*param_4,*puVar1,0,*(undefined1 *)(puVar1 + 1));
  }
  (*(code *)(PTR_LAB_00190bc0 + 0x10fc))(uVar3,0x66,param_5 + param_2,param_6 - param_2,iVar2);
  return iVar2;
}

