//
// SelectEventLayer::nextPosition from 0xb71d4c to 0xb71e70 (292 bytes)
//
// 2 xrefs:
// > SelectEventLayer::addToggle @ 0xb7f574
// > ??> @ 0xa2988
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:02:21 +0000
//
float *__usercall SelectEventLayer::nextPosition@(SelectEventLayer *this@, float *a2@)
{
cocos2d::CCDirector *v4; // x0
int v5; // w19
const cocos2d::CCPoint *v6; // x1
__int64 v8; // [xsp+40h] [xbp+40h] BYREF
_BYTE v9[4]; // [xsp+48h] [xbp+48h] BYREF
float v10; // [xsp+4Ch] [xbp+4Ch]
_BYTE v11[8]; // [xsp+50h] [xbp+50h] BYREF
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v8, v4);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v9,
(float)(*(float *)&v8 * 0.5) + -140.0,
(float)(*((float *)&v8 + 1) * 0.5) + 90.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(*(float *)&v8 * 0.5) + 40.0, v10);
v5 = (*((_DWORD *)this + 258) - 1) % 12;
if ( v5 >= 6 )
v6 = (const cocos2d::CCPoint *)v11;
else
v6 = (const cocos2d::CCPoint *)v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a2, v6);
a2[1] = a2[1] - (float)(34 * (v5 % 6));
return a2;
}