//
// GJGarageLayer::selectTab from 0x140275fd0 to 0x140276088 (184 bytes)
//
// 5 xrefs:
// > GJGarageLayer::setupIconSelect @ 0x140275e48
// > GJGarageLayer::onSelectTab @ 0x140275fbc
// > ??> @ 0x140686fbc
// > ??> @ 0x140686fcc
// > ??> @ 0x1406d0f50
//
// 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 GJGarageLayer::selectTab(GJGarageLayer *a1, IconType a2)
{
unsigned int i; // ebp
CCMenuItemToggler *v4; // rdi
int v5; // ebx
_BOOL8 v6; // rdx
int *v7; // rax
IconType v8; // [rsp+38h] [rbp+10h] BYREF
v8 = a2;
for ( i = 0; i < cocos2d::CCArray::count(a1->m_tabButtons); ++i )
{
v4 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_tabButtons, i);
v5 = v4->getTag(v4);
CCMenuItemToggler::toggle(v4, v8 == v5);
LOBYTE(v6) = v8 != v5;
v4->setEnabled(v4, v6);
}
v7 = (int *)sub_14012CE70((__int64 *)&a1->m_iconPages, (int *)&v8);
GJGarageLayer::setupPage(a1, *v7, v8);
}