//
// SetupSequenceTriggerPopup::onAddChance from 0x1004d9780 to 0x1004d981d (157 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::init @ 0x1004d8dce
//
// This function is hookable on this platform (idp: pc, 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:31:14 +0000
//
void __fastcall SetupSequenceTriggerPopup::onAddChance(__int64 *a1)
{
int v2; // r14d
__int64 v3; // rdi
__int64 v4; // r15
int v5; // eax
__int64 v6; // rsi
float v7; // [rsp+0h] [rbp-1Ch]
v7 = (*(float (__fastcall **)(__int64 *, __int64))(*a1 + 1464))(a1, 0xFFFFFFFFLL);
v2 = (int)(*(float (__fastcall **)(__int64 *, __int64))(*a1 + 1464))(a1, 4294967294LL);
v3 = a1[127];
if ( v3 )
{
if ( !v2 )
return;
v4 = a1[85];
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3);
SequenceTriggerGameObject::addCount(v4, v5, v2);
goto LABEL_7;
}
v6 = (unsigned int)(int)v7;
if ( (int)v6 > 0 && v2 > 0 )
{
SequenceTriggerGameObject::addTarget(a1[85], v6, v2);
LABEL_7:
SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
}
}