//
// TutorialLayer::onClose from 0x14066fdd0 to 0x14066fe45 (117 bytes)
//
// 5 xrefs:
// > TutorialLayer::onNext @ 0x14066f76d
// > TutorialLayer::keyBackClicked @ 0x14066fe59
// > TutorialLayer::init @ 0x14066f461
// > TutorialLayer::init @ 0x14066f635
// > ??> @ 0x140932270
//
// 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 11:35:54 +0000
//
void __fastcall TutorialLayer::onClose(_DWORD *a1)
{
__int64 v2; // rdx
__int64 v3; // rdx
int v4; // edx
cocos2d::CCString *v5; // rax
const char *CString; // rbx
__int64 v7; // rcx
cocos2d::CCTextureCache *v8; // rax
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
LOBYTE(v2) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)a1 + 83) + 576LL))(*((_QWORD *)a1 + 83), v2);
LOBYTE(v3) = 1;
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v3);
v4 = a1[168];
if ( v4 )
{
v5 = cocos2d::CCString::createWithFormat("tutorial_%02d.png", v4);
CString = cocos2d::CCString::getCString(v5);
v8 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v7);
cocos2d::CCTextureCache::removeTextureForKey(v8, CString);
}
}