//
// SetupSequenceTriggerPopup::onAddChance from 0x6bc30c to 0x6bc38a (126 bytes)
//
// 0 xrefs:
//
// 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:56:47 +0000
//
int __fastcall SetupSequenceTriggerPopup::onAddChance(SetupSequenceTriggerPopup *this, cocos2d::CCObject *a2)
{
float v3; // s16
float v4; // s15
int result; // r0
int v6; // s15
_DWORD *v7; // r6
unsigned int v8; // r0
v3 = COERCE_FLOAT((*(int (__fastcall **)(SetupSequenceTriggerPopup *, int))(*(_DWORD *)this + 732))(this, -1));
v4 = COERCE_FLOAT((*(int (__fastcall **)(SetupSequenceTriggerPopup *, int))(*(_DWORD *)this + 732))(this, -2));
result = *((_DWORD *)this + 178);
v6 = (int)v4;
if ( result )
{
if ( !v6 )
return result;
v7 = *((_DWORD **)this + 132);
v8 = (*(int (__fastcall **)(int))(*(_DWORD *)result + 32))(result);
SequenceTriggerGameObject::addCount(v7, v8, v6);
return SetupSequenceTriggerPopup::updateGroupIDButtons(this);
}
if ( (int)v3 > 0 && v6 > 0 )
{
SequenceTriggerGameObject::addTarget(*((SequenceTriggerGameObject **)this + 132), (int)v3, v6);
return SetupSequenceTriggerPopup::updateGroupIDButtons(this);
}
return result;
}