//
// RateLevelLayer::onRate from 0x1403c9de0 to 0x1403c9e28 (72 bytes)
//
// 2 xrefs:
// > RateLevelLayer::init @ 0x1403c9b96
// > ??> @ 0x1406d7a48
//
// 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 RateLevelLayer::onRate(RateLevelLayer *a1, cocos2d::CCObject *a2)
{
_BOOL8 v3; // rdx
RateLevelDelegate *m_delegate; // rcx
if ( a1->m_levelRate != -1 )
{
a1->setKeypadEnabled(a1, 0);
LOBYTE(v3) = 1;
a1->removeFromParentAndCleanup(a1, v3);
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->rateLevelClosed(m_delegate);
}
}