//
// LevelInfoLayer::onRateDemon from 0x140423e00 to 0x140423f8d (397 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::init @ 0x14041d56a
// > ??> @ 0x14092690c
//
// 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:10 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall LevelInfoLayer::onRateDemon(__int64 a1)
{
unsigned int v2; // ebx
_QWORD *v3; // rdi
__int64 (__fastcall *v4)(__int64); // rdx
if ( !*(_BYTE *)(a1 + 488) )
{
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL);
v3 = operator new(0x2E8u);
FLAlertLayer::FLAlertLayer((__int64)v3);
*v3 = &RateDemonLayer::`vftable';
v3[40] = &RateDemonLayer::`vftable';
v3[41] = &RateDemonLayer::`vftable';
v3[42] = &RateDemonLayer::`vftable';
v3[43] = &RateDemonLayer::`vftable';
v3[44] = &RateDemonLayer::`vftable';
v3[51] = &RateDemonLayer::`vftable';
v3[54] = &RateDemonLayer::`vftable';
v3[68] = &RateDemonLayer::`vftable';
v3[83] = &RateDemonLayer::`vftable';
v3[84] = &RateDemonLayer::`vftable';
*((_BYTE *)v3 + 680) = 0;
v3[86] = 0;
v3[87] = 0;
v3[88] = 0;
v3[89] = 0;
*((_BYTE *)v3 + 720) = 0;
v3[91] = 0;
v3[92] = 0;
if ( (unsigned __int8)RateDemonLayer::init(v3, v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 8LL))(v3, 1);
v3 = nullptr;
}
v3[92] = a1 + 424;
v4 = *(__int64 (__fastcall **)(__int64))(*v3 + 1064LL);
if ( v4 == FLAlertLayer::show )
FLAlertLayer::show((__int64)v3);
else
v4((__int64)v3);
}
}