//
// LevelBrowserLayer::setSearchObject from 0x4a48f4 to 0x4a491a (38 bytes)
//
// 4 xrefs:
// > LevelBrowserLayer::loadPage @ 0x4a64aa
// > LevelBrowserLayer::init @ 0x4a6cec
// > LevelBrowserLayer::init @ 0x4a7ee6
// > LevelListLayer::init @ 0x6d864c
//
// 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:53 +0000
//
GJSearchObject **__fastcall LevelBrowserLayer::setSearchObject(GJSearchObject **this, GJSearchObject *a2)
{
GJSearchObject **v2; // r5
v2 = this;
if ( *(this + 125) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
this = (GJSearchObject **)v2[125];
if ( this )
this = (GJSearchObject **)cocos2d::CCObject::release((cocos2d::CCObject *)this);
v2[125] = a2;
}
return this;
}