//
// GJBaseGameLayer::objectIntersectsCircle from 0x1001e5b3c to 0x1001e5c9c (352 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::playerCircleCollision @ 0x1001e5a94
//
// 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::objectIntersectsCircle(GJBaseGameLayer *a1, GameObject *a2, GameObject *a3)
{
__int64 v4; // x0
float ObjectRadius; // s8
float v6; // s12
float v7; // s9
float v8; // s10
float v9; // s11
__n128 v10; // q0
__n128 v11; // q1
__n128 v12; // q0
__n128 v13; // q1
__n128 v14; // q0
__n128 v15; // q1
__n128 v16; // q0
__n128 v17; // q1
cocos2d::CCPoint v19; // [xsp+8h] [xbp-78h] BYREF
cocos2d::CCPoint v20; // [xsp+10h] [xbp-70h] BYREF
cocos2d::CCPoint v21; // [xsp+18h] [xbp-68h] BYREF
cocos2d::CCPoint v22; // [xsp+20h] [xbp-60h] BYREF
cocos2d::CCPoint v23; // [xsp+28h] [xbp-58h] BYREF
float v24[4]; // [xsp+30h] [xbp-50h] BYREF
v4 = ((__int64 (__fastcall *)(GameObject *))a2->getObjectRect)(a2);
sub_100022B98(v24, v4);
ObjectRadius = GameObject::getObjectRadius(a3);
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))a3->getRealPosition)(&v23, a3);
v6 = sub_100022C30(v24);
v7 = sub_100022C40((__int64)v24);
v8 = sub_100022C48((__int64)v24);
v9 = sub_100022C58((__int64)v24);
if ( sub_100022C60(v24, (float *)&v23) )
return 1;
v10.n128_f32[0] = v6;
v11.n128_f32[0] = v8;
sub_100022980(v10, v11, &v22);
if ( fabsf(cocos2d::ccpDistance(&v22, &v23)) < ObjectRadius )
return 1;
v12.n128_f32[0] = v6;
v13.n128_f32[0] = v9;
sub_100022980(v12, v13, &v21);
if ( fabsf(cocos2d::ccpDistance(&v21, &v23)) < ObjectRadius )
return 1;
v14.n128_f32[0] = v7;
v15.n128_f32[0] = v9;
sub_100022980(v14, v15, &v20);
if ( fabsf(cocos2d::ccpDistance(&v20, &v23)) < ObjectRadius )
return 1;
v16.n128_f32[0] = v7;
v17.n128_f32[0] = v8;
sub_100022980(v16, v17, &v19);
return fabsf(cocos2d::ccpDistance(&v19, &v23)) < ObjectRadius;
}