//
// SetupObjectOptions2Popup::onPlusButton from 0x1003067e0 to 0x100306876 (150 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b19708
//
// 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:28:34 +0000
//
__int64 __fastcall SetupObjectOptions2Popup::onPlusButton(_QWORD *a1, __int64 a2, __int64 a3)
{
__int64 v4; // rax
__int64 v5; // rdi
int NextFreeEnterChannel; // r14d
_QWORD *v7; // rdi
_QWORD *v8; // r15
void *v9; // rdi
void *v11[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p[2]; // [rsp+10h] [rbp-30h]
int v13; // [rsp+20h] [rbp-20h]
GameManager::sharedState(a1, a2, a3);
v5 = *(_QWORD *)(v4 + 552);
*(_OWORD *)__p = 0;
*(_OWORD *)v11 = 0;
v13 = 1065353216;
NextFreeEnterChannel = LevelEditorLayer::getNextFreeEnterChannel(v5, (__int64)v11);
v7 = __p[0];
if ( __p[0] )
{
do
{
v8 = (_QWORD *)*v7;
operator delete(v7);
v7 = v8;
}
while ( v8 );
}
v9 = v11[0];
v11[0] = nullptr;
if ( v9 )
operator delete(v9);
return SetupTriggerPopup::updateValue(a1, 0x157u, (float)NextFreeEnterChannel);
}