// // GJGarageLayer::onArrow from 0x140275e70 to 0x140275f6a (250 bytes) // // 2 xrefs: // > GJGarageLayer::setupIconSelect @ 0x140275c07 // > @ 0x1406d0f2c // // 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 // // Hidden C++ exception states: #wind=2 void GJGarageLayer::onArrow(GJGarageLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // rcx int v4; // ebp int v5; // ebx int v6; // ecx int v7; // edx int v8; // eax int v9; // eax void *v10; // [rsp+30h] [rbp+8h] void *v11; // [rsp+30h] [rbp+8h] v4 = a2->getTag(a2); if ( !qword_1406C2ED8 ) { v10 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); if ( !qword_1406C2ED8 ) { v11 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } } v5 = GameManager::countForType(v3, a1->m_iconType); v6 = *(_DWORD *)sub_14012CE70((__int64 *)&a1->m_iconPages, (int *)&a1->m_iconType); v7 = v5 / 36; v8 = 1; if ( v4 != 1 ) v8 = -1; v9 = v6 + v8; if ( v9 >= 0 ) { if ( v9 > v7 ) v9 = 0; v7 = v9; } GJGarageLayer::setupPage(a1, v7, a1->m_iconType); }