//
// SetupRotateGameplayPopup::onPlusButton from 0xb261a4 to 0xb2628c (232 bytes)
//
// 2 xrefs:
// > ??> @ 0x711a0
// > ??> @ 0x14b58a8
//
// This function is hookable on this platform (idp: arm, 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 13:01:38 +0000
//
__int64 __fastcall SetupRotateGameplayPopup::onPlusButton(cocos2d::CCDictionary **this, cocos2d::CCObject *a2)
{
LevelEditorLayer *v3; // x0
int NextFreeOrderChannel; // w22
_QWORD *v5; // x0
_QWORD *v6; // x19
void *v7; // x0
void *v9[2]; // [xsp+30h] [xbp+30h] BYREF
void *v10; // [xsp+40h] [xbp+40h]
__int64 v11; // [xsp+48h] [xbp+48h]
float v12; // [xsp+50h] [xbp+50h]
v3 = *(LevelEditorLayer **)(GameManager::sharedState(_stack_chk_guard) + 552);
v9[0] = nullptr;
v9[1] = nullptr;
v10 = nullptr;
v11 = 0;
v12 = 1.0;
NextFreeOrderChannel = LevelEditorLayer::getNextFreeOrderChannel(v3, (__int64)v9);
v5 = v10;
if ( v10 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = v9[0];
v9[0] = nullptr;
if ( v7 )
operator delete(v7);
SetupTriggerPopup::updateValue(this, 0xADu, (float)NextFreeOrderChannel);
return _stack_chk_guard;
}