//
// GJRateLevelLayer::onFeature from 0x14041a430 to 0x14041a481 (81 bytes)
//
// 2 xrefs:
// > GJRateLevelLayer::init @ 0x140419bd9
// > ??> @ 0x14092663c
//
// 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:06 +0000
//
__int64 __fastcall GJRateLevelLayer::onFeature(__int64 a1)
{
int v1; // r8d
int v2; // edx
__int64 v4; // r8
v1 = *(_DWORD *)(a1 + 1096);
v2 = 0;
if ( v1 < 4 )
v2 = v1 + 1;
*(_DWORD *)(a1 + 1096) = v2;
GJDifficultySprite::updateFeatureState(*(_DWORD **)(a1 + 1088), v2);
LOBYTE(v4) = *(_DWORD *)(a1 + 1096) != 0;
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1, v4);
}