//
// CheckpointGameObject::updateCheckpointSpriteVisibility from 0x4e9094 to 0x4e91a4 (272 bytes)
//
// 2 xrefs:
// > CheckpointGameObject::triggerActivated @ 0x4e921e
// > CheckpointGameObject::resetCheckpoint @ 0x4e95ca
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:07 +0000
//
int __fastcall CheckpointGameObject::updateCheckpointSpriteVisibility(CheckpointGameObject *this)
{
int v2; // r0
int v3; // r0
int v4; // r0
int v5; // r0
int v6; // r0
int v7; // r0
int v8; // r0
int v9; // r0
int result; // r0
char v11; // r3
v2 = (*(int (__fastcall **)(CheckpointGameObject *, int))(*(_DWORD *)this + 240))(this, 1125);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 172))(v2, *((unsigned __int8 *)this + 1648) ^ 1);
v3 = (*(int (__fastcall **)(CheckpointGameObject *, int))(*(_DWORD *)this + 240))(this, 1126);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 172))(v3, *((unsigned __int8 *)this + 1648) ^ 1);
v4 = (*(int (__fastcall **)(CheckpointGameObject *, int))(*(_DWORD *)this + 240))(this, 1127);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 172))(v4, *((unsigned __int8 *)this + 1648) ^ 1);
v5 = (*(int (__fastcall **)(CheckpointGameObject *, int))(*(_DWORD *)this + 240))(this, 1128);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 172))(v5, *((unsigned __int8 *)this + 1648));
v6 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 189) + 240))(*((_DWORD *)this + 189), 1125);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, *((unsigned __int8 *)this + 1648) ^ 1);
v7 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 189) + 240))(*((_DWORD *)this + 189), 1126);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 172))(v7, *((unsigned __int8 *)this + 1648) ^ 1);
v8 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 189) + 240))(*((_DWORD *)this + 189), 1127);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 172))(v8, *((unsigned __int8 *)this + 1648) ^ 1);
v9 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 189) + 240))(*((_DWORD *)this + 189), 1128);
result = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 172))(v9, *((unsigned __int8 *)this + 1648));
v11 = *((_BYTE *)this + 1648);
if ( v11 )
{
result = (*(int (__fastcall **)(CheckpointGameObject *, __int16 *))(*(_DWORD *)this + 748))(this, &word_BEC668);
v11 = 1;
}
*((_BYTE *)this + 540) = v11;
return result;
}