//
// RateLevelLayer::onRate from 0x14055e2b0 to 0x14055e2f8 (72 bytes)
//
// 2 xrefs:
// > RateLevelLayer::init @ 0x14055e05c
// > ??> @ 0x14092c240
//
// 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:34:13 +0000
//
__int64 __fastcall RateLevelLayer::onRate(__int64 a1)
{
__int64 v2; // rdx
__int64 result; // rax
__int64 (__fastcall ***v4)(_QWORD); // rcx
if ( *(_DWORD *)(a1 + 684) != -1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
LOBYTE(v2) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v2);
v4 = *(__int64 (__fastcall ****)(_QWORD))(a1 + 688);
if ( v4 )
return (**v4)(v4);
}
return result;
}