//
// sub_1005B4F20 from 0x1005b4f20 to 0x1005b5018 (248 bytes)
//
// 3 xrefs:
// > sub_1005B5020 @ 0x1005b502c
// > sub_1005B5040 @ 0x1005b504c
// > ??> @ 0x100b7d748
//
// 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:40 +0000
//
void __fastcall sub_1005B4F20(_QWORD *__p)
{
__int64 v2; // rdi
__int64 v3; // rax
*__p = off_100B7D738;
__p[40] = off_100B7DD38;
__p[41] = &off_100B7DDA8;
__p[42] = off_100B7DDC0;
__p[43] = off_100B7DDE0;
__p[44] = off_100B7DE08;
__p[51] = off_100B7DE38;
__p[54] = off_100B7DEB8;
__p[68] = off_100B7DED8;
__p[83] = &off_100B7DF20;
__p[84] = off_100B7DF38;
__p[127] = off_100B7DF58;
v2 = cocos2d::CCDirector::sharedDirector();
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2) + 134) = 0;
if ( *((_BYTE *)__p + 1054) == 1 )
{
v3 = cocos2d::CCTextureCache::sharedTextureCache(v2);
cocos2d::CCTextureCache::removeTextureForKey(v3, "controller_outline.png");
}
SetupTriggerPopup::dSetupTriggerPopup((__int64)__p);
operator delete(__p);
}