//
// GJGarageLayer::getItems_1 from 0x140276730 to 0x1402767e5 (181 bytes)
//
// 3 xrefs:
// > GJGarageLayer::setupSpecialPage @ 0x140276b47
// > GJGarageLayer::setupSpecialPage @ 0x140276c77
// > ??> @ 0x1406d0f80
//
// 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
cocos2d::CCArray *GJGarageLayer::getItems_1(GJGarageLayer *a1, IconType a2)
{
GameManager *v4; // rbx
GameManager *v5; // rcx
int v6; // eax
int v7; // r9d
void *v9; // [rsp+50h] [rbp+18h]
void *v10; // [rsp+50h] [rbp+18h]
v4 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v9 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v10 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
}
GameManager::activeIconForType(v4, a2);
v6 = GameManager::countForType(v5, a2);
return GJGarageLayer::getItems(a1, v6, 0, a2, v7);
}