//
// sub_1003B0590 from 0x1003b0590 to 0x1003b0656 (198 bytes)
//
// 2 xrefs:
// > sub_1003B0660 @ 0x1003b066c
// > ??> @ 0x100b36c70
//
// 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:29:25 +0000
//
void __fastcall sub_1003B0590(_QWORD *__p, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rdi
*__p = off_100B36C60;
__p[40] = off_100B37190;
__p[41] = &off_100B37200;
__p[42] = off_100B37218;
__p[43] = off_100B37238;
__p[44] = off_100B37260;
__p[51] = off_100B37290;
__p[54] = off_100B37310;
__p[68] = &off_100B37330;
v3 = cocos2d::CCDirector::sharedDirector(__p, a2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, __p);
v5 = __p[74];
if ( v5 )
cocos2d::CCObject::release(v5);
sub_1004AB790(__p);
operator delete(__p);
}