// // AccountLayer::customSetup from 0x98dc1c to 0x98e2f0 (1748 bytes) // // 2 xrefs: // > @ 0x89fe0 // > @ 0x1472e78 // // 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:57 +0000 // __int64 __fastcall AccountLayer::customSetup(AccountLayer *this) { cocos2d::CCDirector *v2; // x0 const char *v3; // x2 __int64 v4; // x0 __int64 v5; // x21 void (__fastcall *v6)(__int64, __int64 *); // x22 __int64 v7; // x0 char v8; // w1 __int64 v9; // x26 void (__fastcall *v10)(__int64, __int64 *); // x27 __int64 v11; // x28 bool v12; // w4 __int64 v13; // x5 const char *v14; // x6 __int64 v15; // x0 __int64 v16; // x0 bool v17; // w4 __int64 v18; // x5 const char *v19; // x6 __int64 v20; // x0 __int64 v21; // x0 const char *v22; // x6 __int64 v23; // x0 __int64 v24; // x0 bool v25; // w4 __int64 v26; // x5 const char *v27; // x6 __int64 v28; // x0 __int64 v29; // x0 bool v30; // w4 __int64 v31; // x5 const char *v32; // x6 __int64 v33; // x0 __int64 v34; // x0 bool v35; // w4 __int64 v36; // x5 const char *v37; // x6 __int64 v38; // x0 __int64 v39; // x0 cocos2d::CCNode *v40; // x26 cocos2d::CCNode *v41; // x25 __int64 v42; // x25 void (__fastcall *v43)(__int64, __int64 *); // x26 __int64 v44; // x25 void (__fastcall *v45)(__int64, __int64 *); // x26 __int64 v46; // x25 void (__fastcall *v47)(__int64, __int64 *); // x26 __int64 v48; // x25 void (__fastcall *v49)(__int64, __int64 *); // x26 __int64 v50; // x25 void (__fastcall *v51)(__int64, __int64 *); // x26 __int64 v52; // x25 __int64 (__fastcall *v53)(__int64, __int64 *); // x26 GJAccountManager *v54; // x0 __int64 v55; // x0 int v56; // w1 GJAccountManager *v57; // x0 __int64 v58; // x0 __int64 v59; // x1 void *v60; // x0 GJAccountManager *updated; // x0 GJAccountManager *v62; // x0 GJAccountManager *v63; // x0 LoadingCircle *v64; // x0 __int64 v65; // x0 __int64 v66; // x19 void (__fastcall *v67)(__int64, __int64 *); // x21 __int64 v69; // [xsp+70h] [xbp+70h] BYREF __int64 v70; // [xsp+78h] [xbp+78h] BYREF _BYTE v71[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v72; // [xsp+88h] [xbp+88h] BYREF __int64 v73; // [xsp+90h] [xbp+90h] BYREF __int64 v74; // [xsp+98h] [xbp+98h] void *v75; // [xsp+A0h] [xbp+A0h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v69, v2); v4 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "goldFont.fnt", v3); *((_QWORD *)this + 80) = v4; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 160LL))(v4, 0.8); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 72) + 456LL))( *((_QWORD *)this + 72), *((_QWORD *)this + 80)); v5 = *((_QWORD *)this + 80); v6 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, *(float *)&v69 * 0.5, (float)(*((float *)&v69 + 1) * 0.5) + 87.0); v6(v5, &v72); v73 = 0; v74 = 0; v75 = nullptr; std::string::__init(&v73, &byte_11E1A70, 1u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, 0.5, 1.0); v7 = TextArea::create((char *)&v73, "bigFont.fnt", (const cocos2d::CCPoint *)&v72, 0, 0, 1.0, 1000.0, 35.0); v8 = v73; *((_QWORD *)this + 81) = v7; if ( (v8 & 1) != 0 ) { operator delete(v75); v7 = *((_QWORD *)this + 81); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.4); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 72) + 456LL))( *((_QWORD *)this + 72), *((_QWORD *)this + 81)); v9 = *((_QWORD *)this + 81); v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v9 + 184LL); v11 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 80) + 192LL))(*((_QWORD *)this + 80)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, -17.0); cocos2d::CCPoint::operator+(&v72, v11); v10(v9, &v72); v15 = ButtonSprite::create((ButtonSprite *)"Log in", (const char *)&qword_A0, 0, 1, 1.0, v12, v13, v14); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, (__int64)AccountLayer::onLogin, 0); *((_QWORD *)this + 82) = v16; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 70) + 456LL))(*((_QWORD *)this + 70), v16); v20 = ButtonSprite::create((ButtonSprite *)"Register", (const char *)&qword_A0, 0, 1, 1.0, v17, v18, v19); v21 = CCMenuItemSpriteExtra::create(v20, 0, (__int64)this, (__int64)AccountLayer::onRegister, 0); *((_QWORD *)this + 83) = v21; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 70) + 456LL))(*((_QWORD *)this + 70), v21); v23 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&qword_A0, 0, 1, 1.0, "goldFont.fnt", "GJ_button_01.png", v22, 0.0); v24 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)AccountLayer::onBackup, 0); *((_QWORD *)this + 84) = v24; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 70) + 456LL))(*((_QWORD *)this + 70), v24); v28 = ButtonSprite::create((ButtonSprite *)"Load", (const char *)&qword_A0, 0, 1, 1.0, v25, v26, v27); v29 = CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, (__int64)AccountLayer::onSync, 0); *((_QWORD *)this + 85) = v29; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 70) + 456LL))(*((_QWORD *)this + 70), v29); v33 = ButtonSprite::create((ButtonSprite *)"Help", (const char *)&qword_A0, 0, 1, 1.0, v30, v31, v32); v34 = CCMenuItemSpriteExtra::create(v33, 0, (__int64)this, (__int64)AccountLayer::onHelp, 0); *((_QWORD *)this + 86) = v34; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 70) + 456LL))(*((_QWORD *)this + 70), v34); v38 = ButtonSprite::create((ButtonSprite *)"More", (const char *)&qword_A0, 0, 1, 1.0, v35, v36, v37); v39 = CCMenuItemSpriteExtra::create(v38, 0, (__int64)this, (__int64)AccountLayer::onMore, 0); *((_QWORD *)this + 87) = v39; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 70) + 456LL))(*((_QWORD *)this + 70), v39); v40 = *((cocos2d::CCNode **)this + 72); v41 = *((cocos2d::CCNode **)this + 70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, *(float *)&v69 * 0.5, (float)(*((float *)&v69 + 1) * 0.5) + 30.0); cocos2d::CCNode::convertToWorldSpace(&v72, v40, (const cocos2d::CCPoint *)v71); cocos2d::CCNode::convertToNodeSpace(&v70, v41, (const cocos2d::CCPoint *)&v72); v42 = *((_QWORD *)this + 82); v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v42 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, 0.0); cocos2d::CCPoint::operator+(&v72, &v70); v43(v42, &v72); v44 = *((_QWORD *)this + 83); v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, -90.0); cocos2d::CCPoint::operator+(&v72, &v70); v45(v44, &v72); v46 = *((_QWORD *)this + 84); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, 0.0); cocos2d::CCPoint::operator+(&v72, &v70); v47(v46, &v72); v48 = *((_QWORD *)this + 85); v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, -45.0); cocos2d::CCPoint::operator+(&v72, &v70); v49(v48, &v72); v50 = *((_QWORD *)this + 86); v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, -45.0); cocos2d::CCPoint::operator+(&v72, &v70); v51(v50, &v72); v52 = *((_QWORD *)this + 87); v53 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 0.0, -90.0); cocos2d::CCPoint::operator+(&v72, &v70); v54 = (GJAccountManager *)v53(v52, &v72); v55 = GJAccountManager::sharedState(v54); v56 = *(_DWORD *)(v55 + 352); v57 = (GJAccountManager *)*(unsigned int *)(v55 + 356); if ( v56 == (_DWORD)v57 ) { *((_BYTE *)this + 716) = 0; } else { v58 = GJAccountManager::sharedState(v57); v73 = 0; v74 = 0; v75 = nullptr; if ( (*(_BYTE *)(v58 + 368) & 1) != 0 ) { std::string::__init(&v73, *(void **)(v58 + 384), *(_QWORD *)(v58 + 376)); } else { v59 = *(_QWORD *)(v58 + 376); v73 = *(_QWORD *)(v58 + 368); v74 = v59; v75 = *(void **)(v58 + 384); } if ( (v73 & 1) != 0 ) { v60 = v75; *((_BYTE *)this + 716) = v74 != 0; operator delete(v60); } else { *((_BYTE *)this + 716) = (int)(unsigned __int8)v73 >> 1 != 0; } } updated = (GJAccountManager *)AccountLayer::updatePage(this, 0); v62 = (GJAccountManager *)GJAccountManager::sharedState(updated); *((_QWORD *)v62 + 51) = (char *)this + 608; v63 = (GJAccountManager *)GJAccountManager::sharedState(v62); *((_QWORD *)v63 + 52) = (char *)this + 616; v64 = (LoadingCircle *)GJAccountManager::sharedState(v63); *((_QWORD *)v64 + 53) = (char *)this + 624; v65 = LoadingCircle::create(v64); *((_QWORD *)this + 88) = v65; *(_QWORD *)(v65 + 552) = *((_QWORD *)this + 72); *(_BYTE *)(*((_QWORD *)this + 88) + 560LL) = 1; cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 88)); LoadingCircle::show(*((cocos2d::CCNode ***)this + 88)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 88) + 344LL))(*((_QWORD *)this + 88), 0); v66 = *(_QWORD *)(*((_QWORD *)this + 88) + 544LL); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v66 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, *(float *)&v69 * 0.5, *((float *)&v69 + 1) * 0.5); v67(v66, &v72); return _stack_chk_guard; }