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

{
  u8 *puVar1;
  undefined4 uVar2;
  int iVar3;
  RtreeCoord *pRVar4;
  undefined4 uVar5;
  int iVar6;
  
  puVar1 = pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4;
  uVar5 = *(undefined4 *)&pCell->iRowid;
  uVar2 = (undefined4)pCell->iRowid;
  *puVar1 = (u8)((uint)uVar5 >> 0x18);
  puVar1[1] = (u8)((uint)uVar5 >> 0x10);
  puVar1[2] = (u8)((uint)uVar5 >> 8);
  puVar1[3] = (u8)uVar5;
  puVar1[4] = (u8)((uint)uVar2 >> 0x18);
  puVar1[5] = (u8)((uint)uVar2 >> 0x10);
  puVar1[6] = (u8)((uint)uVar2 >> 8);
  puVar1[7] = (u8)uVar2;
  puVar1 = puVar1 + 8;
  if (pRtree->nDim2 != '\0') {
    pRVar4 = pCell->aCoord;
    iVar6 = 0;
    do {
      iVar3 = pRVar4->i;
      *puVar1 = (u8)((uint)iVar3 >> 0x18);
      puVar1[1] = (u8)((uint)iVar3 >> 0x10);
      puVar1[2] = (u8)((uint)iVar3 >> 8);
      puVar1[3] = (u8)iVar3;
      puVar1 = puVar1 + 4;
      iVar6 = iVar6 + 1;
      pRVar4 = pRVar4 + 1;
    } while (iVar6 < (int)(uint)pRtree->nDim2);
  }
  pNode->isDirty = 1;
  return;
}



void FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)

{
  undefined1 *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  
  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);
  uVar3 = *param_3;
  uVar2 = param_3[1];
  *puVar1 = (char)((uint)uVar3 >> 0x18);
  puVar1[1] = (char)((uint)uVar3 >> 0x10);
  puVar1[2] = (char)((uint)uVar3 >> 8);
  puVar1[3] = (char)uVar3;
  puVar1[4] = (char)((uint)uVar2 >> 0x18);
  puVar1[5] = (char)((uint)uVar2 >> 0x10);
  puVar1[6] = (char)((uint)uVar2 >> 8);
  puVar1[7] = (char)uVar2;
  puVar1 = puVar1 + 8;
  if (*(char *)(param_1 + 0x15) != '\0') {
    param_3 = param_3 + 2;
    iVar4 = 0;
    do {
      uVar2 = *param_3;
      *puVar1 = (char)((uint)uVar2 >> 0x18);
      puVar1[1] = (char)((uint)uVar2 >> 0x10);
      puVar1[2] = (char)((uint)uVar2 >> 8);
      puVar1[3] = (char)uVar2;
      puVar1 = puVar1 + 4;
      iVar4 = iVar4 + 1;
      param_3 = param_3 + 1;
    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));
  }
  *(undefined4 *)(param_2 + 0x14) = 1;
  return;
}


