//
// CustomizeObjectLayer::getButtonByTag from 0x98394c to 0x9839cc (128 bytes)
//
// 4 xrefs:
// > CustomizeObjectLayer::colorSetupClosed @ 0x983d7c
// > CustomizeObjectLayer::onNextColorChannel @ 0x983e14
// > CustomizeObjectLayer::updateCurrentSelection @ 0x983e8c
// > ??> @ 0xad0f8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::getButtonByTag(cocos2d::CCArray **this, int a2)
{
unsigned int v4; // w19
__int64 v5; // x20
bool v6; // cf
unsigned int v7; // w1
v4 = 0;
do
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*(this + 88));
v7 = v4++;
if ( v6 )
return 0;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 88), v7);
}
while ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) != a2 );
return v5;
}