//
// SelectSettingLayer::onSelect from 0x56f844 to 0x56f8c0 (124 bytes)
//
// 1 xrefs:
// > SelectSettingLayer::init @ 0x572db0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SelectSettingLayer::onSelect(SelectSettingLayer *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // r4
int v4; // r0
int v5; // r2
bool v6; // zf
__int16 *v7; // r1
void (__fastcall *v8)(int, __int16 *, int); // r3
_DWORD v9[3]; // [sp+0h] [bp-Ch] BYREF
v9[0] = a1;
v9[1] = a2;
if ( a2 )
a1->m_settingID = a2->getTag(a2);
v3 = 0;
while ( v3 < cocos2d::CCArray::count(a1->m_settingSprites) )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_settingSprites, v3);
v6 = a1->m_settingID == v3++;
if ( v6 )
v7 = &word_9AD82C;
else
v7 = (__int16 *)v9;
v8 = *(void (__fastcall **)(int, __int16 *, int))(*(_DWORD *)v4 + 472);
if ( !v6 )
memset(v9, 125, 3);
v8(v4, v7, v5);
}
}