//
// RewardUnlockLayer::onClose from 0xa85004 to 0xa85058 (84 bytes)
//
// 4 xrefs:
// > ??> @ 0x5ee88
// > RewardUnlockLayer::init @ 0xa89818
// > RewardUnlockLayer::init @ 0xa8983c
// > ??> @ 0x1542380
//
// 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 13:00:34 +0000
//
__int64 __fastcall RewardUnlockLayer::onClose(RewardUnlockLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
v3 = *((_QWORD *)this + 85);
if ( v3 )
RewardsPage::unlockLayerClosed(v3, this);
(*(void (__fastcall **)(RewardUnlockLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(RewardUnlockLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}