//
// sub_100597B80 from 0x100597b80 to 0x100597c17 (151 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b71038
//
// 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
//
void __fastcall sub_100597B80(unsigned int *__p)
{
__int64 v1; // rax
__int64 v2; // rax
*(_QWORD *)__p = off_100B71028;
*((_QWORD *)__p + 40) = off_100B714B8;
*((_QWORD *)__p + 41) = &off_100B71528;
*((_QWORD *)__p + 42) = off_100B71540;
*((_QWORD *)__p + 43) = off_100B71560;
*((_QWORD *)__p + 44) = off_100B71588;
v1 = cocos2d::CCDirector::sharedDirector();
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 160LL))(v1);
cocos2d::CCTouchDispatcher::removeDelegate(v2, __p + 80);
cocos2d::CCLayer::onExit((__int64)__p);
sub_1004A9420(__p);
operator delete(__p);
}