
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3 findrelpos234(tree234 *t,void *e,cmpfn234 cmp,int relation,int *index)

{
  int iVar1;
  int iVar2;
  int iVar3;
  node234 *pnVar4;
  
  pnVar4 = t->root;
  if (pnVar4 != (node234_conflict *)0x0) {
    if (cmp == (cmpfn234)0x0) {
      cmp = t->cmp;
    }
    iVar3 = 0;
    if (e == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,
                    "findrelpos234");
    }
    do {
      iVar2 = 0;
      do {
        if ((pnVar4->elems[iVar2] == (void *)0x0) ||
           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;
        if (pnVar4->kids[iVar2] != (node234 *)0x0) {
          iVar3 = iVar3 + pnVar4->counts[iVar2];
        }
        if (iVar1 == 0) {
          if (relation != 0) {
            *(int *)relation = iVar3;
          }
          return pnVar4->elems[iVar2];
        }
        iVar2 = iVar2 + 1;
        iVar3 = iVar3 + 1;
      } while (iVar2 != 3);
      pnVar4 = pnVar4->kids[iVar2];
    } while (pnVar4 != (node234 *)0x0);
  }
  return (void *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar4 = *param_1;
  if (iVar4 != 0) {
    if (param_3 == (code *)0x0) {
      param_3 = (code *)param_1[1];
    }
    iVar3 = 0;
    if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,
                    "findrelpos234");
    }
    do {
      iVar2 = 0;
      do {
        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);
        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;
        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {
          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);
        }
        if (iVar1 == 0) {
          if (param_4 != (int *)0x0) {
            *param_4 = iVar3;
          }
          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);
        }
        iVar2 = iVar2 + 1;
        iVar3 = iVar3 + 1;
      } while (iVar2 != 3);
      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);
    } while (iVar4 != 0);
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015ff0
ADD EBX,0x4bcf7
SUB ESP,0x1c
MOV ESI,dword ptr [EAX]
MOV dword ptr [ESP + 0xc],EDX
TEST ESI,ESI
JZ 0x0007b0de
MOV EDI,ECX
TEST ECX,ECX
JZ 0x0007b10a
MOV ECX,dword ptr [ESP + 0xc]
XOR EBP,EBP
TEST ECX,ECX
JZ 0x0007b117
LEA ESI,[ESI]
XOR EBX,EBX
MOV EAX,dword ptr [ESI + EBX*0x4 + 0x24]
TEST EAX,EAX
JZ 0x0007b0d6
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL EDI
ADD ESP,0x10
TEST EAX,EAX
JS 0x0007b0d6
MOV EDX,dword ptr [ESI + EBX*0x4 + 0x4]
TEST EDX,EDX
JZ 0x0007b0c7
ADD EBP,dword ptr [ESI + EBX*0x4 + 0x14]
TEST EAX,EAX
JZ 0x0007b0f0
ADD EBX,0x1
ADD EBP,0x1
CMP EBX,0x3
JNZ 0x0007b0a2
MOV ESI,dword ptr [ESI + EBX*0x4 + 0x4]
TEST ESI,ESI
JNZ 0x0007b0a0
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x30]
TEST EAX,EAX
JZ 0x0007b0fe
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],EBP
MOV EAX,dword ptr [ESI + EBX*0x4 + 0x24]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [EAX + 0x4]
XOR EBP,EBP
TEST ECX,ECX
JNZ 0x0007b0a0
LEA EAX,[EBX + 0xfffd1630]
PUSH EAX
LEA EAX,[EBX + 0xfffd15f6]
PUSH 0x21b
PUSH EAX
LEA EAX,[EBX + 0xfffd1600]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)" identifier (parameter_list "(int *param_1,int param_2,code *param_3,int *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }" { (if_statement "if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }" if (parenthesized_expression "(param_3 == (code *)0x0)" ( (binary_expression "param_3 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3 = (code *)param_1[1];\n    }" { (expression_statement "param_3 = (code *)param_1[1];" (assignment_expression "param_3 = (code *)param_1[1]" identifier = (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" { comment (expression_statement "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");" (call_expression "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" identifier (argument_list "("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" ( (string_literal ""relation == REL234_LT || relation == REL234_GT"" " string_content ") , (string_literal ""tree234.c"" " string_content ") , number_literal , (string_literal ""findrelpos234"" " string_content ") ))) ;) })) (do_statement "do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);" do (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);" do (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 0x24 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24 + iVar2 * 4)" ( (binary_expression "iVar4 + 0x24 + iVar2 * 4" (binary_expression "iVar4 + 0x24" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;" if (parenthesized_expression "((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0))" ( (binary_expression "(iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)" ( (comma_expression "iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0" (assignment_expression "iVar1 = (*param_3)(param_2,iVar1)" identifier = (call_expression "(*param_3)(param_2,iVar1)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_2,iVar1)" ( identifier , identifier )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (if_statement "if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 4 + iVar2 * 4) != 0)" ( (binary_expression "*(int *)(iVar4 + 4 + iVar2 * 4) != 0" (pointer_expression "*(int *)(iVar4 + 4 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 4 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4 + iVar2 * 4)" ( (binary_expression "iVar4 + 4 + iVar2 * 4" (binary_expression "iVar4 + 4" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }" { (expression_statement "iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);" (assignment_expression "iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4)" identifier = (binary_expression "iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4)" identifier + (pointer_expression "*(int *)(iVar4 + 0x14 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 0x14 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14 + iVar2 * 4)" ( (binary_expression "iVar4 + 0x14 + iVar2 * 4" (binary_expression "iVar4 + 0x14" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))))) ;) })) (if_statement "if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }" { (if_statement "if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *param_4 = iVar3;\n          }" { (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (return_statement "return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);" return (pointer_expression "*(undefined4 *)(iVar4 + 0x24 + iVar2 * 4)" * (cast_expression "(undefined4 *)(iVar4 + 0x24 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24 + iVar2 * 4)" ( (binary_expression "iVar4 + 0x24 + iVar2 * 4" (binary_expression "iVar4 + 0x24" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 3)" ( (binary_expression "iVar2 != 3" identifier != number_literal) )) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);" (assignment_expression "iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + 4 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 4 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4 + iVar2 * 4)" ( (binary_expression "iVar4 + 4 + iVar2 * 4" (binary_expression "iVar4 + 4" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3 findrelpos234(tree234 *t,void *e,cmpfn234 cmp,int relation,int *index)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  node234 *pnVar4;\n  \n  pnVar4 = t->root;\n  if (pnVar4 != (node234_conflict *)0x0) {\n    if (cmp == (cmpfn234)0x0) {\n      cmp = t->cmp;\n    }\n    iVar3 = 0;\n    if (e == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    } while (pnVar4 != (node234 *)0x0);\n  }\n  return (void *)0x0;\n}\n\n" comment (function_definition "void * __regparm3 findrelpos234(tree234 *t,void *e,cmpfn234 cmp,int relation,int *index)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  node234 *pnVar4;\n  \n  pnVar4 = t->root;\n  if (pnVar4 != (node234_conflict *)0x0) {\n    if (cmp == (cmpfn234)0x0) {\n      cmp = t->cmp;\n    }\n    iVar3 = 0;\n    if (e == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    } while (pnVar4 != (node234 *)0x0);\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 findrelpos234(tree234 *t,void *e,cmpfn234 cmp,int relation,int *index)" * (ERROR "__regparm3" identifier) (function_declarator "findrelpos234(tree234 *t,void *e,cmpfn234 cmp,int relation,int *index)" identifier (parameter_list "(tree234 *t,void *e,cmpfn234 cmp,int relation,int *index)" ( (parameter_declaration "tree234 *t" type_identifier (pointer_declarator "*t" * identifier)) , (parameter_declaration "void *e" primitive_type (pointer_declarator "*e" * identifier)) , (parameter_declaration "cmpfn234 cmp" type_identifier identifier) , (parameter_declaration "int relation" primitive_type identifier) , (parameter_declaration "int *index" primitive_type (pointer_declarator "*index" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  node234 *pnVar4;\n  \n  pnVar4 = t->root;\n  if (pnVar4 != (node234_conflict *)0x0) {\n    if (cmp == (cmpfn234)0x0) {\n      cmp = t->cmp;\n    }\n    iVar3 = 0;\n    if (e == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    } while (pnVar4 != (node234 *)0x0);\n  }\n  return (void *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "node234 *pnVar4;" type_identifier (pointer_declarator "*pnVar4" * identifier) ;) (expression_statement "pnVar4 = t->root;" (assignment_expression "pnVar4 = t->root" identifier = (field_expression "t->root" identifier -> field_identifier)) ;) (if_statement "if (pnVar4 != (node234_conflict *)0x0) {\n    if (cmp == (cmpfn234)0x0) {\n      cmp = t->cmp;\n    }\n    iVar3 = 0;\n    if (e == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    } while (pnVar4 != (node234 *)0x0);\n  }" if (parenthesized_expression "(pnVar4 != (node234_conflict *)0x0)" ( (binary_expression "pnVar4 != (node234_conflict *)0x0" identifier != (cast_expression "(node234_conflict *)0x0" ( (type_descriptor "node234_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (cmp == (cmpfn234)0x0) {\n      cmp = t->cmp;\n    }\n    iVar3 = 0;\n    if (e == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    } while (pnVar4 != (node234 *)0x0);\n  }" { (if_statement "if (cmp == (cmpfn234)0x0) {\n      cmp = t->cmp;\n    }" if (parenthesized_expression "(cmp == (cmpfn234)0x0)" ( (binary_expression "cmp == (cmpfn234)0x0" identifier == (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal)) )) (compound_statement "{\n      cmp = t->cmp;\n    }" { (expression_statement "cmp = t->cmp;" (assignment_expression "cmp = t->cmp" identifier = (field_expression "t->cmp" identifier -> field_identifier)) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (e == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" if (parenthesized_expression "(e == (void *)0x0)" ( (binary_expression "e == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" { comment (expression_statement "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");" (call_expression "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" identifier (argument_list "("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" ( (string_literal ""relation == REL234_LT || relation == REL234_GT"" " string_content ") , (string_literal ""tree234.c"" " string_content ") , number_literal , (string_literal ""findrelpos234"" " string_content ") ))) ;) })) (do_statement "do {\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    } while (pnVar4 != (node234 *)0x0);" do (compound_statement "{\n      iVar2 = 0;\n      do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      pnVar4 = pnVar4->kids[iVar2];\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);" do (compound_statement "{\n        if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;\n        if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }\n        if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      }" { (if_statement "if ((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)) break;" if (parenthesized_expression "((pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0))" ( (binary_expression "(pnVar4->elems[iVar2] == (void *)0x0) ||\n           (iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)" (parenthesized_expression "(pnVar4->elems[iVar2] == (void *)0x0)" ( (binary_expression "pnVar4->elems[iVar2] == (void *)0x0" (subscript_expression "pnVar4->elems[iVar2]" (field_expression "pnVar4->elems" identifier -> field_identifier) [ identifier ]) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0)" ( (comma_expression "iVar1 = (*cmp)(e,pnVar4->elems[iVar2]), iVar1 < 0" (assignment_expression "iVar1 = (*cmp)(e,pnVar4->elems[iVar2])" identifier = (call_expression "(*cmp)(e,pnVar4->elems[iVar2])" (parenthesized_expression "(*cmp)" ( (pointer_expression "*cmp" * identifier) )) (argument_list "(e,pnVar4->elems[iVar2])" ( identifier , (subscript_expression "pnVar4->elems[iVar2]" (field_expression "pnVar4->elems" identifier -> field_identifier) [ identifier ]) )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (if_statement "if (pnVar4->kids[iVar2] != (node234 *)0x0) {\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }" if (parenthesized_expression "(pnVar4->kids[iVar2] != (node234 *)0x0)" ( (binary_expression "pnVar4->kids[iVar2] != (node234 *)0x0" (subscript_expression "pnVar4->kids[iVar2]" (field_expression "pnVar4->kids" identifier -> field_identifier) [ identifier ]) != (cast_expression "(node234 *)0x0" ( (type_descriptor "node234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar3 = iVar3 + pnVar4->counts[iVar2];\n        }" { (expression_statement "iVar3 = iVar3 + pnVar4->counts[iVar2];" (assignment_expression "iVar3 = iVar3 + pnVar4->counts[iVar2]" identifier = (binary_expression "iVar3 + pnVar4->counts[iVar2]" identifier + (subscript_expression "pnVar4->counts[iVar2]" (field_expression "pnVar4->counts" identifier -> field_identifier) [ identifier ]))) ;) })) (if_statement "if (iVar1 == 0) {\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (relation != 0) {\n            *(int *)relation = iVar3;\n          }\n          return pnVar4->elems[iVar2];\n        }" { (if_statement "if (relation != 0) {\n            *(int *)relation = iVar3;\n          }" if (parenthesized_expression "(relation != 0)" ( (binary_expression "relation != 0" identifier != number_literal) )) (compound_statement "{\n            *(int *)relation = iVar3;\n          }" { (expression_statement "*(int *)relation = iVar3;" (assignment_expression "*(int *)relation = iVar3" (pointer_expression "*(int *)relation" * (cast_expression "(int *)relation" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (return_statement "return pnVar4->elems[iVar2];" return (subscript_expression "pnVar4->elems[iVar2]" (field_expression "pnVar4->elems" identifier -> field_identifier) [ identifier ]) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 3)" ( (binary_expression "iVar2 != 3" identifier != number_literal) )) ;) (expression_statement "pnVar4 = pnVar4->kids[iVar2];" (assignment_expression "pnVar4 = pnVar4->kids[iVar2]" identifier = (subscript_expression "pnVar4->kids[iVar2]" (field_expression "pnVar4->kids" identifier -> field_identifier) [ identifier ])) ;) }) while (parenthesized_expression "(pnVar4 != (node234 *)0x0)" ( (binary_expression "pnVar4 != (node234 *)0x0" identifier != (cast_expression "(node234 *)0x0" ( (type_descriptor "node234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 __regparm3 FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)" identifier (parameter_list "(int *param_1,int param_2,code *param_3,int *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }" { (if_statement "if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }" if (parenthesized_expression "(param_3 == (code *)0x0)" ( (binary_expression "param_3 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3 = (code *)param_1[1];\n    }" { (expression_statement "param_3 = (code *)param_1[1];" (assignment_expression "param_3 = (code *)param_1[1]" identifier = (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" { (expression_statement "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");" (call_expression "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" identifier (argument_list "("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" ( (string_literal ""relation == REL234_LT || relation == REL234_GT"" " string_content ") , (string_literal ""tree234.c"" " string_content ") , number_literal , (string_literal ""findrelpos234"" " string_content ") ))) ;) })) (do_statement "do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);" do (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);" do (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + 0x24 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 0x24 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24 + iVar2 * 4)" ( (binary_expression "iVar4 + 0x24 + iVar2 * 4" (binary_expression "iVar4 + 0x24" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;" if (parenthesized_expression "((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0))" ( (binary_expression "(iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)" ( (comma_expression "iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0" (assignment_expression "iVar1 = (*param_3)(param_2,iVar1)" identifier = (call_expression "(*param_3)(param_2,iVar1)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_2,iVar1)" ( identifier , identifier )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (if_statement "if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }" if (parenthesized_expression "(*(int *)(iVar4 + 4 + iVar2 * 4) != 0)" ( (binary_expression "*(int *)(iVar4 + 4 + iVar2 * 4) != 0" (pointer_expression "*(int *)(iVar4 + 4 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 4 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4 + iVar2 * 4)" ( (binary_expression "iVar4 + 4 + iVar2 * 4" (binary_expression "iVar4 + 4" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }" { (expression_statement "iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);" (assignment_expression "iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4)" identifier = (binary_expression "iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4)" identifier + (pointer_expression "*(int *)(iVar4 + 0x14 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 0x14 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14 + iVar2 * 4)" ( (binary_expression "iVar4 + 0x14 + iVar2 * 4" (binary_expression "iVar4 + 0x14" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))))) ;) })) (if_statement "if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }" { (if_statement "if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *param_4 = iVar3;\n          }" { (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (return_statement "return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);" return (pointer_expression "*(undefined4 *)(iVar4 + 0x24 + iVar2 * 4)" * (cast_expression "(undefined4 *)(iVar4 + 0x24 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24 + iVar2 * 4)" ( (binary_expression "iVar4 + 0x24 + iVar2 * 4" (binary_expression "iVar4 + 0x24" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 3)" ( (binary_expression "iVar2 != 3" identifier != number_literal) )) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);" (assignment_expression "iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + 4 + iVar2 * 4)" * (cast_expression "(int *)(iVar4 + 4 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4 + iVar2 * 4)" ( (binary_expression "iVar4 + 4 + iVar2 * 4" (binary_expression "iVar4 + 4" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT < LIT)) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (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 != LIT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0007b070(int *param_1,int param_2,code *param_3,int *param_4)" (identifier "FUN_0007b070") (parameter_list "(int *param_1,int param_2,code *param_3,int *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "code *param_3" (type_identifier "code") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar4 != 0) {\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }\n    iVar3 = 0;\n    if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }\n    do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);\n  }" ({ "{") (if_statement "if (param_3 == (code *)0x0) {\n      param_3 = (code *)param_1[1];\n    }" (if "if") (parenthesized_expression "(param_3 == (code *)0x0)" (( "(") (binary_expression "param_3 == (code *)0x0" (identifier "param_3") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_3 = (code *)param_1[1];\n    }" ({ "{") (expression_statement "param_3 = (code *)param_1[1];" (assignment_expression "param_3 = (code *)param_1[1]" (identifier "param_3") (= "=") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}"))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 0) {\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");\n    }" ({ "{") (expression_statement "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234");" (call_expression "__assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" (identifier "__assert_fail") (argument_list "("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,\n                    "findrelpos234")" (( "(") (string_literal ""relation == REL234_LT || relation == REL234_GT"" (" """) (string_content "relation == REL234_LT || relation == REL234_GT") (" """)) (, ",") (string_literal ""tree234.c"" (" """) (string_content "tree234.c") (" """)) (, ",") (number_literal "0x21b") (, ",") (string_literal ""findrelpos234"" (" """) (string_content "findrelpos234") (" """)) () ")"))) (; ";")) (} "}"))) (do_statement "do {\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    } while (iVar4 != 0);" (do "do") (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);\n      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != 3);" (do "do") (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);\n        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;\n        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }\n        if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }\n        iVar2 = iVar2 + 1;\n        iVar3 = iVar3 + 1;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar4 + 0x24 + iVar2 * 4)" (* "*") (cast_expression "(int *)(iVar4 + 0x24 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x24 + iVar2 * 4)" (( "(") (binary_expression "iVar4 + 0x24 + iVar2 * 4" (binary_expression "iVar4 + 0x24" (identifier "iVar4") (+ "+") (number_literal "0x24")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;" (if "if") (parenthesized_expression "((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0))" (( "(") (binary_expression "(iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)" (( "(") (comma_expression "iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0" (assignment_expression "iVar1 = (*param_3)(param_2,iVar1)" (identifier "iVar1") (= "=") (call_expression "(*param_3)(param_2,iVar1)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_2,iVar1)" (( "(") (identifier "param_2") (, ",") (identifier "iVar1") () ")")))) (, ",") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 4 + iVar2 * 4) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + 4 + iVar2 * 4) != 0" (pointer_expression "*(int *)(iVar4 + 4 + iVar2 * 4)" (* "*") (cast_expression "(int *)(iVar4 + 4 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4 + iVar2 * 4)" (( "(") (binary_expression "iVar4 + 4 + iVar2 * 4" (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);\n        }" ({ "{") (expression_statement "iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);" (assignment_expression "iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4)" (identifier "iVar3") (= "=") (binary_expression "iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4)" (identifier "iVar3") (+ "+") (pointer_expression "*(int *)(iVar4 + 0x14 + iVar2 * 4)" (* "*") (cast_expression "(int *)(iVar4 + 0x14 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14 + iVar2 * 4)" (( "(") (binary_expression "iVar4 + 0x14 + iVar2 * 4" (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (} "}"))) (if_statement "if (iVar1 == 0) {\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }\n          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);\n        }" ({ "{") (if_statement "if (param_4 != (int *)0x0) {\n            *param_4 = iVar3;\n          }" (if "if") (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            *param_4 = iVar3;\n          }" ({ "{") (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (return_statement "return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);" (return "return") (pointer_expression "*(undefined4 *)(iVar4 + 0x24 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x24 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x24 + iVar2 * 4)" (( "(") (binary_expression "iVar4 + 0x24 + iVar2 * 4" (binary_expression "iVar4 + 0x24" (identifier "iVar4") (+ "+") (number_literal "0x24")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 3)" (( "(") (binary_expression "iVar2 != 3" (identifier "iVar2") (!= "!=") (number_literal "3")) () ")")) (; ";")) (expression_statement "iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);" (assignment_expression "iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar4 + 4 + iVar2 * 4)" (* "*") (cast_expression "(int *)(iVar4 + 4 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4 + iVar2 * 4)" (( "(") (binary_expression "iVar4 + 4 + iVar2 * 4" (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3 function_1(type_1 *t,void *var_3,type_2 var_2,int var_7,int *index)

{
  int var_5;
  int var_8;
  int var_6;
  type_3 *var_1;
  
  var_1 = t->root;
  if (var_1 != (type_4 *)0x0) {
    if (var_2 == (type_2)0x0) {
      var_2 = t->var_2;
    }
    var_6 = 0;
    if (var_3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_4("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,
                    "findrelpos234");
    }
    do {
      var_8 = 0;
      do {
        if ((var_1->elems[var_8] == (void *)0x0) ||
           (var_5 = (*var_2)(var_3,var_1->elems[var_8]), var_5 < 0)) break;
        if (var_1->kids[var_8] != (type_3 *)0x0) {
          var_6 = var_6 + var_1->counts[var_8];
        }
        if (var_5 == 0) {
          if (var_7 != 0) {
            *(int *)var_7 = var_6;
          }
          return var_1->elems[var_8];
        }
        var_8 = var_8 + 1;
        var_6 = var_6 + 1;
      } while (var_8 != 3);
      var_1 = var_1->kids[var_8];
    } while (var_1 != (type_3 *)0x0);
  }
  return (void *)0x0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 MASKED(int *param_1,int param_2,code *param_3,int *param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar4 = *param_1;
  if (iVar4 != 0) {
    if (param_3 == (code *)0x0) {
      param_3 = (code *)param_1[1];
    }
    iVar3 = 0;
    if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("relation == REL234_LT || relation == REL234_GT","tree234.c",0x21b,
                    "findrelpos234");
    }
    do {
      iVar2 = 0;
      do {
        iVar1 = *(int *)(iVar4 + 0x24 + iVar2 * 4);
        if ((iVar1 == 0) || (iVar1 = (*param_3)(param_2,iVar1), iVar1 < 0)) break;
        if (*(int *)(iVar4 + 4 + iVar2 * 4) != 0) {
          iVar3 = iVar3 + *(int *)(iVar4 + 0x14 + iVar2 * 4);
        }
        if (iVar1 == 0) {
          if (param_4 != (int *)0x0) {
            *param_4 = iVar3;
          }
          return *(undefined4 *)(iVar4 + 0x24 + iVar2 * 4);
        }
        iVar2 = iVar2 + 1;
        iVar3 = iVar3 + 1;
      } while (iVar2 != 3);
      iVar4 = *(int *)(iVar4 + 4 + iVar2 * 4);
    } while (iVar4 != 0);
  }
  return 0;
}

