//
// CheckpointGameObject::updateCheckpointSpriteVisibility from 0x1001d51f0 to 0x1001d5367 (375 bytes)
//
// 4 xrefs:
// > CheckpointGameObject::triggerActivated @ 0x1001d50da
// > CheckpointGameObject::resetObject @ 0x1001d69ef
// > CheckpointGameObject::resetCheckpoint @ 0x1001d6a0c
// > CheckpointGameObject::restoreObject @ 0x1001d6a39
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CheckpointGameObject::updateCheckpointSpriteVisibility(CheckpointGameObject *a1)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rax
bool v10; // al
v2 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1125);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v2 + 328LL))(v2, !a1->m_checkpointActivated);
v3 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1126);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_checkpointActivated);
v4 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1127);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v4 + 328LL))(v4, !a1->m_checkpointActivated);
v5 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1128);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 328LL))(v5, a1->m_checkpointActivated);
v6 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)(a1->m_colorSprite, 1125);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v6 + 328LL))(v6, !a1->m_checkpointActivated);
v7 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)(a1->m_colorSprite, 1126);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, !a1->m_checkpointActivated);
v8 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)(a1->m_colorSprite, 1127);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v8 + 328LL))(v8, !a1->m_checkpointActivated);
v9 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)(a1->m_colorSprite, 1128);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 328LL))(v9, a1->m_checkpointActivated);
if ( a1->m_checkpointActivated )
{
((void (__fastcall *)(CheckpointGameObject *, void *))a1->setObjectColor)(a1, &unk_1008170F0);
v10 = 1;
}
else
{
v10 = 0;
}
a1->m_isColorSpriteBlack = v10;
}