
/* WARNING: Unknown calling convention */

int seg_not_empty_p(segT sec)

{
  int *piVar1;
  int iVar2;
  
  if ((undefined4 *)sec->userdata != (undefined4 *)0x0) {
                    /* WARNING: Load size is inaccurate */
    for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {
      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {
        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {
          return 1;
        }
      }
      if (piVar1[9] != piVar1[1] + 0x4c) {
        return 1;
      }
    }
  }
  return 0;
}



undefined4 FUN_00039730(int param_1)

{
  int *piVar1;
  int iVar2;
  
  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {
    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;
        piVar1 = (int *)piVar1[2]) {
      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {
        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {
          return 1;
        }
      }
      if (piVar1[9] != piVar1[1] + 0x4c) {
        return 1;
      }
    }
  }
  return 0;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x80]
TEST EAX,EAX
JZ 0x0003977a
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JZ 0x0003977a
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JNZ 0x00039757
JMP 0x00039768
MOV EAX,dword ptr [EAX + 0x30]
TEST EAX,EAX
JZ 0x00039768
MOV EDX,dword ptr [EAX + 0x14]
OR EDX,dword ptr [EAX + 0x10]
JZ 0x00039750
MOV EAX,0x1
RET
MOV EAX,dword ptr [ECX + 0x4]
ADD EAX,0x4c
CMP dword ptr [ECX + 0x24],EAX
JNZ 0x0003975f
MOV ECX,dword ptr [ECX + 0x8]
TEST ECX,ECX
JNZ 0x00039744
XOR EAX,EAX
RET
(translation_unit "undefined4 FUN_00039730(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00039730(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00039730(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x80)" * (cast_expression "(undefined4 **)(param_1 + 0x80)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" { (for_statement "for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" for ( (assignment_expression "piVar1 = (int *)**(undefined4 **)(param_1 + 0x80)" identifier = (cast_expression "(int *)**(undefined4 **)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 0x80)" * (pointer_expression "*(undefined4 **)(param_1 + 0x80)" * (cast_expression "(undefined4 **)(param_1 + 0x80)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))))) ; (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar1 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ) (compound_statement "{\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" { (for_statement "for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" for ( (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = *(int *)(iVar2 + 0x30)" identifier = (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ) (compound_statement "{\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" { (if_statement "if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }" if (parenthesized_expression "(*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0" (binary_expression "*(int *)(iVar2 + 0x14) != 0" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(iVar2 + 0x10) != 0" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) })) (if_statement "if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }" if (parenthesized_expression "(piVar1[9] != piVar1[1] + 0x4c)" ( (binary_expression "piVar1[9] != piVar1[1] + 0x4c" (subscript_expression "piVar1[9]" identifier [ number_literal ]) != (binary_expression "piVar1[1] + 0x4c" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint seg_not_empty_p(segT sec)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((undefined4 *)sec->userdata != (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "int seg_not_empty_p(segT sec)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((undefined4 *)sec->userdata != (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "seg_not_empty_p(segT sec)" identifier (parameter_list "(segT sec)" ( (parameter_declaration "segT sec" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((undefined4 *)sec->userdata != (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((undefined4 *)sec->userdata != (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "((undefined4 *)sec->userdata != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)sec->userdata != (undefined4 *)0x0" (cast_expression "(undefined4 *)sec->userdata" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sec->userdata" identifier -> field_identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" { comment (for_statement "for (piVar1 = *sec->userdata; piVar1 != (int *)0x0; piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" for ( (assignment_expression "piVar1 = *sec->userdata" identifier = (pointer_expression "*sec->userdata" * (field_expression "sec->userdata" identifier -> field_identifier))) ; (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar1 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ) (compound_statement "{\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" { (for_statement "for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" for ( (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = *(int *)(iVar2 + 0x30)" identifier = (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ) (compound_statement "{\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" { (if_statement "if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }" if (parenthesized_expression "(*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0" (binary_expression "*(int *)(iVar2 + 0x14) != 0" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(iVar2 + 0x10) != 0" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) })) (if_statement "if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }" if (parenthesized_expression "(piVar1[9] != piVar1[1] + 0x4c)" ( (binary_expression "piVar1[9] != piVar1[1] + 0x4c" (subscript_expression "piVar1[9]" identifier [ number_literal ]) != (binary_expression "piVar1[1] + 0x4c" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00039730(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00039730(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00039730(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x80)" * (cast_expression "(undefined4 **)(param_1 + 0x80)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" { (for_statement "for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" for ( (assignment_expression "piVar1 = (int *)**(undefined4 **)(param_1 + 0x80)" identifier = (cast_expression "(int *)**(undefined4 **)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 0x80)" * (pointer_expression "*(undefined4 **)(param_1 + 0x80)" * (cast_expression "(undefined4 **)(param_1 + 0x80)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))))) ; (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar1 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ) (compound_statement "{\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" { (for_statement "for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" for ( (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = *(int *)(iVar2 + 0x30)" identifier = (pointer_expression "*(int *)(iVar2 + 0x30)" * (cast_expression "(int *)(iVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ) (compound_statement "{\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" { (if_statement "if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }" if (parenthesized_expression "(*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0" (binary_expression "*(int *)(iVar2 + 0x14) != 0" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(iVar2 + 0x10) != 0" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) })) (if_statement "if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }" if (parenthesized_expression "(piVar1[9] != piVar1[1] + 0x4c)" ( (binary_expression "piVar1[9] != piVar1[1] + 0x4c" (subscript_expression "piVar1[9]" identifier [ number_literal ]) != (binary_expression "piVar1[1] + 0x4c" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (for_statement for ( (assignment_expression IDENT = (pointer_expression * IDENT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) )) (compound_statement { (return_statement return LIT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) )) (compound_statement { (return_statement return LIT ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00039730(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00039730(int param_1)" (identifier "FUN_00039730") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x80)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x80)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }\n  }" ({ "{") (for_statement "for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;\n        piVar1 = (int *)piVar1[2]) {\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" (for "for") (( "(") (assignment_expression "piVar1 = (int *)**(undefined4 **)(param_1 + 0x80)" (identifier "piVar1") (= "=") (cast_expression "(int *)**(undefined4 **)(param_1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 0x80)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0x80)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x80)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")"))))))) (; ";") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar1 = (int *)piVar1[2]" (identifier "piVar1") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")") (compound_statement "{\n      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }\n      if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }\n    }" ({ "{") (for_statement "for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" (for "for") (( "(") (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = *(int *)(iVar2 + 0x30)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 0x30)" (* "*") (cast_expression "(int *)(iVar2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x30)" (( "(") (binary_expression "iVar2 + 0x30" (identifier "iVar2") (+ "+") (number_literal "0x30")) () ")"))))) () ")") (compound_statement "{\n        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }\n      }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {\n          return 1;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0" (binary_expression "*(int *)(iVar2 + 0x14) != 0" (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "*(int *)(iVar2 + 0x10) != 0" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n          return 1;\n        }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (if_statement "if (piVar1[9] != piVar1[1] + 0x4c) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(piVar1[9] != piVar1[1] + 0x4c)" (( "(") (binary_expression "piVar1[9] != piVar1[1] + 0x4c" (subscript_expression "piVar1[9]" (identifier "piVar1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (binary_expression "piVar1[1] + 0x4c" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0x4c"))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 sec)

{
  int *var_1;
  int var_2;
  
  if ((type_2 *)sec->userdata != (type_2 *)0x0) {
                    /* WARNING: Load size is inaccurate */
    for (var_1 = *sec->userdata; var_1 != (int *)0x0; var_1 = (int *)var_1[2]) {
      for (var_2 = *var_1; var_2 != 0; var_2 = *(int *)(var_2 + 0x30)) {
        if (*(int *)(var_2 + 0x14) != 0 || *(int *)(var_2 + 0x10) != 0) {
          return 1;
        }
      }
      if (var_1[9] != var_1[1] + 0x4c) {
        return 1;
      }
    }
  }
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  int *piVar1;
  int iVar2;
  
  if (*(undefined4 **)(param_1 + 0x80) != (undefined4 *)0x0) {
    for (piVar1 = (int *)**(undefined4 **)(param_1 + 0x80); piVar1 != (int *)0x0;
        piVar1 = (int *)piVar1[2]) {
      for (iVar2 = *piVar1; iVar2 != 0; iVar2 = *(int *)(iVar2 + 0x30)) {
        if (*(int *)(iVar2 + 0x14) != 0 || *(int *)(iVar2 + 0x10) != 0) {
          return 1;
        }
      }
      if (piVar1[9] != piVar1[1] + 0x4c) {
        return 1;
      }
    }
  }
  return 0;
}

