// // ProfilePage::setupAccountButtons from 0x10022d424 to 0x10022d964 (1344 bytes) // // 2 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x10022b474 // > ProfilePage::loadPageFromUserInfo @ 0x10022cab4 // // 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 11:01:15 +0000 // void __fastcall ProfilePage::setupAccountButtons(__int64 a1) { __int64 v2; // x0 __int64 v3; // x0 float v4; // s8 int v5; // w22 __int64 v6; // x0 __int64 v7; // x20 __int64 v8; // x21 __int64 v9; // x0 __int64 v10; // x8 __int64 v11; // x22 __int64 v12; // x22 __n128 v13; // q0 __int64 v14; // x0 __int64 v15; // x0 __int64 v16; // x8 int v17; // w9 char v18; // w22 __int64 v19; // x22 __int64 v20; // x22 __n128 v21; // q0 __int64 v22; // x0 char v23; // w0 int v24; // w9 const char *v25; // x0 __int64 v26; // x22 __int64 v27; // x22 __n128 v28; // q0 __int64 v29; // x22 __n128 v30; // q0 float v31; // s8 __int64 v32; // x22 float v33; // s9 __int64 v34; // x0 __int64 v35; // x21 __n128 v36; // q0 __int64 v37; // x0 __int64 v38; // x0 __int64 v39; // x0 __int64 (__fastcall *v40)(); // x23 const char *v41; // x0 __int64 v42; // x0 __int64 v43; // x24 float v44; // s9 float v45; // s9 __int64 v46; // x0 __int64 v47; // x21 __n128 v48; // q0 __int64 v49; // x21 __int64 v50; // x19 __n128 v51; // q0 float v52; // [xsp+0h] [xbp-60h] BYREF __int64 v53; // [xsp+8h] [xbp-58h] BYREF float32x2_t v54; // [xsp+10h] [xbp-50h] BYREF __int64 v55; // [xsp+18h] [xbp-48h] BYREF if ( (*(_BYTE *)(a1 + 740) & 1) == 0 ) { v2 = GJAccountManager::sharedState(a1); if ( *(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356) != *(_DWORD *)(a1 + 736) ) { v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3, &v55); v4 = *((float *)&v55 + 1) * 0.5; v5 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 688LL); v7 = sub_1002E736C(v6); v8 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_blocked_001.png"); v9 = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.75); if ( v5 == 2 ) { v10 = *(_QWORD *)(a1 + 728); if ( (*(_BYTE *)(v10 + 722) & 1) == 0 ) { v11 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_unblock_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.75); v12 = CCMenuItemSpriteExtra::create(v11, 0, a1, sub_10022DD24, 0); v13 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v12, v13); sub_1002E74E0(v7, v12); sub_1002E74E0(*(_QWORD *)(a1 + 832), v12); v10 = *(_QWORD *)(a1 + 728); if ( (*(_BYTE *)(v10 + 722) & 1) == 0 ) { LABEL_23: v31 = v4 + -123.0; v32 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_reportBtn_001.png"); v33 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8) + 4) * 0.75; v34 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 328LL))(v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, v33 / *(float *)(v34 + 4)); v35 = CCMenuItemSpriteExtra::create(v32, 0, a1, sub_10022E04C, 0); v36 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v35, v36); sub_1002E74E0(v7, v35); sub_1002E74E0(*(_QWORD *)(a1 + 832), v35); v38 = GameManager::sharedState(v37); v39 = GameManager::modUIRank(v38); if ( (_DWORD)v39 == 2 ) { v40 = sub_10022E080; v41 = "modBadge_02_001.png"; } else { v42 = GameManager::sharedState(v39); if ( (unsigned int)GameManager::modUIRank(v42) != 1 ) { LABEL_28: v49 = *(_QWORD *)(a1 + 552); v50 = *(_QWORD *)(a1 + 584); sub_1000262BC(&v52, *(float *)&v55 * 0.5, v31); cocos2d::CCNode::convertToWorldSpace(&v53, v50, &v52); cocos2d::CCNode::convertToNodeSpace(&v54, v49, &v53, v51); GameToolbox::alignItemsHorisontally(v7, &v54, 0, 12.0); return; } v40 = sub_10022E148; v41 = "modBadge_01_001.png"; } v43 = cocos2d::CCSprite::createWithSpriteFrameName(v41); v44 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v32 + 168LL))(v32); v45 = v44 * *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 328LL))(v32) + 4); v46 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 328LL))(v43); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, v45 / *(float *)(v46 + 4)); v47 = CCMenuItemSpriteExtra::create(v43, 0, a1, v40, 0); v48 = CCMenuItemSpriteExtra::setSizeMult(1.5); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v47, v48); sub_1002E74E0(v7, v47); sub_1002E74E0(*(_QWORD *)(a1 + 832), v47); goto LABEL_28; } } LABEL_21: if ( (unsigned int)(*(_DWORD *)(v10 + 680) - 1) >= 2 ) { v29 = CCMenuItemSpriteExtra::create(v8, 0, a1, sub_10022DE90, 0); v30 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v29, v30); sub_1002E74E0(v7, v29); sub_1002E74E0(*(_QWORD *)(a1 + 832), v29); } goto LABEL_23; } v14 = GameManager::sharedState(v9); v15 = sub_1003B6084(v14); v16 = *(_QWORD *)(a1 + 728); v17 = *(_DWORD *)(v16 + 436); if ( v17 != 2 ) { v18 = v15; if ( v17 != 1 || *(_DWORD *)(v16 + 688) == 1 ) { if ( (v15 & 1) != 0 ) goto LABEL_12; goto LABEL_11; } v15 = GameManager::sharedState(v15); if ( !(((unsigned int)(*(_DWORD *)(v15 + 1036) - *(_DWORD *)(v15 + 1032)) < 0xFFFFFFFE) | v18 & 1) ) { LABEL_11: v19 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.75); v20 = CCMenuItemSpriteExtra::create(v19, 0, a1, sub_10022D964, 0); v21 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v20, v21); sub_1002E74E0(v7, v20); sub_1002E74E0(*(_QWORD *)(a1 + 832), v20); } } LABEL_12: v22 = GameManager::sharedState(v15); v23 = sub_1003B60C4(v22); v10 = *(_QWORD *)(a1 + 728); if ( *(_DWORD *)(v10 + 440) == 1 ) { v24 = *(_DWORD *)(v10 + 688); if ( (v24 == 0) | v23 & 1 ) goto LABEL_21; } else { if ( (v23 & 1) != 0 ) goto LABEL_21; v24 = *(_DWORD *)(v10 + 688); } if ( (unsigned int)(v24 - 1) > 3 ) v25 = "accountBtn_requests_001.png"; else v25 = off_100901138[v24 - 1]; v26 = cocos2d::CCSprite::createWithSpriteFrameName(v25); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.75); v27 = CCMenuItemSpriteExtra::create(v26, 0, a1, ProfilePage::onFriend, 0); v28 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v27, v28); sub_1002E74E0(v7, v27); sub_1002E74E0(*(_QWORD *)(a1 + 832), v27); v10 = *(_QWORD *)(a1 + 728); goto LABEL_21; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source