//
// GJGarageLayer::~GJGarageLayer from 0x8bc470 to 0x8bc574 (260 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'GJGarageLayer::~GJGarageLayer @ 0x8bc578
// > GJGarageLayer::~GJGarageLayer @ 0x8bc58c
// > ??> @ 0xce818
// > ??> @ 0xf3178
// > ??> @ 0x145a6f8
//
// This function is hookable on this platform (idp: arm, 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 12:56:28 +0000
//
// Alternative name is '_ZN13GJGarageLayerD2Ev'
void __fastcall GJGarageLayer::~GJGarageLayer(GJGarageLayer *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x0
_QWORD **v4; // x20
*(_QWORD *)this = &off_145A6F0;
*((_QWORD *)this + 40) = off_145ABD0;
*((_QWORD *)this + 41) = &off_145AC40;
*((_QWORD *)this + 42) = off_145AC58;
*((_QWORD *)this + 43) = off_145AC78;
*((_QWORD *)this + 44) = off_145ACA0;
*((_QWORD *)this + 51) = off_145ACD0;
*((_QWORD *)this + 52) = &off_145AD18;
*((_QWORD *)this + 53) = &off_145AD30;
*((_QWORD *)this + 54) = &off_145AD48;
*((_QWORD *)this + 55) = &off_145AD60;
*((_QWORD *)this + 56) = &off_145AD78;
*((_QWORD *)this + 57) = off_145AD98;
*(_QWORD *)(GameManager::sharedState((GameManager *)off_145AD98) + 936) = 0;
v2 = *((cocos2d::CCObject **)this + 60);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 61);
if ( v3 )
v3 = (cocos2d::CCObject *)cocos2d::CCObject::release(v3);
if ( *(GJGarageLayer **)(GameManager::sharedState(v3) + 1296) == (GJGarageLayer *)((char *)this + 456) )
*(_QWORD *)(GameManager::sharedState((GJGarageLayer *)((char *)this + 456)) + 1296) = 0;
v4 = *((_QWORD ***)this + 66);
if ( v4 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 520,
*v4);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 520,
v4[1]);
operator delete(v4);
}
cocos2d::CCLayer::~CCLayer(this);
}