//
// GJItemIcon::dGJItemIcon from 0x14037b4a0 to 0x14037b543 (163 bytes)
//
// 2 xrefs:
// > ??> @ 0x14076fd78
// > ??> @ 0x1409227e4
//
// 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:03 +0000
//
// Hidden C++ exception states: #wind=1
void *__fastcall GJItemIcon::dGJItemIcon(void *Block, char a2)
{
__int64 *v4; // rcx
void *v5; // rax
*(_QWORD *)Block = &GJItemIcon::`vftable';
*((_QWORD *)Block + 40) = &GJItemIcon::`vftable';
*((_QWORD *)Block + 43) = &GJItemIcon::`vftable';
v4 = (__int64 *)qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = (__int64 *)qword_14090BFD0;
}
GameManager::unloadIcons(v4, *((_DWORD *)Block + 152));
cocos2d::CCSprite::~CCSprite((cocos2d::CCSprite *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}