//
// cubicBezier from 0x866ba8 to 0x866ca4 (252 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::updateCamera @ 0x87ee04
// > GJBaseGameLayer::updateCamera @ 0x87f0c4
// > GJBaseGameLayer::updateCamera @ 0x87f424
// > GJBaseGameLayer::updateCamera @ 0x87f52c
// > ??> @ 0xb5a88
//
// 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
//
float __usercall cubicBezier@(
const cocos2d::CCPoint *a1@,
const cocos2d::CCPoint *a2@,
const cocos2d::CCPoint *a3@,
const cocos2d::CCPoint *a4@,
float a5@,
cocos2d::CCPoint *a6@)
{
float v7; // s8
float v8; // s0
float v9; // s2
float result; // s0
v7 = 1.0 - a5;
cocos2d::CCPoint::CCPoint(a6);
v8 = a5;
v9 = (float)((float)((float)((float)((float)((float)(a2->x * 3.0) * a5) * v7) * v7)
+ (float)((float)((float)(v7 * a1->x) * v7) * v7))
+ (float)((float)((float)((float)(a3->x * 3.0) * v8) * v8) * v7))
+ (float)((float)((float)(v8 * a4->x) * v8) * v8);
result = (float)((float)((float)((float)((float)((float)(a2->y * 3.0) * a5) * v7) * v7)
+ (float)((float)((float)(v7 * a1->y) * v7) * v7))
+ (float)((float)((float)((float)(a3->y * 3.0) * v8) * v8) * v7))
+ (float)((float)((float)(a5 * a4->y) * v8) * v8);
a6->x = v9;
a6->y = result;
return result;
}