//
// StartPosLayer::onSelectMode from 0xb64070 to 0xb640b8 (72 bytes)
//
// 4 xrefs:
// > StartPosLayer::addModeButtons @ 0xb64f44
// > ??> @ 0xa9d98
// > StartPosLayer::addModeButtons @ 0xb64e9c
// > ??> @ 0x1544ca8
//
// 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:02:13 +0000
//
__int64 __fastcall StartPosLayer::onSelectMode(StartPosLayer *this, cocos2d::CCObject *a2)
{
int v3; // w0
if ( a2 )
{
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*((_DWORD *)this + 256) = v3;
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 127) + 1840LL) + 328LL) = v3;
}
return updateSprites(*((cocos2d::CCArray **)this + 129), *((_DWORD *)this + 256));
}