//
// PlayLayer::activatePlatformerEndTrigger from 0x408578 to 0x408644 (204 bytes)
//
// 0 xrefs:
//
// 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:47:29 +0000
//
void __fastcall PlayLayer::activatePlatformerEndTrigger(int a1, int a2)
{
int v4; // r1
int MainObject; // r0
_BYTE v6[8]; // [sp+1Ch] [bp-18h] BYREF
_BYTE v7[8]; // [sp+24h] [bp-10h] BYREF
if ( !*(_BYTE *)(*(_DWORD *)(a1 + 2076) + 1960) && !*(_BYTE *)(a1 + 11272) )
{
*(_DWORD *)(a1 + 12296) = a2;
if ( *(int *)(a2 + 1284) > 0 )
(*(void (__fastcall **)(int))(*(_DWORD *)a1 + 628))(a1);
*(_BYTE *)(a1 + 11272) = 1;
UILayer::disableMenu(*(UILayer **)(a1 + 11240));
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)a2 + 680))(v6, a2);
v4 = *(_DWORD *)(a2 + 1288);
if ( v4 > 0 )
{
MainObject = GJBaseGameLayer::tryGetMainObject((GJBaseGameLayer *)a1, v4);
if ( MainObject )
{
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)MainObject + 680))(v7, MainObject);
cocos2d::CCPoint::operator=(v6, v7);
}
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, (const cocos2d::CCPoint *)v6);
PlayLayer::playPlatformerEndAnimationToPos(a1, (const cocos2d::CCPoint *)v7, *(unsigned __int8 *)(a2 + 1650));
}
}