//
// StartPosLayer::onSelectSpeed from 0x6aa33a to 0x6aa370 (54 bytes)
//
// 1 xrefs:
// > StartPosLayer::addSpeedButtons @ 0x6aae3c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:34 +0000
//
unsigned int __fastcall StartPosLayer::onSelectSpeed(StartPosLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r3
int v5; // r1
if ( a2 )
{
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = *((_DWORD *)this + 178);
*((_DWORD *)this + 180) = v3;
*(_DWORD *)(*(_DWORD *)(v4 + 1648) + 272) = v3;
}
v5 = SelectSettingLayer::valueToIdx(2, *((_DWORD *)this + 180));
return updateSprites(*((cocos2d::CCArray **)this + 182), v5);
}