//
// SetupRandTriggerPopup::onClose from 0x140441390 to 0x14044146a (218 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405ec7d0
// > ??> @ 0x1406da3f4
//
// 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 SetupRandTriggerPopup::onClose(SetupRandTriggerPopup *a1, cocos2d::CCObject *a2)
{
__int64 v4; // rax
void *v5; // [rsp+30h] [rbp+8h]
a1->m_groupID1Input->m_delegate = nullptr;
a1->m_groupID1Input->onClickTrackNode(a1->m_groupID1Input, 0);
a1->m_groupID2Input->m_delegate = nullptr;
a1->m_groupID2Input->onClickTrackNode(a1->m_groupID2Input, 0);
a1->m_chanceInput->m_delegate = nullptr;
a1->m_chanceInput->onClickTrackNode(a1->m_chanceInput, 0);
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
*(_BYTE *)(*(_QWORD *)(v4 + 528) + 14401LL) = 1;
SetupTriggerPopup::onClose(a1, a2);
}