//
// GJBaseGameLayer::playerIntersectsCircle from 0x8590d4 to 0x8591a4 (208 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::playerCircleCollision @ 0x8591b4
// > ??> @ 0xbdc00
//
// 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 GJBaseGameLayer::playerIntersectsCircle(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)
{
const cocos2d::CCPoint *v5; // x23
float v6; // s8
float ObjectRadius; // [xsp+40h] [xbp+40h]
cocos2d::CCPoint v9; // [xsp+50h] [xbp+50h] BYREF
v5 = a2->getPosition(a2);
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))a3->getRealPosition)(&v9, a3);
v6 = cocos2d::ccpDistance(v5, &v9);
ObjectRadius = GameObject::getObjectRadius(a3);
return v6 <= (float)(ObjectRadius + (float)(a2->getObjectRect(a2)->size.width * 0.5));
}