//
// MoreOptionsLayer::nextPosition from 0x8eeb7c to 0x8eec88 (268 bytes)
//
// 2 xrefs:
// > MoreOptionsLayer::addToggle @ 0x8f0924
// > ??> @ 0x9e908
//
// 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 12:56:57 +0000
//
float *__usercall MoreOptionsLayer::nextPosition@(MoreOptionsLayer *this@, const char *a2@, float *a3@)
{
cocos2d::CCDirector *v5; // x0
int v6; // w0
int v7; // w24
int v8; // w19
const cocos2d::CCPoint *v9; // x1
__int64 v12; // [xsp+60h] [xbp+60h] BYREF
_BYTE v13[4]; // [xsp+68h] [xbp+68h] BYREF
float v14; // [xsp+6Ch] [xbp+6Ch]
_BYTE v15[8]; // [xsp+70h] [xbp+70h] BYREF
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v12, v5);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v13,
(float)(*(float *)&v12 * 0.5) + -160.0,
(float)(*((float *)&v12 + 1) * 0.5) + 80.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v12 * 0.5) + 32.0, v14);
v6 = MoreOptionsLayer::countForPage(this, a2);
v7 = v6 + 1;
v8 = v6;
if ( ((v6 + 1) & 1) != 0 )
v9 = (const cocos2d::CCPoint *)v13;
else
v9 = (const cocos2d::CCPoint *)v15;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a3, v9);
if ( v7 > 2 )
a3[1] = a3[1] - (float)(int)(48 * vcvtms_s32_f32((float)v8 * 0.5));
return a3;
}