//
// SetupObjectOptions2Popup::onPlusButton from 0x140400fc0 to 0x140401067 (167 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405d6b18
// > ??> @ 0x1406d8834
//
// 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
//
// Hidden C++ exception states: #wind=2
void SetupObjectOptions2Popup::onPlusButton(SetupObjectOptions2Popup *a1, cocos2d::CCObject *a2)
{
__int64 v2; // r8
__int64 v4; // rcx
int NextFreeEnterChannel; // ebx
std::unordered_set v6; // [rsp+20h] [rbp-48h] BYREF
void *v7; // [rsp+80h] [rbp+18h] BYREF
LODWORD(v7) = 0;
sub_14005E660((__int64)&v6, &v7, v2);
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
NextFreeEnterChannel = LevelEditorLayer::getNextFreeEnterChannel(*(LevelEditorLayer **)(v4 + 528), &v6);
sub_14005D100((__int64)&v6._Vec);
sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);
SetupTriggerPopup::updateValue(a1, 343, (float)NextFreeEnterChannel);
}