// // CustomSongLayer::onSearch from 0x97f3c8 to 0x97f4e4 (284 bytes) // // 3 xrefs: // > @ 0xfe230 // > CustomSongLayer::init @ 0x981114 // > @ 0x1547bf8 // // 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:57:50 +0000 // __int64 __fastcall CustomSongLayer::onSearch(CustomSongLayer *this, cocos2d::CCObject *a2) { GameManager *v3; // x0 FMODAudioEngine *GameVariable; // x0 FMODAudioEngine *v5; // x0 const char *v6; // x0 SongInfoObject *v7; // x0 CustomSongWidget *v8; // x20 SongInfoObject *v9; // x0 GameManager *v11; // x0 __int64 v12[2]; // [xsp+30h] [xbp+30h] BYREF void *v13; // [xsp+40h] [xbp+40h] v3 = (GameManager *)GameManager::sharedState(_stack_chk_guard); GameVariable = (FMODAudioEngine *)(unsigned __int8)GameManager::getGameVariable(v3, "0051"); if ( (_BYTE)GameVariable ) { v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(GameVariable); FMODAudioEngine::stopAllMusic(v5, 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 86) + 1160LL))(*((_QWORD *)this + 86), 0); CCTextInputNode::getString(*((CCTextInputNode **)this + 86), v12); v6 = (char *)v12 + 1; if ( (v12[0] & 1) != 0 ) v6 = (const char *)v13; v7 = (SongInfoObject *)atoi(v6); v8 = *((CustomSongWidget **)this + 87); v9 = (SongInfoObject *)SongInfoObject::create(v7); CustomSongWidget::updateSongObject(v8, v9); CustomSongWidget::getSongInfoIfUnloaded(*((CustomSongWidget **)this + 87)); if ( (v12[0] & 1) != 0 ) operator delete(v13); } else { v11 = (GameManager *)GameManager::sharedState(GameVariable); GameManager::setGameVariable(v11, "0051", 1u); CustomSongLayer::showNewgroundsMessage(this); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source