//
// cocos2d::ccpIntersectPoint from 0x100243c28 to 0x100243cac (132 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x100278a34
// > GJBaseGameLayer::updateGroundShadows @ 0x100278a5c
// > GJBaseGameLayer::updateGroundShadows @ 0x100278a80
// > GJBaseGameLayer::updateGroundShadows @ 0x100278aa4
//
// 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 11:01:25 +0000
//
double __usercall cocos2d::ccpIntersectPoint@(
float32x2_t *a1@,
float32x2_t *a2@,
float *a3@,
float *a4@,
float32x2_t *a5@)
{
double result; // d0
float v9; // [xsp+8h] [xbp-28h] BYREF
float v10; // [xsp+Ch] [xbp-24h] BYREF
if ( !cocos2d::ccpLineIntersect((float *)a1, (float *)a2, a3, a4, &v10, &v9) )
return sub_1000262F4(a5, &dbl_1009F4FE0);
sub_1000262EC(a5);
*(float *)&result = v10;
*a5 = vmla_n_f32(*a1, vsub_f32(*a2, *a1), v10);
return result;
}