
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* WARNING: Unknown calling convention */

int process_or(process_data *procdata)

{
  visitor *pvVar1;
  uint uVar2;
  visitor *pvVar3;
  
  pvVar1 = past_pat_inspector;
  pvVar3 = inspectors;
  if (past_pat_inspector == inspectors) {
    return 5;
  }
  do {
    uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);
    pvVar3 = pvVar3->next;
    if ((uVar2 & 5) == 0) break;
  } while (pvVar1 != pvVar3);
  if (uVar2 == 1) {
    return 4;
  }
  if ((uVar2 & 0xc) != 0) {
    return uVar2;
  }
  pvVar3 = past_pat_inspector;
  if (past_pat_inspector != (visitor *)0x0) {
    do {
      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);
      pvVar3 = pvVar3->next;
      if (pvVar3 == (visitor *)0x0) break;
    } while ((uVar2 & 1) != 0);
    if (uVar2 != 1) {
      return uVar2;
    }
  }
  return 2;
}



uint FUN_000140c0(undefined4 param_1)

{
  uint uVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int unaff_EBP;
  
  FUN_0001536e();
  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);
  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);
  if (puVar3 == puVar2) {
    return 5;
  }
  do {
    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);
    puVar2 = (undefined4 *)puVar2[2];
    if ((uVar1 & 5) == 0) break;
  } while (puVar3 != puVar2);
  if (uVar1 == 1) {
    return 4;
  }
  if ((uVar1 & 0xc) != 0) {
    return uVar1;
  }
  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);
  if (puVar3 != (undefined4 *)0x0) {
    do {
      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);
      puVar3 = (undefined4 *)puVar3[2];
      if (puVar3 == (undefined4 *)0x0) break;
    } while ((uVar1 & 1) != 0);
    if (uVar1 != 1) {
      return uVar1;
    }
  }
  return 2;
}


