// // AccountLoginLayer::textInputClosed from 0x10049ab70 to 0x10049ac96 (294 bytes) // // 2 xrefs: // > sub_10049ACB0 @ 0x10049acbc // > @ 0x100944ba8 // // 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 // void __fastcall AccountLoginLayer::textInputClosed(AccountLoginLayer *a1, CCTextInputNode *a2) { double v2; // xmm0_8 int v4; // eax const char *v5; // rsi __int64 v6; // r15 int v7; // eax cocos2d::CCLabelBMFont **p_m_passwordLabel; // rbx __int64 v9; // [rsp+0h] [rbp-30h] BYREF unsigned __int64 v10; // [rsp+8h] [rbp-28h] void *__p; // [rsp+10h] [rbp-20h] CCTextInputNode::getString(&v9, (__int64)a2, v2); v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2); if ( v4 == 1 ) { v5 = "Username:"; v6 = 672; } else { if ( v4 != 2 ) goto LABEL_6; v5 = "Password:"; v6 = 680; } (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v6) + 912LL))( *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v6), v5); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v6) + 1056LL))( *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v6), &unk_10081D314); LABEL_6: v7 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2); if ( v7 != 1 ) { if ( v7 != 2 ) goto LABEL_19; if ( (v9 & 1) != 0 ) { if ( v10 > 5 ) goto LABEL_19; } else if ( (unsigned __int8)v9 >> 1 > 5uLL ) { goto LABEL_19; } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_passwordLabel->setString)( a1->m_passwordLabel, "Too short. Minimum 6 characters"); p_m_passwordLabel = &a1->m_passwordLabel; LABEL_18: ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))(*p_m_passwordLabel)->setColor)( *p_m_passwordLabel, &unk_10081D311); goto LABEL_19; } if ( (v9 & 1) == 0 ) { if ( (unsigned __int8)v9 >> 1 > 2uLL ) goto LABEL_19; goto LABEL_17; } if ( v10 <= 2 ) { LABEL_17: ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_usernameLabel->setString)( a1->m_usernameLabel, "Too short. Minimum 3 characters"); p_m_passwordLabel = &a1->m_usernameLabel; goto LABEL_18; } LABEL_19: if ( (v9 & 1) != 0 ) operator delete(__p); }