//
// SelectListIconLayer::onSelect from 0xba8f58 to 0xba9060 (264 bytes)
//
// 4 xrefs:
// > SelectListIconLayer::init @ 0xba9ea0
// > ??> @ 0x61ca8
// > SelectListIconLayer::init @ 0xba9ce4
// > ??> @ 0x1542558
//
// 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:02:51 +0000
//
__int64 __fastcall SelectListIconLayer::onSelect(SelectListIconLayer *this, cocos2d::CCObject *a2)
{
unsigned int v3; // w19
__int64 v4; // x0
int v5; // w23
__int64 *v6; // x20
bool v7; // zf
__int64 v8; // x2
void (__fastcall *v9)(__int64 *, _BYTE *); // x2
_BYTE v11[8]; // [xsp+50h] [xbp+50h] BYREF
if ( a2 )
*((_DWORD *)this + 168) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v3 = 0;
while ( v3 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 83)) )
{
v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 83), v3);
v5 = *((_DWORD *)this + 168);
v6 = (__int64 *)v4;
v7 = v5 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4);
v8 = *v6;
if ( v7 )
{
++v3;
(*(void (__fastcall **)(__int64 *, __int64 *))(v8 + 960))(v6, &qword_11963D8);
}
else
{
v9 = *(void (__fastcall **)(__int64 *, _BYTE *))(v8 + 960);
memset(v11, 125, 3);
++v3;
v9(v6, v11);
}
}
return _stack_chk_guard;
}