//
// PlayerObject::~PlayerObject from 0x75d6f0 to 0x75d92c (572 bytes)
//
// 4 xrefs:
// > PlayerObject::~PlayerObject @ 0x75d93c
// > ??> @ 0x93598
// > ??> @ 0xf7408
// > ??> @ 0x14332a8
//
// 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:53:02 +0000
//
// Alternative name is '_ZN12PlayerObjectD1Ev'
void __fastcall PlayerObject::~PlayerObject(PlayerObject *this)
{
unsigned int v2; // w20
unsigned int v3; // w1
__int64 v4; // x0
bool v5; // cf
cocos2d::CCArray *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCObject *v10; // x0
cocos2d::CCObject *v11; // x0
cocos2d::CCObject *v12; // x0
cocos2d::CCObject *v13; // x0
cocos2d::CCObject *v14; // x0
cocos2d::CCObject *v15; // x0
GameManager *v16; // x0
_QWORD **v17; // x20
_QWORD **v18; // x20
char *v19; // x0
char *v20; // x2
_QWORD *v21; // x0
_QWORD *v22; // x20
void *v23; // x0
_QWORD *v24; // x0
_QWORD *v25; // x20
void *v26; // x0
_QWORD *v27; // x0
_QWORD *v28; // x20
void *v29; // x0
_QWORD *v30; // x0
_QWORD *v31; // x20
void *v32; // x0
v2 = 0;
*(_QWORD *)this = &off_14332A0;
*((_QWORD *)this + 40) = &off_14339D8;
*((_QWORD *)this + 43) = &off_1433A58;
*((_QWORD *)this + 169) = &off_1433A88;
while ( 1 )
{
v5 = v2 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 210));
v6 = *((cocos2d::CCArray **)this + 210);
if ( v5 )
break;
v3 = v2++;
v4 = cocos2d::CCArray::objectAtIndex(v6, v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 736LL))(v4);
}
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 181);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 182);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)this + 183);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)this + 184);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)this + 180);
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = *((cocos2d::CCObject **)this + 318);
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = *((cocos2d::CCObject **)this + 379);
if ( v13 )
cocos2d::CCObject::release(v13);
v14 = *((cocos2d::CCObject **)this + 372);
if ( v14 )
cocos2d::CCObject::release(v14);
v15 = *((cocos2d::CCObject **)this + 373);
if ( v15 )
v15 = (cocos2d::CCObject *)cocos2d::CCObject::release(v15);
v16 = (GameManager *)GameManager::sharedState(v15);
GameManager::unloadIcons(v16, *((_DWORD *)this + 743));
if ( (*((_BYTE *)this + 2944) & 1) != 0 )
operator delete(*((void **)this + 370));
v17 = *((_QWORD ***)this + 365);
if ( v17 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 2912,
*v17);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 2912,
v17[1]);
operator delete(v17);
}
v18 = *((_QWORD ***)this + 360);
if ( v18 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 2872,
*v18);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 2872,
v18[1]);
operator delete(v18);
}
v19 = *((char **)this + 332);
if ( v19 )
{
v20 = *((char **)this + 333);
if ( v19 != v20 )
*((_QWORD *)this + 333) = &v20[4 * ~((unsigned __int64)(v20 - 4 - v19) >> 2)];
operator delete(v19);
}
v21 = *((_QWORD **)this + 321);
if ( v21 )
{
do
{
v22 = (_QWORD *)*v21;
operator delete(v21);
v21 = v22;
}
while ( v22 );
}
v23 = *((void **)this + 319);
*((_QWORD *)this + 319) = 0;
if ( v23 )
operator delete(v23);
v24 = *((_QWORD **)this + 261);
if ( v24 )
{
do
{
v25 = (_QWORD *)*v24;
operator delete(v24);
v24 = v25;
}
while ( v25 );
}
v26 = *((void **)this + 259);
*((_QWORD *)this + 259) = 0;
if ( v26 )
operator delete(v26);
v27 = *((_QWORD **)this + 219);
if ( v27 )
{
do
{
v28 = (_QWORD *)*v27;
operator delete(v27);
v27 = v28;
}
while ( v28 );
}
v29 = *((void **)this + 217);
*((_QWORD *)this + 217) = 0;
if ( v29 )
operator delete(v29);
v30 = *((_QWORD **)this + 214);
if ( v30 )
{
do
{
v31 = (_QWORD *)*v30;
operator delete(v30);
v30 = v31;
}
while ( v31 );
}
v32 = *((void **)this + 212);
*((_QWORD *)this + 212) = 0;
if ( v32 )
operator delete(v32);
GameObject::~GameObject(this);
}