//
// EditorSoundConfigInfoLayer::isOwner from 0x784ec2 to 0x784f08 (70 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::editsServerDescription @ 0x784f0c
// > EditorSoundConfigInfoLayer::onDeleteServer @ 0x785a8e
// > EditorSoundConfigInfoLayer::init @ 0x788036
//
// 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:31 +0000
//
int __fastcall EditorSoundConfigInfoLayer::isOwner(EditorSoundConfigInfoLayer *this)
{
GJAccountManager *v3; // r0
GJAccountManager *v4; // r0
int v5; // r0
if ( !*((_DWORD *)this + 187) )
return 0;
v3 = (GJAccountManager *)GJAccountManager::sharedState(this);
if ( !v3 )
return 0;
v4 = (GJAccountManager *)GJAccountManager::sharedState(v3);
if ( *((_DWORD *)v4 + 70) - *((_DWORD *)v4 + 71) <= 0 )
return 0;
v5 = GJAccountManager::sharedState(v4);
return *(_DWORD *)(v5 + 280)
- *(_DWORD *)(v5 + 284)
- *(_DWORD *)(*((_DWORD *)this + 187) + 288)
+ (*(_DWORD *)(v5 + 280) - *(_DWORD *)(v5 + 284) == *(_DWORD *)(*((_DWORD *)this + 187) + 288))
+ *(_DWORD *)(*((_DWORD *)this + 187) + 288)
- (*(_DWORD *)(v5 + 280)
- *(_DWORD *)(v5 + 284));
}