//
// LevelBrowserLayer::onSaved from 0x4a85ec to 0x4a8680 (148 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x4a8e96
//
// 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:49:56 +0000
//
int __fastcall LevelBrowserLayer::onSaved(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
unsigned __int8 *v3; // r0
int v4; // r3
unsigned __int8 *v5; // r7
cocos2d::CCDirector *v6; // r4
GJSearchObject *v7; // r1
AppDelegate *v8; // r0
cocos2d::CCScene *v9; // r2
cocos2d::CCScene *v10; // r0
int v12[3]; // [sp+0h] [bp-14h] BYREF
(*(void (__fastcall **)(LevelBrowserLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
(*(void (__fastcall **)(LevelBrowserLayer *, _DWORD))(*(_DWORD *)this + 544))(this, 0);
v3 = (unsigned __int8 *)GJSearchObject::create(99);
v4 = *((_DWORD *)this + 125);
v5 = v3;
if ( v4 )
{
*((_DWORD *)v3 + 83) = *(_DWORD *)(v4 + 332);
std::string::basic_string(v12, *((_DWORD *)this + 125) + 268);
std::string::operator=(v5 + 268, (unsigned __int8 *)v12);
v3 = (unsigned __int8 *)std::string::~string((int)v12);
}
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v3);
v8 = LevelBrowserLayer::scene((LevelBrowserLayer *)v5, v7);
v10 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v8,
v9);
return cocos2d::CCDirector::replaceScene(v6, v10);
}