//
// EndPortalObject::triggerObject from 0x8b5054 to 0x8b50f4 (160 bytes)
//
// 2 xrefs:
// > PlayLayer::checkForEnd @ 0x6f2cf4
// > ??> @ 0x6c298
//
// 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 12:56:24 +0000
//
__int64 __fastcall EndPortalObject::triggerObject(EndPortalObject *this, GJBaseGameLayer *a2)
{
GameManager *v3; // x0
__int64 v4; // x0
GameManager *v5; // x0
float *v6; // x22
__int64 v8; // [xsp+40h] [xbp+40h] BYREF
v3 = (GameManager *)*(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 544)
+ 3256LL)
+ 2424LL);
if ( !(_DWORD)v3 )
{
v4 = GameManager::sharedState(v3);
v5 = (GameManager *)UILayer::disableMenu(*(UILayer **)(*(_QWORD *)(v4 + 544) + 13288LL));
v6 = *(float **)(GameManager::sharedState(v5) + 544);
(*(void (__fastcall **)(__int64 *__return_ptr, EndPortalObject *))(*(_QWORD *)this + 1816LL))(&v8, this);
PlayLayer::playEndAnimationToPos(v6, (const cocos2d::CCPoint *)&v8);
}
return _stack_chk_guard;
}