//
// CustomizeObjectLayer::getButtonByTag from 0x461ccc to 0x461d02 (54 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::colorSetupClosed @ 0x462042
// > CustomizeObjectLayer::onNextColorChannel @ 0x4620b0
// > CustomizeObjectLayer::updateCurrentSelection @ 0x462102
//
// 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
//
ButtonSprite *CustomizeObjectLayer::getButtonByTag(CustomizeObjectLayer *a1, int a2)
{
unsigned int i; // r5
ButtonSprite *v5; // r4
for ( i = 0; ; ++i )
{
if ( i >= cocos2d::CCArray::count(a1->m_colorButtons) )
return nullptr;
v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorButtons, i);
if ( v5->getTag(v5) == a2 )
break;
}
return v5;
}