//
// sub_100597A50 from 0x100597a50 to 0x100597adf (143 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b71030
//
// 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:32:29 +0000
//
__int64 __fastcall sub_100597A50(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
*(_QWORD *)a1 = off_100B71028;
*(_QWORD *)(a1 + 320) = off_100B714B8;
*(_QWORD *)(a1 + 328) = &off_100B71528;
*(_QWORD *)(a1 + 336) = off_100B71540;
*(_QWORD *)(a1 + 344) = off_100B71560;
*(_QWORD *)(a1 + 352) = off_100B71588;
v1 = cocos2d::CCDirector::sharedDirector();
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 160LL))(v1);
cocos2d::CCTouchDispatcher::removeDelegate(v2, (unsigned int *)(a1 + 320));
cocos2d::CCLayer::onExit(a1);
return sub_1004A9420((_QWORD *)a1);
}