//
// GameSettingsLayer::nextPosition from 0x7105a4 to 0x71066e (202 bytes)
//
// 1 xrefs:
// > GameSettingsLayer::addToggle @ 0x710cb8
//
// 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:57:44 +0000
//
GameSettingsLayer *__fastcall GameSettingsLayer::nextPosition(GameSettingsLayer *this, int a2, int a3)
{
const cocos2d::CCPoint *v5; // r1
float v7[2]; // [sp+4h] [bp-8h] BYREF
float v8[2]; // [sp+Ch] [bp+0h] BYREF
_BYTE v9[8]; // [sp+14h] [bp+8h] BYREF
cocos2d::CCDirector::sharedDirector(this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (float)(v7[0] * 0.5) - 160.0, (float)(v7[1] * 0.5) + 75.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (float)(v7[0] * 0.5) + 32.0, v8[1]);
if ( (a3 & 1) != 0 )
v5 = (const cocos2d::CCPoint *)v8;
else
v5 = (const cocos2d::CCPoint *)v9;
cocos2d::CCPoint::CCPoint(this, v5);
if ( a3 > 2 )
*((float *)this + 1) = *((float *)this + 1) - (float)((float)(int)floorf((float)(a3 - 1) * 0.5) * 37.0);
return this;
}