PUSH EBP
CALL 0x0001536e
ADD EBP,0x30d3e
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV EDI,dword ptr [EBP + 0x344]
MOV EBX,dword ptr [EBP + 0x34c]
MOV ESI,dword ptr [ESP + 0x20]
CMP EDI,EBX
JNZ 0x000140f4
JMP 0x00014168
CMP EDI,EBX
JZ 0x00014107
SUB ESP,0x8
PUSH dword ptr [EBX + 0x4]
PUSH ESI
CALL dword ptr [EBX]
MOV EBX,dword ptr [EBX + 0x8]
ADD ESP,0x10
TEST AL,0x5
JNZ 0x000140f0
CMP EAX,0x1
JZ 0x00014148
TEST AL,0xc
JNZ 0x0001413c
MOV EBX,dword ptr [EBP + 0x344]
TEST EBX,EBX
JNZ 0x00014124
JMP 0x00014158
TEST AL,0x1
JZ 0x00014137
SUB ESP,0x8
PUSH dword ptr [EBX + 0x4]
PUSH ESI
CALL dword ptr [EBX]
MOV EBX,dword ptr [EBX + 0x8]
ADD ESP,0x10
TEST EBX,EBX
JNZ 0x00014120
CMP EAX,0x1
JZ 0x00014158
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
MOV EAX,0x4
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
MOV EAX,0x2
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
MOV EAX,0x5
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "uint FUN_000140c0(undefined4 param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}\n\n" (function_definition "uint FUN_000140c0(undefined4 param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}" type_identifier (function_declarator "FUN_000140c0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (expression_statement "FUN_0001536e();" (call_expression "FUN_0001536e()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);" (assignment_expression "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP)" identifier = (pointer_expression "*(undefined4 **)(&DAT_00031082 + unaff_EBP)" * (cast_expression "(undefined4 **)(&DAT_00031082 + unaff_EBP)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00031082 + unaff_EBP)" ( (binary_expression "&DAT_00031082 + unaff_EBP" (pointer_expression "&DAT_00031082" & identifier) + identifier) ))))) ;) (expression_statement "puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);" (assignment_expression "puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP)" identifier = (pointer_expression "*(undefined4 **)(&DAT_0003108a + unaff_EBP)" * (cast_expression "(undefined4 **)(&DAT_0003108a + unaff_EBP)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003108a + unaff_EBP)" ( (binary_expression "&DAT_0003108a + unaff_EBP" (pointer_expression "&DAT_0003108a" & identifier) + identifier) ))))) ;) (if_statement "if (puVar3 == puVar2) {\n    return 5;\n  }" if (parenthesized_expression "(puVar3 == puVar2)" ( (binary_expression "puVar3 == puVar2" identifier == identifier) )) (compound_statement "{\n    return 5;\n  }" { (return_statement "return 5;" return number_literal ;) })) (do_statement "do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);" do (compound_statement "{\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  }" { (expression_statement "uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);" (assignment_expression "uVar1 = (*(code *)*puVar2)(param_1,puVar2[1])" identifier = (call_expression "(*(code *)*puVar2)(param_1,puVar2[1])" (parenthesized_expression "(*(code *)*puVar2)" ( (pointer_expression "*(code *)*puVar2" * (cast_expression "(code *)*puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) )) (argument_list "(param_1,puVar2[1])" ( identifier , (subscript_expression "puVar2[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2 = (undefined4 *)puVar2[2];" (assignment_expression "puVar2 = (undefined4 *)puVar2[2]" identifier = (cast_expression "(undefined4 *)puVar2[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar1 & 5) == 0) break;" if (parenthesized_expression "((uVar1 & 5) == 0)" ( (binary_expression "(uVar1 & 5) == 0" (parenthesized_expression "(uVar1 & 5)" ( (binary_expression "uVar1 & 5" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(puVar3 != puVar2)" ( (binary_expression "puVar3 != puVar2" identifier != identifier) )) ;) (if_statement "if (uVar1 == 1) {\n    return 4;\n  }" if (parenthesized_expression "(uVar1 == 1)" ( (binary_expression "uVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    return 4;\n  }" { (return_statement "return 4;" return number_literal ;) })) (if_statement "if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }" if (parenthesized_expression "((uVar1 & 0xc) != 0)" ( (binary_expression "(uVar1 & 0xc) != 0" (parenthesized_expression "(uVar1 & 0xc)" ( (binary_expression "uVar1 & 0xc" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);" (assignment_expression "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP)" identifier = (pointer_expression "*(undefined4 **)(&DAT_00031082 + unaff_EBP)" * (cast_expression "(undefined4 **)(&DAT_00031082 + unaff_EBP)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00031082 + unaff_EBP)" ( (binary_expression "&DAT_00031082 + unaff_EBP" (pointer_expression "&DAT_00031082" & identifier) + identifier) ))))) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }" { (do_statement "do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);" do (compound_statement "{\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    }" { (expression_statement "uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);" (assignment_expression "uVar1 = (*(code *)*puVar3)(param_1,puVar3[1])" identifier = (call_expression "(*(code *)*puVar3)(param_1,puVar3[1])" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(param_1,puVar3[1])" ( identifier , (subscript_expression "puVar3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar3 = (undefined4 *)puVar3[2];" (assignment_expression "puVar3 = (undefined4 *)puVar3[2]" identifier = (cast_expression "(undefined4 *)puVar3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) ;) (if_statement "if (uVar1 != 1) {\n      return uVar1;\n    }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) })) (return_statement "return 2;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n/* WARNING: Unknown calling convention */\n\nint process_or(process_data *procdata)\n\n{\n  visitor *pvVar1;\n  uint uVar2;\n  visitor *pvVar3;\n  \n  pvVar1 = past_pat_inspector;\n  pvVar3 = inspectors;\n  if (past_pat_inspector == inspectors) {\n    return 5;\n  }\n  do {\n    uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n    pvVar3 = pvVar3->next;\n    if ((uVar2 & 5) == 0) break;\n  } while (pvVar1 != pvVar3);\n  if (uVar2 == 1) {\n    return 4;\n  }\n  if ((uVar2 & 0xc) != 0) {\n    return uVar2;\n  }\n  pvVar3 = past_pat_inspector;\n  if (past_pat_inspector != (visitor *)0x0) {\n    do {\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    } while ((uVar2 & 1) != 0);\n    if (uVar2 != 1) {\n      return uVar2;\n    }\n  }\n  return 2;\n}\n\n" comment comment (function_definition "int process_or(process_data *procdata)\n\n{\n  visitor *pvVar1;\n  uint uVar2;\n  visitor *pvVar3;\n  \n  pvVar1 = past_pat_inspector;\n  pvVar3 = inspectors;\n  if (past_pat_inspector == inspectors) {\n    return 5;\n  }\n  do {\n    uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n    pvVar3 = pvVar3->next;\n    if ((uVar2 & 5) == 0) break;\n  } while (pvVar1 != pvVar3);\n  if (uVar2 == 1) {\n    return 4;\n  }\n  if ((uVar2 & 0xc) != 0) {\n    return uVar2;\n  }\n  pvVar3 = past_pat_inspector;\n  if (past_pat_inspector != (visitor *)0x0) {\n    do {\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    } while ((uVar2 & 1) != 0);\n    if (uVar2 != 1) {\n      return uVar2;\n    }\n  }\n  return 2;\n}" primitive_type (function_declarator "process_or(process_data *procdata)" identifier (parameter_list "(process_data *procdata)" ( (parameter_declaration "process_data *procdata" type_identifier (pointer_declarator "*procdata" * identifier)) ))) (compound_statement "{\n  visitor *pvVar1;\n  uint uVar2;\n  visitor *pvVar3;\n  \n  pvVar1 = past_pat_inspector;\n  pvVar3 = inspectors;\n  if (past_pat_inspector == inspectors) {\n    return 5;\n  }\n  do {\n    uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n    pvVar3 = pvVar3->next;\n    if ((uVar2 & 5) == 0) break;\n  } while (pvVar1 != pvVar3);\n  if (uVar2 == 1) {\n    return 4;\n  }\n  if ((uVar2 & 0xc) != 0) {\n    return uVar2;\n  }\n  pvVar3 = past_pat_inspector;\n  if (past_pat_inspector != (visitor *)0x0) {\n    do {\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    } while ((uVar2 & 1) != 0);\n    if (uVar2 != 1) {\n      return uVar2;\n    }\n  }\n  return 2;\n}" { (declaration "visitor *pvVar1;" type_identifier (pointer_declarator "*pvVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "visitor *pvVar3;" type_identifier (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "pvVar1 = past_pat_inspector;" (assignment_expression "pvVar1 = past_pat_inspector" identifier = identifier) ;) (expression_statement "pvVar3 = inspectors;" (assignment_expression "pvVar3 = inspectors" identifier = identifier) ;) (if_statement "if (past_pat_inspector == inspectors) {\n    return 5;\n  }" if (parenthesized_expression "(past_pat_inspector == inspectors)" ( (binary_expression "past_pat_inspector == inspectors" identifier == identifier) )) (compound_statement "{\n    return 5;\n  }" { (return_statement "return 5;" return number_literal ;) })) (do_statement "do {\n    uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n    pvVar3 = pvVar3->next;\n    if ((uVar2 & 5) == 0) break;\n  } while (pvVar1 != pvVar3);" do (compound_statement "{\n    uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n    pvVar3 = pvVar3->next;\n    if ((uVar2 & 5) == 0) break;\n  }" { (expression_statement "uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);" (assignment_expression "uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context)" identifier = (call_expression "(*pvVar3->inspector)(procdata,pvVar3->context)" (parenthesized_expression "(*pvVar3->inspector)" ( (pointer_expression "*pvVar3->inspector" * (field_expression "pvVar3->inspector" identifier -> field_identifier)) )) (argument_list "(procdata,pvVar3->context)" ( identifier , (field_expression "pvVar3->context" identifier -> field_identifier) )))) ;) (expression_statement "pvVar3 = pvVar3->next;" (assignment_expression "pvVar3 = pvVar3->next" identifier = (field_expression "pvVar3->next" identifier -> field_identifier)) ;) (if_statement "if ((uVar2 & 5) == 0) break;" if (parenthesized_expression "((uVar2 & 5) == 0)" ( (binary_expression "(uVar2 & 5) == 0" (parenthesized_expression "(uVar2 & 5)" ( (binary_expression "uVar2 & 5" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(pvVar1 != pvVar3)" ( (binary_expression "pvVar1 != pvVar3" identifier != identifier) )) ;) (if_statement "if (uVar2 == 1) {\n    return 4;\n  }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    return 4;\n  }" { (return_statement "return 4;" return number_literal ;) })) (if_statement "if ((uVar2 & 0xc) != 0) {\n    return uVar2;\n  }" if (parenthesized_expression "((uVar2 & 0xc) != 0)" ( (binary_expression "(uVar2 & 0xc) != 0" (parenthesized_expression "(uVar2 & 0xc)" ( (binary_expression "uVar2 & 0xc" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "pvVar3 = past_pat_inspector;" (assignment_expression "pvVar3 = past_pat_inspector" identifier = identifier) ;) (if_statement "if (past_pat_inspector != (visitor *)0x0) {\n    do {\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    } while ((uVar2 & 1) != 0);\n    if (uVar2 != 1) {\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(past_pat_inspector != (visitor *)0x0)" ( (binary_expression "past_pat_inspector != (visitor *)0x0" identifier != (cast_expression "(visitor *)0x0" ( (type_descriptor "visitor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    } while ((uVar2 & 1) != 0);\n    if (uVar2 != 1) {\n      return uVar2;\n    }\n  }" { (do_statement "do {\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    } while ((uVar2 & 1) != 0);" do (compound_statement "{\n      uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);\n      pvVar3 = pvVar3->next;\n      if (pvVar3 == (visitor *)0x0) break;\n    }" { (expression_statement "uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context);" (assignment_expression "uVar2 = (*pvVar3->inspector)(procdata,pvVar3->context)" identifier = (call_expression "(*pvVar3->inspector)(procdata,pvVar3->context)" (parenthesized_expression "(*pvVar3->inspector)" ( (pointer_expression "*pvVar3->inspector" * (field_expression "pvVar3->inspector" identifier -> field_identifier)) )) (argument_list "(procdata,pvVar3->context)" ( identifier , (field_expression "pvVar3->context" identifier -> field_identifier) )))) ;) (expression_statement "pvVar3 = pvVar3->next;" (assignment_expression "pvVar3 = pvVar3->next" identifier = (field_expression "pvVar3->next" identifier -> field_identifier)) ;) (if_statement "if (pvVar3 == (visitor *)0x0) break;" if (parenthesized_expression "(pvVar3 == (visitor *)0x0)" ( (binary_expression "pvVar3 == (visitor *)0x0" identifier == (cast_expression "(visitor *)0x0" ( (type_descriptor "visitor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) )) ;) (if_statement "if (uVar2 != 1) {\n      return uVar2;\n    }" if (parenthesized_expression "(uVar2 != 1)" ( (binary_expression "uVar2 != 1" identifier != number_literal) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 2;" return number_literal ;) })))
(translation_unit "uint FUN_000140c0(undefined4 param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}\n\n" (function_definition "uint FUN_000140c0(undefined4 param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}" type_identifier (function_declarator "FUN_000140c0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (expression_statement "FUN_0001536e();" (call_expression "FUN_0001536e()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);" (assignment_expression "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP)" identifier = (pointer_expression "*(undefined4 **)(&DAT_00031082 + unaff_EBP)" * (cast_expression "(undefined4 **)(&DAT_00031082 + unaff_EBP)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00031082 + unaff_EBP)" ( (binary_expression "&DAT_00031082 + unaff_EBP" (pointer_expression "&DAT_00031082" & identifier) + identifier) ))))) ;) (expression_statement "puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);" (assignment_expression "puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP)" identifier = (pointer_expression "*(undefined4 **)(&DAT_0003108a + unaff_EBP)" * (cast_expression "(undefined4 **)(&DAT_0003108a + unaff_EBP)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003108a + unaff_EBP)" ( (binary_expression "&DAT_0003108a + unaff_EBP" (pointer_expression "&DAT_0003108a" & identifier) + identifier) ))))) ;) (if_statement "if (puVar3 == puVar2) {\n    return 5;\n  }" if (parenthesized_expression "(puVar3 == puVar2)" ( (binary_expression "puVar3 == puVar2" identifier == identifier) )) (compound_statement "{\n    return 5;\n  }" { (return_statement "return 5;" return number_literal ;) })) (do_statement "do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);" do (compound_statement "{\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  }" { (expression_statement "uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);" (assignment_expression "uVar1 = (*(code *)*puVar2)(param_1,puVar2[1])" identifier = (call_expression "(*(code *)*puVar2)(param_1,puVar2[1])" (parenthesized_expression "(*(code *)*puVar2)" ( (pointer_expression "*(code *)*puVar2" * (cast_expression "(code *)*puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) )) (argument_list "(param_1,puVar2[1])" ( identifier , (subscript_expression "puVar2[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2 = (undefined4 *)puVar2[2];" (assignment_expression "puVar2 = (undefined4 *)puVar2[2]" identifier = (cast_expression "(undefined4 *)puVar2[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar1 & 5) == 0) break;" if (parenthesized_expression "((uVar1 & 5) == 0)" ( (binary_expression "(uVar1 & 5) == 0" (parenthesized_expression "(uVar1 & 5)" ( (binary_expression "uVar1 & 5" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(puVar3 != puVar2)" ( (binary_expression "puVar3 != puVar2" identifier != identifier) )) ;) (if_statement "if (uVar1 == 1) {\n    return 4;\n  }" if (parenthesized_expression "(uVar1 == 1)" ( (binary_expression "uVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    return 4;\n  }" { (return_statement "return 4;" return number_literal ;) })) (if_statement "if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }" if (parenthesized_expression "((uVar1 & 0xc) != 0)" ( (binary_expression "(uVar1 & 0xc) != 0" (parenthesized_expression "(uVar1 & 0xc)" ( (binary_expression "uVar1 & 0xc" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);" (assignment_expression "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP)" identifier = (pointer_expression "*(undefined4 **)(&DAT_00031082 + unaff_EBP)" * (cast_expression "(undefined4 **)(&DAT_00031082 + unaff_EBP)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00031082 + unaff_EBP)" ( (binary_expression "&DAT_00031082 + unaff_EBP" (pointer_expression "&DAT_00031082" & identifier) + identifier) ))))) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }" { (do_statement "do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);" do (compound_statement "{\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    }" { (expression_statement "uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);" (assignment_expression "uVar1 = (*(code *)*puVar3)(param_1,puVar3[1])" identifier = (call_expression "(*(code *)*puVar3)(param_1,puVar3[1])" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(param_1,puVar3[1])" ( identifier , (subscript_expression "puVar3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar3 = (undefined4 *)puVar3[2];" (assignment_expression "puVar3 = (undefined4 *)puVar3[2]" identifier = (cast_expression "(undefined4 *)puVar3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) ;) (if_statement "if (uVar1 != 1) {\n      return uVar1;\n    }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) })) (return_statement "return 2;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_000140c0(undefined4 param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}" (type_identifier "uint") (function_declarator "FUN_000140c0(undefined4 param_1)" (identifier "FUN_000140c0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int unaff_EBP;\n  \n  FUN_0001536e();\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);\n  if (puVar3 == puVar2) {\n    return 5;\n  }\n  do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);\n  if (uVar1 == 1) {\n    return 4;\n  }\n  if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }\n  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);\n  if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }\n  return 2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (expression_statement "FUN_0001536e();" (call_expression "FUN_0001536e()" (identifier "FUN_0001536e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);" (assignment_expression "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(&DAT_00031082 + unaff_EBP)" (* "*") (cast_expression "(undefined4 **)(&DAT_00031082 + unaff_EBP)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_00031082 + unaff_EBP)" (( "(") (binary_expression "&DAT_00031082 + unaff_EBP" (pointer_expression "&DAT_00031082" (& "&") (identifier "DAT_00031082")) (+ "+") (identifier "unaff_EBP")) () ")"))))) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);" (assignment_expression "puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(&DAT_0003108a + unaff_EBP)" (* "*") (cast_expression "(undefined4 **)(&DAT_0003108a + unaff_EBP)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_0003108a + unaff_EBP)" (( "(") (binary_expression "&DAT_0003108a + unaff_EBP" (pointer_expression "&DAT_0003108a" (& "&") (identifier "DAT_0003108a")) (+ "+") (identifier "unaff_EBP")) () ")"))))) (; ";")) (if_statement "if (puVar3 == puVar2) {\n    return 5;\n  }" (if "if") (parenthesized_expression "(puVar3 == puVar2)" (( "(") (binary_expression "puVar3 == puVar2" (identifier "puVar3") (== "==") (identifier "puVar2")) () ")")) (compound_statement "{\n    return 5;\n  }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (do_statement "do {\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  } while (puVar3 != puVar2);" (do "do") (compound_statement "{\n    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);\n    puVar2 = (undefined4 *)puVar2[2];\n    if ((uVar1 & 5) == 0) break;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);" (assignment_expression "uVar1 = (*(code *)*puVar2)(param_1,puVar2[1])" (identifier "uVar1") (= "=") (call_expression "(*(code *)*puVar2)(param_1,puVar2[1])" (parenthesized_expression "(*(code *)*puVar2)" (( "(") (pointer_expression "*(code *)*puVar2" (* "*") (cast_expression "(code *)*puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) () ")")) (argument_list "(param_1,puVar2[1])" (( "(") (identifier "param_1") (, ",") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)puVar2[2];" (assignment_expression "puVar2 = (undefined4 *)puVar2[2]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)puVar2[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((uVar1 & 5) == 0) break;" (if "if") (parenthesized_expression "((uVar1 & 5) == 0)" (( "(") (binary_expression "(uVar1 & 5) == 0" (parenthesized_expression "(uVar1 & 5)" (( "(") (binary_expression "uVar1 & 5" (identifier "uVar1") (& "&") (number_literal "5")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(puVar3 != puVar2)" (( "(") (binary_expression "puVar3 != puVar2" (identifier "puVar3") (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (if_statement "if (uVar1 == 1) {\n    return 4;\n  }" (if "if") (parenthesized_expression "(uVar1 == 1)" (( "(") (binary_expression "uVar1 == 1" (identifier "uVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    return 4;\n  }" ({ "{") (return_statement "return 4;" (return "return") (number_literal "4") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0xc) != 0) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0xc) != 0)" (( "(") (binary_expression "(uVar1 & 0xc) != 0" (parenthesized_expression "(uVar1 & 0xc)" (( "(") (binary_expression "uVar1 & 0xc" (identifier "uVar1") (& "&") (number_literal "0xc")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);" (assignment_expression "puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(&DAT_00031082 + unaff_EBP)" (* "*") (cast_expression "(undefined4 **)(&DAT_00031082 + unaff_EBP)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_00031082 + unaff_EBP)" (( "(") (binary_expression "&DAT_00031082 + unaff_EBP" (pointer_expression "&DAT_00031082" (& "&") (identifier "DAT_00031082")) (+ "+") (identifier "unaff_EBP")) () ")"))))) (; ";")) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);\n    if (uVar1 != 1) {\n      return uVar1;\n    }\n  }" ({ "{") (do_statement "do {\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    } while ((uVar1 & 1) != 0);" (do "do") (compound_statement "{\n      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);\n      puVar3 = (undefined4 *)puVar3[2];\n      if (puVar3 == (undefined4 *)0x0) break;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);" (assignment_expression "uVar1 = (*(code *)*puVar3)(param_1,puVar3[1])" (identifier "uVar1") (= "=") (call_expression "(*(code *)*puVar3)(param_1,puVar3[1])" (parenthesized_expression "(*(code *)*puVar3)" (( "(") (pointer_expression "*(code *)*puVar3" (* "*") (cast_expression "(code *)*puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) () ")")) (argument_list "(param_1,puVar3[1])" (( "(") (identifier "param_1") (, ",") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)puVar3[2];" (assignment_expression "puVar3 = (undefined4 *)puVar3[2]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)puVar3[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) break;" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if (uVar1 != 1) {\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(uVar1 != 1)" (( "(") (binary_expression "uVar1 != 1" (identifier "uVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      return uVar1;\n    }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* WARNING: Unknown calling convention */

int function_1(type_1 *procdata)

{
  type_2 *var_4;
  type_3 var_3;
  type_2 *var_5;
  
  var_4 = var_1;
  var_5 = var_2;
  if (var_1 == var_2) {
    return 5;
  }
  do {
    var_3 = (*var_5->inspector)(procdata,var_5->context);
    var_5 = var_5->next;
    if ((var_3 & 5) == 0) break;
  } while (var_4 != var_5);
  if (var_3 == 1) {
    return 4;
  }
  if ((var_3 & 0xc) != 0) {
    return var_3;
  }
  var_5 = var_1;
  if (var_1 != (type_2 *)0x0) {
    do {
      var_3 = (*var_5->inspector)(procdata,var_5->context);
      var_5 = var_5->next;
      if (var_5 == (type_2 *)0x0) break;
    } while ((var_3 & 1) != 0);
    if (var_3 != 1) {
      return var_3;
    }
  }
  return 2;
}


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

uint MASKED(undefined4 param_1)

{
  uint uVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int unaff_EBP;
  
  FUN_0001536e();
  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);
  puVar2 = *(undefined4 **)(&DAT_0003108a + unaff_EBP);
  if (puVar3 == puVar2) {
    return 5;
  }
  do {
    uVar1 = (*(code *)*puVar2)(param_1,puVar2[1]);
    puVar2 = (undefined4 *)puVar2[2];
    if ((uVar1 & 5) == 0) break;
  } while (puVar3 != puVar2);
  if (uVar1 == 1) {
    return 4;
  }
  if ((uVar1 & 0xc) != 0) {
    return uVar1;
  }
  puVar3 = *(undefined4 **)(&DAT_00031082 + unaff_EBP);
  if (puVar3 != (undefined4 *)0x0) {
    do {
      uVar1 = (*(code *)*puVar3)(param_1,puVar3[1]);
      puVar3 = (undefined4 *)puVar3[2];
      if (puVar3 == (undefined4 *)0x0) break;
    } while ((uVar1 & 1) != 0);
    if (uVar1 != 1) {
      return uVar1;
    }
  }
  return 2;
}

