//
// TutorialLayer::onNext from 0x1004d7d10 to 0x1004d7da2 (146 bytes)
//
// 1 xrefs:
// > TutorialLayer::init @ 0x1004d7b2f
//
// 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:31:14 +0000
//
__int64 __fastcall TutorialLayer::onNext(_DWORD *a1)
{
char v1; // al
int v2; // esi
__int64 result; // rax
__int64 v4; // rdi
__int64 CString; // rbx
__int64 v6; // rax
char v7; // [rsp-8h] [rbp-10h]
v7 = v1;
v2 = a1[168];
if ( v2 < 5 )
return TutorialLayer::loadPage(a1, (unsigned int)(v2 + 1));
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)a1 + 83) + 584LL))(*((_QWORD *)a1 + 83), 1);
result = (*(__int64 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
if ( a1[168] )
{
v4 = sub_10088E820("tutorial_%02d.png", v7);
CString = cocos2d::CCString::getCString(v4);
v6 = cocos2d::CCTextureCache::sharedTextureCache(v4);
return cocos2d::CCTextureCache::removeTextureForKey(v6, CString);
}
return result;
}