//
// MoreSearchLayer::onClose from 0x3ac3d8 to 0x3ac460 (136 bytes)
//
// 1 xrefs:
// > MoreSearchLayer::keyBackClicked @ 0x3ac472
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void MoreSearchLayer::onClose(MoreSearchLayer *a1, cocos2d::CCObject *a2)
{
int v3; // r7
GameLevelManager *v4; // r0
_BOOL4 BoolForKey; // r6
GameLevelManager *v6; // r0
GameLevelManager *v7; // r0
char *v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = (char *)a1;
v8[1] = (char *)a2;
a1->m_enterSongID->onClickTrackNode(a1->m_enterSongID, 0);
CCTextInputNode::getString((CCTextInputNode *)v8, (int)a1->m_enterSongID);
v3 = atoi(v8[0]);
sub_774008(v8);
v4 = GameLevelManager::sharedState();
BoolForKey = GameLevelManager::getBoolForKey(v4, "customsong_filter");
v6 = GameLevelManager::sharedState();
if ( GameLevelManager::getBoolForKey(v6, "enable_songFilter") && BoolForKey )
{
v7 = GameLevelManager::sharedState();
GameLevelManager::setIntForKey(v7, v3, "song_filter");
}
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}