//
// RateLevelLayer::onRate from 0x100568490 to 0x1005684dc (76 bytes)
//
// 1 xrefs:
// > RateLevelLayer::init @ 0x1005682a0
//
// 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 RateLevelLayer::onRate(RateLevelLayer *a1, cocos2d::CCObject *a2)
{
RateLevelDelegate *m_delegate; // rdi
if ( a1->m_levelRate != -1 )
{
((void (__fastcall *)(RateLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(RateLevelLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(RateLevelDelegate *))m_delegate->rateLevelClosed)(m_delegate);
}
}