//
// RateLevelLayer::onRate from 0x100595390 to 0x1005953dc (76 bytes)
//
// 1 xrefs:
// > RateLevelLayer::init @ 0x1005951a0
//
// 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 12:32:28 +0000
//
__int64 __fastcall RateLevelLayer::onRate(__int64 a1)
{
__int64 result; // rax
__int64 (__fastcall ***v2)(_QWORD); // rdi
if ( *(_DWORD *)(a1 + 684) != -1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
v2 = *(__int64 (__fastcall ****)(_QWORD))(a1 + 688);
if ( v2 )
return (**v2)(v2);
}
return result;
}