
RtreeNode * rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur,int *pRC)

{
  RtreeNode *pRVar1;
  int iVar2;
  int iVar3;
  RtreeNode **ppNode;
  
  iVar3 = -(uint)pCur->bPoint + 1;
  pRVar1 = *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);
  if (pRVar1 != (RtreeNode *)0x0) {
    return pRVar1;
  }
  if (iVar3 == 0) {
    ppNode = *(RtreeNode ***)&(pCur->sPoint).id;
  }
  else {
    ppNode = *(RtreeNode ***)&pCur->aPoint->id;
  }
  iVar2 = nodeAcquire((Rtree *)(pCur->base).pVtab,
                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,
                      ppNode);
  *pRC = iVar2;
  return *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);
}



int FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  iVar1 = -(uint)*(byte *)((int)param_1 + 5);
  if (param_1[iVar1 + 0x11] != 0) {
    return param_1[iVar1 + 0x11];
  }
  if (iVar1 == -1) {
    uVar3 = param_1[0xd];
    uVar2 = param_1[0xc];
  }
  else {
    uVar3 = *(undefined4 *)(param_1[8] + 0xc);
    uVar2 = *(undefined4 *)(param_1[8] + 8);
  }
  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);
  *param_2 = uVar2;
  return param_1[iVar1 + 0x11];
}


