//
// MessageThreadsPage::onClose from 0x745b40 to 0x745bc2 (130 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::keyBackClicked @ 0x745bc4
//
// 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:58:42 +0000
//
int __fastcall MessageThreadsPage::onClose(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
cocos2d::CCObject **v2; // r4
int v3; // r3
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
int v6; // r0
cocos2d::CCTouchDispatcher *v7; // r0
GJAccountManager *v8; // r0
int v9; // r0
bool v10; // r2
FLAlertLayer *v11; // r0
int v12; // r3
v2 = this;
v3 = (int)*(this + 145);
if ( v3 )
{
*(_DWORD *)(v3 + 420) = 0;
this = (cocos2d::CCObject **)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 145) + 580))(*(this + 145));
}
if ( v2[133] )
{
v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
this = (cocos2d::CCObject **)cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, v2[133]);
}
v6 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v7 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 80))(v6);
v8 = (GJAccountManager *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, (cocos2d::CCObject *)v2);
v9 = GJAccountManager::sharedState(v8);
v11 = ProfilePage::create((ProfilePage *)(*(_DWORD *)(v9 + 280) - *(_DWORD *)(v9 + 284)), 1, v10);
v12 = *(_DWORD *)v11;
*((_BYTE *)v11 + 468) = 1;
(*(void (**)(void))(v12 + 656))();
(*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*v2 + 134))(v2, 0);
return (*((int (__fastcall **)(cocos2d::CCObject **, int))*v2 + 66))(v2, 1);
}