//
// EditorSoundConfigInfoLayer::likedItem from 0x785140 to 0x7851ac (108 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0x7851b0
//
// 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:59:32 +0000
//
_DWORD *__fastcall EditorSoundConfigInfoLayer::likedItem(_DWORD *result, int a2, int a3, int a4)
{
int v5; // r2
_DWORD *v6; // r4
int v7; // r3
EditorSFXManager *v8; // r0
int v9; // r1
char *v10; // r2
int v11; // r3
cocos2d::CCArray **v12; // r0
int FavoriteConfig; // r0
v5 = result[187];
v6 = result;
if ( v5 && a2 == 5 && a3 == *(_DWORD *)(v5 + 264) )
{
*(_BYTE *)(v5 + 385) = 1;
if ( a4 )
v7 = 1;
else
v7 = -1;
*(_DWORD *)(result[187] + 296) += v7;
v8 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)result);
if ( v8 )
{
v12 = (cocos2d::CCArray **)EditorSFXManager::sharedState(v8);
FavoriteConfig = EditorSFXManager::getFavoriteConfig(v12, a3);
if ( FavoriteConfig )
{
v11 = v6[187];
if ( FavoriteConfig != v11 )
{
*(_BYTE *)(FavoriteConfig + 385) = 1;
v11 = *(_DWORD *)(v6[187] + 296);
*(_DWORD *)(FavoriteConfig + 296) = v11;
}
}
}
return EditorSoundConfigInfoLayer::refreshLikeState(v6, v9, v10, v11);
}
return result;
}