//
// EditorSoundConfigInfoLayer::isOwner from 0xccdd60 to 0xccddd4 (116 bytes)
//
// 4 xrefs:
// > EditorSoundConfigInfoLayer::editsServerDescription @ 0xccdde4
// > EditorSoundConfigInfoLayer::onDeleteServer @ 0xcce48c
// > EditorSoundConfigInfoLayer::init @ 0xcd1fac
// > ??> @ 0xaf030
//
// 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
//
bool __fastcall EditorSoundConfigInfoLayer::isOwner(EditorSoundConfigInfoLayer *this)
{
GJAccountManager *v2; // x0
__int64 v3; // x0
GJAccountManager *v4; // x0
__int64 v5; // x0
if ( !*((_QWORD *)this + 136) )
return 0;
v2 = (GJAccountManager *)GJAccountManager::sharedState(this);
if ( !v2 )
return 0;
v3 = GJAccountManager::sharedState(v2);
v4 = (GJAccountManager *)(unsigned int)(*(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356));
if ( (int)v4 <= 0 )
return 0;
v5 = GJAccountManager::sharedState(v4);
return *(_DWORD *)(v5 + 352) - *(_DWORD *)(v5 + 356) == *(_DWORD *)(*((_QWORD *)this + 136) + 340LL);
}