//
// LevelBrowserLayer::setSearchObject from 0x7f5864 to 0x7f58b0 (76 bytes)
//
// 5 xrefs:
// > LevelBrowserLayer::loadPage @ 0x7f8748
// > LevelBrowserLayer::init @ 0x7f95c0
// > LevelBrowserLayer::init @ 0x7f9e9c
// > LevelListLayer::init @ 0xbaeadc
// > ??> @ 0x93e80
//
// 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:54:37 +0000
//
__int64 __fastcall LevelBrowserLayer::setSearchObject(__int64 this, GJSearchObject *a2)
{
cocos2d::CCObject *v2; // x2
__int64 v4; // x20
v2 = *(cocos2d::CCObject **)(this + 664);
if ( v2 != a2 )
{
v4 = this;
if ( a2 )
{
this = cocos2d::CCObject::retain(a2);
v2 = *(cocos2d::CCObject **)(v4 + 664);
}
if ( v2 )
this = cocos2d::CCObject::release(v2);
*(_QWORD *)(v4 + 664) = a2;
}
return this;
}