//
// cocos2d::CCRect::intersectsRect from 0x5bf60c to 0x5bf69a (142 bytes)
//
// 28 xrefs:
// > CCTextInputNode::keyboardWillShow @ 0x2f638c
// > PlayerObject::testForMoving @ 0x33d4f2
// > PlayerObject::collidedWithObjectInternal @ 0x3457ca
// > PlayerObject::collidedWithObjectInternal @ 0x3457ec
// > PlayerObject::collidedWithObjectInternal @ 0x3459a6
// > PlayerObject::collidedWithObjectInternal @ 0x345c32
// > PlayerObject::collidedWithObjectInternal @ 0x345c88
// > PlayerObject::collidedWithObjectInternal @ 0x345d7c
// > PlayerObject::collidedWithObjectInternal @ 0x345df6
// > PlayerObject::preSlopeCollision @ 0x348416
// > PlayerObject::preSlopeCollision @ 0x348576
// > PlayerObject::preSlopeCollision @ 0x3485a6
// > PlayerObject::spiderTestJumpInternal @ 0x34908e
// > PlayerObject::spiderTestJumpY @ 0x34a564
// > PlayerObject::spiderTestJumpX @ 0x34ae20
// > PlayerObject::collidedWithSlopeInternal @ 0x34b81a
// > PlayerObject::collidedWithSlopeInternal @ 0x34be2e
// > PlayerObject::postCollision @ 0x34c972
// > PlayerObject::postCollision @ 0x34d91a
// > LevelEditorLayer::addObjectsInRect @ 0x366598
// > LevelEditorLayer::objectsInRect @ 0x366fd4
// > LevelEditorLayer::updateDebugDraw @ 0x379f7e
// > EditorUI::getSmartNeighbor @ 0x37e162
// > GJBaseGameLayer::staticObjectsInRect @ 0x46e588
// > GJBaseGameLayer::damagingObjectsInRect @ 0x46ed1e
// > cocos2d::extension::CCScrollView::isNodeVisible @ 0x5a833a
// > cocos2d::extension::CCScrollView::beforeDraw @ 0x5a8c96
// > cocos2d::extension::CCEditBox::keyboardWillShow @ 0x5aab6a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall cocos2d::CCRect::intersectsRect(cocos2d::CCRect *this, cocos2d::CCRect *a2)
{
float MaxX; // s16
float v6; // s16
float MaxY; // s16
float v8; // s16
MaxX = cocos2d::CCRect::getMaxX(this);
if ( MaxX < COERCE_FLOAT(cocos2d::CCRect::getMinX(a2)) )
return 0;
v6 = cocos2d::CCRect::getMaxX(a2);
if ( v6 < COERCE_FLOAT(cocos2d::CCRect::getMinX(this)) )
return 0;
MaxY = cocos2d::CCRect::getMaxY(this);
if ( MaxY < COERCE_FLOAT(cocos2d::CCRect::getMinY(a2)) )
return 0;
v8 = cocos2d::CCRect::getMaxY(a2);
return v8 >= COERCE_FLOAT(cocos2d::CCRect::getMinY(this));
}