//
// LevelSettingsLayer::onSelectSpeed from 0x10026ef10 to 0x10026f028 (280 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelSettingsLayer::onSelectSpeed(LevelSettingsLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rax
LevelSettingsObject *m_settingsObject; // r14
Speed m_startSpeed; // r15d
unsigned int v5; // r14d
__int64 v6; // r13
__int64 v7; // rsi
__int64 v8; // r12
__int64 v9; // r13
int v10; // [rsp+0h] [rbp-2Ch] BYREF
v10 = HIDWORD(v2);
if ( a2 )
{
m_settingsObject = a1->m_settingsObject;
m_settingsObject->m_startSpeed = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
}
m_startSpeed = a1->m_settingsObject->m_startSpeed;
if ( (unsigned int)sub_100720070(a1->m_speedButtons) )
{
v5 = 0;
do
{
v8 = sub_1007200C0(a1->m_speedButtons, v5);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1056LL))(v8);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v8 + 64LL))(v8) == m_startSpeed )
{
BYTE2(v10) = -1;
LOWORD(v10) = -1;
}
else
{
BYTE2(v10) = 0;
LOWORD(v10) = 0;
}
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v9 + 944LL))(v9, &v10);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1056LL))(v8);
v7 = 85;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v8 + 64LL))(v8) == m_startSpeed )
v7 = 255;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 896LL))(v6, v7);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(a1->m_speedButtons) );
}
}