//
// SetupObjectOptionsPopup::onDisableObject from 0xab945c to 0xab9574 (280 bytes)
//
// 3 xrefs:
// > ??> @ 0x888d0
// > SetupObjectOptionsPopup::init @ 0xabd144
// > ??> @ 0x1543958
//
// 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:01 +0000
//
cocos2d::CCArray *__fastcall SetupObjectOptionsPopup::onDisableObject(
SetupObjectOptionsPopup *this,
cocos2d::CCObject *a2)
{
int v3; // w1
cocos2d::CCArray *v4; // x0
cocos2d::CCObject *v5; // x1
cocos2d::CCArray *v6; // x22
unsigned __int64 v7; // x21
unsigned int v8; // w20
bool v9; // cf
unsigned int v10; // w1
cocos2d::CCArray *result; // x0
__int64 v12; // x0
__int64 v13; // x19
__int64 v14; // x2
__int64 v15; // x2
v3 = *((unsigned __int8 *)this + 685);
v4 = *((cocos2d::CCArray **)this + 83);
v5 = (cocos2d::CCObject *)(v3 ^ 1u);
*((_BYTE *)this + 685) = (_BYTE)v5;
if ( v4 )
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v4, v5);
v6 = v4;
}
else
{
v6 = *((cocos2d::CCArray **)this + 84);
}
v7 = *(_QWORD *)(GameManager::sharedState(v4) + 552);
v8 = 0;
v9 = (unsigned int)cocos2d::CCArray::count(v6) == 0;
v10 = 0;
for ( result = v6; !v9; result = v6 )
{
v12 = cocos2d::CCArray::objectAtIndex(result, v10);
v13 = v12;
++v8;
if ( v7 )
{
GJBaseGameLayer::removeObjectFromSection(v7, (GameObject *)v12);
v14 = *(_QWORD *)v13;
*(_BYTE *)(v13 + 1214) = *((_BYTE *)this + 685);
(*(void (__fastcall **)(__int64, _QWORD))(v14 + 1808))(v13, *(unsigned int *)(v13 + 924));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1616LL))(v13);
(*(void (__fastcall **)(unsigned __int64, __int64))(*(_QWORD *)v7 + 1344LL))(v7, v13);
}
else
{
v15 = *(_QWORD *)v12;
*(_BYTE *)(v12 + 1214) = *((_BYTE *)this + 685);
(*(void (__fastcall **)(__int64, _QWORD))(v15 + 1808))(v12, *(unsigned int *)(v12 + 924));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1616LL))(v13);
}
v9 = v8 >= (unsigned int)cocos2d::CCArray::count(v6);
v10 = v8;
}
return result;
}