// // MusicBrowser::onToggleSearch from 0xb85768 to 0xb859bc (596 bytes) // // 3 xrefs: // > @ 0x48ca0 // > sub_B85DD0 @ 0xb86390 // > @ 0x15416a0 // // 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 13:02:30 +0000 // __int64 __fastcall MusicBrowser::onToggleSearch(MusicBrowser *this, cocos2d::CCObject *a2) { __int64 v3; // x1 cocos2d::CCSpriteFrameCache **v4; // x21 void (__fastcall *v5)(cocos2d::CCSpriteFrameCache **, __int64); // x22 cocos2d::CCSpriteFrameCache *v6; // x0 const char *v7; // x1 __int64 v8; // x0 __int64 v9; // x0 _QWORD *v10; // x22 const char *v11; // x1 size_t v12; // x0 _QWORD *v14; // x23 char *v15; // [xsp+48h] [xbp+48h] __int64 v16; // [xsp+50h] [xbp+50h] BYREF __int64 v17; // [xsp+58h] [xbp+58h] void *v18; // [xsp+60h] [xbp+60h] if ( *((_QWORD *)this + 89) ) { v3 = *((_QWORD *)this + 96); *((_BYTE *)this + 800) ^= 1u; v4 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3); v5 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v4 + 145); v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v4); if ( *((_BYTE *)this + 800) ) v7 = "gj_findBtnOff_001.png"; else v7 = "gj_findBtn_001.png"; v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7); v5(v4, v8); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 98) + 344LL))( *((_QWORD *)this + 98), *((unsigned __int8 *)this + 800)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 97) + 344LL))( *((_QWORD *)this + 97), *((unsigned __int8 *)this + 800)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 97) + 1000LL))( *((_QWORD *)this + 97), *((unsigned __int8 *)this + 800)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 99) + 344LL))( *((_QWORD *)this + 99), *((unsigned __int8 *)this + 800)); MusicBrowser::updateSongControlLayout(this); if ( *((_BYTE *)this + 800) ) { v9 = *((_QWORD *)this + 89); v10 = *((_QWORD **)this + 97); v11 = (const char *)(v9 + 105); if ( (*(_BYTE *)(v9 + 104) & 1) != 0 ) v11 = *(const char **)(v9 + 120); v15 = (char *)v11; v16 = 0; v17 = 0; v18 = nullptr; v12 = strlen(v11); std::string::__init(&v16, v15, v12); CCTextInputNode::setString(v10, (char *)&v16); if ( (v16 & 1) != 0 ) operator delete(v18); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 97) + 1160LL))(*((_QWORD *)this + 97), 1); } else { (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 97) + 1160LL))(*((_QWORD *)this + 97), 0); v14 = *((_QWORD **)this + 97); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, &byte_11B8890, 0); CCTextInputNode::setString(v14, (char *)&v16); if ( (v16 & 1) != 0 ) operator delete(v18); std::string::assign((__int64 *)(*((_QWORD *)this + 89) + 104LL), &byte_11B8890); *(_DWORD *)(*((_QWORD *)this + 89) + 96LL) = 0; MusicSearchResult::updateObjects(*((MusicSearchResult **)this + 89)); MusicBrowser::setupList(this, *((MusicSearchResult **)this + 89)); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source