//
// ProfilePage::dProfilePage from 0x10089d7e0 to 0x10089da3a (602 bytes)
//
// 4 xrefs:
// > sub_10089DA50 @ 0x10089da55
// > sub_10089DA60 @ 0x10089da6c
// > sub_10089DA80 @ 0x10089da89
// > sub_10089DAA0 @ 0x10089dab3
//
// This function is hookable on this platform (idp: pc, 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:37:09 +0000
//
__int64 __fastcall ProfilePage::dProfilePage(__int64 a1)
{
__int64 v2; // rax
_DWORD *v3; // rdi
_DWORD *v4; // rdi
_DWORD *v5; // rdi
_DWORD *v6; // rdi
*(_QWORD *)a1 = off_100BA9658;
*(_QWORD *)(a1 + 320) = off_100BA9C30;
*(_QWORD *)(a1 + 328) = &off_100BA9CA0;
*(_QWORD *)(a1 + 336) = off_100BA9CB8;
*(_QWORD *)(a1 + 344) = off_100BA9CD8;
*(_QWORD *)(a1 + 352) = off_100BA9D00;
*(_QWORD *)(a1 + 408) = off_100BA9D30;
*(_QWORD *)(a1 + 432) = off_100BA9DB0;
*(_QWORD *)(a1 + 544) = off_100BA9DD0;
*(_QWORD *)(a1 + 664) = &off_100BA9E18;
*(_QWORD *)(a1 + 672) = off_100BA9E30;
*(_QWORD *)(a1 + 680) = off_100BA9E60;
*(_QWORD *)(a1 + 688) = off_100BA9E98;
*(_QWORD *)(a1 + 696) = off_100BA9EC0;
*(_QWORD *)(a1 + 704) = &off_100BA9EE0;
*(_QWORD *)(a1 + 712) = off_100BA9EF8;
*(_QWORD *)(a1 + 720) = off_100BA9F28;
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 ( (*(_BYTE *)(a1 + 744) & 1) == 0 )
return sub_1004936F0(a1);
goto LABEL_23;
}
if ( (*(_BYTE *)(a1 + 744) & 1) != 0 )
LABEL_23:
operator delete(*(void **)(a1 + 760));
return sub_1004936F0(a1);
}