//
// SelectSettingLayer::onSelect from 0xb618f0 to 0xb619dc (236 bytes)
//
// 4 xrefs:
// > SelectSettingLayer::init @ 0xb64ab4
// > ??> @ 0xe92a8
// > SelectSettingLayer::init @ 0xb64918
// > ??> @ 0x15470a0
//
// 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:12 +0000
//
__int64 __fastcall SelectSettingLayer::onSelect(SelectSettingLayer *this, cocos2d::CCObject *a2)
{
unsigned int v3; // w19
__int64 v4; // x2
void (*v5)(void); // x2
_BYTE v7[3]; // [xsp+40h] [xbp+40h] 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 = *(_QWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 83), v3);
if ( *((_DWORD *)this + 168) == v3 )
{
++v3;
(*(void (**)(void))(v4 + 960))();
}
else
{
v5 = *(void (**)(void))(v4 + 960);
memset(v7, 125, sizeof(v7));
++v3;
v5();
}
}
return _stack_chk_guard;
}