//
// EndPortalObject::triggerObject from 0x10047f414 to 0x10047f484 (112 bytes)
//
// 1 xrefs:
// > PlayLayer::checkForEnd @ 0x100148b70
//
// 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:05:45 +0000
//
void __fastcall EndPortalObject::triggerObject(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // [xsp+8h] [xbp-18h] BYREF
if ( (*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 3256LL) + 2424LL) & 1) == 0 )
{
v2 = GameManager::sharedState();
UILayer::disableMenu(*(_QWORD *)(*(_QWORD *)(v2 + 544) + 13288LL));
v3 = *(_QWORD *)(GameManager::sharedState() + 544);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)a1 + 1816LL))(&v4, a1);
PlayLayer::playEndAnimationToPos(v3, (__int64)&v4);
}
}