//
// cocos2d::ccpSegmentIntersect from 0xb1f34c to 0xb1f3dc (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x8a8e8
//
// 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 cocos2d::ccpSegmentIntersect(
const cocos2d::CCPoint *a1,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4)
{
bool result; // w0
float v5; // [xsp+20h] [xbp+20h] BYREF
float v6; // [xsp+24h] [xbp+24h] BYREF
result = cocos2d::ccpLineIntersect(a1, a2, a3, a4, &v5, &v6);
if ( result )
{
result = v5 >= 0.0 && v5 <= 1.0;
if ( result )
return v6 >= 0.0 && v6 <= 1.0;
}
return result;
}