//
// SetupTouchTogglePopup::onClose from 0xaa29ec to 0xaa2a48 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x5fce0
// > ??> @ 0x14a2398
//
// 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:49 +0000
//
__int64 __fastcall SetupTouchTogglePopup::onClose(SetupTouchTogglePopup *this, cocos2d::CCObject *a2)
{
GameManager *v4; // x0
*(_QWORD *)(*((_QWORD *)this + 127) + 584LL) = 0;
v4 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 127) + 1160LL))(
*((_QWORD *)this + 127),
0);
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v4) + 552) + 14153LL) = 1;
return SetupTriggerPopup::onClose(this, a2);
}