//
// SetupObjectOptionsPopup::onNonStickX from 0xab9de8 to 0xab9e58 (112 bytes)
//
// 3 xrefs:
// > ??> @ 0xc2fc8
// > SetupObjectOptionsPopup::init @ 0xabd384
// > ??> @ 0x1545b18
//
// 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
//
__int64 __fastcall SetupObjectOptionsPopup::onNonStickX(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
char v3; // w1
__int64 v4; // x19
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
v2 = *(_QWORD *)(this + 664);
v3 = *(_BYTE *)(this + 688) ^ 1;
*(_BYTE *)(this + 688) = v3;
if ( v2 )
{
*(_BYTE *)(v2 + 1295) = v3;
}
else
{
v4 = this;
v5 = 0;
while ( 1 )
{
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v4 + 672));
v6 = v5 >= (unsigned int)this;
v7 = v5++;
if ( v6 )
break;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v4 + 672), v7) + 1295) = *(_BYTE *)(v4 + 688);
}
}
return this;
}