//
// StartPosLayer::onSelectMode from 0x14045f990 to 0x14045f9e2 (82 bytes)
//
// 2 xrefs:
// > StartPosLayer::addModeButtons @ 0x14045f7fb
// > ??> @ 0x140927de8
//
// This function is hookable on this platform (idp: pc, 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 11:32:33 +0000
//
unsigned int __fastcall StartPosLayer::onSelectMode(__int64 a1, __int64 a2)
{
int v3; // eax
__int64 v4; // rdx
if ( a2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(a1 + 1008) = v3;
*(_DWORD *)(*(_QWORD *)(v4 + 1856) + 328LL) = v3;
}
return sub_14045F690(*(cocos2d::CCArray **)(a1 + 1016), *(_DWORD *)(a1 + 1008));
}