//
// SetupObjectOptionsPopup::onNonStickX from 0x639d68 to 0x639da8 (64 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:23 +0000
//
unsigned int __fastcall SetupObjectOptionsPopup::onNonStickX(unsigned int this, cocos2d::CCObject *a2)
{
unsigned int v2; // r5
unsigned int v3; // r4
char v4; // r3
int v5; // r0
v2 = this;
v3 = *(_DWORD *)(this + 520);
v4 = *(_BYTE *)(this + 536) ^ 1;
*(_BYTE *)(this + 536) = v4;
if ( v3 )
{
*(_BYTE *)(v3 + 1115) = v4;
}
else
{
while ( 1 )
{
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 524));
if ( v3 >= this )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 524), v3++);
*(_BYTE *)(v5 + 1115) = *(_BYTE *)(v2 + 536);
}
}
return this;
}