//
// CheckpointGameObject::updateCheckpointSpriteVisibility from 0x87ec50 to 0x87ede8 (408 bytes)
//
// 3 xrefs:
// > CheckpointGameObject::triggerActivated @ 0x87eebc
// > CheckpointGameObject::resetCheckpoint @ 0x87f420
// > ??> @ 0x93a48
//
// 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 12:55:54 +0000
//
__int64 __fastcall CheckpointGameObject::updateCheckpointSpriteVisibility(CheckpointGameObject *this)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 result; // x0
v2 = (*(__int64 (__fastcall **)(CheckpointGameObject *, __int64))(*(_QWORD *)this + 480LL))(this, 1125);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, *((unsigned __int8 *)this + 1840) ^ 1u);
v3 = (*(__int64 (__fastcall **)(CheckpointGameObject *, __int64))(*(_QWORD *)this + 480LL))(this, 1126);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 1840) ^ 1u);
v4 = (*(__int64 (__fastcall **)(CheckpointGameObject *, __int64))(*(_QWORD *)this + 480LL))(this, 1127);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, *((unsigned __int8 *)this + 1840) ^ 1u);
v5 = (*(__int64 (__fastcall **)(CheckpointGameObject *, __int64))(*(_QWORD *)this + 480LL))(this, 1128);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, *((unsigned __int8 *)this + 1840));
v6 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 111) + 480LL))(*((_QWORD *)this + 111), 1125);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, *((unsigned __int8 *)this + 1840) ^ 1u);
v7 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 111) + 480LL))(*((_QWORD *)this + 111), 1126);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 1840) ^ 1u);
v8 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 111) + 480LL))(*((_QWORD *)this + 111), 1127);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, *((unsigned __int8 *)this + 1840) ^ 1u);
v9 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 111) + 480LL))(*((_QWORD *)this + 111), 1128);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, *((unsigned __int8 *)this + 1840));
result = *((unsigned __int8 *)this + 1840);
if ( *((_BYTE *)this + 1840) )
{
(*(void (__fastcall **)(CheckpointGameObject *, void *))(*(_QWORD *)this + 1496LL))(this, &unk_114B748);
*((_BYTE *)this + 640) = 1;
return 1;
}
else
{
*((_BYTE *)this + 640) = 0;
}
return result;
}