//
// cocos2d::ccpIntersectPoint from 0xb1f3dc to 0xb1f4a4 (200 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x857598
// > GJBaseGameLayer::updateGroundShadows @ 0x8575bc
// > GJBaseGameLayer::updateGroundShadows @ 0x8575e0
// > GJBaseGameLayer::updateGroundShadows @ 0x857604
// > ??> @ 0x63048
//
// 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(
const cocos2d::CCPoint *a1,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4)
{
cocos2d::CCPoint *v4; // x8
cocos2d::CCPoint *v5; // x20
float v10; // s1
float v11; // [xsp+48h] [xbp+48h] BYREF
float v12; // [xsp+4Ch] [xbp+4Ch] BYREF
cocos2d::CCPoint v13; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v5 = v4;
if ( cocos2d::ccpLineIntersect(a1, a2, a3, a4, &v11, &v12) )
{
cocos2d::CCPoint::CCPoint(&v13);
v10 = a1->y + (float)(v11 * (float)(a2->y - a1->y));
v13.x = a1->x + (float)((float)(a2->x - a1->x) * v11);
v13.y = v10;
cocos2d::CCPoint::CCPoint(v5, &v13);
}
else
{
cocos2d::CCPoint::CCPoint(v5, &stru_1245E20);
}
return result;
}