//
// MoreOptionsLayer::nextPosition from 0x52dce8 to 0x52ddca (226 bytes)
//
// 1 xrefs:
// > MoreOptionsLayer::addToggle @ 0x52e06e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:02 +0000
//
MoreOptionsLayer *__fastcall MoreOptionsLayer::nextPosition(
MoreOptionsLayer *this,
MoreOptionsLayer *a2,
const char *a3)
{
int v6; // r0
int v7; // r8
int v8; // r5
const cocos2d::CCPoint *v9; // r1
float v11[2]; // [sp+4h] [bp-20h] BYREF
_BYTE v12[4]; // [sp+Ch] [bp-18h] BYREF
float v13; // [sp+10h] [bp-14h]
_BYTE v14[8]; // [sp+14h] [bp-10h] BYREF
cocos2d::CCDirector::sharedDirector(this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (float)(v11[0] * 0.5) - 160.0, (float)(v11[1] * 0.5) + 80.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (float)(v11[0] * 0.5) + 32.0, v13);
v6 = MoreOptionsLayer::countForPage(a2, a3);
v7 = v6 + 1;
v8 = v6;
if ( ((v6 + 1) & 1) != 0 )
v9 = (const cocos2d::CCPoint *)v12;
else
v9 = (const cocos2d::CCPoint *)v14;
cocos2d::CCPoint::CCPoint(this, v9);
if ( v7 > 2 )
*((float *)this + 1) = *((float *)this + 1) - (float)(48 * (int)floorf((float)v8 * 0.5));
return this;
}