//
// SelectSettingLayer::onSelect from 0x100271180 to 0x10027122d (173 bytes)
//
// 1 xrefs:
// > SelectSettingLayer::init @ 0x100270cdd
//
// 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 __fastcall SelectSettingLayer::onSelect(SelectSettingLayer *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // r14d
__int64 v4; // rcx
_QWORD *v5; // rdi
_WORD *v6; // rsi
_QWORD *v7; // rax
_WORD v8[18]; // [rsp+Ch] [rbp-24h] BYREF
if ( a2 )
a1->m_settingID = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( (unsigned int)sub_100720070(a1->m_settingSprites) )
{
v3 = 0;
do
{
v7 = (_QWORD *)sub_1007200C0(a1->m_settingSprites, v3);
if ( v3 == a1->m_settingID )
{
v4 = *v7;
v5 = v7;
v6 = &unk_100818516;
}
else
{
memset(v8, 125, 3);
v4 = *v7;
v5 = v7;
v6 = v8;
}
(*(void (__fastcall **)(_QWORD *, _WORD *))(v4 + 944))(v5, v6);
++v3;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_settingSprites) );
}
}