//
// cocos2d::ccpIntersectPoint from 0x5eb6ac to 0x5eb732 (134 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x46d40e
// > GJBaseGameLayer::updateGroundShadows @ 0x46d428
// > GJBaseGameLayer::updateGroundShadows @ 0x46d442
// > GJBaseGameLayer::updateGroundShadows @ 0x46d458
//
// 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
//
cocos2d::CCPoint *cocos2d::ccpIntersectPoint(
cocos2d::CCPoint *__return_ptr retstr,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5)
{
cocos2d::CCPoint *v8; // r0
const cocos2d::CCPoint *v9; // r1
float y; // s14
float v12; // [sp+Ch] [bp-14h] BYREF
float v13; // [sp+10h] [bp-10h] BYREF
cocos2d::CCPoint v14; // [sp+14h] [bp-Ch] BYREF
if ( cocos2d::ccpLineIntersect(a2, a3, a4, a5, &v12, &v13) )
{
cocos2d::CCPoint::CCPoint(&v14);
v8 = retstr;
v9 = &v14;
y = a3->y;
v14.x = a2->x + (float)(v12 * (float)(a3->x - a2->x));
v14.y = a2->y + (float)(v12 * (float)(y - a2->y));
}
else
{
v8 = retstr;
v9 = &stru_AC95E0;
}
cocos2d::CCPoint::CCPoint(v8, v9);
return retstr;
}