//
// GJBaseGameLayer::playerCircleCollision from 0x100123150 to 0x1001231ea (154 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::playerCircleCollision(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)
{
const cocos2d::CCPoint *v4; // r15
__int64 v5; // rax
cocos2d::CCPoint v7; // [rsp-38h] [rbp-38h] BYREF
float v8; // [rsp-30h] [rbp-30h]
float ObjectRadius; // [rsp-2Ch] [rbp-2Ch]
if ( !a1->m_levelSettings->m_fixRadiusCollision )
return GJBaseGameLayer::objectIntersectsCircle(a1, a2, a3);
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;
}