//
// sub_1004D27CC from 0x1004d27cc to 0x1004d283c (112 bytes)
//
// 4 xrefs:
// > sub_1004CF9C0 @ 0x1004d10ac
// > sub_1004CF9C0 @ 0x1004d11ac
// > sub_1004D283C @ 0x1004d2850
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1004d30a0
//
// 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 11:06:29 +0000
//
__int64 __fastcall sub_1004D27CC(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x0
if ( !*(_QWORD *)(a1 + 1088) )
return 0;
result = GJAccountManager::sharedState();
if ( result )
{
v3 = GJAccountManager::sharedState();
if ( *(_DWORD *)(v3 + 352) <= *(_DWORD *)(v3 + 356) )
{
return 0;
}
else
{
v4 = GJAccountManager::sharedState();
return *(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356) == *(_DWORD *)(*(_QWORD *)(a1 + 1088) + 340LL);
}
}
return result;
}