//
// StartPosLayer::onSelectMode from 0x100210e18 to 0x100210e68 (80 bytes)
//
// 1 xrefs:
// > StartPosLayer::addModeButtons @ 0x100210440
//
// 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 11:01:02 +0000
//
__int64 __fastcall StartPosLayer::onSelectMode(__int64 a1, __int64 a2)
{
int v3; // w1
if ( a2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
*(_DWORD *)(a1 + 1024) = v3;
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1016) + 1840LL) + 328LL) = v3;
}
else
{
v3 = *(_DWORD *)(a1 + 1024);
}
return sub_100210D74(*(_QWORD *)(a1 + 1032), v3);
}