//
// GJBaseGameLayer::playerCircleCollision from 0x1001001a0 to 0x10010023a (154 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:21:20 +0000
//
char __fastcall GJBaseGameLayer::playerCircleCollision(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // r15
__int64 v5; // rax
__int64 v7; // [rsp-38h] [rbp-38h] BYREF
float v8; // [rsp-30h] [rbp-30h]
float ObjectRadius; // [rsp-2Ch] [rbp-2Ch]
if ( *(_BYTE *)(*(_QWORD *)(a1 + 3272) + 455LL) != 1 )
return GJBaseGameLayer::objectIntersectsCircle();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
(*(void (__fastcall **)(__int64 *, __int64))(*(_QWORD *)a3 + 1360LL))(&v7, a3);
v8 = cocos2d::ccpDistance(v4, &v7);
ObjectRadius = GameObject::getObjectRadius(a3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1328LL))(a2);
return (float)((float)(*(float *)(v5 + 8) * 0.5) + ObjectRadius) >= v8;
}