//
// SetupTouchTogglePopup::onClose from 0x1002a7b50 to 0x1002a7b9c (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b0cb30
//
// This function is hookable on this platform (idp: pc, 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 12:27:56 +0000
//
__int64 __fastcall SetupTouchTogglePopup::onClose(__int64 a1, __int64 a2)
{
_QWORD *v3; // rdi
__int64 v4; // rdx
__int64 v5; // rax
__int64 v6; // rdx
v3 = *(_QWORD **)(a1 + 1016);
v3[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1160LL))(v3, 0);
GameManager::sharedState(v3, 0, v4);
*(_BYTE *)(*(_QWORD *)(v5 + 552) + 14153LL) = 1;
return SetupTriggerPopup::onClose(a1, a2, v6);
}