
/* DWARF original prototype: void nodeOverwriteCell(Rtree * pRtree, RtreeNode * pNode, RtreeCell *
   pCell, int iCell, RtreeNode * pNode, Rtree * pRtree) */

void __regparm3
nodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell,RtreeNode *pNode_1,
                 Rtree *pRtree_1)

{
  RtreeNode *pRVar1;
  uint uVar2;
  int iVar3;
  uint *puVar4;
  
  pRVar1 = pNode_1->pParent;
  uVar2 = (uint)pNode_1->iNode;
  puVar4 = (uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell);
  puVar4[1] = (uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |
              (int)pRVar1 << 0x18;
  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  if (*(char *)&(pRtree->base).pModule != '\0') {
    iVar3 = 0;
    do {
      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);
      puVar4[iVar3 + 2] =
           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
      iVar3 = iVar3 + 1;
    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);
  }
  *(undefined4 *)&pCell->iRowid = 1;
  return;
}



void __regparm3
FUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint *puVar4;
  
  uVar1 = *param_5;
  uVar2 = param_5[1];
  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);
  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  if (*param_1 != 0) {
    iVar3 = 0;
    do {
      uVar1 = param_5[iVar3 + 2];
      puVar4[iVar3 + 2] =
           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
      iVar3 = iVar3 + 1;
    } while (iVar3 < (int)(uint)*param_1);
  }
  *param_3 = 1;
  return;
}


