//
// LevelSettingsLayer::onSelectSpeed from 0xb6280c to 0xb62964 (344 bytes)
//
// 1 xrefs:
// > ??> @ 0x101c20
//
// 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 LevelSettingsLayer::onSelectSpeed(LevelSettingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x19
unsigned int v4; // w20
int v5; // w23
__int64 v6; // x21
__int64 v7; // x0
unsigned int (__fastcall *v8)(__int64); // x1
void (__fastcall *v9)(__int64, __int64); // x19
__int64 v10; // x1
__int64 v11; // x19
__int64 v12; // x21
void (__fastcall *v13)(__int64, char *); // x28
char v15; // [xsp+60h] [xbp+60h] BYREF
char v16; // [xsp+61h] [xbp+61h]
char v17; // [xsp+62h] [xbp+62h]
if ( a2 )
{
v3 = *((_QWORD *)this + 102);
*(_DWORD *)(v3 + 332) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
}
v4 = 0;
v5 = *(_DWORD *)(*((_QWORD *)this + 102) + 332LL);
while ( v4 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 105)) )
{
v11 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 105), v4);
v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1072LL))(v11);
v13 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 960LL);
if ( v5 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v11 + 64LL))(v11) )
{
v15 = -1;
v16 = -1;
v17 = -1;
}
else
{
v15 = 0;
v16 = 0;
v17 = 0;
}
++v4;
v13(v12, &v15);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1072LL))(v11);
v7 = v11;
v8 = *(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v11 + 64LL);
v9 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL);
if ( v5 == v8(v7) )
v10 = 255;
else
v10 = 85;
v9(v6, v10);
}
return _stack_chk_guard;
}