//
// CustomizeObjectLayer::getButtonByTag from 0x57e796 to 0x57e7cc (54 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::colorSetupClosed @ 0x57eae6
// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb54
// > CustomizeObjectLayer::updateCurrentSelection @ 0x57eba6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:51 +0000
//
int __fastcall CustomizeObjectLayer::getButtonByTag(cocos2d::CCArray **this, int a2)
{
unsigned int i; // r5
int v5; // r4
for ( i = 0; ; ++i )
{
if ( i >= cocos2d::CCArray::count(*(this + 135)) )
return 0;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 135), i);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5) == a2 )
break;
}
return v5;
}