//
// SetupTriggerPopup::addObjectToPage from 0x10021a420 to 0x10021a49a (122 bytes)
//
// 40 xrefs:
// > SetupRotateCommandPopup::init @ 0x10000208c
// > SetupSpawnPopup::init @ 0x10027b17f
// > SetupSpawnPopup::init @ 0x10027b272
// > SetupSpawnPopup::init @ 0x10027b393
// > SetupSpawnPopup::init @ 0x10027b436
// > SetupSpawnPopup::updateRemapButtons @ 0x10027bc6c
// > SetupSongTriggerPopup::init @ 0x1002c05e7
// > SetupSongTriggerPopup::init @ 0x1002c06af
// > SetupAdvFollowPopup::init @ 0x1002f0e4f
// > SetupAdvFollowPopup::init @ 0x1002f0fa3
// > SetupAdvFollowPopup::init @ 0x1002f10fe
// > SetupAdvFollowPopup::init @ 0x1002f37f2
// > sub_1003DDDD0 @ 0x1003def8f
// > SetupAreaTintTriggerPopup::init @ 0x1004d3b2e
// > SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim @ 0x1004d7202
// > SelectEventLayer::addToggle @ 0x1005a73f8
// > SelectEventLayer::addToggle @ 0x1005a75a3
// > GameSettingsLayer::addSpecialContent @ 0x10060071c
// > GameSettingsLayer::addSpecialContent @ 0x100600a3b
// > GameSettingsLayer::addSpecialContent @ 0x100600d4c
// > GameSettingsLayer::addSpecialContent @ 0x100600e71
// > GameSettingsLayer::addSpecialContent @ 0x100601020
// > GameSettingsLayer::addSpecialContent @ 0x1006010f1
// > GameSettingsLayer::addSpecialContent @ 0x1006011e1
// > GameSettingsLayer::addSpecialContent @ 0x1006012de
// > GameSettingsLayer::addSpecialContent @ 0x1006013a4
// > GameSettingsLayer::addSpecialContent @ 0x10060146f
// > GameSettingsLayer::addSpecialContent @ 0x10060155c
// > GameSettingsLayer::addSpecialContent @ 0x100601656
// > GameSettingsLayer::addToggle @ 0x1006023c9
// > SetupOptionsTriggerPopup::addOption @ 0x1006bae5f
// > IDNameInput::initCore @ 0x100914129
// > IDNameInput::initCore @ 0x100914142
// > IDNameInput::initCore @ 0x10091415b
// > IDNameInput::initCore @ 0x100914174
// > IDNameInput::initCore @ 0x10091418d
// > IDNameInput::initCore @ 0x1009141a6
// > IDNameInput::initCore @ 0x1009141bf
// > IDNameInput::initCore @ 0x1009141d8
// > IDNameInput::initCore @ 0x1009141f6
//
// 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::addObjectToPage(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 i; // rdi
__int64 v6; // r12
__int64 v7; // rax
__int64 v8; // rax
for ( i = *(_QWORD *)(a1 + 912); (unsigned int)sub_1007FEF90(i) <= a3; i = *(_QWORD *)(a1 + 912) )
{
v6 = *(_QWORD *)(a1 + 912);
v7 = sub_1007FE900(i);
sub_1007FEBF0(v6, v7);
}
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 912), a3);
return sub_1007FEBF0(v8, a2);
}