// // MusicBrowser::onToggleSearch from 0x6be5e0 to 0x6be74e (366 bytes) // // 0 xrefs: // // 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:56:48 +0000 // _DWORD *__fastcall MusicBrowser::onToggleSearch(_DWORD *this, cocos2d::CCObject *a2, size_t a3, int a4) { _DWORD *v4; // r4 cocos2d::CCSpriteFrameCache *v5; // r5 void (__fastcall *v6)(cocos2d::CCSpriteFrameCache *, int); // r6 cocos2d::CCSpriteFrameCache *v7; // r0 const char *v8; // r1 int v9; // r0 size_t v10; // r6 int v11; // r8 int v12; // r6 const char *v13; // r6 size_t v14; // r0 int v15; // r8 _DWORD *v16; // [sp+0h] [bp-10h] BYREF cocos2d::CCObject *v17; // [sp+4h] [bp-Ch] size_t v18; // [sp+8h] [bp-8h] int v19; // [sp+Ch] [bp-4h] v16 = this; v17 = a2; v18 = a3; v19 = a4; v4 = this; if ( *(this + 136) ) { *((_BYTE *)this + 588) ^= 1u; v5 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 143) + 536))(*(this + 143)); v6 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v5 + 580); v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5); if ( *((_BYTE *)v4 + 588) ) v8 = "gj_findBtnOff_001.png"; else v8 = "gj_findBtn_001.png"; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8); v6(v5, v9); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v4[145] + 172))(v4[145], *((unsigned __int8 *)v4 + 588)); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v4[144] + 172))(v4[144], *((unsigned __int8 *)v4 + 588)); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v4[144] + 500))(v4[144], *((unsigned __int8 *)v4 + 588)); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v4[146] + 172))(v4[146], *((unsigned __int8 *)v4 + 588)); MusicBrowser::updateSongControlLayout((const cocos2d::CCPoint **)v4); v10 = *((unsigned __int8 *)v4 + 588); v11 = v4[144]; if ( *((_BYTE *)v4 + 588) ) { v12 = v4[136]; if ( (*(_BYTE *)(v12 + 80) & 1) != 0 ) v13 = *(const char **)(v12 + 88); else v13 = (const char *)(v12 + 81); v16 = nullptr; v17 = nullptr; v18 = 0; v14 = strlen(v13); std::string::__init((int *)&v16, v13, v14); CCTextInputNode::setString(v11, (int)&v16); std::string::~string((int)&v16); return (_DWORD *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)v4[144] + 580))(v4[144], 1); } else { (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v11 + 580))(v4[144], *((unsigned __int8 *)v4 + 588)); v15 = v4[144]; v16 = (_DWORD *)v10; v17 = (cocos2d::CCObject *)v10; v18 = v10; std::string::__init((int *)&v16, &unk_B6B226, v10); CCTextInputNode::setString(v15, (int)&v16); std::string::~string((int)&v16); std::string::assign((int *)(v4[136] + 80), (char *)&unk_B6B226); *(_DWORD *)(v4[136] + 72) = 0; MusicSearchResult::updateObjects((MusicSearchResult *)v4[136]); return MusicBrowser::setupList(v4, (MusicSearchResult *)v4[136]); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source