//
// SelectEventLayer::nextPosition from 0x10057a640 to 0x10057a754 (276 bytes)
//
// 0 xrefs:
//
// 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 __fastcall SelectEventLayer::nextPosition(SelectEventLayer *a1)
{
__int64 v1; // rsi
float *v2; // r12
int v3; // r14d
float v5; // [rsp+8h] [rbp-38h] BYREF
float v6[2]; // [rsp+10h] [rbp-30h] BYREF
float v7[10]; // [rsp+18h] [rbp-28h] BYREF
cocos2d::CCPoint result; // 0:xmm0_8.8
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
sub_10028CBE0(v6, (float)(v7[0] * 0.5) + -140.0, (float)(v7[1] * 0.5) + 90.0);
v2 = &v5;
sub_10028CBE0(&v5, (float)(0.5 * v7[0]) + 40.0, v6[1]);
v3 = *(_DWORD *)(v1 + 960) - 12 * ((*(_DWORD *)(v1 + 960) - 1) / 12) - 1;
if ( v3 < 6 )
v2 = v6;
sub_10028CC60(a1, (double *)v2);
result.y = 0.0;
result.x = (float)(34
* (char)(v3
- 6 * (((unsigned __int16)(43 * (char)v3) >> 8) + ((unsigned __int16)(43 * (char)v3) >> 15))));
*((float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1) = *((float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1)
- result.x;
return result;
}