//
// GJBaseGameLayer::playerIntersectsCircle from 0x1001e5a98 to 0x1001e5b3c (164 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::playerCircleCollision @ 0x1001e5a90
//
// 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 GJBaseGameLayer::playerIntersectsCircle(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)
{
const cocos2d::CCPoint *v5; // x21
float v6; // s8
float ObjectRadius; // s9
cocos2d::CCPoint v9; // [xsp+8h] [xbp-38h] BYREF
v5 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerObject *))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)(*(float *)(((__int64 (__fastcall *)(PlayerObject *))a2->getObjectRect)(a2) + 8) * 0.5));
}