//
// CustomizeObjectLayer::getButtonByTag from 0x1001f8d90 to 0x1001f8e0b (123 bytes)
//
// 0 xrefs:
//
// 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 *__fastcall CustomizeObjectLayer::getButtonByTag(CustomizeObjectLayer *a1, int a2)
{
ButtonSprite *v2; // rbx
unsigned int v3; // r12d
ButtonSprite *v4; // r13
v2 = nullptr;
if ( (unsigned int)sub_100720070(a1->m_colorButtons) )
{
v3 = 0;
while ( 1 )
{
v4 = (ButtonSprite *)sub_1007200C0(a1->m_colorButtons, v3);
if ( ((unsigned int (__fastcall *)(ButtonSprite *))v4->getTag)(v4) == a2 )
break;
if ( ++v3 >= (unsigned int)sub_100720070(a1->m_colorButtons) )
return v2;
}
return v4;
}
return v2;
}