//
// LevelBrowserLayer::setSearchObject from 0x100496d64 to 0x100496dac (72 bytes)
//
// 4 xrefs:
// > LevelListLayer::init @ 0x1002e0454
// > LevelBrowserLayer::init @ 0x100495098
// > LevelBrowserLayer::init @ 0x1004950d4
// > LevelBrowserLayer::loadPage @ 0x1004983e4
//
// 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:56 +0000
//
_DWORD *__fastcall LevelBrowserLayer::setSearchObject(__int64 a1, __int64 a2)
{
_DWORD *result; // x0
result = *(_DWORD **)(a1 + 664);
if ( result != (_DWORD *)a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
result = *(_DWORD **)(a1 + 664);
}
if ( result )
result = cocos2d::CCObject::release(result);
*(_QWORD *)(a1 + 664) = a2;
}
return result;
}