//
// SequenceTriggerGameObject::updateSequenceTotalCount from 0x87bee4 to 0x87bf18 (52 bytes)
//
// 3 xrefs:
// > SequenceTriggerGameObject::customObjectSetup @ 0x89bf64
// > SequenceTriggerGameObject::triggerObject @ 0x89cbec
// > ??> @ 0x9d978
//
// 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:52 +0000
//
__int64 __fastcall SequenceTriggerGameObject::updateSequenceTotalCount(__int64 this)
{
__int64 v1; // x1
int v2; // w2
__int64 v3; // x4
int v4; // w3
v1 = *(_QWORD *)(this + 1840);
v2 = 0;
v3 = *(_QWORD *)(this + 1848);
for ( *(_DWORD *)(this + 1960) = 0; v3 != v1; *(_DWORD *)(this + 1960) = v2 )
{
v4 = *(_DWORD *)(v1 + 8);
v1 += 16;
v2 += v4;
}
return this;
}