lbu v0,0x17(a0)
mul a3,v0,a3
addiu a3,a3,0x4
lw v0,0x18(a1)
addu v0,v0,a3
lw a3,0x0(a2)
lw v1,0x4(a2)
srl t0,a3,0x18
sb t0,0x0(v0)
sra t0,a3,0x10
sb t0,0x1(v0)
sra t0,a3,0x8
sb t0,0x2(v0)
sb a3,0x3(v0)
srl a3,v1,0x18
sb a3,0x4(v0)
srl a3,v1,0x10
sb a3,0x5(v0)
srl a3,v1,0x8
sb a3,0x6(v0)
sb v1,0x7(v0)
lbu v1,0x15(a0)
beq v1,zero,0x00050cec
_addiu v0,v0,0x8
addiu a2,a2,0x8
or a3,zero,zero
lw v1,0x0(a2)
srl t0,v1,0x18
sb t0,0x0(v0)
srl t0,v1,0x10
sb t0,0x1(v0)
srl t0,v1,0x8
sb t0,0x2(v0)
sb v1,0x3(v0)
addiu v0,v0,0x4
addiu a3,a3,0x1
lbu v1,0x15(a0)
slt v1,a3,v1
bne v1,zero,0x00050cb4
_addiu a2,a2,0x4
li v0,0x1
jr ra
_sw v0,0x14(a1)
(translation_unit "void FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 *param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" identifier = (cast_expression "(undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" ( (binary_expression "*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4" (binary_expression "*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + (binary_expression "(uint)*(byte *)(param_1 + 0x17) * param_4" (binary_expression "(uint)*(byte *)(param_1 + 0x17)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x17)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17)" ( (binary_expression "param_1 + 0x17" identifier + number_literal) )))) * identifier)) + number_literal) )))) ;) (expression_statement "uVar3 = *param_3;" (assignment_expression "uVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar1 = (char)((uint)uVar3 >> 0x18);" (assignment_expression "*puVar1 = (char)((uint)uVar3 >> 0x18)" (pointer_expression "*puVar1" * identifier) = (cast_expression "(char)((uint)uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x18)" ( (binary_expression "(uint)uVar3 >> 0x18" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[1] = (char)((uint)uVar3 >> 0x10);" (assignment_expression "puVar1[1] = (char)((uint)uVar3 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x10)" ( (binary_expression "(uint)uVar3 >> 0x10" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[2] = (char)((uint)uVar3 >> 8);" (assignment_expression "puVar1[2] = (char)((uint)uVar3 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 8)" ( (binary_expression "(uint)uVar3 >> 8" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[3] = (char)uVar3;" (assignment_expression "puVar1[3] = (char)uVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1[4] = (char)((uint)uVar2 >> 0x18);" (assignment_expression "puVar1[4] = (char)((uint)uVar2 >> 0x18)" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x18)" ( (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[5] = (char)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[5] = (char)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x10)" ( (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[6] = (char)((uint)uVar2 >> 8);" (assignment_expression "puVar1[6] = (char)((uint)uVar2 >> 8)" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 8)" ( (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[7] = (char)uVar2;" (assignment_expression "puVar1[7] = (char)uVar2" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + 8;" (assignment_expression "puVar1 = puVar1 + 8" identifier = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (if_statement "if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x15) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x15) != '\0'" (pointer_expression "*(char *)(param_1 + 0x15)" * (cast_expression "(char *)(param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }" { (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));" do (compound_statement "{\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    }" { (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*puVar1 = (char)((uint)uVar2 >> 0x18);" (assignment_expression "*puVar1 = (char)((uint)uVar2 >> 0x18)" (pointer_expression "*puVar1" * identifier) = (cast_expression "(char)((uint)uVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x18)" ( (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[1] = (char)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[1] = (char)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x10)" ( (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[2] = (char)((uint)uVar2 >> 8);" (assignment_expression "puVar1[2] = (char)((uint)uVar2 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 8)" ( (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[3] = (char)uVar2;" (assignment_expression "puVar1[3] = (char)uVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < (int)(uint)*(byte *)(param_1 + 0x15))" ( (binary_expression "iVar4 < (int)(uint)*(byte *)(param_1 + 0x15)" identifier < (binary_expression "(int)(uint)*(byte *)(param_1 + 0x15)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void nodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell)\n\n{\n  u8 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  RtreeCoord *pRVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  puVar1 = pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4;\n  uVar5 = *(undefined4 *)&pCell->iRowid;\n  uVar2 = (undefined4)pCell->iRowid;\n  *puVar1 = (u8)((uint)uVar5 >> 0x18);\n  puVar1[1] = (u8)((uint)uVar5 >> 0x10);\n  puVar1[2] = (u8)((uint)uVar5 >> 8);\n  puVar1[3] = (u8)uVar5;\n  puVar1[4] = (u8)((uint)uVar2 >> 0x18);\n  puVar1[5] = (u8)((uint)uVar2 >> 0x10);\n  puVar1[6] = (u8)((uint)uVar2 >> 8);\n  puVar1[7] = (u8)uVar2;\n  puVar1 = puVar1 + 8;\n  if (pRtree->nDim2 != '\0') {\n    pRVar4 = pCell->aCoord;\n    iVar6 = 0;\n    do {\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    } while (iVar6 < (int)(uint)pRtree->nDim2);\n  }\n  pNode->isDirty = 1;\n  return;\n}\n\n" (function_definition "void nodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell)\n\n{\n  u8 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  RtreeCoord *pRVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  puVar1 = pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4;\n  uVar5 = *(undefined4 *)&pCell->iRowid;\n  uVar2 = (undefined4)pCell->iRowid;\n  *puVar1 = (u8)((uint)uVar5 >> 0x18);\n  puVar1[1] = (u8)((uint)uVar5 >> 0x10);\n  puVar1[2] = (u8)((uint)uVar5 >> 8);\n  puVar1[3] = (u8)uVar5;\n  puVar1[4] = (u8)((uint)uVar2 >> 0x18);\n  puVar1[5] = (u8)((uint)uVar2 >> 0x10);\n  puVar1[6] = (u8)((uint)uVar2 >> 8);\n  puVar1[7] = (u8)uVar2;\n  puVar1 = puVar1 + 8;\n  if (pRtree->nDim2 != '\0') {\n    pRVar4 = pCell->aCoord;\n    iVar6 = 0;\n    do {\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    } while (iVar6 < (int)(uint)pRtree->nDim2);\n  }\n  pNode->isDirty = 1;\n  return;\n}" primitive_type (function_declarator "nodeOverwriteCell(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell)" identifier (parameter_list "(Rtree *pRtree,RtreeNode *pNode,RtreeCell *pCell,int iCell)" ( (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) ))) (compound_statement "{\n  u8 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  RtreeCoord *pRVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  puVar1 = pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4;\n  uVar5 = *(undefined4 *)&pCell->iRowid;\n  uVar2 = (undefined4)pCell->iRowid;\n  *puVar1 = (u8)((uint)uVar5 >> 0x18);\n  puVar1[1] = (u8)((uint)uVar5 >> 0x10);\n  puVar1[2] = (u8)((uint)uVar5 >> 8);\n  puVar1[3] = (u8)uVar5;\n  puVar1[4] = (u8)((uint)uVar2 >> 0x18);\n  puVar1[5] = (u8)((uint)uVar2 >> 0x10);\n  puVar1[6] = (u8)((uint)uVar2 >> 8);\n  puVar1[7] = (u8)uVar2;\n  puVar1 = puVar1 + 8;\n  if (pRtree->nDim2 != '\0') {\n    pRVar4 = pCell->aCoord;\n    iVar6 = 0;\n    do {\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    } while (iVar6 < (int)(uint)pRtree->nDim2);\n  }\n  pNode->isDirty = 1;\n  return;\n}" { (declaration "u8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "RtreeCoord *pRVar4;" type_identifier (pointer_declarator "*pRVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4;" (assignment_expression "puVar1 = pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4" identifier = (binary_expression "pNode->zData + (uint)pRtree->nBytesPerCell * iCell + 4" (binary_expression "pNode->zData + (uint)pRtree->nBytesPerCell * iCell" (field_expression "pNode->zData" identifier -> field_identifier) + (binary_expression "(uint)pRtree->nBytesPerCell * iCell" (cast_expression "(uint)pRtree->nBytesPerCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pRtree->nBytesPerCell" identifier -> field_identifier)) * identifier)) + number_literal)) ;) (expression_statement "uVar5 = *(undefined4 *)&pCell->iRowid;" (assignment_expression "uVar5 = *(undefined4 *)&pCell->iRowid" identifier = (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))))) ;) (expression_statement "uVar2 = (undefined4)pCell->iRowid;" (assignment_expression "uVar2 = (undefined4)pCell->iRowid" identifier = (cast_expression "(undefined4)pCell->iRowid" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "pCell->iRowid" identifier -> field_identifier))) ;) (expression_statement "*puVar1 = (u8)((uint)uVar5 >> 0x18);" (assignment_expression "*puVar1 = (u8)((uint)uVar5 >> 0x18)" (pointer_expression "*puVar1" * identifier) = (call_expression "(u8)((uint)uVar5 >> 0x18)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)uVar5 >> 0x18)" ( (binary_expression "(uint)uVar5 >> 0x18" (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[1] = (u8)((uint)uVar5 >> 0x10);" (assignment_expression "puVar1[1] = (u8)((uint)uVar5 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (call_expression "(u8)((uint)uVar5 >> 0x10)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)uVar5 >> 0x10)" ( (binary_expression "(uint)uVar5 >> 0x10" (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[2] = (u8)((uint)uVar5 >> 8);" (assignment_expression "puVar1[2] = (u8)((uint)uVar5 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (call_expression "(u8)((uint)uVar5 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)uVar5 >> 8)" ( (binary_expression "(uint)uVar5 >> 8" (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[3] = (u8)uVar5;" (assignment_expression "puVar1[3] = (u8)uVar5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(u8)uVar5" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "puVar1[4] = (u8)((uint)uVar2 >> 0x18);" (assignment_expression "puVar1[4] = (u8)((uint)uVar2 >> 0x18)" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (call_expression "(u8)((uint)uVar2 >> 0x18)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)uVar2 >> 0x18)" ( (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[5] = (u8)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[5] = (u8)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = (call_expression "(u8)((uint)uVar2 >> 0x10)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)uVar2 >> 0x10)" ( (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[6] = (u8)((uint)uVar2 >> 8);" (assignment_expression "puVar1[6] = (u8)((uint)uVar2 >> 8)" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = (call_expression "(u8)((uint)uVar2 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)uVar2 >> 8)" ( (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[7] = (u8)uVar2;" (assignment_expression "puVar1[7] = (u8)uVar2" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = (cast_expression "(u8)uVar2" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + 8;" (assignment_expression "puVar1 = puVar1 + 8" identifier = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (if_statement "if (pRtree->nDim2 != '\0') {\n    pRVar4 = pCell->aCoord;\n    iVar6 = 0;\n    do {\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    } while (iVar6 < (int)(uint)pRtree->nDim2);\n  }" if (parenthesized_expression "(pRtree->nDim2 != '\0')" ( (binary_expression "pRtree->nDim2 != '\0'" (field_expression "pRtree->nDim2" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pRVar4 = pCell->aCoord;\n    iVar6 = 0;\n    do {\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    } while (iVar6 < (int)(uint)pRtree->nDim2);\n  }" { (expression_statement "pRVar4 = pCell->aCoord;" (assignment_expression "pRVar4 = pCell->aCoord" identifier = (field_expression "pCell->aCoord" identifier -> field_identifier)) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    } while (iVar6 < (int)(uint)pRtree->nDim2);" do (compound_statement "{\n      iVar3 = pRVar4->i;\n      *puVar1 = (u8)((uint)iVar3 >> 0x18);\n      puVar1[1] = (u8)((uint)iVar3 >> 0x10);\n      puVar1[2] = (u8)((uint)iVar3 >> 8);\n      puVar1[3] = (u8)iVar3;\n      puVar1 = puVar1 + 4;\n      iVar6 = iVar6 + 1;\n      pRVar4 = pRVar4 + 1;\n    }" { (expression_statement "iVar3 = pRVar4->i;" (assignment_expression "iVar3 = pRVar4->i" identifier = (field_expression "pRVar4->i" identifier -> field_identifier)) ;) (expression_statement "*puVar1 = (u8)((uint)iVar3 >> 0x18);" (assignment_expression "*puVar1 = (u8)((uint)iVar3 >> 0x18)" (pointer_expression "*puVar1" * identifier) = (call_expression "(u8)((uint)iVar3 >> 0x18)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar3 >> 0x18)" ( (binary_expression "(uint)iVar3 >> 0x18" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[1] = (u8)((uint)iVar3 >> 0x10);" (assignment_expression "puVar1[1] = (u8)((uint)iVar3 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (call_expression "(u8)((uint)iVar3 >> 0x10)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar3 >> 0x10)" ( (binary_expression "(uint)iVar3 >> 0x10" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[2] = (u8)((uint)iVar3 >> 8);" (assignment_expression "puVar1[2] = (u8)((uint)iVar3 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (call_expression "(u8)((uint)iVar3 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar3 >> 8)" ( (binary_expression "(uint)iVar3 >> 8" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[3] = (u8)iVar3;" (assignment_expression "puVar1[3] = (u8)iVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(u8)iVar3" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pRVar4 = pRVar4 + 1;" (assignment_expression "pRVar4 = pRVar4 + 1" identifier = (binary_expression "pRVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < (int)(uint)pRtree->nDim2)" ( (binary_expression "iVar6 < (int)(uint)pRtree->nDim2" identifier < (cast_expression "(int)(uint)pRtree->nDim2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)pRtree->nDim2" ( (type_descriptor "uint" type_identifier) ) (field_expression "pRtree->nDim2" identifier -> field_identifier)))) )) ;) })) (expression_statement "pNode->isDirty = 1;" (assignment_expression "pNode->isDirty = 1" (field_expression "pNode->isDirty" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 *param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" identifier = (cast_expression "(undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" ( (binary_expression "*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4" (binary_expression "*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + (binary_expression "(uint)*(byte *)(param_1 + 0x17) * param_4" (binary_expression "(uint)*(byte *)(param_1 + 0x17)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 0x17)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17)" ( (binary_expression "param_1 + 0x17" identifier + number_literal) )))) * identifier)) + number_literal) )))) ;) (expression_statement "uVar3 = *param_3;" (assignment_expression "uVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar1 = (char)((uint)uVar3 >> 0x18);" (assignment_expression "*puVar1 = (char)((uint)uVar3 >> 0x18)" (pointer_expression "*puVar1" * identifier) = (cast_expression "(char)((uint)uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x18)" ( (binary_expression "(uint)uVar3 >> 0x18" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[1] = (char)((uint)uVar3 >> 0x10);" (assignment_expression "puVar1[1] = (char)((uint)uVar3 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x10)" ( (binary_expression "(uint)uVar3 >> 0x10" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[2] = (char)((uint)uVar3 >> 8);" (assignment_expression "puVar1[2] = (char)((uint)uVar3 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 8)" ( (binary_expression "(uint)uVar3 >> 8" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[3] = (char)uVar3;" (assignment_expression "puVar1[3] = (char)uVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1[4] = (char)((uint)uVar2 >> 0x18);" (assignment_expression "puVar1[4] = (char)((uint)uVar2 >> 0x18)" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x18)" ( (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[5] = (char)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[5] = (char)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x10)" ( (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[6] = (char)((uint)uVar2 >> 8);" (assignment_expression "puVar1[6] = (char)((uint)uVar2 >> 8)" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 8)" ( (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[7] = (char)uVar2;" (assignment_expression "puVar1[7] = (char)uVar2" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + 8;" (assignment_expression "puVar1 = puVar1 + 8" identifier = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (if_statement "if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x15) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x15) != '\0'" (pointer_expression "*(char *)(param_1 + 0x15)" * (cast_expression "(char *)(param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }" { (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));" do (compound_statement "{\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    }" { (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*puVar1 = (char)((uint)uVar2 >> 0x18);" (assignment_expression "*puVar1 = (char)((uint)uVar2 >> 0x18)" (pointer_expression "*puVar1" * identifier) = (cast_expression "(char)((uint)uVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x18)" ( (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[1] = (char)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[1] = (char)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 0x10)" ( (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[2] = (char)((uint)uVar2 >> 8);" (assignment_expression "puVar1[2] = (char)((uint)uVar2 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)uVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar2 >> 8)" ( (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1[3] = (char)uVar2;" (assignment_expression "puVar1[3] = (char)uVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < (int)(uint)*(byte *)(param_1 + 0x15))" ( (binary_expression "iVar4 < (int)(uint)*(byte *)(param_1 + 0x15)" identifier < (binary_expression "(int)(uint)*(byte *)(param_1 + 0x15)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(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 IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * IDENT)) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (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 ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00050c4c(int param_1,int param_2,undefined4 *param_3,int param_4)" (identifier "FUN_00050c4c") (parameter_list "(int param_1,int param_2,undefined4 *param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (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")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);\n  uVar3 = *param_3;\n  uVar2 = param_3[1];\n  *puVar1 = (char)((uint)uVar3 >> 0x18);\n  puVar1[1] = (char)((uint)uVar3 >> 0x10);\n  puVar1[2] = (char)((uint)uVar3 >> 8);\n  puVar1[3] = (char)uVar3;\n  puVar1[4] = (char)((uint)uVar2 >> 0x18);\n  puVar1[5] = (char)((uint)uVar2 >> 0x10);\n  puVar1[6] = (char)((uint)uVar2 >> 8);\n  puVar1[7] = (char)uVar2;\n  puVar1 = puVar1 + 8;\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }\n  *(undefined4 *)(param_2 + 0x14) = 1;\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4)" (( "(") (binary_expression "*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4" (binary_expression "*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "(uint)*(byte *)(param_1 + 0x17) * param_4" (binary_expression "(uint)*(byte *)(param_1 + 0x17)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + 0x17)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17)" (( "(") (binary_expression "param_1 + 0x17" (identifier "param_1") (+ "+") (number_literal "0x17")) () ")")))) (* "*") (identifier "param_4"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "uVar3 = *param_3;" (assignment_expression "uVar3 = *param_3" (identifier "uVar3") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" (identifier "uVar2") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar1 = (char)((uint)uVar3 >> 0x18);" (assignment_expression "*puVar1 = (char)((uint)uVar3 >> 0x18)" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (cast_expression "(char)((uint)uVar3 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar3 >> 0x18)" (( "(") (binary_expression "(uint)uVar3 >> 0x18" (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "puVar1[1] = (char)((uint)uVar3 >> 0x10);" (assignment_expression "puVar1[1] = (char)((uint)uVar3 >> 0x10)" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)((uint)uVar3 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar3 >> 0x10)" (( "(") (binary_expression "(uint)uVar3 >> 0x10" (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "puVar1[2] = (char)((uint)uVar3 >> 8);" (assignment_expression "puVar1[2] = (char)((uint)uVar3 >> 8)" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)((uint)uVar3 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar3 >> 8)" (( "(") (binary_expression "(uint)uVar3 >> 8" (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar1[3] = (char)uVar3;" (assignment_expression "puVar1[3] = (char)uVar3" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "puVar1[4] = (char)((uint)uVar2 >> 0x18);" (assignment_expression "puVar1[4] = (char)((uint)uVar2 >> 0x18)" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(char)((uint)uVar2 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar2 >> 0x18)" (( "(") (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "puVar1[5] = (char)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[5] = (char)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(char)((uint)uVar2 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar2 >> 0x10)" (( "(") (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "puVar1[6] = (char)((uint)uVar2 >> 8);" (assignment_expression "puVar1[6] = (char)((uint)uVar2 >> 8)" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(char)((uint)uVar2 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar2 >> 8)" (( "(") (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar1[7] = (char)uVar2;" (assignment_expression "puVar1[7] = (char)uVar2" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2"))) (; ";")) (expression_statement "puVar1 = puVar1 + 8;" (assignment_expression "puVar1 = puVar1 + 8" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x15) != '\0') {\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x15) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x15) != '\0'" (pointer_expression "*(char *)(param_1 + 0x15)" (* "*") (cast_expression "(char *)(param_1 + 0x15)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x15)" (( "(") (binary_expression "param_1 + 0x15" (identifier "param_1") (+ "+") (number_literal "0x15")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_3 = param_3 + 2;\n    iVar4 = 0;\n    do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));\n  }" ({ "{") (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" (identifier "param_3") (= "=") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));" (do "do") (compound_statement "{\n      uVar2 = *param_3;\n      *puVar1 = (char)((uint)uVar2 >> 0x18);\n      puVar1[1] = (char)((uint)uVar2 >> 0x10);\n      puVar1[2] = (char)((uint)uVar2 >> 8);\n      puVar1[3] = (char)uVar2;\n      puVar1 = puVar1 + 4;\n      iVar4 = iVar4 + 1;\n      param_3 = param_3 + 1;\n    }" ({ "{") (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" (identifier "uVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*puVar1 = (char)((uint)uVar2 >> 0x18);" (assignment_expression "*puVar1 = (char)((uint)uVar2 >> 0x18)" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (cast_expression "(char)((uint)uVar2 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar2 >> 0x18)" (( "(") (binary_expression "(uint)uVar2 >> 0x18" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "puVar1[1] = (char)((uint)uVar2 >> 0x10);" (assignment_expression "puVar1[1] = (char)((uint)uVar2 >> 0x10)" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)((uint)uVar2 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar2 >> 0x10)" (( "(") (binary_expression "(uint)uVar2 >> 0x10" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "puVar1[2] = (char)((uint)uVar2 >> 8);" (assignment_expression "puVar1[2] = (char)((uint)uVar2 >> 8)" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)((uint)uVar2 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar2 >> 8)" (( "(") (binary_expression "(uint)uVar2 >> 8" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar1[3] = (char)uVar2;" (assignment_expression "puVar1[3] = (char)uVar2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2"))) (; ";")) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < (int)(uint)*(byte *)(param_1 + 0x15))" (( "(") (binary_expression "iVar4 < (int)(uint)*(byte *)(param_1 + 0x15)" (identifier "iVar4") (< "<") (binary_expression "(int)(uint)*(byte *)(param_1 + 0x15)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)(param_1 + 0x15)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x15)" (( "(") (binary_expression "param_1 + 0x15" (identifier "param_1") (+ "+") (number_literal "0x15")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

{
  type_4 *var_2;
  type_5 uVar2;
  int iVar3;
  type_6 *var_4;
  type_5 uVar5;
  int var_3;
  
  var_2 = pNode->zData + (type_7)pRtree->nBytesPerCell * var_1 + 4;
  uVar5 = *(type_5 *)&pCell->iRowid;
  uVar2 = (type_5)pCell->iRowid;
  *var_2 = (type_4)((type_7)uVar5 >> 0x18);
  var_2[1] = (type_4)((type_7)uVar5 >> 0x10);
  var_2[2] = (type_4)((type_7)uVar5 >> 8);
  var_2[3] = (type_4)uVar5;
  var_2[4] = (type_4)((type_7)uVar2 >> 0x18);
  var_2[5] = (type_4)((type_7)uVar2 >> 0x10);
  var_2[6] = (type_4)((type_7)uVar2 >> 8);
  var_2[7] = (type_4)uVar2;
  var_2 = var_2 + 8;
  if (pRtree->nDim2 != '\0') {
    var_4 = pCell->aCoord;
    var_3 = 0;
    do {
      iVar3 = var_4->i;
      *var_2 = (type_4)((type_7)iVar3 >> 0x18);
      var_2[1] = (type_4)((type_7)iVar3 >> 0x10);
      var_2[2] = (type_4)((type_7)iVar3 >> 8);
      var_2[3] = (type_4)iVar3;
      var_2 = var_2 + 4;
      var_3 = var_3 + 1;
      var_4 = var_4 + 1;
    } while (var_3 < (int)(type_7)pRtree->nDim2);
  }
  pNode->isDirty = 1;
  return;
}


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

void MASKED(int param_1,int param_2,undefined4 *param_3,int param_4)

{
  undefined1 *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  
  puVar1 = (undefined1 *)(*(int *)(param_2 + 0x18) + (uint)*(byte *)(param_1 + 0x17) * param_4 + 4);
  uVar3 = *param_3;
  uVar2 = param_3[1];
  *puVar1 = (char)((uint)uVar3 >> 0x18);
  puVar1[1] = (char)((uint)uVar3 >> 0x10);
  puVar1[2] = (char)((uint)uVar3 >> 8);
  puVar1[3] = (char)uVar3;
  puVar1[4] = (char)((uint)uVar2 >> 0x18);
  puVar1[5] = (char)((uint)uVar2 >> 0x10);
  puVar1[6] = (char)((uint)uVar2 >> 8);
  puVar1[7] = (char)uVar2;
  puVar1 = puVar1 + 8;
  if (*(char *)(param_1 + 0x15) != '\0') {
    param_3 = param_3 + 2;
    iVar4 = 0;
    do {
      uVar2 = *param_3;
      *puVar1 = (char)((uint)uVar2 >> 0x18);
      puVar1[1] = (char)((uint)uVar2 >> 0x10);
      puVar1[2] = (char)((uint)uVar2 >> 8);
      puVar1[3] = (char)uVar2;
      puVar1 = puVar1 + 4;
      iVar4 = iVar4 + 1;
      param_3 = param_3 + 1;
    } while (iVar4 < (int)(uint)*(byte *)(param_1 + 0x15));
  }
  *(undefined4 *)(param_2 + 0x14) = 1;
  return;
}

