//
// CheckpointGameObject::triggerActivated from 0x1001b5cf0 to 0x1001b5f0d (541 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ad4830
//
// 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:26:11 +0000
//
void __fastcall CheckpointGameObject::triggerActivated(__int64 a1, float a2)
{
bool v2; // zf
__int64 v3; // r14
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // r14
__int64 v7; // rax
__int64 v8; // rsi
__int64 v9; // r14
__int64 v10; // r15
__int64 v11; // rax
int v12; // r12d
int v13; // eax
int v14; // r8d
int v15; // r9d
__int64 v16; // rax
_BYTE v17[8]; // [rsp+0h] [rbp-30h] BYREF
float v18; // [rsp+8h] [rbp-28h]
float v19; // [rsp+Ch] [rbp-24h]
v2 = *(_BYTE *)(a1 + 1840) == 0;
v19 = a2;
if ( v2 )
{
*(_BYTE *)(a1 + 1840) = 1;
v3 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1128);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 128LL))(v3, 1.4);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 144LL))(v3, 1.1);
v4 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v5 = cocos2d::CCEaseElasticOut::create(v4, 0.30000001);
cocos2d::CCNode::runAction(v3, v5);
v6 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 480LL))(*(_QWORD *)(a1 + 888), 1128);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 128LL))(v6, 1.4);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 144LL))(v6, 1.1);
v7 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v8 = cocos2d::CCEaseElasticOut::create(v7, 0.30000001);
cocos2d::CCNode::runAction(v6, v8);
CheckpointGameObject::updateCheckpointSpriteVisibility(a1);
v9 = cocos2d::CCSprite::createWithSpriteFrameName("checkpoint_01_shine_001.png");
v10 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1128);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v10 + 464LL))(v10, v9, 1);
v18 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10) * 0.5;
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10);
sub_100278250(v17, v18, *(float *)(v11 + 4) * 0.5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL))(v9, v17);
LODWORD(v10) = cocos2d::CCDelayTime::create(0.1);
v12 = cocos2d::CCFadeOut::create(0.5);
v13 = cocos2d::CCCallFunc::create(v9, 537, 0);
v16 = sub_10039EB60(v10, v12, v13, 0, v14, v15);
cocos2d::CCNode::runAction(v9, v16);
a2 = v19;
}
if ( !*(_BYTE *)(a1 + 1664) )
{
EnhancedGameObject::triggerActivated(a1, v19);
a2 = v19;
}
*(float *)(a1 + 1656) = a2;
}