//
// GJOptionsLayer::nextPosition from 0xa1f900 to 0xa1fa24 (292 bytes)
//
// 4 xrefs:
// > GJOptionsLayer::addToggleInternal @ 0xa34e88
// > GameOptionsLayer::setupOptions @ 0xa35f3c
// > GameOptionsLayer::setupOptions @ 0xa36230
// > ??> @ 0x87130
//
// 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:59:39 +0000
//
float *__usercall GJOptionsLayer::nextPosition@(GJOptionsLayer *this@, const char *a2@, float *a3@)
{
cocos2d::CCDirector *v5; // x0
int v6; // w0
int v7; // w25
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)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v12 + 1) * 0.5)) - 60.0)
+ *((float *)this + 268));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v12 * 0.5) + 32.0, v14);
v6 = GJOptionsLayer::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)((float)(int)vcvtms_s32_f32((float)v8 * 0.5) * *((float *)this + 253));
return a3;
}