//
// cocos2d::CCRect::containsPoint from 0x5bf598 to 0x5bf60c (116 bytes)
//
// 34 xrefs:
// > BoomScrollLayer::ccTouchBegan @ 0x2e1c98
// > CCScrollLayerExt::ccTouchBegan @ 0x2e828a
// > TableView::cellForTouch @ 0x2e9402
// > CCTextInputNode::ccTouchBegan @ 0x2fb5aa
// > ScrollingLayer::ccTouchBegan @ 0x2fdf3a
// > GJUINode::touchTest @ 0x30d212
// > LevelEditorLayer::addObjectsAtPosition @ 0x3664e4
// > LevelEditorLayer::typeExistsAtPosition @ 0x36684e
// > LevelEditorLayer::objectAtPosition @ 0x366a54
// > LevelEditorLayer::objectsAtPosition @ 0x366c62
// > LevelEditorLayer::updateDebugDraw @ 0x37a6b6
// > LevelEditorLayer::updateDebugDraw @ 0x37a6ca
// > LevelEditorLayer::updateDebugDraw @ 0x37a758
// > LevelEditorLayer::updateDebugDraw @ 0x37b0d8
// > LevelEditorLayer::updateDebugDraw @ 0x37b0ec
// > EditorUI::findSnapObject @ 0x38607e
// > GJTransformControl::ccTouchBegan @ 0x39d67a
// > GJBaseGameLayer::objectIntersectsCircle @ 0x46e666
// > GJBaseGameLayer::rectIntersectsCircle @ 0x46e82a
// > UIPOptionsLayer::ccTouchBegan @ 0x4b40c6
// > GJShopLayer::ccTouchBegan @ 0x4e2ec6
// > CreateParticlePopup::ccTouchBegan @ 0x52f62c
// > CreateParticlePopup::ccTouchMoved @ 0x531e78
// > EditorUI::createRockEdges @ 0x536b92
// > EditorUI::createRockBases @ 0x537946
// > EditorUI::createRockBases @ 0x53795c
// > EditorUI::createRockBases @ 0x537974
// > EditorUI::createRockBases @ 0x53798a
// > cocos2d::extension::CCControl::isTouchInside @ 0x5a0a22
// > cocos2d::extension::CCControlSlider::isTouchInside @ 0x5a3992
// > cocos2d::extension::CCScrollView::ccTouchBegan @ 0x5a8e9a
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x5a91ac
// > cocos2d::extension::CCTableView::ccTouchEnded @ 0x5aa5be
// > cocos2d::CCMenu::itemForTouch @ 0x5d40e4
//
// 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::containsPoint(cocos2d::CCRect *this, const cocos2d::CCPoint *a2)
{
float x; // s16
float v5; // s16
float y; // s16
float v7; // s16
_BOOL4 result; // r0
x = a2->x;
result = false;
if ( x >= COERCE_FLOAT(cocos2d::CCRect::getMinX(this)) )
{
v5 = a2->x;
if ( v5 <= cocos2d::CCRect::getMaxX(this) )
{
y = a2->y;
if ( y >= COERCE_FLOAT(cocos2d::CCRect::getMinY(this)) )
{
v7 = a2->y;
if ( v7 <= cocos2d::CCRect::getMaxY(this) )
return true;
}
}
}
return result;
}