//
// LevelInfoLayer::onRateDemon from 0x7e5644 to 0x7e5690 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0xf0640
// > LevelInfoLayer::init @ 0x7eca18
// > ??> @ 0x1547430
//
// This function is hookable on this platform (idp: arm, 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:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::onRateDemon(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
__int64 *v3; // x0
__int64 v4; // x2
if ( !*(_BYTE *)(this + 488) )
{
v2 = this + 424;
v3 = (__int64 *)RateDemonLayer::create(
(RateDemonLayer *)(unsigned int)(*(_DWORD *)(*(_QWORD *)(this + 504) + 328LL)
- *(_DWORD *)(*(_QWORD *)(this + 504) + 332LL)),
*(_QWORD *)(this + 504));
v4 = *v3;
v3[92] = v2;
return (*(__int64 (**)(void))(v4 + 1312))();
}
return this;
}