//
// EndPortalObject::triggerObject from 0x507f3c to 0x507f9e (98 bytes)
//
// 1 xrefs:
// > PlayLayer::checkForEnd @ 0x3ff646
//
// 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:51:25 +0000
//
float *__fastcall EndPortalObject::triggerObject(EndPortalObject *this, GJBaseGameLayer *a2)
{
float *result; // r0
int v4; // r0
GameManager *v5; // r0
float *v6; // r7
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
result = (float *)GameManager::sharedState(this);
if ( !*(_BYTE *)(*(_DWORD *)(*((_DWORD *)result + 101) + 2076) + 1960) )
{
v4 = GameManager::sharedState((GameManager *)result);
v5 = (GameManager *)UILayer::disableMenu(*(UILayer **)(*(_DWORD *)(v4 + 404) + 11240));
v6 = *(float **)(GameManager::sharedState(v5) + 404);
(*(void (__fastcall **)(_BYTE *, EndPortalObject *))(*(_DWORD *)this + 908))(v7, this);
return PlayLayer::playEndAnimationToPos(v6, (const cocos2d::CCPoint *)v7);
}
return result;
}