//
// SequenceTriggerGameObject::addCount from 0x763214 to 0x763264 (80 bytes)
//
// 2 xrefs:
// > SetupSequenceTriggerPopup::onAddChance @ 0xa59cf8
// > ??> @ 0x7fd40
//
// 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 SequenceTriggerGameObject::addCount(SequenceTriggerGameObject *a1, int a2, int a3)
{
ChanceObject *m_start; // x4
ChanceObject *m_finish; // x5
ChanceObject *v5; // x1
int v6; // w2
if ( (a2 & 0x80000000) == 0 )
{
m_start = a1->m_chanceObjects.m_start;
m_finish = a1->m_chanceObjects.m_finish;
if ( a2 <= (unsigned __int64)(m_finish - m_start - 1) && m_start != m_finish )
{
v5 = &m_start[a2];
v6 = v5->m_chance + a3;
if ( v6 <= 0 )
v6 = 1;
v5->m_chance = v6;
a1->m_sequenceTotalCount = -1;
}
}
}