//
// StartPosLayer::onSelectSpeed from 0xb640b8 to 0xb6410c (84 bytes)
//
// 4 xrefs:
// > StartPosLayer::addSpeedButtons @ 0xb6517c
// > ??> @ 0x64b10
// > StartPosLayer::addSpeedButtons @ 0xb650e0
// > ??> @ 0x15426c0
//
// 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 13:02:13 +0000
//
__int64 __fastcall StartPosLayer::onSelectSpeed(StartPosLayer *this, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w0
if ( a2 )
{
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*((_DWORD *)this + 257) = v3;
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 127) + 1840LL) + 332LL) = v3;
}
v4 = SelectSettingLayer::valueToIdx(2, *((_DWORD *)this + 257));
return updateSprites(*((cocos2d::CCArray **)this + 130), v4);
}