//
// LevelSearchLayer::onBack from 0x4952ba to 0x4952e0 (38 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::keyBackClicked @ 0x4952e2
//
// 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:41 +0000
//
int __fastcall LevelSearchLayer::onBack(LevelSearchLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
int result; // r0
v3 = (GameManager *)LevelSearchLayer::onClose(this, nullptr);
v4 = (GameManager *)GameManager::sharedState(v3);
result = GameManager::safePopScene(v4);
if ( result )
return (*(int (__fastcall **)(LevelSearchLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return result;
}