//
// TutorialLayer::removeTutorialTexture from 0x538b44 to 0x538b6a (38 bytes)
//
// 2 xrefs:
// > TutorialLayer::onClose @ 0x538b9e
// > TutorialLayer::loadPage @ 0x538bda
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:12 +0000
//
int __fastcall TutorialLayer::removeTutorialTexture(int this)
{
const char *v1; // r1
cocos2d::CCString *v2; // r0
cocos2d::CCTextureCache *CString; // r4
cocos2d::CCTextureCache *v4; // r0
v1 = *(const char **)(this + 524);
if ( v1 )
{
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"tutorial_%02d.png", v1);
CString = (cocos2d::CCTextureCache *)cocos2d::CCString::getCString(v2);
v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(CString);
return cocos2d::CCTextureCache::removeTextureForKey(v4, (const char *)CString);
}
return this;
}