
int nodeRowidIndex(Rtree *pRtree,RtreeNode *pNode,i64 iRowid,int *piIndex)

{
  undefined4 in_a3;
  int iCell;
  int iVar1;
  Rtree *pRtree_00;
  i64 iVar2;
  
  iVar1 = (uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +
          (uint)*(byte *)((int)&pNode->pParent + 3);
  if (iVar1 == 0) {
    return 0x10b;
  }
  iCell = 0;
  pRtree_00 = (Rtree *)(uint)pRtree->nBytesPerCell;
  do {
    iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);
    if (iVar2 == CONCAT44(piIndex,in_a3)) {
      *iRowid._0_4_ = iCell;
      return 0;
    }
    iCell = iCell + 1;
  } while (iVar1 != iCell);
  return 0x10b;
}



undefined4 FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  longlong lVar4;
  
  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);
  if (iVar2 == 0) {
    return 0x10b;
  }
  iVar1 = 0;
  uVar3 = (uint)*(byte *)(param_1 + 0x17);
  do {
    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);
    if (lVar4 == CONCAT44(param_3,param_4)) {
      *param_5 = iVar1;
      return 0;
    }
    iVar1 = iVar1 + 1;
  } while (iVar2 != iVar1);
  return 0x10b;
}


lui gp,0x12
addiu gp,gp,0x5280
addu gp,gp,t9
lbu v0,0x2(a1)
lbu t3,0x3(a1)
sll v0,v0,0x8
addu t3,v0,t3
beq t3,zero,0x0003e3d4
_nop
addiu sp,sp,-0x20
lw t9,-0x7ef0(gp)
or t7,a3,zero
or t5,a2,zero
sw gp,0x10(sp)
or t4,a1,zero
sw ra,0x1c(sp)
or t2,zero,zero
lbu t6,0x17(a0)
b 0x0003e388
_addiu t9,t9,-0x1ef8
beq t3,t2,0x0003e3c8
_lw ra,0x1c(sp)
or a2,t2,zero
or a1,t4,zero
bal 0x0003e108
_or a0,t6,zero
bne v0,t5,0x0003e380
_addiu t2,t2,0x1
addiu t2,t2,-0x1
bne v1,t7,0x0003e380
_addiu t2,t2,0x1
addiu t2,t2,-0x1
lw v0,0x30(sp)
sw t2,0x0(v0)
or v0,zero,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
li v0,0x10b
jr ra
_addiu sp,sp,0x20
jr ra
_li v0,0x10b
(translation_unit "undefined4 FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}\n\n" (function_definition "undefined4 FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}" type_identifier (function_declarator "FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (expression_statement "iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);" (assignment_expression "iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3)" identifier = (binary_expression "(uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3)" (binary_expression "(uint)*(byte *)(param_2 + 2) * 0x100" (binary_expression "(uint)*(byte *)(param_2 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)(param_2 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) )))))) ;) (if_statement "if (iVar2 == 0) {\n    return 0x10b;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0x10b;\n  }" { (return_statement "return 0x10b;" return number_literal ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (uint)*(byte *)(param_1 + 0x17);" (assignment_expression "uVar3 = (uint)*(byte *)(param_1 + 0x17)" identifier = (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) ))))) ;) (do_statement "do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);" do (compound_statement "{\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "lVar4 = FUN_0003e108(uVar3,param_2,iVar1);" (assignment_expression "lVar4 = FUN_0003e108(uVar3,param_2,iVar1)" identifier = (call_expression "FUN_0003e108(uVar3,param_2,iVar1)" identifier (argument_list "(uVar3,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) (if_statement "if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }" if (parenthesized_expression "(lVar4 == CONCAT44(param_3,param_4))" ( (binary_expression "lVar4 == CONCAT44(param_3,param_4)" identifier == (call_expression "CONCAT44(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) )) (compound_statement "{\n      *param_5 = iVar1;\n      return 0;\n    }" { (expression_statement "*param_5 = iVar1;" (assignment_expression "*param_5 = iVar1" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar1)" ( (binary_expression "iVar2 != iVar1" identifier != identifier) )) ;) (return_statement "return 0x10b;" return number_literal ;) })))
(translation_unit "int nodeRowidIndex(Rtree *pRtree,RtreeNode *pNode,i64 iRowid,int *piIndex)\n\n{\n  undefined4 in_a3;\n  int iCell;\n  int iVar1;\n  Rtree *pRtree_00;\n  i64 iVar2;\n  \n  iVar1 = (uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +\n          (uint)*(byte *)((int)&pNode->pParent + 3);\n  if (iVar1 == 0) {\n    return 0x10b;\n  }\n  iCell = 0;\n  pRtree_00 = (Rtree *)(uint)pRtree->nBytesPerCell;\n  do {\n    iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);\n    if (iVar2 == CONCAT44(piIndex,in_a3)) {\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }\n    iCell = iCell + 1;\n  } while (iVar1 != iCell);\n  return 0x10b;\n}\n\n" (function_definition "int nodeRowidIndex(Rtree *pRtree,RtreeNode *pNode,i64 iRowid,int *piIndex)\n\n{\n  undefined4 in_a3;\n  int iCell;\n  int iVar1;\n  Rtree *pRtree_00;\n  i64 iVar2;\n  \n  iVar1 = (uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +\n          (uint)*(byte *)((int)&pNode->pParent + 3);\n  if (iVar1 == 0) {\n    return 0x10b;\n  }\n  iCell = 0;\n  pRtree_00 = (Rtree *)(uint)pRtree->nBytesPerCell;\n  do {\n    iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);\n    if (iVar2 == CONCAT44(piIndex,in_a3)) {\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }\n    iCell = iCell + 1;\n  } while (iVar1 != iCell);\n  return 0x10b;\n}" primitive_type (function_declarator "nodeRowidIndex(Rtree *pRtree,RtreeNode *pNode,i64 iRowid,int *piIndex)" identifier (parameter_list "(Rtree *pRtree,RtreeNode *pNode,i64 iRowid,int *piIndex)" ( (parameter_declaration "Rtree *pRtree" type_identifier (pointer_declarator "*pRtree" * identifier)) , (parameter_declaration "RtreeNode *pNode" type_identifier (pointer_declarator "*pNode" * identifier)) , (parameter_declaration "i64 iRowid" type_identifier identifier) , (parameter_declaration "int *piIndex" primitive_type (pointer_declarator "*piIndex" * identifier)) ))) (compound_statement "{\n  undefined4 in_a3;\n  int iCell;\n  int iVar1;\n  Rtree *pRtree_00;\n  i64 iVar2;\n  \n  iVar1 = (uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +\n          (uint)*(byte *)((int)&pNode->pParent + 3);\n  if (iVar1 == 0) {\n    return 0x10b;\n  }\n  iCell = 0;\n  pRtree_00 = (Rtree *)(uint)pRtree->nBytesPerCell;\n  do {\n    iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);\n    if (iVar2 == CONCAT44(piIndex,in_a3)) {\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }\n    iCell = iCell + 1;\n  } while (iVar1 != iCell);\n  return 0x10b;\n}" { (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "int iCell;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "Rtree *pRtree_00;" type_identifier (pointer_declarator "*pRtree_00" * identifier) ;) (declaration "i64 iVar2;" type_identifier identifier ;) (expression_statement "iVar1 = (uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +\n          (uint)*(byte *)((int)&pNode->pParent + 3);" (assignment_expression "iVar1 = (uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +\n          (uint)*(byte *)((int)&pNode->pParent + 3)" identifier = (binary_expression "(uint)*(byte *)((int)&pNode->pParent + 2) * 0x100 +\n          (uint)*(byte *)((int)&pNode->pParent + 3)" (binary_expression "(uint)*(byte *)((int)&pNode->pParent + 2) * 0x100" (binary_expression "(uint)*(byte *)((int)&pNode->pParent + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)&pNode->pParent + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pNode->pParent + 2)" ( (binary_expression "(int)&pNode->pParent + 2" (cast_expression "(int)&pNode->pParent" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pNode->pParent" & (field_expression "pNode->pParent" identifier -> field_identifier))) + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)((int)&pNode->pParent + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)&pNode->pParent + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pNode->pParent + 3)" ( (binary_expression "(int)&pNode->pParent + 3" (cast_expression "(int)&pNode->pParent" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pNode->pParent" & (field_expression "pNode->pParent" identifier -> field_identifier))) + number_literal) )))))) ;) (if_statement "if (iVar1 == 0) {\n    return 0x10b;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0x10b;\n  }" { (return_statement "return 0x10b;" return number_literal ;) })) (expression_statement "iCell = 0;" (assignment_expression "iCell = 0" identifier = number_literal) ;) (expression_statement "pRtree_00 = (Rtree *)(uint)pRtree->nBytesPerCell;" (assignment_expression "pRtree_00 = (Rtree *)(uint)pRtree->nBytesPerCell" identifier = (cast_expression "(Rtree *)(uint)pRtree->nBytesPerCell" ( (type_descriptor "Rtree *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)pRtree->nBytesPerCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pRtree->nBytesPerCell" identifier -> field_identifier)))) ;) (do_statement "do {\n    iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);\n    if (iVar2 == CONCAT44(piIndex,in_a3)) {\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }\n    iCell = iCell + 1;\n  } while (iVar1 != iCell);" do (compound_statement "{\n    iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);\n    if (iVar2 == CONCAT44(piIndex,in_a3)) {\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }\n    iCell = iCell + 1;\n  }" { (expression_statement "iVar2 = nodeGetRowid(pRtree_00,pNode,iCell);" (assignment_expression "iVar2 = nodeGetRowid(pRtree_00,pNode,iCell)" identifier = (call_expression "nodeGetRowid(pRtree_00,pNode,iCell)" identifier (argument_list "(pRtree_00,pNode,iCell)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == CONCAT44(piIndex,in_a3)) {\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == CONCAT44(piIndex,in_a3))" ( (binary_expression "iVar2 == CONCAT44(piIndex,in_a3)" identifier == (call_expression "CONCAT44(piIndex,in_a3)" identifier (argument_list "(piIndex,in_a3)" ( identifier , identifier )))) )) (compound_statement "{\n      *iRowid._0_4_ = iCell;\n      return 0;\n    }" { (expression_statement "*iRowid._0_4_ = iCell;" (assignment_expression "*iRowid._0_4_ = iCell" (pointer_expression "*iRowid._0_4_" * (field_expression "iRowid._0_4_" identifier . field_identifier)) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iCell = iCell + 1;" (assignment_expression "iCell = iCell + 1" identifier = (binary_expression "iCell + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iCell)" ( (binary_expression "iVar1 != iCell" identifier != identifier) )) ;) (return_statement "return 0x10b;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}\n\n" (function_definition "undefined4 FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}" type_identifier (function_declarator "FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (expression_statement "iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);" (assignment_expression "iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3)" identifier = (binary_expression "(uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3)" (binary_expression "(uint)*(byte *)(param_2 + 2) * 0x100" (binary_expression "(uint)*(byte *)(param_2 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)(param_2 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) )))))) ;) (if_statement "if (iVar2 == 0) {\n    return 0x10b;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0x10b;\n  }" { (return_statement "return 0x10b;" return number_literal ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (uint)*(byte *)(param_1 + 0x17);" (assignment_expression "uVar3 = (uint)*(byte *)(param_1 + 0x17)" identifier = (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) ))))) ;) (do_statement "do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);" do (compound_statement "{\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "lVar4 = FUN_0003e108(uVar3,param_2,iVar1);" (assignment_expression "lVar4 = FUN_0003e108(uVar3,param_2,iVar1)" identifier = (call_expression "FUN_0003e108(uVar3,param_2,iVar1)" identifier (argument_list "(uVar3,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) (if_statement "if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }" if (parenthesized_expression "(lVar4 == CONCAT44(param_3,param_4))" ( (binary_expression "lVar4 == CONCAT44(param_3,param_4)" identifier == (call_expression "CONCAT44(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) )) (compound_statement "{\n      *param_5 = iVar1;\n      return 0;\n    }" { (expression_statement "*param_5 = iVar1;" (assignment_expression "*param_5 = iVar1" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar1)" ( (binary_expression "iVar2 != iVar1" identifier != identifier) )) ;) (return_statement "return 0x10b;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (call_expression IDENT (argument_list ( IDENT , IDENT )))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003e330(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)" (identifier "FUN_0003e330") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5)" (( "(") (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") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  longlong lVar4;\n  \n  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);\n  if (iVar2 == 0) {\n    return 0x10b;\n  }\n  iVar1 = 0;\n  uVar3 = (uint)*(byte *)(param_1 + 0x17);\n  do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);\n  return 0x10b;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "longlong lVar4;" (type_identifier "longlong") (identifier "lVar4") (; ";")) (expression_statement "iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);" (assignment_expression "iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3)" (identifier "iVar2") (= "=") (binary_expression "(uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3)" (binary_expression "(uint)*(byte *)(param_2 + 2) * 0x100" (binary_expression "(uint)*(byte *)(param_2 + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")")))) (* "*") (number_literal "0x100")) (+ "+") (binary_expression "(uint)*(byte *)(param_2 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 3)" (( "(") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) () ")")))))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0x10b;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0x10b;\n  }" ({ "{") (return_statement "return 0x10b;" (return "return") (number_literal "0x10b") (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (uint)*(byte *)(param_1 + 0x17);" (assignment_expression "uVar3 = (uint)*(byte *)(param_1 + 0x17)" (identifier "uVar3") (= "=") (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")) () ")"))))) (; ";")) (do_statement "do {\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar2 != iVar1);" (do "do") (compound_statement "{\n    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);\n    if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }\n    iVar1 = iVar1 + 1;\n  }" ({ "{") (expression_statement "lVar4 = FUN_0003e108(uVar3,param_2,iVar1);" (assignment_expression "lVar4 = FUN_0003e108(uVar3,param_2,iVar1)" (identifier "lVar4") (= "=") (call_expression "FUN_0003e108(uVar3,param_2,iVar1)" (identifier "FUN_0003e108") (argument_list "(uVar3,param_2,iVar1)" (( "(") (identifier "uVar3") (, ",") (identifier "param_2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (lVar4 == CONCAT44(param_3,param_4)) {\n      *param_5 = iVar1;\n      return 0;\n    }" (if "if") (parenthesized_expression "(lVar4 == CONCAT44(param_3,param_4))" (( "(") (binary_expression "lVar4 == CONCAT44(param_3,param_4)" (identifier "lVar4") (== "==") (call_expression "CONCAT44(param_3,param_4)" (identifier "CONCAT44") (argument_list "(param_3,param_4)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) () ")")) (compound_statement "{\n      *param_5 = iVar1;\n      return 0;\n    }" ({ "{") (expression_statement "*param_5 = iVar1;" (assignment_expression "*param_5 = iVar1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != iVar1)" (( "(") (binary_expression "iVar2 != iVar1" (identifier "iVar2") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (return_statement "return 0x10b;" (return "return") (number_literal "0x10b") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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: (number_literal)) right: (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement (number_literal)))))

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

{
  int iVar1;
  int iVar2;
  uint uVar3;
  longlong lVar4;
  
  iVar2 = (uint)*(byte *)(param_2 + 2) * 0x100 + (uint)*(byte *)(param_2 + 3);
  if (iVar2 == 0) {
    return 0x10b;
  }
  iVar1 = 0;
  uVar3 = (uint)*(byte *)(param_1 + 0x17);
  do {
    lVar4 = FUN_0003e108(uVar3,param_2,iVar1);
    if (lVar4 == CONCAT44(param_3,param_4)) {
      *param_5 = iVar1;
      return 0;
    }
    iVar1 = iVar1 + 1;
  } while (iVar2 != iVar1);
  return 0x10b;
}

