//
// SetupObjectOptionsPopup::onSinglePlayerTouch from 0xaba1f0 to 0xaba278 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0xa44e8
// > SetupObjectOptionsPopup::init @ 0xabdcd4
// > ??> @ 0x1544950
//
// 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::onSinglePlayerTouch(SetupObjectOptionsPopup *this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
char v3; // w1
__int64 result; // x0
unsigned int v6; // w20
bool v7; // cf
unsigned int v8; // w1
__int64 v9; // x0
v2 = *((_QWORD *)this + 83);
v3 = *((_BYTE *)this + 705) ^ 1;
*((_BYTE *)this + 705) = v3;
if ( v2 )
{
result = *(unsigned int *)(v2 + 1248);
if ( (_DWORD)result == 1 )
*(_BYTE *)(v2 + 1740) = v3;
}
else
{
v6 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 84));
v7 = v6 >= (unsigned int)result;
v8 = v6++;
if ( v7 )
break;
v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 84), v8);
if ( *(_DWORD *)(v9 + 1248) == 1 )
*(_BYTE *)(v9 + 1740) = *((_BYTE *)this + 705);
}
}
return result;
}