
int __dynamic_cast(int *param_1,undefined4 param_2,int *param_3,int param_4)

{
  int *piVar1;
  uint uVar2;
  int *piVar3;
  int local_30;
  uint local_2c;
  uint local_28;
  uint local_24;
  undefined4 local_20;
  
  piVar1 = *(int **)(*param_1 + -4);
  local_30 = 0;
  local_2c = 0;
  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);
  local_28 = 0;
  local_24 = 0;
  local_20 = 0x10;
  if ((*(int **)(*piVar3 + -4) == piVar1) &&
     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),
     local_30 != 0)) {
    if ((local_24 & 6) == 6) {
      return local_30;
    }
    if ((local_2c & local_28 & 6) == 6) {
      return local_30;
    }
    if (((local_28 & 5) != 4) && (local_24 == 0)) {
      if (param_4 < 0) {
        if ((param_4 != -2) &&
           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),
           (uVar2 & 6) == 6)) {
          return local_30;
        }
      }
      else if (param_1 == (int *)(param_4 + local_30)) {
        return local_30;
      }
    }
  }
  return 0;
}



int FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)

{
  int *piVar1;
  uint uVar2;
  int *piVar3;
  int local_30;
  uint local_2c;
  uint local_28;
  uint local_24;
  undefined4 local_20;
  
  piVar1 = *(int **)(*param_1 + -4);
  local_30 = 0;
  local_2c = 0;
  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);
  local_28 = 0;
  local_24 = 0;
  local_20 = 0x10;
  if ((*(int **)(*piVar3 + -4) == piVar1) &&
     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),
     local_30 != 0)) {
    if ((local_24 & 6) == 6) {
      return local_30;
    }
    if ((local_2c & local_28 & 6) == 6) {
      return local_30;
    }
    if (((local_28 & 5) != 4) && (local_24 == 0)) {
      if (param_4 < 0) {
        if ((param_4 != -2) &&
           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),
           (uVar2 & 6) == 6)) {
          return local_30;
        }
      }
      else if (param_1 == (int *)(param_4 + local_30)) {
        return local_30;
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV EBX,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x4c]
MOV EAX,dword ptr [EBX]
MOV EDX,dword ptr [EAX + -0x8]
MOV EAX,dword ptr [EAX + -0x4]
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x10],0x0
ADD EDX,EBX
MOV dword ptr [ESP + 0x14],0x0
MOV ECX,dword ptr [EDX]
MOV dword ptr [ESP + 0x18],0x0
MOV dword ptr [ESP + 0x1c],0x10
CMP dword ptr [ECX + -0x4],EAX
JNZ 0x002903a8
MOV ECX,dword ptr [EAX]
LEA EDI,[ESP + 0xc]
PUSH EDI
PUSH EBX
PUSH dword ptr [ESP + 0x4c]
PUSH EDX
PUSH dword ptr [ESP + 0x58]
PUSH 0x6
PUSH ESI
PUSH EAX
CALL dword ptr [ECX + 0x1c]
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x20
MOV EAX,EDX
TEST EDX,EDX
JZ 0x002903a8
MOV EDI,dword ptr [ESP + 0x18]
MOV ECX,EDI
AND ECX,0x6
CMP ECX,0x6
JZ 0x002903aa
MOV ECX,dword ptr [ESP + 0x14]
MOV EBP,dword ptr [ESP + 0x10]
AND EBP,ECX
AND EBP,0x6
CMP EBP,0x6
JZ 0x002903aa
AND ECX,0x5
CMP ECX,0x4
JZ 0x002903a8
TEST EDI,EDI
JNZ 0x002903a8
TEST ESI,ESI
JS 0x002903b8
ADD ESI,EDX
CMP EBX,ESI
JZ 0x002903e3
LEA ESI,[ESI]
NOP
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP ESI,-0x2
JZ 0x002903a8
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [EAX]
PUSH EBX
PUSH dword ptr [ESP + 0x54]
PUSH EDX
PUSH ESI
PUSH dword ptr [ESP + 0x64]
CALL dword ptr [EAX + 0x20]
AND EAX,0x6
ADD ESP,0x20
CMP EAX,0x6
JNZ 0x002903a8
MOV EDX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
MOV EAX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int *param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(*param_1 + -4);" (assignment_expression "piVar1 = *(int **)(*param_1 + -4)" identifier = (pointer_expression "*(int **)(*param_1 + -4)" * (cast_expression "(int **)(*param_1 + -4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + -4)" ( (binary_expression "*param_1 + -4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);" (assignment_expression "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1)" identifier = (cast_expression "(int *)(*(int *)(*param_1 + -8) + (int)param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_1 + -8) + (int)param_1)" ( (binary_expression "*(int *)(*param_1 + -8) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -8)" * (cast_expression "(int *)(*param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0x10;" (assignment_expression "local_20 = 0x10" identifier = number_literal) ;) (if_statement "if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" if (parenthesized_expression "((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0))" ( (binary_expression "(*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" (parenthesized_expression "(*(int **)(*piVar3 + -4) == piVar1)" ( (binary_expression "*(int **)(*piVar3 + -4) == piVar1" (pointer_expression "*(int **)(*piVar3 + -4)" * (cast_expression "(int **)(*piVar3 + -4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) == identifier) )) && (parenthesized_expression "((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" ( (comma_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" ( (pointer_expression "**(code **)(*piVar1 + 0x1c)" * (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" ( identifier , identifier , number_literal , identifier , identifier , identifier , identifier , (pointer_expression "&local_30" & identifier) ))) , (binary_expression "local_30 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" { (if_statement "if ((local_24 & 6) == 6) {\n      return local_30;\n    }" if (parenthesized_expression "((local_24 & 6) == 6)" ( (binary_expression "(local_24 & 6) == 6" (parenthesized_expression "(local_24 & 6)" ( (binary_expression "local_24 & 6" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      return local_30;\n    }" { (return_statement "return local_30;" return identifier ;) })) (if_statement "if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }" if (parenthesized_expression "((local_2c & local_28 & 6) == 6)" ( (binary_expression "(local_2c & local_28 & 6) == 6" (parenthesized_expression "(local_2c & local_28 & 6)" ( (binary_expression "local_2c & local_28 & 6" (binary_expression "local_2c & local_28" identifier & identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return local_30;\n    }" { (return_statement "return local_30;" return identifier ;) })) (if_statement "if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" if (parenthesized_expression "(((local_28 & 5) != 4) && (local_24 == 0))" ( (binary_expression "((local_28 & 5) != 4) && (local_24 == 0)" (parenthesized_expression "((local_28 & 5) != 4)" ( (binary_expression "(local_28 & 5) != 4" (parenthesized_expression "(local_28 & 5)" ( (binary_expression "local_28 & 5" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" { (if_statement "if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }" { (if_statement "if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }" if (parenthesized_expression "((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6))" ( (binary_expression "(param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" (parenthesized_expression "(param_4 != -2)" ( (binary_expression "param_4 != -2" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" ( (comma_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6" (assignment_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" identifier = (call_expression "(**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" (parenthesized_expression "(**(code **)(*param_3 + 0x20))" ( (pointer_expression "**(code **)(*param_3 + 0x20)" * (pointer_expression "*(code **)(*param_3 + 0x20)" * (cast_expression "(code **)(*param_3 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 0x20)" ( (binary_expression "*param_3 + 0x20" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_3,param_4,local_30,param_2,param_1)" ( identifier , identifier , identifier , identifier , identifier )))) , (binary_expression "(uVar2 & 6) == 6" (parenthesized_expression "(uVar2 & 6)" ( (binary_expression "uVar2 & 6" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n          return local_30;\n        }" { (return_statement "return local_30;" return identifier ;) })) }) (else_clause "else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" else (if_statement "if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" if (parenthesized_expression "(param_1 == (int *)(param_4 + local_30))" ( (binary_expression "param_1 == (int *)(param_4 + local_30)" identifier == (cast_expression "(int *)(param_4 + local_30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + local_30)" ( (binary_expression "param_4 + local_30" identifier + identifier) )))) )) (compound_statement "{\n        return local_30;\n      }" { (return_statement "return local_30;" return identifier ;) })))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __dynamic_cast(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __dynamic_cast(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "__dynamic_cast(int *param_1,undefined4 param_2,int *param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int *param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(*param_1 + -4);" (assignment_expression "piVar1 = *(int **)(*param_1 + -4)" identifier = (pointer_expression "*(int **)(*param_1 + -4)" * (cast_expression "(int **)(*param_1 + -4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + -4)" ( (binary_expression "*param_1 + -4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);" (assignment_expression "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1)" identifier = (cast_expression "(int *)(*(int *)(*param_1 + -8) + (int)param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_1 + -8) + (int)param_1)" ( (binary_expression "*(int *)(*param_1 + -8) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -8)" * (cast_expression "(int *)(*param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0x10;" (assignment_expression "local_20 = 0x10" identifier = number_literal) ;) (if_statement "if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" if (parenthesized_expression "((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0))" ( (binary_expression "(*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" (parenthesized_expression "(*(int **)(*piVar3 + -4) == piVar1)" ( (binary_expression "*(int **)(*piVar3 + -4) == piVar1" (pointer_expression "*(int **)(*piVar3 + -4)" * (cast_expression "(int **)(*piVar3 + -4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) == identifier) )) && (parenthesized_expression "((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" ( (comma_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" ( (pointer_expression "**(code **)(*piVar1 + 0x1c)" * (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" ( identifier , identifier , number_literal , identifier , identifier , identifier , identifier , (pointer_expression "&local_30" & identifier) ))) , (binary_expression "local_30 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" { (if_statement "if ((local_24 & 6) == 6) {\n      return local_30;\n    }" if (parenthesized_expression "((local_24 & 6) == 6)" ( (binary_expression "(local_24 & 6) == 6" (parenthesized_expression "(local_24 & 6)" ( (binary_expression "local_24 & 6" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      return local_30;\n    }" { (return_statement "return local_30;" return identifier ;) })) (if_statement "if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }" if (parenthesized_expression "((local_2c & local_28 & 6) == 6)" ( (binary_expression "(local_2c & local_28 & 6) == 6" (parenthesized_expression "(local_2c & local_28 & 6)" ( (binary_expression "local_2c & local_28 & 6" (binary_expression "local_2c & local_28" identifier & identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return local_30;\n    }" { (return_statement "return local_30;" return identifier ;) })) (if_statement "if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" if (parenthesized_expression "(((local_28 & 5) != 4) && (local_24 == 0))" ( (binary_expression "((local_28 & 5) != 4) && (local_24 == 0)" (parenthesized_expression "((local_28 & 5) != 4)" ( (binary_expression "(local_28 & 5) != 4" (parenthesized_expression "(local_28 & 5)" ( (binary_expression "local_28 & 5" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" { (if_statement "if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }" { (if_statement "if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }" if (parenthesized_expression "((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6))" ( (binary_expression "(param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" (parenthesized_expression "(param_4 != -2)" ( (binary_expression "param_4 != -2" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" ( (comma_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6" (assignment_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" identifier = (call_expression "(**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" (parenthesized_expression "(**(code **)(*param_3 + 0x20))" ( (pointer_expression "**(code **)(*param_3 + 0x20)" * (pointer_expression "*(code **)(*param_3 + 0x20)" * (cast_expression "(code **)(*param_3 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 0x20)" ( (binary_expression "*param_3 + 0x20" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_3,param_4,local_30,param_2,param_1)" ( identifier , identifier , identifier , identifier , identifier )))) , (binary_expression "(uVar2 & 6) == 6" (parenthesized_expression "(uVar2 & 6)" ( (binary_expression "uVar2 & 6" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n          return local_30;\n        }" { (return_statement "return local_30;" return identifier ;) })) }) (else_clause "else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" else (if_statement "if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" if (parenthesized_expression "(param_1 == (int *)(param_4 + local_30))" ( (binary_expression "param_1 == (int *)(param_4 + local_30)" identifier == (cast_expression "(int *)(param_4 + local_30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + local_30)" ( (binary_expression "param_4 + local_30" identifier + identifier) )))) )) (compound_statement "{\n        return local_30;\n      }" { (return_statement "return local_30;" return identifier ;) })))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int *param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(*param_1 + -4);" (assignment_expression "piVar1 = *(int **)(*param_1 + -4)" identifier = (pointer_expression "*(int **)(*param_1 + -4)" * (cast_expression "(int **)(*param_1 + -4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + -4)" ( (binary_expression "*param_1 + -4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);" (assignment_expression "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1)" identifier = (cast_expression "(int *)(*(int *)(*param_1 + -8) + (int)param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_1 + -8) + (int)param_1)" ( (binary_expression "*(int *)(*param_1 + -8) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -8)" * (cast_expression "(int *)(*param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0x10;" (assignment_expression "local_20 = 0x10" identifier = number_literal) ;) (if_statement "if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" if (parenthesized_expression "((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0))" ( (binary_expression "(*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" (parenthesized_expression "(*(int **)(*piVar3 + -4) == piVar1)" ( (binary_expression "*(int **)(*piVar3 + -4) == piVar1" (pointer_expression "*(int **)(*piVar3 + -4)" * (cast_expression "(int **)(*piVar3 + -4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) == identifier) )) && (parenthesized_expression "((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" ( (comma_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" ( (pointer_expression "**(code **)(*piVar1 + 0x1c)" * (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" ( identifier , identifier , number_literal , identifier , identifier , identifier , identifier , (pointer_expression "&local_30" & identifier) ))) , (binary_expression "local_30 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" { (if_statement "if ((local_24 & 6) == 6) {\n      return local_30;\n    }" if (parenthesized_expression "((local_24 & 6) == 6)" ( (binary_expression "(local_24 & 6) == 6" (parenthesized_expression "(local_24 & 6)" ( (binary_expression "local_24 & 6" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      return local_30;\n    }" { (return_statement "return local_30;" return identifier ;) })) (if_statement "if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }" if (parenthesized_expression "((local_2c & local_28 & 6) == 6)" ( (binary_expression "(local_2c & local_28 & 6) == 6" (parenthesized_expression "(local_2c & local_28 & 6)" ( (binary_expression "local_2c & local_28 & 6" (binary_expression "local_2c & local_28" identifier & identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return local_30;\n    }" { (return_statement "return local_30;" return identifier ;) })) (if_statement "if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" if (parenthesized_expression "(((local_28 & 5) != 4) && (local_24 == 0))" ( (binary_expression "((local_28 & 5) != 4) && (local_24 == 0)" (parenthesized_expression "((local_28 & 5) != 4)" ( (binary_expression "(local_28 & 5) != 4" (parenthesized_expression "(local_28 & 5)" ( (binary_expression "local_28 & 5" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" { (if_statement "if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }" { (if_statement "if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }" if (parenthesized_expression "((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6))" ( (binary_expression "(param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" (parenthesized_expression "(param_4 != -2)" ( (binary_expression "param_4 != -2" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" ( (comma_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6" (assignment_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" identifier = (call_expression "(**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" (parenthesized_expression "(**(code **)(*param_3 + 0x20))" ( (pointer_expression "**(code **)(*param_3 + 0x20)" * (pointer_expression "*(code **)(*param_3 + 0x20)" * (cast_expression "(code **)(*param_3 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 0x20)" ( (binary_expression "*param_3 + 0x20" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_3,param_4,local_30,param_2,param_1)" ( identifier , identifier , identifier , identifier , identifier )))) , (binary_expression "(uVar2 & 6) == 6" (parenthesized_expression "(uVar2 & 6)" ( (binary_expression "uVar2 & 6" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n          return local_30;\n        }" { (return_statement "return local_30;" return identifier ;) })) }) (else_clause "else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" else (if_statement "if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" if (parenthesized_expression "(param_1 == (int *)(param_4 + local_30))" ( (binary_expression "param_1 == (int *)(param_4 + local_30)" identifier == (cast_expression "(int *)(param_4 + local_30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + local_30)" ( (binary_expression "param_4 + local_30" identifier + identifier) )))) )) (compound_statement "{\n        return local_30;\n      }" { (return_statement "return local_30;" return identifier ;) })))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == IDENT) )) && (parenthesized_expression ( (comma_expression (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) ))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT & IDENT) & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ))) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) )) (compound_statement { (return_statement return IDENT ;) })))) })) })) (return_statement return LIT ;) })))
(function_definition "int FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00290300(int *param_1,undefined4 param_2,int *param_3,int param_4)" (identifier "FUN_00290300") (parameter_list "(int *param_1,undefined4 param_2,int *param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  uint local_2c;\n  uint local_28;\n  uint local_24;\n  undefined4 local_20;\n  \n  piVar1 = *(int **)(*param_1 + -4);\n  local_30 = 0;\n  local_2c = 0;\n  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0x10;\n  if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "piVar1 = *(int **)(*param_1 + -4);" (assignment_expression "piVar1 = *(int **)(*param_1 + -4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*param_1 + -4)" (* "*") (cast_expression "(int **)(*param_1 + -4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + -4)" (( "(") (binary_expression "*param_1 + -4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);" (assignment_expression "piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1)" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(int *)(*param_1 + -8) + (int)param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*param_1 + -8) + (int)param_1)" (( "(") (binary_expression "*(int *)(*param_1 + -8) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -8)" (* "*") (cast_expression "(int *)(*param_1 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -8)" (( "(") (binary_expression "*param_1 + -8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-8")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 0x10;" (assignment_expression "local_20 = 0x10" (identifier "local_20") (= "=") (number_literal "0x10")) (; ";")) (if_statement "if ((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)) {\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0))" (( "(") (binary_expression "(*(int **)(*piVar3 + -4) == piVar1) &&\n     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" (parenthesized_expression "(*(int **)(*piVar3 + -4) == piVar1)" (( "(") (binary_expression "*(int **)(*piVar3 + -4) == piVar1" (pointer_expression "*(int **)(*piVar3 + -4)" (* "*") (cast_expression "(int **)(*piVar3 + -4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + -4)" (( "(") (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "-4")) () ")")))) (== "==") (identifier "piVar1")) () ")")) (&& "&&") (parenthesized_expression "((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0)" (( "(") (comma_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),\n     local_30 != 0" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x1c)" (( "(") (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30)" (( "(") (identifier "piVar1") (, ",") (identifier "param_4") (, ",") (number_literal "6") (, ",") (identifier "param_3") (, ",") (identifier "piVar3") (, ",") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")"))) (, ",") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if ((local_24 & 6) == 6) {\n      return local_30;\n    }\n    if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }\n    if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }\n  }" ({ "{") (if_statement "if ((local_24 & 6) == 6) {\n      return local_30;\n    }" (if "if") (parenthesized_expression "((local_24 & 6) == 6)" (( "(") (binary_expression "(local_24 & 6) == 6" (parenthesized_expression "(local_24 & 6)" (( "(") (binary_expression "local_24 & 6" (identifier "local_24") (& "&") (number_literal "6")) () ")")) (== "==") (number_literal "6")) () ")")) (compound_statement "{\n      return local_30;\n    }" ({ "{") (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}"))) (if_statement "if ((local_2c & local_28 & 6) == 6) {\n      return local_30;\n    }" (if "if") (parenthesized_expression "((local_2c & local_28 & 6) == 6)" (( "(") (binary_expression "(local_2c & local_28 & 6) == 6" (parenthesized_expression "(local_2c & local_28 & 6)" (( "(") (binary_expression "local_2c & local_28 & 6" (binary_expression "local_2c & local_28" (identifier "local_2c") (& "&") (identifier "local_28")) (& "&") (number_literal "6")) () ")")) (== "==") (number_literal "6")) () ")")) (compound_statement "{\n      return local_30;\n    }" ({ "{") (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}"))) (if_statement "if (((local_28 & 5) != 4) && (local_24 == 0)) {\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" (if "if") (parenthesized_expression "(((local_28 & 5) != 4) && (local_24 == 0))" (( "(") (binary_expression "((local_28 & 5) != 4) && (local_24 == 0)" (parenthesized_expression "((local_28 & 5) != 4)" (( "(") (binary_expression "(local_28 & 5) != 4" (parenthesized_expression "(local_28 & 5)" (( "(") (binary_expression "local_28 & 5" (identifier "local_28") (& "&") (number_literal "5")) () ")")) (!= "!=") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "(local_24 == 0)" (( "(") (binary_expression "local_24 == 0" (identifier "local_24") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }\n    }" ({ "{") (if_statement "if (param_4 < 0) {\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }\n      else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" (if "if") (parenthesized_expression "(param_4 < 0)" (( "(") (binary_expression "param_4 < 0" (identifier "param_4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }\n      }" ({ "{") (if_statement "if ((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)) {\n          return local_30;\n        }" (if "if") (parenthesized_expression "((param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6))" (( "(") (binary_expression "(param_4 != -2) &&\n           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" (parenthesized_expression "(param_4 != -2)" (( "(") (binary_expression "param_4 != -2" (identifier "param_4") (!= "!=") (number_literal "-2")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6)" (( "(") (comma_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),\n           (uVar2 & 6) == 6" (assignment_expression "uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1)" (parenthesized_expression "(**(code **)(*param_3 + 0x20))" (( "(") (pointer_expression "**(code **)(*param_3 + 0x20)" (* "*") (pointer_expression "*(code **)(*param_3 + 0x20)" (* "*") (cast_expression "(code **)(*param_3 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_3 + 0x20)" (( "(") (binary_expression "*param_3 + 0x20" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(param_3,param_4,local_30,param_2,param_1)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "local_30") (, ",") (identifier "param_2") (, ",") (identifier "param_1") () ")")))) (, ",") (binary_expression "(uVar2 & 6) == 6" (parenthesized_expression "(uVar2 & 6)" (( "(") (binary_expression "uVar2 & 6" (identifier "uVar2") (& "&") (number_literal "6")) () ")")) (== "==") (number_literal "6"))) () ")"))) () ")")) (compound_statement "{\n          return local_30;\n        }" ({ "{") (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" (else "else") (if_statement "if (param_1 == (int *)(param_4 + local_30)) {\n        return local_30;\n      }" (if "if") (parenthesized_expression "(param_1 == (int *)(param_4 + local_30))" (( "(") (binary_expression "param_1 == (int *)(param_4 + local_30)" (identifier "param_1") (== "==") (cast_expression "(int *)(param_4 + local_30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + local_30)" (( "(") (binary_expression "param_4 + local_30" (identifier "param_4") (+ "+") (identifier "local_30")) () ")")))) () ")")) (compound_statement "{\n        return local_30;\n      }" ({ "{") (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}"))))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(int *var_8,type_1 param_2,int *param_3,int var_6)

{
  int *var_1;
  type_2 var_7;
  int *piVar3;
  int var_2;
  type_2 var_4;
  type_2 var_5;
  type_2 var_3;
  type_1 local_20;
  
  var_1 = *(int **)(*var_8 + -4);
  var_2 = 0;
  var_4 = 0;
  piVar3 = (int *)(*(int *)(*var_8 + -8) + (int)var_8);
  var_5 = 0;
  var_3 = 0;
  local_20 = 0x10;
  if ((*(int **)(*piVar3 + -4) == var_1) &&
     ((**(type_3 **)(*var_1 + 0x1c))(var_1,var_6,6,param_3,piVar3,param_2,var_8,&var_2),
     var_2 != 0)) {
    if ((var_3 & 6) == 6) {
      return var_2;
    }
    if ((var_4 & var_5 & 6) == 6) {
      return var_2;
    }
    if (((var_5 & 5) != 4) && (var_3 == 0)) {
      if (var_6 < 0) {
        if ((var_6 != -2) &&
           (var_7 = (**(type_3 **)(*param_3 + 0x20))(param_3,var_6,var_2,param_2,var_8),
           (var_7 & 6) == 6)) {
          return var_2;
        }
      }
      else if (var_8 == (int *)(var_6 + var_2)) {
        return var_2;
      }
    }
  }
  return 0;
}


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

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

{
  int *piVar1;
  uint uVar2;
  int *piVar3;
  int local_30;
  uint local_2c;
  uint local_28;
  uint local_24;
  undefined4 local_20;
  
  piVar1 = *(int **)(*param_1 + -4);
  local_30 = 0;
  local_2c = 0;
  piVar3 = (int *)(*(int *)(*param_1 + -8) + (int)param_1);
  local_28 = 0;
  local_24 = 0;
  local_20 = 0x10;
  if ((*(int **)(*piVar3 + -4) == piVar1) &&
     ((**(code **)(*piVar1 + 0x1c))(piVar1,param_4,6,param_3,piVar3,param_2,param_1,&local_30),
     local_30 != 0)) {
    if ((local_24 & 6) == 6) {
      return local_30;
    }
    if ((local_2c & local_28 & 6) == 6) {
      return local_30;
    }
    if (((local_28 & 5) != 4) && (local_24 == 0)) {
      if (param_4 < 0) {
        if ((param_4 != -2) &&
           (uVar2 = (**(code **)(*param_3 + 0x20))(param_3,param_4,local_30,param_2,param_1),
           (uVar2 & 6) == 6)) {
          return local_30;
        }
      }
      else if (param_1 == (int *)(param_4 + local_30)) {
        return local_30;
      }
    }
  }
  return 0;
}

