//
// CheckpointGameObject::updateCheckpointSpriteVisibility from 0x1001b5f10 to 0x1001b6087 (375 bytes)
//
// 4 xrefs:
// > CheckpointGameObject::triggerActivated @ 0x1001b5dfa
// > CheckpointGameObject::resetObject @ 0x1001b794f
// > CheckpointGameObject::resetCheckpoint @ 0x1001b796c
// > CheckpointGameObject::restoreObject @ 0x1001b7999
//
// 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
//
char __fastcall CheckpointGameObject::updateCheckpointSpriteVisibility(__int64 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
char result; // al
v2 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1125);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, *(unsigned __int8 *)(a1 + 1840) ^ 1u);
v3 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1126);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *(unsigned __int8 *)(a1 + 1840) ^ 1u);
v4 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1127);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, *(unsigned __int8 *)(a1 + 1840) ^ 1u);
v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1128);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, *(unsigned __int8 *)(a1 + 1840));
v6 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 480LL))(*(_QWORD *)(a1 + 888), 1125);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, *(unsigned __int8 *)(a1 + 1840) ^ 1u);
v7 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 480LL))(*(_QWORD *)(a1 + 888), 1126);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *(unsigned __int8 *)(a1 + 1840) ^ 1u);
v8 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 480LL))(*(_QWORD *)(a1 + 888), 1127);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, *(unsigned __int8 *)(a1 + 1840) ^ 1u);
v9 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 480LL))(*(_QWORD *)(a1 + 888), 1128);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, *(unsigned __int8 *)(a1 + 1840));
if ( *(_BYTE *)(a1 + 1840) == 1 )
{
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 1496LL))(a1, &unk_100A054C8);
result = 1;
}
else
{
result = 0;
}
*(_BYTE *)(a1 + 640) = result;
return result;
}