//
// sub_100210D74 from 0x100210d74 to 0x100210e18 (164 bytes)
//
// 3 xrefs:
// > StartPosLayer::addModeButtons @ 0x100210560
// > StartPosLayer::onSelectMode @ 0x100210e64
// > StartPosLayer::onSelectSpeed @ 0x100210ecc
//
// 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 sub_100210D74(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x0
_WORD v7[2]; // [xsp+Ch] [xbp-34h] BYREF
result = sub_1002E757C(a1);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(a1, v5);
if ( a2 != (_DWORD)v5 )
memset(v7, 125, 3);
(*(void (**)(void))(*(_QWORD *)v6 + 960LL))();
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(a1);
}
while ( (unsigned int)v5 < (unsigned int)result );
}
return result;
}