//
// RewardUnlockLayer::onClose from 0x1403d1590 to 0x1403d15d8 (72 bytes)
//
// 2 xrefs:
// > RewardUnlockLayer::init @ 0x1403ce7ad
// > ??> @ 0x1406d7c64
//
// 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 RewardUnlockLayer::onClose(RewardUnlockLayer *a1, cocos2d::CCObject *a2)
{
RewardsPage *m_rewardsPage; // rax
_BOOL8 v4; // rdx
m_rewardsPage = a1->m_rewardsPage;
if ( m_rewardsPage && m_rewardsPage->m_openLayer == a1 )
m_rewardsPage->m_openLayer = nullptr;
a1->setKeypadEnabled(a1, 0);
LOBYTE(v4) = 1;
a1->removeFromParentAndCleanup(a1, v4);
}