//
// KeybindingsLayer::nextPosition from 0x85273c to 0x8527e4 (168 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::addKeyPair @ 0x852dc8
// > ??> @ 0x3f2d0
//
// 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 KeybindingsLayer::nextPosition(KeybindingsLayer *a1, int a2)
{
cocos2d::CCPoint *v2; // x8
cocos2d::CCPoint *v4; // x19
cocos2d::CCDirector *v5; // x0
int v6; // w0
float v10; // [xsp+40h] [xbp+40h]
float v11; // [xsp+44h] [xbp+44h]
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v4 = v2;
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5);
cocos2d::CCPoint::CCPoint(v4, v10 * 0.5, (float)(v11 * 0.5) + 100.0);
v6 = KeybindingsLayer::countForPage(a1, a2);
result.y = v4->y;
result.x = result.y - (float)(30 * (v6 + 1));
v4->y = result.x;
return result;
}