//
// SetupSequenceTriggerPopup::onAddChance from 0x1001d3110 to 0x1001d31cc (188 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::init @ 0x1001d2938
//
// 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 __fastcall SetupSequenceTriggerPopup::onAddChance(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)
{
float v3; // s8
float v4; // s0
int v5; // w20
CCMenuItemSpriteExtra *m_selectedButton; // x0
SequenceTriggerGameObject *m_gameObject; // x21
int v8; // w0
v3 = ((float (__fastcall *)(SetupSequenceTriggerPopup *, __int64))a1->getValue)(a1, 0xFFFFFFFFLL);
v4 = ((float (__fastcall *)(SetupSequenceTriggerPopup *, __int64))a1->getValue)(a1, 4294967294LL);
v5 = (int)v4;
m_selectedButton = a1->m_selectedButton;
if ( m_selectedButton )
{
if ( v5 )
{
m_gameObject = (SequenceTriggerGameObject *)a1->m_gameObject;
v8 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))m_selectedButton->getTag)(m_selectedButton);
SequenceTriggerGameObject::addCount(m_gameObject, v8, v5);
LABEL_10:
SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
}
}
else if ( (int)v3 >= 1 && v5 >= 1 )
{
SequenceTriggerGameObject::addTarget((SequenceTriggerGameObject *)a1->m_gameObject, (int)v3, (int)v4);
goto LABEL_10;
}
}