//
// PlayLayer::activatePlatformerEndTrigger from 0x100083cf0 to 0x100083ddf (239 bytes)
//
// 1 xrefs:
// > ??> @ 0x100abaff8
//
// 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:20:03 +0000
//
__int64 __fastcall PlayLayer::activatePlatformerEndTrigger(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
__int64 v5; // rsi
__int64 MainObject; // rax
_BYTE v7[8]; // [rsp+8h] [rbp-28h] BYREF
_BYTE v8[32]; // [rsp+10h] [rbp-20h] BYREF
result = *(_QWORD *)(a1 + 3256);
if ( !*(_BYTE *)(result + 2424) && !*(_BYTE *)(a1 + 13336) )
{
*(_QWORD *)(a1 + 14896) = a2;
v5 = *(unsigned int *)(a2 + 1464);
if ( (int)v5 > 0 )
(*(void (__fastcall **)(__int64, __int64, _QWORD, __int64, _QWORD, _QWORD, double))(*(_QWORD *)a1 + 1256LL))(
a1,
v5,
0,
a3,
*(unsigned int *)(a2 + 916),
*(unsigned int *)(a2 + 1672),
0.0);
*(_BYTE *)(a1 + 13336) = 1;
UILayer::disableMenu(*(_QWORD *)(a1 + 13288));
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a2 + 1360LL))(v8, a2);
if ( *(int *)(a2 + 1468) > 0 )
{
MainObject = GJBaseGameLayer::tryGetMainObject(a1);
if ( MainObject )
{
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)MainObject + 1360LL))(v7, MainObject);
sub_100278300(v8, v7);
}
}
sub_1002782D0(v7, v8);
return PlayLayer::playPlatformerEndAnimationToPos(a1, v7, *(unsigned __int8 *)(a2 + 1842));
}
return result;
}