//
// SelectEventLayer::nextPosition from 0xa44a84 to 0xa44ba8 (292 bytes)
//
// 2 xrefs:
// > SelectEventLayer::addToggle @ 0xa54430
// > ??> @ 0x799c8
//
// 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 SelectEventLayer::nextPosition(SelectEventLayer *a1)
{
cocos2d::CCPoint *v1; // x8
cocos2d::CCPoint *v2; // x20
cocos2d::CCDirector *v4; // x0
int v5; // w19
const cocos2d::CCPoint *v6; // x1
float v9; // [xsp+50h] [xbp+50h]
float v10; // [xsp+54h] [xbp+54h]
cocos2d::CCPoint v11; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v12; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v2 = v1;
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4);
cocos2d::CCPoint::CCPoint(&v11, (float)(v9 * 0.5) + -140.0, (float)(v10 * 0.5) + 90.0);
cocos2d::CCPoint::CCPoint(&v12, (float)(v9 * 0.5) + 40.0, v11.y);
v5 = (a1->m_toggleCount - 1) % 12;
if ( v5 >= 6 )
v6 = &v12;
else
v6 = &v11;
cocos2d::CCPoint::CCPoint(v2, v6);
result.y = v2->y;
result.x = result.y - (float)(34 * (v5 % 6));
v2->y = result.x;
return result;
}