//
// InfoLayer::onOriginal from 0x90826c to 0x908370 (260 bytes)
//
// 3 xrefs:
// > ??> @ 0x940a8
// > InfoLayer::init @ 0x90c970
// > ??> @ 0x1543ff8
//
// This function is hookable on this platform (idp: arm, 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:57:10 +0000
//
__int64 __fastcall InfoLayer::onOriginal(InfoLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x22
cocos2d::CCString *v4; // x0
size_t v5; // x0
LevelBrowserLayer *v6; // x0
GJSearchObject *v7; // x1
AppDelegate *v8; // x0
cocos2d::CCScene *v9; // x1
cocos2d::CCScene *v10; // x0
char *CString; // [xsp+38h] [xbp+38h]
__int64 v13[2]; // [xsp+40h] [xbp+40h] BYREF
void *v14; // [xsp+50h] [xbp+50h]
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 87) + 988LL)
- *(_DWORD *)(*((_QWORD *)this + 87) + 992LL)));
v13[0] = 0;
CString = (char *)cocos2d::CCString::getCString(v4);
v13[1] = 0;
v14 = nullptr;
v5 = strlen(CString);
std::string::__init(v13, CString, v5);
v6 = (LevelBrowserLayer *)GJSearchObject::create(0, (char *)v13);
v8 = LevelBrowserLayer::scene(v6, v7);
v10 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v8, 0.5, v9);
cocos2d::CCDirector::replaceScene(v3, v10);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 1272LL))(*((_QWORD *)this + 69), 0);
return _stack_chk_guard;
}