//
// EndPortalObject::triggerObject from 0x100386180 to 0x1003861f6 (118 bytes)
//
// 1 xrefs:
// > PlayLayer::checkForEnd @ 0x100088d00
//
// This function is hookable on this platform (idp: pc, 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 12:29:10 +0000
//
void __fastcall EndPortalObject::triggerObject(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 *v3; // r14
_QWORD v4[4]; // [rsp+0h] [rbp-20h] BYREF
v4[0] = v1;
if ( !*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 3256LL) + 2424LL) )
{
v2 = GameManager::sharedState();
UILayer::disableMenu(*(_QWORD *)(*(_QWORD *)(v2 + 544) + 13288LL));
v3 = *(__int64 **)(GameManager::sharedState() + 544);
(*(void (__fastcall **)(_QWORD *, __int64))(*(_QWORD *)a1 + 1816LL))(v4, a1);
PlayLayer::playEndAnimationToPos(v3, (__int64)v4);
}
}