//
// SetupTriggerPopup::addObjectToGroup from 0x10021a5a0 to 0x10021a61a (122 bytes)
//
// 26 xrefs:
// > SetupRotateCommandPopup::init @ 0x10000207f
// > sub_1003DDDD0 @ 0x1003def7e
// > SetupAreaTintTriggerPopup::init @ 0x1004d3b1d
// > SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim @ 0x1004d7214
// > GameSettingsLayer::addSpecialContent @ 0x10060072a
// > GameSettingsLayer::addSpecialContent @ 0x100600a49
// > GameSettingsLayer::addSpecialContent @ 0x100600d5a
// > GameSettingsLayer::addSpecialContent @ 0x100600e7f
// > GameSettingsLayer::addSpecialContent @ 0x10060102e
// > GameSettingsLayer::addSpecialContent @ 0x100601103
// > GameSettingsLayer::addSpecialContent @ 0x1006011ef
// > GameSettingsLayer::addSpecialContent @ 0x1006012ec
// > GameSettingsLayer::addSpecialContent @ 0x1006013b2
// > GameSettingsLayer::addSpecialContent @ 0x100601481
// > GameSettingsLayer::addSpecialContent @ 0x10060156a
// > GameSettingsLayer::addSpecialContent @ 0x100601664
// > GameSettingsLayer::addToggle @ 0x1006023de
// > IDNameInput::initCore @ 0x10091403a
// > IDNameInput::initCore @ 0x100914053
// > IDNameInput::initCore @ 0x10091406c
// > IDNameInput::initCore @ 0x100914085
// > IDNameInput::initCore @ 0x10091409e
// > IDNameInput::initCore @ 0x1009140b7
// > IDNameInput::initCore @ 0x1009140d0
// > IDNameInput::initCore @ 0x1009140e9
// > IDNameInput::initCore @ 0x100914107
//
// 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:27:01 +0000
//
__int64 __fastcall SetupTriggerPopup::addObjectToGroup(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 i; // rdi
__int64 v6; // r12
__int64 v7; // rax
__int64 v8; // rax
for ( i = *(_QWORD *)(a1 + 928); (unsigned int)sub_1007FEF90(i) <= a3; i = *(_QWORD *)(a1 + 928) )
{
v6 = *(_QWORD *)(a1 + 928);
v7 = sub_1007FE900(i);
sub_1007FEBF0(v6, v7);
}
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 928), a3);
return sub_1007FEBF0(v8, a2);
}