//
// ProfilePage::onSettings from 0x1403c5ce0 to 0x1403c5e42 (354 bytes)
//
// 2 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2b77
// > ??> @ 0x1406d7850
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void ProfilePage::onSettings(ProfilePage *a1, cocos2d::CCObject *a2)
{
int m_accountID; // edi
GJAccountSettingsLayer *v3; // rsi
_QWORD *v4; // rax
void (*show)(FLAlertLayer *); // rdx
m_accountID = a1->m_accountID;
v3 = (GJAccountSettingsLayer *)operator new(0x2C0u);
FLAlertLayer::FLAlertLayer(v3);
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJAccountSettingsLayer_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJAccountSettingsLayer::`vftable';
v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';
*(_QWORD *)&v3->m_accountID = 0;
*(_QWORD *)&v3->m_friendStatus = 0;
v3->m_inputs = nullptr;
v3->m_links._Mypair._Myval2._Myval2._Myhead = nullptr;
v3->m_links._Mypair._Myval2._Myval2._Mysize = 0;
v4 = operator new(0x48u);
*v4 = v4;
v4[1] = v4;
v4[2] = v4;
*((_WORD *)v4 + 12) = 257;
v3->m_links._Mypair._Myval2._Myval2._Myhead = (std::_Tree_val>>::_Nodeptr)v4;
v3->m_messageSettings = nullptr;
v3->m_friendRequestSettings = nullptr;
v3->m_commentSettings = nullptr;
if ( GJAccountSettingsLayer::init(v3, m_accountID) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(GJAccountSettingsLayer *, __int64))v3->~GJAccountSettingsLayer)(v3, 1);
v3 = nullptr;
}
show = (void (*)(FLAlertLayer *))v3->show;
if ( show == FLAlertLayer::show )
FLAlertLayer::show(v3);
else
show(v3);
}