//
// CheckpointGameObject::updateCheckpointSpriteVisibility from 0x10038fa80 to 0x10038fc08 (392 bytes)
//
// 3 xrefs:
// > CheckpointGameObject::triggerActivated @ 0x10038f970
// > CheckpointGameObject::resetObject @ 0x100390778
// > CheckpointGameObject::restoreObject @ 0x1003907a0
//
// 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; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
bool v10; // w8
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_100645920);
v10 = 1;
}
else
{
v10 = 0;
}
a1->m_isColorSpriteBlack = v10;
}