//
// sub_100229A70 from 0x100229a70 to 0x100229c08 (408 bytes)
//
// 4 xrefs:
// > ProfilePage::dProfilePage @ 0x100229c0c
// > sub_100229C10 @ 0x100229c14
// > sub_100229C18 @ 0x100229c20
// > sub_100229C2C @ 0x100229c38
//
// 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 11:01:12 +0000
//
__int64 __fastcall sub_100229A70(__int64 a1)
{
__int64 v2; // x8
_DWORD *v3; // x0
_DWORD *v4; // x0
_DWORD *v5; // x0
_DWORD *v6; // x0
*(_QWORD *)a1 = off_1008FF180;
*(_QWORD *)(a1 + 320) = off_1008FF758;
*(_QWORD *)(a1 + 328) = &off_1008FF7C8;
*(_QWORD *)(a1 + 336) = off_1008FF7E0;
*(_QWORD *)(a1 + 344) = off_1008FF800;
*(_QWORD *)(a1 + 352) = off_1008FF828;
*(_QWORD *)(a1 + 408) = off_1008FF858;
*(_QWORD *)(a1 + 432) = off_1008FF8D8;
*(_QWORD *)(a1 + 544) = off_1008FF8F8;
*(_QWORD *)(a1 + 664) = &off_1008FF940;
*(_QWORD *)(a1 + 672) = off_1008FF958;
*(_QWORD *)(a1 + 680) = off_1008FF988;
*(_QWORD *)(a1 + 688) = off_1008FF9C0;
*(_QWORD *)(a1 + 696) = off_1008FF9E8;
*(_QWORD *)(a1 + 704) = &off_1008FFA08;
*(_QWORD *)(a1 + 712) = off_1008FFA20;
*(_QWORD *)(a1 + 720) = off_1008FFA50;
v2 = *(_QWORD *)(a1 + 872);
if ( v2 )
*(_QWORD *)(v2 + 664) = 0;
v3 = *(_DWORD **)(a1 + 832);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(_DWORD **)(a1 + 728);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(_DWORD **)(a1 + 840);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *(_DWORD **)(a1 + 864);
if ( v6 )
cocos2d::CCObject::release(v6);
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1240) == a1 + 672 )
*(_QWORD *)(GameLevelManager::sharedState() + 1240) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1248) == a1 + 680 )
*(_QWORD *)(GameLevelManager::sharedState() + 1248) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) == a1 + 696 )
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1352) == a1 + 688 )
*(_QWORD *)(GameLevelManager::sharedState() + 1352) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1296) == a1 + 712 )
*(_QWORD *)(GameLevelManager::sharedState() + 1296) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 464) == a1 + 720 )
*(_QWORD *)(GameLevelManager::sharedState() + 464) = 0;
if ( *(char *)(a1 + 767) < 0 )
operator delete(*(void **)(a1 + 744));
return sub_10034A834(a1);
}