//
// LevelBrowserLayer::onFavorites from 0x100497a48 to 0x100497b14 (204 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100496258
//
// 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 11:05:57 +0000
//
__int64 __fastcall LevelBrowserLayer::onFavorites(_QWORD *a1)
{
char *v2; // x0
__int64 v3; // x19
__int64 v4; // x8
__int64 v5; // x20
_QWORD *v6; // x0
char *v7; // x0
std::string __p; // [xsp+0h] [xbp-30h] BYREF
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1088LL))(a1, 0);
v2 = GJSearchObject::create_2(100);
v3 = (__int64)v2;
v4 = a1[83];
if ( v4 )
{
*((_DWORD *)v2 + 105) = *(_DWORD *)(v4 + 420);
if ( *(char *)(v4 + 343) < 0 )
sub_1000097D0(&__p, *(void **)(v4 + 320), *(_QWORD *)(v4 + 328));
else
__p = *(std::string *)(v4 + 320);
std::string::operator=((std::string *)(v3 + 320), &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
v5 = cocos2d::CCDirector::sharedDirector();
v6 = LevelBrowserLayer::scene(v3);
v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5);
return cocos2d::CCDirector::replaceScene(v5, v7);
}