//
// offsetForStreak from 0x622040 to 0x622120 (224 bytes)
//
// 2 xrefs:
// > PlayerObject::setPosition @ 0x624d90
// > ??> @ 0x80538
//
// 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 *__usercall offsetForStreak@(int a1@, cocos2d::CCPoint *a2@)
{
cocos2d::CCPoint *result; // x0
switch ( a1 )
{
case 2:
cocos2d::CCPoint::CCPoint(a2, -8.0, -3.0);
result = a2;
break;
case 3:
cocos2d::CCPoint::CCPoint(a2, -8.0, -3.5);
result = a2;
break;
case 4:
case 5:
cocos2d::CCPoint::CCPoint(a2, -14.0, -3.0);
result = a2;
break;
case 6:
cocos2d::CCPoint::CCPoint(a2, -14.0, -2.5);
result = a2;
break;
default:
cocos2d::CCPoint::CCPoint(a2, 0.0, 0.0);
result = a2;
break;
}
return result;
}