// // AccountLoginLayer::onSubmit from 0x99239c to 0x9926d0 (820 bytes) // // 3 xrefs: // > @ 0xf33a0 // > AccountLoginLayer::init @ 0x99196c // > @ 0x15475e8 // // 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 12:57:59 +0000 // __int64 __fastcall AccountLoginLayer::onSubmit(AccountLoginLayer *this, cocos2d::CCObject *a2) { char *v3; // x21 __int64 *v4; // x20 __int64 v5; // x1 __int64 v6; // x1 unsigned __int64 v7; // x1 unsigned __int64 v8; // x1 GJAccountManager *v9; // x0 char v10; // w0 GJAccountManager *v11; // x0 __int64 v12; // x1 __int64 v13; // x2 __int64 v14; // x3 GJAccountManager *v15; // x0 GJAccountManager *v16; // x25 char v17; // w0 GJAccountManager *v18; // x0 __int64 v19; // x1 char v20; // w0 __int64 v21; // x0 __int64 v22; // x1 int v23; // w20 GJAccountManager *v25; // [xsp+58h] [xbp+58h] BYREF __int64 v26; // [xsp+60h] [xbp+60h] void *v27; // [xsp+68h] [xbp+68h] __int64 v28; // [xsp+70h] [xbp+70h] BYREF __int64 v29; // [xsp+78h] [xbp+78h] void *v30; // [xsp+80h] [xbp+80h] v3 = (char *)this + 720; AccountLoginLayer::resetLabels(this); AccountLoginLayer::disableNodes(this); CCTextInputNode::getString(*((CCTextInputNode **)this + 85), &v28); if ( (*((_BYTE *)this + 720) & 1) != 0 ) { **((_BYTE **)v3 + 2) = 0; *((_QWORD *)v3 + 1) = 0; } else { *((_BYTE *)this + 721) = 0; *((_BYTE *)this + 720) = 0; } v4 = (__int64 *)((char *)this + 744); std::string::reserve((__int64 *)v3, 0); *((_QWORD *)v3 + 2) = v30; v5 = v29; *(_QWORD *)v3 = v28; *((_QWORD *)v3 + 1) = v5; CCTextInputNode::getString(*((CCTextInputNode **)this + 86), &v28); if ( (*((_BYTE *)this + 744) & 1) != 0 ) { **((_BYTE **)this + 95) = 0; *((_QWORD *)this + 94) = 0; } else { *((_BYTE *)this + 745) = 0; *((_BYTE *)this + 744) = 0; } std::string::reserve((__int64 *)this + 93, 0); *((_QWORD *)this + 95) = v30; v6 = v29; *v4 = v28; *((_QWORD *)this + 94) = v6; v7 = *((_BYTE *)this + 720) >> 1; if ( (*((_BYTE *)this + 720) & 1) != 0 ) v7 = *((_QWORD *)v3 + 1); if ( v7 <= 2 ) { AccountLoginLayer::updateLabel((__int64)this, -9); return _stack_chk_guard; } v8 = *((_BYTE *)this + 744) >> 1; if ( (*((_BYTE *)this + 744) & 1) != 0 ) v8 = *((_QWORD *)this + 94); if ( v8 <= 5 ) { AccountLoginLayer::updateLabel((__int64)this, -8); return _stack_chk_guard; } v9 = (GJAccountManager *)(unsigned __int8)passwordCharsValid((__int64)this + 744); if ( !(_BYTE)v9 ) { AccountLoginLayer::updateLabel((__int64)this, -14); return _stack_chk_guard; } *(_QWORD *)(GJAccountManager::sharedState(v9) + 400) = (char *)this + 664; v25 = nullptr; v10 = *((_BYTE *)this + 744); v26 = 0; v27 = nullptr; if ( (v10 & 1) != 0 ) { std::string::__init((__int64 *)&v25, *((void **)this + 95), *((_QWORD *)this + 94)); } else { v11 = (GJAccountManager *)*v4; v12 = *((_QWORD *)this + 94); v27 = *((void **)this + 95); v25 = v11; v26 = v12; } GJAccountManager::getShaPassword((char *)&v25, &v28); if ( (*((_BYTE *)this + 744) & 1) != 0 ) { **((_BYTE **)this + 95) = 0; *((_QWORD *)this + 94) = 0; } else { *((_BYTE *)this + 745) = 0; *((_BYTE *)this + 744) = 0; } std::string::reserve((__int64 *)this + 93, 0); v13 = v28; v14 = v29; v15 = (GJAccountManager *)(unsigned __int8)v25; *((_QWORD *)this + 95) = v30; *v4 = v13; *((_QWORD *)this + 94) = v14; if ( ((unsigned __int8)v15 & 1) != 0 ) operator delete(v27); v16 = (GJAccountManager *)GJAccountManager::sharedState(v15); v17 = *((_BYTE *)this + 720); v25 = nullptr; v26 = 0; v27 = nullptr; if ( (v17 & 1) != 0 ) { std::string::__init((__int64 *)&v25, *((void **)v3 + 2), *((_QWORD *)v3 + 1)); } else { v18 = *(GJAccountManager **)v3; v19 = *((_QWORD *)v3 + 1); v27 = *((void **)v3 + 2); v25 = v18; v26 = v19; } v20 = *((_BYTE *)this + 744); v28 = 0; v29 = 0; v30 = nullptr; if ( (v20 & 1) != 0 ) { std::string::__init(&v28, *((void **)this + 95), *((_QWORD *)this + 94)); } else { v21 = *v4; v22 = *((_QWORD *)this + 94); v30 = *((void **)this + 95); v28 = v21; v29 = v22; } v23 = (unsigned __int8)GJAccountManager::loginAccount(v16, (__int64)&v25, (__int64)&v28); if ( (v28 & 1) != 0 ) operator delete(v30); if ( ((unsigned __int8)v25 & 1) != 0 ) { operator delete(v27); if ( !v23 ) goto LABEL_26; LABEL_34: AccountLoginLayer::showLoadingUI(this); return _stack_chk_guard; } if ( v23 ) goto LABEL_34; LABEL_26: (*(void (__fastcall **)(AccountLoginLayer *, __int64))(*(_QWORD *)this + 1384LL))(this, 0xFFFFFFFFLL); return _stack_chk_guard; }