PUSH EDI
PUSH ESI
MOVZX ESI,DL
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
IMUL ESI,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [EDI]
MOV EBX,dword ptr [EDI + 0x4]
ADD ESI,0x4
ADD ESI,dword ptr [ESP + 0x10]
BSWAP EDX
BSWAP EBX
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI],EBX
CMP byte ptr [EAX],0x0
JZ 0x00038b64
XOR EDX,EDX
LEA ESI,[ESI]
NOP
MOV EBX,dword ptr [EDI + EDX*0x4 + 0x8]
BSWAP EBX
MOV dword ptr [ESI + EDX*0x4 + 0x8],EBX
MOVZX EBX,byte ptr [EAX]
ADD EDX,0x1
CMP EDX,EBX
JL 0x00038b50
POP EBX
POP ESI
MOV dword ptr [ECX],0x1
POP EDI
RET
(translation_unit "void __regparm3\nFUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)" identifier (parameter_list "(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar1 = *param_5;" (assignment_expression "uVar1 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "uVar2 = param_5[1];" (assignment_expression "uVar2 = param_5[1]" identifier = (subscript_expression "param_5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);" (assignment_expression "puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4)" identifier = (cast_expression "(uint *)((param_2 & 0xff) * param_6 + 4 + param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((param_2 & 0xff) * param_6 + 4 + param_4)" ( (binary_expression "(param_2 & 0xff) * param_6 + 4 + param_4" (binary_expression "(param_2 & 0xff) * param_6 + 4" (binary_expression "(param_2 & 0xff) * param_6" (parenthesized_expression "(param_2 & 0xff)" ( (binary_expression "param_2 & 0xff" identifier & number_literal) )) * identifier) + number_literal) + identifier) )))) ;) (expression_statement "puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (pointer_expression "*puVar4" * identifier) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (if_statement "if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);" do (compound_statement "{\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "uVar1 = param_5[iVar3 + 2];" (assignment_expression "uVar1 = param_5[iVar3 + 2]" identifier = (subscript_expression "param_5[iVar3 + 2]" identifier [ (binary_expression "iVar3 + 2" identifier + number_literal) ])) ;) (expression_statement "puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (subscript_expression "puVar4[iVar3 + 2]" identifier [ (binary_expression "iVar3 + 2" identifier + number_literal) ]) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < (int)(uint)*param_1)" ( (binary_expression "iVar3 < (int)(uint)*param_1" identifier < (binary_expression "(int)(uint)*param_1" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) )) ;) })) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void nodeOverwriteCell(Rtree * pRtree, RtreeNode * pNode, RtreeCell *\n   pCell, int iCell, RtreeNode * pNode, Rtree * pRtree) */\n\nvoid __regparm3\nnodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell,RtreeNode *pNode_1,\n                 Rtree *pRtree_1)\n\n{\n  RtreeNode *pRVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  pRVar1 = pNode_1->pParent;\n  uVar2 = (uint)pNode_1->iNode;\n  puVar4 = (uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell);\n  puVar4[1] = (uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |\n              (int)pRVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*(char *)&(pRtree->base).pModule != '\0') {\n    iVar3 = 0;\n    do {\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);\n  }\n  *(undefined4 *)&pCell->iRowid = 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3\nnodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell,RtreeNode *pNode_1,\n                 Rtree *pRtree_1)\n\n{\n  RtreeNode *pRVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  pRVar1 = pNode_1->pParent;\n  uVar2 = (uint)pNode_1->iNode;\n  puVar4 = (uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell);\n  puVar4[1] = (uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |\n              (int)pRVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*(char *)&(pRtree->base).pModule != '\0') {\n    iVar3 = 0;\n    do {\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);\n  }\n  *(undefined4 *)&pCell->iRowid = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "nodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell,RtreeNode *pNode_1,\n                 Rtree *pRtree_1)" identifier (parameter_list "(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell,RtreeNode *pNode_1,\n                 Rtree *pRtree_1)" ( (parameter_declaration "Rtree *pRtree" type_identifier (pointer_declarator "*pRtree" * identifier)) , (parameter_declaration "RtreeNode *pNode" type_identifier (pointer_declarator "*pNode" * identifier)) , (parameter_declaration "RtreeCell *pCell" type_identifier (pointer_declarator "*pCell" * identifier)) , (parameter_declaration "int iCell" primitive_type identifier) , (parameter_declaration "RtreeNode *pNode_1" type_identifier (pointer_declarator "*pNode_1" * identifier)) , (parameter_declaration "Rtree *pRtree_1" type_identifier (pointer_declarator "*pRtree_1" * identifier)) ))) (compound_statement "{\n  RtreeNode *pRVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  pRVar1 = pNode_1->pParent;\n  uVar2 = (uint)pNode_1->iNode;\n  puVar4 = (uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell);\n  puVar4[1] = (uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |\n              (int)pRVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*(char *)&(pRtree->base).pModule != '\0') {\n    iVar3 = 0;\n    do {\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);\n  }\n  *(undefined4 *)&pCell->iRowid = 1;\n  return;\n}" { (declaration "RtreeNode *pRVar1;" type_identifier (pointer_declarator "*pRVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "pRVar1 = pNode_1->pParent;" (assignment_expression "pRVar1 = pNode_1->pParent" identifier = (field_expression "pNode_1->pParent" identifier -> field_identifier)) ;) (expression_statement "uVar2 = (uint)pNode_1->iNode;" (assignment_expression "uVar2 = (uint)pNode_1->iNode" identifier = (cast_expression "(uint)pNode_1->iNode" ( (type_descriptor "uint" type_identifier) ) (field_expression "pNode_1->iNode" identifier -> field_identifier))) ;) (expression_statement "puVar4 = (uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell);" (assignment_expression "puVar4 = (uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell)" identifier = (cast_expression "(uint *)(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell)" ( (binary_expression "((uint)pNode & 0xff) * (int)pRtree_1 + 4 + iCell" (binary_expression "((uint)pNode & 0xff) * (int)pRtree_1 + 4" (binary_expression "((uint)pNode & 0xff) * (int)pRtree_1" (parenthesized_expression "((uint)pNode & 0xff)" ( (binary_expression "(uint)pNode & 0xff" (cast_expression "(uint)pNode" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) * (cast_expression "(int)pRtree_1" ( (type_descriptor "int" primitive_type) ) identifier)) + number_literal) + identifier) )))) ;) (expression_statement "puVar4[1] = (uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |\n              (int)pRVar1 << 0x18;" (assignment_expression "puVar4[1] = (uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |\n              (int)pRVar1 << 0x18" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (binary_expression "(uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8 |\n              (int)pRVar1 << 0x18" (binary_expression "(uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8 | ((uint)pRVar1 & 0xff00) << 8" (binary_expression "(uint)pRVar1 >> 0x18 | ((uint)pRVar1 & 0xff0000) >> 8" (binary_expression "(uint)pRVar1 >> 0x18" (cast_expression "(uint)pRVar1" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) | (binary_expression "((uint)pRVar1 & 0xff0000) >> 8" (parenthesized_expression "((uint)pRVar1 & 0xff0000)" ( (binary_expression "(uint)pRVar1 & 0xff0000" (cast_expression "(uint)pRVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) >> number_literal)) | (binary_expression "((uint)pRVar1 & 0xff00) << 8" (parenthesized_expression "((uint)pRVar1 & 0xff00)" ( (binary_expression "(uint)pRVar1 & 0xff00" (cast_expression "(uint)pRVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) << number_literal)) | (binary_expression "(int)pRVar1 << 0x18" (cast_expression "(int)pRVar1" ( (type_descriptor "int" primitive_type) ) identifier) << number_literal))) ;) (expression_statement "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (pointer_expression "*puVar4" * identifier) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (if_statement "if (*(char *)&(pRtree->base).pModule != '\0') {\n    iVar3 = 0;\n    do {\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);\n  }" if (parenthesized_expression "(*(char *)&(pRtree->base).pModule != '\0')" ( (binary_expression "*(char *)&(pRtree->base).pModule != '\0'" (pointer_expression "*(char *)&(pRtree->base).pModule" * (cast_expression "(char *)&(pRtree->base).pModule" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pRtree->base).pModule" & (field_expression "(pRtree->base).pModule" (parenthesized_expression "(pRtree->base)" ( (field_expression "pRtree->base" identifier -> field_identifier) )) . field_identifier)))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule);" do (compound_statement "{\n      uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);\n      puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4);" (assignment_expression "uVar2 = *(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4)" identifier = (pointer_expression "*(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4)" * (cast_expression "(uint *)((int)&pNode_1->iNode + iVar3 * 4 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pNode_1->iNode + iVar3 * 4 + 4)" ( (binary_expression "(int)&pNode_1->iNode + iVar3 * 4 + 4" (binary_expression "(int)&pNode_1->iNode + iVar3 * 4" (cast_expression "(int)&pNode_1->iNode" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pNode_1->iNode" & (field_expression "pNode_1->iNode" identifier -> field_identifier))) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "puVar4[iVar3 + 2] =\n           uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "puVar4[iVar3 + 2]" identifier [ (binary_expression "iVar3 + 2" identifier + number_literal) ]) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule)" ( (binary_expression "iVar3 < (int)(uint)*(byte *)&(pRtree->base).pModule" identifier < (binary_expression "(int)(uint)*(byte *)&(pRtree->base).pModule" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)&(pRtree->base).pModule" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pRtree->base).pModule" & (field_expression "(pRtree->base).pModule" (parenthesized_expression "(pRtree->base)" ( (field_expression "pRtree->base" identifier -> field_identifier) )) . field_identifier))))) )) ;) })) (expression_statement "*(undefined4 *)&pCell->iRowid = 1;" (assignment_expression "*(undefined4 *)&pCell->iRowid = 1" (pointer_expression "*(undefined4 *)&pCell->iRowid" * (cast_expression "(undefined4 *)&pCell->iRowid" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCell->iRowid" & (field_expression "pCell->iRowid" identifier -> field_identifier)))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)" identifier (parameter_list "(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar1 = *param_5;" (assignment_expression "uVar1 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "uVar2 = param_5[1];" (assignment_expression "uVar2 = param_5[1]" identifier = (subscript_expression "param_5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);" (assignment_expression "puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4)" identifier = (cast_expression "(uint *)((param_2 & 0xff) * param_6 + 4 + param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((param_2 & 0xff) * param_6 + 4 + param_4)" ( (binary_expression "(param_2 & 0xff) * param_6 + 4 + param_4" (binary_expression "(param_2 & 0xff) * param_6 + 4" (binary_expression "(param_2 & 0xff) * param_6" (parenthesized_expression "(param_2 & 0xff)" ( (binary_expression "param_2 & 0xff" identifier & number_literal) )) * identifier) + number_literal) + identifier) )))) ;) (expression_statement "puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (pointer_expression "*puVar4" * identifier) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (if_statement "if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);" do (compound_statement "{\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "uVar1 = param_5[iVar3 + 2];" (assignment_expression "uVar1 = param_5[iVar3 + 2]" identifier = (subscript_expression "param_5[iVar3 + 2]" identifier [ (binary_expression "iVar3 + 2" identifier + number_literal) ])) ;) (expression_statement "puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (subscript_expression "puVar4[iVar3 + 2]" identifier [ (binary_expression "iVar3 + 2" identifier + number_literal) ]) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < (int)(uint)*param_1)" ( (binary_expression "iVar3 < (int)(uint)*param_1" identifier < (binary_expression "(int)(uint)*param_1" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) )) ;) })) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * IDENT) + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * IDENT)) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00038b20(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)" (identifier "FUN_00038b20") (parameter_list "(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  uVar1 = *param_5;\n  uVar2 = param_5[1];\n  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);\n  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }\n  *param_3 = 1;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "uVar1 = *param_5;" (assignment_expression "uVar1 = *param_5" (identifier "uVar1") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "uVar2 = param_5[1];" (assignment_expression "uVar2 = param_5[1]" (identifier "uVar2") (= "=") (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);" (assignment_expression "puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4)" (identifier "puVar4") (= "=") (cast_expression "(uint *)((param_2 & 0xff) * param_6 + 4 + param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((param_2 & 0xff) * param_6 + 4 + param_4)" (( "(") (binary_expression "(param_2 & 0xff) * param_6 + 4 + param_4" (binary_expression "(param_2 & 0xff) * param_6 + 4" (binary_expression "(param_2 & 0xff) * param_6" (parenthesized_expression "(param_2 & 0xff)" (( "(") (binary_expression "param_2 & 0xff" (identifier "param_2") (& "&") (number_literal "0xff")) () ")")) (* "*") (identifier "param_6")) (+ "+") (number_literal "4")) (+ "+") (identifier "param_4")) () ")")))) (; ";")) (expression_statement "puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "*puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18")))) (; ";")) (if_statement "if (*param_1 != 0) {\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < (int)(uint)*param_1);" (do "do") (compound_statement "{\n      uVar1 = param_5[iVar3 + 2];\n      puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "uVar1 = param_5[iVar3 + 2];" (assignment_expression "uVar1 = param_5[iVar3 + 2]" (identifier "uVar1") (= "=") (subscript_expression "param_5[iVar3 + 2]" (identifier "param_5") ([ "[") (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "puVar4[iVar3 + 2] =\n           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (subscript_expression "puVar4[iVar3 + 2]" (identifier "puVar4") ([ "[") (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2")) (] "]")) (= "=") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < (int)(uint)*param_1)" (( "(") (binary_expression "iVar3 < (int)(uint)*param_1" (identifier "iVar3") (< "<") (binary_expression "(int)(uint)*param_1" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "param_1"))) () ")")) (; ";")) (} "}"))) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void nodeOverwriteCell(Rtree * pRtree, RtreeNode * pNode, RtreeCell *
   pCell, int iCell, RtreeNode * pNode, Rtree * pRtree) */

void __regparm3
function_1(type_1 *pRtree,type_2 *pNode,type_3 *pCell,int var_1,type_2 *pNode_1,
                 type_1 *pRtree_1)

{
  type_2 *pRVar1;
  type_4 var_2;
  int var_3;
  type_4 *puVar4;
  
  pRVar1 = pNode_1->pParent;
  var_2 = (type_4)pNode_1->iNode;
  puVar4 = (type_4 *)(((type_4)pNode & 0xff) * (int)pRtree_1 + 4 + var_1);
  puVar4[1] = (type_4)pRVar1 >> 0x18 | ((type_4)pRVar1 & 0xff0000) >> 8 | ((type_4)pRVar1 & 0xff00) << 8 |
              (int)pRVar1 << 0x18;
  *puVar4 = var_2 >> 0x18 | (var_2 & 0xff0000) >> 8 | (var_2 & 0xff00) << 8 | var_2 << 0x18;
  if (*(char *)&(pRtree->base).pModule != '\0') {
    var_3 = 0;
    do {
      var_2 = *(type_4 *)((int)&pNode_1->iNode + var_3 * 4 + 4);
      puVar4[var_3 + 2] =
           var_2 >> 0x18 | (var_2 & 0xff0000) >> 8 | (var_2 & 0xff00) << 8 | var_2 << 0x18;
      var_3 = var_3 + 1;
    } while (var_3 < (int)(type_4)*(type_5 *)&(pRtree->base).pModule);
  }
  *(type_6 *)&pCell->iRowid = 1;
  return;
}


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

void __regparm3
MASKED(byte *param_1,uint param_2,undefined4 *param_3,int param_4,uint *param_5,int param_6)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint *puVar4;
  
  uVar1 = *param_5;
  uVar2 = param_5[1];
  puVar4 = (uint *)((param_2 & 0xff) * param_6 + 4 + param_4);
  puVar4[1] = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  *puVar4 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  if (*param_1 != 0) {
    iVar3 = 0;
    do {
      uVar1 = param_5[iVar3 + 2];
      puVar4[iVar3 + 2] =
           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
      iVar3 = iVar3 + 1;
    } while (iVar3 < (int)(uint)*param_1);
  }
  *param_3 = 1;
  return;
}

