//
// LevelSettingsLayer::onSpeed from 0x14045a2a0 to 0x14045a2ec (76 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x140459cd6
// > ??> @ 0x140927bfc
//
// This function is hookable on this platform (idp: pc, 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:32:31 +0000
//
__int64 __fastcall LevelSettingsLayer::onSpeed(__int64 a1)
{
__int64 *v2; // rax
__int64 v3; // rdx
__int64 v4; // rcx
v2 = (__int64 *)SelectSettingLayer::create(2, *(unsigned int *)(*(_QWORD *)(a1 + 816) + 332LL));
v3 = a1 + 680;
if ( !a1 )
v3 = 0;
v4 = *v2;
v2[85] = v3;
return (*(__int64 (__fastcall **)(__int64 *))(v4 + 1064))(v2);
}