//
// SetupRotateGameplayPopup::onPlusButton from 0x140441f20 to 0x140441fc7 (167 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405ed918
// > ??> @ 0x1406da418
//
// 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 SetupRotateGameplayPopup::onPlusButton(SetupRotateGameplayPopup *a1, cocos2d::CCObject *a2)
{
__int64 v2; // r8
__int64 v4; // rcx
int NextFreeOrderChannel; // 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;
}
NextFreeOrderChannel = LevelEditorLayer::getNextFreeOrderChannel(*(LevelEditorLayer **)(v4 + 528), &v6);
sub_14005D100((__int64)&v6._Vec);
sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);
SetupTriggerPopup::updateValue(a1, 173, (float)NextFreeOrderChannel);
}