//
// SetupRandAdvTriggerPopup::onClose from 0xaee858 to 0xaee8d4 (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x776f8
// > ??> @ 0x14aed28
//
// 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:01:11 +0000
//
__int64 __fastcall SetupRandAdvTriggerPopup::onClose(SetupRandAdvTriggerPopup *this, cocos2d::CCObject *a2)
{
GameManager *v4; // x0
*(_QWORD *)(*((_QWORD *)this + 128) + 584LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 128) + 1160LL))(*((_QWORD *)this + 128), 0);
*(_QWORD *)(*((_QWORD *)this + 129) + 584LL) = 0;
v4 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 129) + 1160LL))(
*((_QWORD *)this + 129),
0);
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v4) + 552) + 14153LL) = 1;
return SetupTriggerPopup::onClose(this, a2);
}