//
// SetupRandAdvTriggerPopup::addChance from 0x65cbf4 to 0x65cc44 (80 bytes)
//
// 1 xrefs:
// > SetupRandAdvTriggerPopup::onAddChance @ 0x65cd5c
//
// 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:55:34 +0000
//
void __fastcall SetupRandAdvTriggerPopup::addChance(SetupRandAdvTriggerPopup *this, int a2, int a3)
{
RandTriggerGameObject *v4; // r1
unsigned int i; // r4
RandTriggerGameObject *v8; // r0
v4 = *((RandTriggerGameObject **)this + 132);
*((_BYTE *)this + 712) = 1;
if ( v4 )
{
SetupRandAdvTriggerPopup::addChanceToObject(this, v4, a2, a3);
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133)); ++i )
{
v8 = (RandTriggerGameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), i);
SetupRandAdvTriggerPopup::addChanceToObject(this, v8, a2, a3);
}
}
SetupRandAdvTriggerPopup::updateGroupIDButtons((cocos2d::CCArray **)this);
}