//
// GJGarageLayer::onArrow from 0x406598 to 0x4065fc (100 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
//
void GJGarageLayer::onArrow(GJGarageLayer *a1, cocos2d::CCObject *a2)
{
int v3; // r6
GameManager *v4; // r0
GameManager *v5; // r0
int v6; // r7
int v7; // r2
int v8; // r4
int v9; // r3
int v10; // r1
v3 = a2->getTag(a2);
v4 = GameManager::sharedState();
GameManager::activeIconForType(v4, a1->m_iconType);
v5 = GameManager::sharedState();
v6 = GameManager::countForType(v5, a1->m_iconType);
v8 = *(_DWORD *)std::map::operator[](&a1->m_iconPages.compare.pad, &a1->m_iconType, v7);
if ( v3 == 1 )
v9 = v8 + 1;
else
v9 = v8 - 1;
v10 = v6 / 36;
if ( v9 >= 0 )
{
if ( v9 > v6 / 36 )
v10 = 0;
else
v10 = v9;
}
GJGarageLayer::setupPage(a1, v10, a1->m_iconType);
}