//
// GJBaseGameLayer::playerIntersectsCircle from 0x99cbbc to 0x99cc8c (208 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::playerCircleCollision @ 0x99cc9c
// > ??> @ 0xf76c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:05 +0000
//
bool __fastcall GJBaseGameLayer::playerIntersectsCircle(GJBaseGameLayer *this, PlayerObject *a2, GameObject *a3)
{
cocos2d *v5; // x23
const cocos2d::CCPoint *v6; // x2
float v7; // s0
float v8; // s8
float ObjectRadius; // [xsp+40h] [xbp+40h]
__int64 v11; // [xsp+50h] [xbp+50h] BYREF
v5 = (cocos2d *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 192LL))(a2);
(*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)a3 + 1360LL))(&v11, a3);
cocos2d::ccpDistance(v5, (const cocos2d::CCPoint *)&v11, v6);
v8 = v7;
ObjectRadius = GameObject::getObjectRadius(a3);
return v8 <= (float)(ObjectRadius
+ (float)(*(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 1328LL))(a2) + 8)
* 0.5));
}