//
// EditorSoundConfigInfoLayer::likedItem from 0xccd87c to 0xccd92c (176 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::likedItem @ 0xccd930
// > ??> @ 0x747b8
// > ??> @ 0x14fee80
//
// 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:06:25 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::likedItem(__int64 result, int a2, int a3, char a4)
{
bool v4; // zf
__int64 v5; // x1
int v6; // w21
EditorSoundConfigInfoLayer *v7; // x19
__int64 v8; // x2
int v9; // w0
EditorSFXManager *v10; // x0
EditorSFXManager *v11; // x0
EditorSFXManager *v12; // x0
__int64 FavoriteConfig; // x0
v4 = a2 == 5;
v5 = *(_QWORD *)(result + 1088);
if ( v4 )
{
if ( v5 )
{
v6 = *(_DWORD *)(v5 + 316);
if ( v6 == a3 )
{
*(_BYTE *)(v5 + 497) = 1;
v7 = (EditorSoundConfigInfoLayer *)result;
v8 = *(_QWORD *)(result + 1088);
if ( a4 )
v9 = 1;
else
v9 = -1;
v10 = (EditorSFXManager *)(unsigned int)(v9 + *(_DWORD *)(v8 + 348));
*(_DWORD *)(v8 + 348) = (_DWORD)v10;
v11 = (EditorSFXManager *)EditorSFXManager::sharedState(v10);
if ( v11 )
{
v12 = (EditorSFXManager *)EditorSFXManager::sharedState(v11);
FavoriteConfig = EditorSFXManager::getFavoriteConfig(v12, v6);
if ( FavoriteConfig )
{
if ( FavoriteConfig != *((_QWORD *)v7 + 136) )
{
*(_BYTE *)(FavoriteConfig + 497) = 1;
*(_DWORD *)(FavoriteConfig + 348) = *(_DWORD *)(*((_QWORD *)v7 + 136) + 348LL);
}
}
}
return EditorSoundConfigInfoLayer::refreshLikeState(v7);
}
}
}
return result;
}