//
// sub_100004258 from 0x100004258 to 0x100004304 (172 bytes)
//
// 2 xrefs:
// > GJSmartTemplate::dGJSmartTemplate @ 0x100004318
// > sub_10000431C @ 0x100004324
//
// 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 10:57:09 +0000
//
__int64 __fastcall sub_100004258(__int64 a1)
{
*(_QWORD *)a1 = off_1008AD170;
if ( *(_QWORD *)(a1 + 56) )
cocos2d::CCObject::release();
if ( *(_QWORD *)(a1 + 64) )
cocos2d::CCObject::release();
if ( *(_QWORD *)(a1 + 72) )
cocos2d::CCObject::release();
if ( *(_QWORD *)(a1 + 80) )
cocos2d::CCObject::release();
if ( *(_QWORD *)(a1 + 88) )
cocos2d::CCObject::release();
if ( *(_QWORD *)(a1 + 96) )
cocos2d::CCObject::release();
if ( *(_QWORD *)(a1 + 104) )
cocos2d::CCObject::release();
if ( *(char *)(a1 + 191) < 0 )
operator delete(*(void **)(a1 + 168));
if ( *(char *)(a1 + 167) < 0 )
operator delete(*(void **)(a1 + 144));
sub_1000099A4(a1 + 112, *(_QWORD *)(a1 + 120));
return cocos2d::CCObject::dCCObject(a1);
}