//
// LevelBrowserLayer::onSaved from 0x1403e86d0 to 0x1403e87ad (221 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x1403eaa33
// > LevelBrowserLayer::init @ 0x1403e33b6
// > ??> @ 0x140925010
//
// 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:31:44 +0000
//
bool __fastcall LevelBrowserLayer::onSaved(_QWORD *a1)
{
__int64 v2; // rax
__int64 v3; // rdx
__int64 v4; // r8
__int64 v5; // r9
__int64 v6; // rdi
__int64 v7; // rcx
void **v8; // rdx
struct cocos2d::CCScene *v9; // rax
struct cocos2d::CCScene *v10; // rbx
__int64 v11; // rcx
cocos2d::CCDirector *v12; // rax
void *Src[5]; // [rsp+20h] [rbp-28h] BYREF
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1008LL))(a1, 0);
v2 = GJSearchObject::create_2(99);
v6 = v2;
v7 = a1[83];
if ( v7 )
{
*(_DWORD *)(v2 + 452) = *(_DWORD *)(v7 + 452);
sub_14003F4F0((__int64)Src, a1[83] + 328LL);
if ( (void **)(v6 + 328) != Src )
{
v8 = Src;
if ( Src[3] > (void *)0xF )
v8 = (void **)Src[0];
sub_1400405A0((void **)(v6 + 328), v8, (size_t)Src[2]);
}
sub_14003D310((__int64)Src);
}
v9 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v6, v3, v4, v5);
v10 = cocos2d::CCTransitionFade::create(0.5, v9);
v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);
return cocos2d::CCDirector::replaceScene(v12, v10);
}