// // EditorSoundConfigInfoLayer::likedItem from 0x140196da0 to 0x140196eb4 (276 bytes) // // 5 xrefs: // > @ 0x14074df38 // > @ 0x14089fd14 // > @ 0x14089fd4c // > @ 0x14089fd5c // > @ 0x140919550 // // This function is hookable on this platform (idp: pc, 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 11:27:45 +0000 // void __fastcall EditorSoundConfigInfoLayer::likedItem(__int64 a1, int a2, int a3, unsigned __int8 a4) { __int64 v4; // rax struct cocos2d::CCObject *v7; // rdi __int64 v8; // rsi cocos2d::CCArray *v9; // rcx unsigned int v10; // ebx struct cocos2d::CCObject *v11; // rax v4 = *(_QWORD *)(a1 + 40); if ( v4 && a2 == 5 && a3 == *(_DWORD *)(v4 + 320) ) { *(_BYTE *)(v4 + 545) = 1; *(_DWORD *)(*(_QWORD *)(a1 + 40) + 352LL) += 2 * a4 - 1; if ( EditorSFXManager::sharedState() ) { v7 = nullptr; v8 = EditorSFXManager::sharedState(); v9 = *(cocos2d::CCArray **)(v8 + 208); if ( v9 ) { v10 = 0; if ( cocos2d::CCArray::count(v9) ) { while ( 1 ) { v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v8 + 208), v10); if ( v11 ) { if ( *((_DWORD *)v11 + 80) == a3 ) break; } if ( ++v10 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(v8 + 208)) ) goto LABEL_12; } v7 = v11; } } LABEL_12: if ( v7 ) { if ( v7 != *(struct cocos2d::CCObject **)(a1 + 40) ) { *((_BYTE *)v7 + 545) = 1; *((_DWORD *)v7 + 88) = *(_DWORD *)(*(_QWORD *)(a1 + 40) + 352LL); } } } EditorSoundConfigInfoLayer::refreshLikeState((_QWORD *)(a1 - 1032)); } }