//
// GameSettingsLayer::nextPosition from 0xc04ca0 to 0xc04d94 (244 bytes)
//
// 2 xrefs:
// > GameSettingsLayer::addToggle @ 0xc0567c
// > ??> @ 0x526d8
//
// 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:03:50 +0000
//
float *__usercall GameSettingsLayer::nextPosition@(int a1@, float *a2@)
{
cocos2d::CCDirector *v5; // x0
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
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v8, v5);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v9,
(float)(*(float *)&v8 * 0.5) + -160.0,
(float)(*((float *)&v8 + 1) * 0.5) + 75.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(*(float *)&v8 * 0.5) + 32.0, v10);
if ( (a1 & 1) != 0 )
v6 = (const cocos2d::CCPoint *)v9;
else
v6 = (const cocos2d::CCPoint *)v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a2, v6);
if ( a1 > 2 )
a2[1] = a2[1] - (float)((float)(int)vcvtms_s32_f32((float)(a1 - 1) * 0.5) * 37.0);
return a2;
}