//
// CheckpointGameObject::triggerActivated from 0x1004361ac to 0x10043637c (464 bytes)
//
// 1 xrefs:
// > ??> @ 0x10095a498
//
// 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 11:05:08 +0000
//
__int64 __fastcall CheckpointGameObject::triggerActivated(__int64 result, float a2)
{
__int64 v3; // x19
char v4; // w8
char v5; // w21
__int64 v6; // x0
__int64 v7; // x20
float *v8; // x0
_OWORD *v9; // x0
void *v10; // x20
__int64 v11; // x21
float v12; // s9
__int64 v13; // x0
float *v14; // x21
char v15; // w22
__int64 v16; // x1
__int64 v17; // x2
__int64 v18; // x3
__int64 v19; // x4
__int64 v20; // x5
__int64 v21; // x6
__int64 v22; // x7
__int64 v23; // x0
float v24; // [xsp+18h] [xbp-48h] BYREF
v3 = result;
if ( (*(_BYTE *)(result + 1840) & 1) == 0 )
{
v4 = 1;
*(_BYTE *)(result + 1840) = 1;
do
{
v5 = v4;
v6 = v3;
if ( (v4 & 1) == 0 )
v6 = *(_QWORD *)(v3 + 888);
v7 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 1128);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 128LL))(v7, 1.4);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 144LL))(v7, 1.1);
v8 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v9 = cocos2d::CCEaseElasticOut::create((__int64)v8, 0.3);
cocos2d::CCNode::runAction(v7, (__int64)v9);
v4 = 0;
}
while ( (v5 & 1) != 0 );
CheckpointGameObject::updateCheckpointSpriteVisibility(v3);
v10 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"checkpoint_01_shine_001.png");
v11 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 480LL))(v3, 1128);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v10, 1);
v12 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 328LL))(v11) * 0.5;
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 328LL))(v11);
sub_1000262BC(&v24, v12, *(float *)(v13 + 4) * 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v10 + 184LL))(v10, &v24);
v14 = cocos2d::CCDelayTime::create(0.1);
v15 = (unsigned __int8)cocos2d::CCFadeOut::create(0.5);
cocos2d::CCCallFunc::create((__int64)v10, 536, 1);
v23 = sub_10021D420((__int64)v14, v16, v17, v18, v19, v20, v21, v22, v15);
result = cocos2d::CCNode::runAction((__int64)v10, v23);
}
if ( (*(_BYTE *)(v3 + 1664) & 1) == 0 )
result = EnhancedGameObject::triggerActivated(v3);
*(float *)(v3 + 1656) = a2;
return result;
}