//
// cocos2d::CCRect::intersectsRect from 0x18000cc40 to 0x18000cc86 (70 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801438a8
//
// 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, const struct cocos2d::CCRect *a2)
{
float y; // xmm1_4
bool result; // al
result = false;
if ( a2->origin.x <= (float)(this->origin.x + this->size.width)
&& this->origin.x <= (float)(a2->origin.x + a2->size.width) )
{
y = a2->origin.y;
if ( y <= (float)(this->origin.y + this->size.height) && this->origin.y <= (float)(y + a2->size.height) )
return true;
}
return result;
}