//
// SetupPickupTriggerPopup::onPlusButton from 0x140437240 to 0x1404372e7 (167 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405eafd8
// > ??> @ 0x1406d9e18
//
// 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 SetupPickupTriggerPopup::onPlusButton(SetupPickupTriggerPopup *a1, cocos2d::CCObject *a2)
{
__int64 v2; // r8
__int64 v4; // rcx
int NextFreeItemID; // 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;
}
NextFreeItemID = LevelEditorLayer::getNextFreeItemID(*(LevelEditorLayer **)(v4 + 528), &v6);
sub_14005D100((__int64)&v6._Vec);
sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);
SetupTriggerPopup::updateValue(a1, 80, (float)NextFreeItemID);
}