// // MoreSearchLayer::toggleSongNodes from 0x7df1a8 to 0x7df29c (244 bytes) // // 4 xrefs: // > MoreSearchLayer::onSongFilter @ 0x7df320 // > MoreSearchLayer::onSongFilter @ 0x7df364 // > MoreSearchLayer::onSongMode @ 0x7e0a58 // > @ 0x4be50 // // 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:54:25 +0000 // __int64 __fastcall MoreSearchLayer::toggleSongNodes(cocos2d::CCArray **this, unsigned __int8 a2, unsigned __int8 a3) { int v3; // w21 int v4; // w23 unsigned int v5; // w22 unsigned int v7; // w20 __int64 v8; // x0 bool v9; // cf unsigned int v10; // w1 unsigned int v11; // w20 __int64 v12; // x0 unsigned int v13; // w1 unsigned int v14; // w20 unsigned int i; // w21 __int64 v16; // x0 __int64 result; // x0 unsigned int v18; // w1 v3 = a3; v4 = a2; v5 = (a2 ^ 1) & (a3 ^ 1); v7 = 0; while ( 1 ) { v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*(this + 90)); v10 = v7++; if ( v9 ) break; v8 = cocos2d::CCArray::objectAtIndex(*(this + 90), v10); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, v5); } v11 = 0; while ( 1 ) { v9 = v11 >= (unsigned int)cocos2d::CCArray::count(*(this + 91)); v13 = v11++; if ( v9 ) break; v12 = cocos2d::CCArray::objectAtIndex(*(this + 91), v13); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 344LL))(v12, v4 & (v3 ^ 1u)); } v14 = 0; for ( i = v3 ^ 1; ; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, i) ) { result = cocos2d::CCArray::count(*(this + 89)); v9 = v14 >= (unsigned int)result; v18 = v14++; if ( v9 ) break; v16 = cocos2d::CCArray::objectAtIndex(*(this + 89), v18); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source