//
// GJRateLevelLayer::rateInfoFinished from 0x1001b2a00 to 0x1001b2a98 (152 bytes)
//
// 2 xrefs:
// > sub_1001B2AB4 @ 0x1001b2ab8
// > ??> @ 0x1007b0d10
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJRateLevelLayer::rateInfoFinished(__int64 a1, int a2, __int64 a3)
{
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v6; // [xsp+10h] [xbp-20h]
if ( *(_DWORD *)(*(_QWORD *)(a1 + 976) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 976) + 332LL) == a2 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1048) + 328LL))(*(_QWORD *)(a1 + 1048), 0);
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v6 = *(_QWORD *)(a3 + 16);
}
GJRateLevelLayer::setupRateInfo(a1, (__int64)__p);
if ( SHIBYTE(v6) < 0 )
operator delete(__p[0]);
}
}