lui gp,0x4
addiu gp,gp,-0x7b48
addu gp,gp,t9
addiu sp,sp,-0x30
li v1,0x1
sw s0,0x24(sp)
sw gp,0x18(sp)
sw ra,0x2c(sp)
sw s1,0x28(sp)
lbu v0,0x5(a0)
subu v1,v1,v0
sll s0,v1,0x2
addu s0,a0,s0
lw v0,0x40(s0)
beq v0,zero,0x0012c148
_lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
bne v1,zero,0x0012c1a0
_nop
lw a3,0x34(a0)
lw a2,0x30(a0)
addiu v1,v1,0x10
lw t9,-0x7fc8(gp)
or v0,a0,zero
lw a0,0x0(a0)
sll v1,v1,0x2
sw zero,0x10(sp)
addiu t9,t9,-0x6eb0
addu v1,v0,v1
or s1,a1,zero
bal 0x00129150
_sw v1,0x14(sp)
sw v0,0x0(s1)
lw ra,0x2c(sp)
lw v0,0x40(s0)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x20(a0)
lw a3,0xc(v0)
b 0x0012c158
_lw a2,0x8(v0)
(translation_unit "int FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}\n\n" (function_definition "int FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}" primitive_type (function_declarator "FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = -(uint)*(byte *)((int)param_1 + 5);" (assignment_expression "iVar1 = -(uint)*(byte *)((int)param_1 + 5)" identifier = (binary_expression "-(uint)*(byte *)((int)param_1 + 5)" (unary_expression "-(uint)" - (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)((int)param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }" if (parenthesized_expression "(param_1[iVar1 + 0x11] != 0)" ( (binary_expression "param_1[iVar1 + 0x11] != 0" (subscript_expression "param_1[iVar1 + 0x11]" identifier [ (binary_expression "iVar1 + 0x11" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n    return param_1[iVar1 + 0x11];\n  }" { (return_statement "return param_1[iVar1 + 0x11];" return (subscript_expression "param_1[iVar1 + 0x11]" identifier [ (binary_expression "iVar1 + 0x11" identifier + number_literal) ]) ;) })) (if_statement "if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }" { (expression_statement "uVar3 = param_1[0xd];" (assignment_expression "uVar3 = param_1[0xd]" identifier = (subscript_expression "param_1[0xd]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[0xc];" (assignment_expression "uVar2 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" else (compound_statement "{\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" { (expression_statement "uVar3 = *(undefined4 *)(param_1[8] + 0xc);" (assignment_expression "uVar3 = *(undefined4 *)(param_1[8] + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_1[8] + 0xc)" * (cast_expression "(undefined4 *)(param_1[8] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + 0xc)" ( (binary_expression "param_1[8] + 0xc" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1[8] + 8);" (assignment_expression "uVar2 = *(undefined4 *)(param_1[8] + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1[8] + 8)" * (cast_expression "(undefined4 *)(param_1[8] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + 8)" ( (binary_expression "param_1[8] + 8" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal) ))))) ;) }))) (expression_statement "uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);" (assignment_expression "uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" identifier = (call_expression "FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" identifier (argument_list "(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , identifier , number_literal , (binary_expression "param_1 + iVar1 + 0x11" (binary_expression "param_1 + iVar1" identifier + identifier) + number_literal) )))) ;) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return param_1[iVar1 + 0x11];" return (subscript_expression "param_1[iVar1 + 0x11]" identifier [ (binary_expression "iVar1 + 0x11" identifier + number_literal) ]) ;) })))
(translation_unit "RtreeNode * rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur,int *pRC)\n\n{\n  RtreeNode *pRVar1;\n  int iVar2;\n  int iVar3;\n  RtreeNode **ppNode;\n  \n  iVar3 = -(uint)pCur->bPoint + 1;\n  pRVar1 = *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);\n  if (pRVar1 != (RtreeNode *)0x0) {\n    return pRVar1;\n  }\n  if (iVar3 == 0) {\n    ppNode = *(RtreeNode ***)&(pCur->sPoint).id;\n  }\n  else {\n    ppNode = *(RtreeNode ***)&pCur->aPoint->id;\n  }\n  iVar2 = nodeAcquire((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode);\n  *pRC = iVar2;\n  return *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);\n}\n\n" (function_definition "RtreeNode * rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur,int *pRC)\n\n{\n  RtreeNode *pRVar1;\n  int iVar2;\n  int iVar3;\n  RtreeNode **ppNode;\n  \n  iVar3 = -(uint)pCur->bPoint + 1;\n  pRVar1 = *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);\n  if (pRVar1 != (RtreeNode *)0x0) {\n    return pRVar1;\n  }\n  if (iVar3 == 0) {\n    ppNode = *(RtreeNode ***)&(pCur->sPoint).id;\n  }\n  else {\n    ppNode = *(RtreeNode ***)&pCur->aPoint->id;\n  }\n  iVar2 = nodeAcquire((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode);\n  *pRC = iVar2;\n  return *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);\n}" type_identifier (pointer_declarator "* rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur,int *pRC)" * (function_declarator "rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur,int *pRC)" identifier (parameter_list "(RtreeCursor *pCur,int *pRC)" ( (parameter_declaration "RtreeCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) , (parameter_declaration "int *pRC" primitive_type (pointer_declarator "*pRC" * identifier)) )))) (compound_statement "{\n  RtreeNode *pRVar1;\n  int iVar2;\n  int iVar3;\n  RtreeNode **ppNode;\n  \n  iVar3 = -(uint)pCur->bPoint + 1;\n  pRVar1 = *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);\n  if (pRVar1 != (RtreeNode *)0x0) {\n    return pRVar1;\n  }\n  if (iVar3 == 0) {\n    ppNode = *(RtreeNode ***)&(pCur->sPoint).id;\n  }\n  else {\n    ppNode = *(RtreeNode ***)&pCur->aPoint->id;\n  }\n  iVar2 = nodeAcquire((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode);\n  *pRC = iVar2;\n  return *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);\n}" { (declaration "RtreeNode *pRVar1;" type_identifier (pointer_declarator "*pRVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "RtreeNode **ppNode;" type_identifier (pointer_declarator "**ppNode" * (pointer_declarator "*ppNode" * identifier)) ;) (expression_statement "iVar3 = -(uint)pCur->bPoint + 1;" (assignment_expression "iVar3 = -(uint)pCur->bPoint + 1" identifier = (binary_expression "-(uint)pCur->bPoint + 1" (unary_expression "-(uint)pCur->bPoint" - (cast_expression "(uint)pCur->bPoint" ( (type_descriptor "uint" type_identifier) ) (field_expression "pCur->bPoint" identifier -> field_identifier))) + number_literal)) ;) (expression_statement "pRVar1 = *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);" (assignment_expression "pRVar1 = *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40)" identifier = (pointer_expression "*(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40)" * (cast_expression "(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40)" ( (type_descriptor "RtreeNode **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pCur + iVar3 * 4 + 0x40)" ( (binary_expression "(int)pCur + iVar3 * 4 + 0x40" (binary_expression "(int)pCur + iVar3 * 4" (cast_expression "(int)pCur" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (pRVar1 != (RtreeNode *)0x0) {\n    return pRVar1;\n  }" if (parenthesized_expression "(pRVar1 != (RtreeNode *)0x0)" ( (binary_expression "pRVar1 != (RtreeNode *)0x0" identifier != (cast_expression "(RtreeNode *)0x0" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pRVar1;\n  }" { (return_statement "return pRVar1;" return identifier ;) })) (if_statement "if (iVar3 == 0) {\n    ppNode = *(RtreeNode ***)&(pCur->sPoint).id;\n  }\n  else {\n    ppNode = *(RtreeNode ***)&pCur->aPoint->id;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    ppNode = *(RtreeNode ***)&(pCur->sPoint).id;\n  }" { (expression_statement "ppNode = *(RtreeNode ***)&(pCur->sPoint).id;" (assignment_expression "ppNode = *(RtreeNode ***)&(pCur->sPoint).id" identifier = (pointer_expression "*(RtreeNode ***)&(pCur->sPoint).id" * (cast_expression "(RtreeNode ***)&(pCur->sPoint).id" ( (type_descriptor "RtreeNode ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (pointer_expression "&(pCur->sPoint).id" & (field_expression "(pCur->sPoint).id" (parenthesized_expression "(pCur->sPoint)" ( (field_expression "pCur->sPoint" identifier -> field_identifier) )) . field_identifier))))) ;) }) (else_clause "else {\n    ppNode = *(RtreeNode ***)&pCur->aPoint->id;\n  }" else (compound_statement "{\n    ppNode = *(RtreeNode ***)&pCur->aPoint->id;\n  }" { (expression_statement "ppNode = *(RtreeNode ***)&pCur->aPoint->id;" (assignment_expression "ppNode = *(RtreeNode ***)&pCur->aPoint->id" identifier = (pointer_expression "*(RtreeNode ***)&pCur->aPoint->id" * (cast_expression "(RtreeNode ***)&pCur->aPoint->id" ( (type_descriptor "RtreeNode ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (pointer_expression "&pCur->aPoint->id" & (field_expression "pCur->aPoint->id" (field_expression "pCur->aPoint" identifier -> field_identifier) -> field_identifier))))) ;) }))) (expression_statement "iVar2 = nodeAcquire((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode);" (assignment_expression "iVar2 = nodeAcquire((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode)" identifier = (call_expression "nodeAcquire((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode)" identifier (argument_list "((Rtree *)(pCur->base).pVtab,\n                      (ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4),(RtreeNode *)pRC,\n                      ppNode)" ( (cast_expression "(Rtree *)(pCur->base).pVtab" ( (type_descriptor "Rtree *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pCur->base).pVtab" (parenthesized_expression "(pCur->base)" ( (field_expression "pCur->base" identifier -> field_identifier) )) . field_identifier)) , (call_expression "(ulonglong)((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "((int)pCur + (-(uint)pCur->bPoint + 0x11) * 4)" ( (binary_expression "(int)pCur + (-(uint)pCur->bPoint + 0x11) * 4" (cast_expression "(int)pCur" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(-(uint)pCur->bPoint + 0x11) * 4" (parenthesized_expression "(-(uint)pCur->bPoint + 0x11)" ( (binary_expression "-(uint)pCur->bPoint + 0x11" (unary_expression "-(uint)pCur->bPoint" - (cast_expression "(uint)pCur->bPoint" ( (type_descriptor "uint" type_identifier) ) (field_expression "pCur->bPoint" identifier -> field_identifier))) + number_literal) )) * number_literal)) ))) , (cast_expression "(RtreeNode *)pRC" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "*pRC = iVar2;" (assignment_expression "*pRC = iVar2" (pointer_expression "*pRC" * identifier) = identifier) ;) (return_statement "return *(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40);" return (pointer_expression "*(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40)" * (cast_expression "(RtreeNode **)((int)pCur + iVar3 * 4 + 0x40)" ( (type_descriptor "RtreeNode **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pCur + iVar3 * 4 + 0x40)" ( (binary_expression "(int)pCur + iVar3 * 4 + 0x40" (binary_expression "(int)pCur + iVar3 * 4" (cast_expression "(int)pCur" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) )))) ;) })))
(translation_unit "int FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}\n\n" (function_definition "int FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}" primitive_type (function_declarator "FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = -(uint)*(byte *)((int)param_1 + 5);" (assignment_expression "iVar1 = -(uint)*(byte *)((int)param_1 + 5)" identifier = (binary_expression "-(uint)*(byte *)((int)param_1 + 5)" (unary_expression "-(uint)" - (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)((int)param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }" if (parenthesized_expression "(param_1[iVar1 + 0x11] != 0)" ( (binary_expression "param_1[iVar1 + 0x11] != 0" (subscript_expression "param_1[iVar1 + 0x11]" identifier [ (binary_expression "iVar1 + 0x11" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n    return param_1[iVar1 + 0x11];\n  }" { (return_statement "return param_1[iVar1 + 0x11];" return (subscript_expression "param_1[iVar1 + 0x11]" identifier [ (binary_expression "iVar1 + 0x11" identifier + number_literal) ]) ;) })) (if_statement "if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }" { (expression_statement "uVar3 = param_1[0xd];" (assignment_expression "uVar3 = param_1[0xd]" identifier = (subscript_expression "param_1[0xd]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[0xc];" (assignment_expression "uVar2 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" else (compound_statement "{\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" { (expression_statement "uVar3 = *(undefined4 *)(param_1[8] + 0xc);" (assignment_expression "uVar3 = *(undefined4 *)(param_1[8] + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_1[8] + 0xc)" * (cast_expression "(undefined4 *)(param_1[8] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + 0xc)" ( (binary_expression "param_1[8] + 0xc" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1[8] + 8);" (assignment_expression "uVar2 = *(undefined4 *)(param_1[8] + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1[8] + 8)" * (cast_expression "(undefined4 *)(param_1[8] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + 8)" ( (binary_expression "param_1[8] + 8" (subscript_expression "param_1[8]" identifier [ number_literal ]) + number_literal) ))))) ;) }))) (expression_statement "uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);" (assignment_expression "uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" identifier = (call_expression "FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" identifier (argument_list "(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , identifier , number_literal , (binary_expression "param_1 + iVar1 + 0x11" (binary_expression "param_1 + iVar1" identifier + identifier) + number_literal) )))) ;) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return param_1[iVar1 + 0x11];" return (subscript_expression "param_1[iVar1 + 0x11]" identifier [ (binary_expression "iVar1 + 0x11" identifier + number_literal) ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression - (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) )) (compound_statement { (return_statement return (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT , IDENT , LIT , (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) ;) })))
(function_definition "int FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}" (primitive_type "int") (function_declarator "FUN_0012c0f8(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0012c0f8") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  iVar1 = -(uint)*(byte *)((int)param_1 + 5);\n  if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }\n  if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }\n  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);\n  *param_2 = uVar2;\n  return param_1[iVar1 + 0x11];\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "iVar1 = -(uint)*(byte *)((int)param_1 + 5);" (assignment_expression "iVar1 = -(uint)*(byte *)((int)param_1 + 5)" (identifier "iVar1") (= "=") (binary_expression "-(uint)*(byte *)((int)param_1 + 5)" (unary_expression "-(uint)" (- "-") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)((int)param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 5)" (( "(") (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")"))))) (; ";")) (if_statement "if (param_1[iVar1 + 0x11] != 0) {\n    return param_1[iVar1 + 0x11];\n  }" (if "if") (parenthesized_expression "(param_1[iVar1 + 0x11] != 0)" (( "(") (binary_expression "param_1[iVar1 + 0x11] != 0" (subscript_expression "param_1[iVar1 + 0x11]" (identifier "param_1") ([ "[") (binary_expression "iVar1 + 0x11" (identifier "iVar1") (+ "+") (number_literal "0x11")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1[iVar1 + 0x11];\n  }" ({ "{") (return_statement "return param_1[iVar1 + 0x11];" (return "return") (subscript_expression "param_1[iVar1 + 0x11]" (identifier "param_1") ([ "[") (binary_expression "iVar1 + 0x11" (identifier "iVar1") (+ "+") (number_literal "0x11")) (] "]")) (; ";")) (} "}"))) (if_statement "if (iVar1 == -1) {\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    uVar3 = param_1[0xd];\n    uVar2 = param_1[0xc];\n  }" ({ "{") (expression_statement "uVar3 = param_1[0xd];" (assignment_expression "uVar3 = param_1[0xd]" (identifier "uVar3") (= "=") (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[0xc];" (assignment_expression "uVar2 = param_1[0xc]" (identifier "uVar2") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" (else "else") (compound_statement "{\n    uVar3 = *(undefined4 *)(param_1[8] + 0xc);\n    uVar2 = *(undefined4 *)(param_1[8] + 8);\n  }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(param_1[8] + 0xc);" (assignment_expression "uVar3 = *(undefined4 *)(param_1[8] + 0xc)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_1[8] + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1[8] + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[8] + 0xc)" (( "(") (binary_expression "param_1[8] + 0xc" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1[8] + 8);" (assignment_expression "uVar2 = *(undefined4 *)(param_1[8] + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1[8] + 8)" (* "*") (cast_expression "(undefined4 *)(param_1[8] + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[8] + 8)" (( "(") (binary_expression "param_1[8] + 8" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (expression_statement "uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);" (assignment_expression "uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" (identifier "uVar2") (= "=") (call_expression "FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" (identifier "FUN_00129150") (argument_list "(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + iVar1 + 0x11" (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x11")) () ")")))) (; ";")) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return param_1[iVar1 + 0x11];" (return "return") (subscript_expression "param_1[iVar1 + 0x11]" (identifier "param_1") ([ "[") (binary_expression "iVar1 + 0x11" (identifier "iVar1") (+ "+") (number_literal "0x11")) (] "]")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (unary_expression argument: (parenthesized_expression (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier) (identifier) (number_literal) (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal)))))))

int MASKED(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  iVar1 = -(uint)*(byte *)((int)param_1 + 5);
  if (param_1[iVar1 + 0x11] != 0) {
    return param_1[iVar1 + 0x11];
  }
  if (iVar1 == -1) {
    uVar3 = param_1[0xd];
    uVar2 = param_1[0xc];
  }
  else {
    uVar3 = *(undefined4 *)(param_1[8] + 0xc);
    uVar2 = *(undefined4 *)(param_1[8] + 8);
  }
  uVar2 = FUN_00129150(*param_1,param_2,uVar2,uVar3,0,param_1 + iVar1 + 0x11);
  *param_2 = uVar2;
  return param_1[iVar1 + 0x11];
}

