//
// GJBigSprite::unloadAll from 0x640028 to 0x6400b0 (136 bytes)
//
// 1 xrefs:
// > MapSelectLayer::onExit @ 0x640fa8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:27 +0000
//
unsigned int __fastcall GJBigSprite::unloadAll(GJBigSprite *this)
{
unsigned int v1; // r7
unsigned int result; // r0
int v4; // r5
int v5; // r0
int v6[3]; // [sp+0h] [bp-14h] BYREF
v1 = 0;
*((_BYTE *)this + 289) = 1;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 69));
if ( v1 >= result )
break;
v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 69), v1);
*(_BYTE *)(v4 + 296) = 0;
v5 = *(_DWORD *)(v4 + 276);
if ( v5 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v5 + 268))(v5);
*(_DWORD *)(v4 + 276) = 0;
std::string::basic_string(v6, v4 + 264);
GJBigSprite::unloadSprite(this, (int)v6, v1);
std::string::~string((int)v6);
}
++v1;
}
return result;
}