//
// GJBaseGameLayer::playerIntersectsCircle from 0x1001231f0 to 0x100123276 (134 bytes)
//
// 0 xrefs:
//
// 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 *v4; // r15
__int64 v5; // rax
cocos2d::CCPoint v7; // [rsp+0h] [rbp-30h] BYREF
float v8; // [rsp+8h] [rbp-28h]
float ObjectRadius; // [rsp+Ch] [rbp-24h]
v4 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerObject *))a2->getPosition)(a2);
((void (__fastcall *)(cocos2d::CCPoint *, GameObject *))a3->getRealPosition)(&v7, a3);
v8 = cocos2d::ccpDistance(v4, &v7);
ObjectRadius = GameObject::getObjectRadius(a3);
v5 = ((__int64 (__fastcall *)(PlayerObject *))a2->getObjectRect)(a2);
return (float)((float)(*(float *)(v5 + 8) * 0.5) + ObjectRadius) >= v8;
}