//
// GJGarageLayer::getItems_1 from 0x14037f090 to 0x14037f145 (181 bytes)
//
// 3 xrefs:
// > GJGarageLayer::setupSpecialPage @ 0x14037f4a1
// > GJGarageLayer::setupSpecialPage @ 0x14037f61a
// > ??> @ 0x140922898
//
// This function is hookable on this platform (idp: pc, 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 11:31:04 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall GJGarageLayer::getItems_1(int a1, int a2)
{
_DWORD *v4; // rbx
__int64 v5; // rcx
int v6; // eax
int v7; // r9d
void *v9; // [rsp+50h] [rbp+18h]
void *v10; // [rsp+50h] [rbp+18h]
v4 = (_DWORD *)qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v9 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = (_DWORD *)qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v10 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
}
GameManager::activeIconForType(v4, a2);
v6 = GameManager::countForType(v5, a2);
return GJGarageLayer::getItems(a1, v6, 0, a2, v7);
}