// // ProfilePage::onStatInfo from 0x5fc184 to 0x5fc376 (498 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:36 +0000 // int __fastcall ProfilePage::onStatInfo(ProfilePage *this, cocos2d::CCObject *a2) { int result; // r0 int v5; // r1 int v6; // r7 FLAlertLayer *v7; // r0 int v8; // r1 int v9; // r7 int v10; // r1 int v11; // r7 FLAlertLayer *v12; // r4 int v13; // r3 const char *v14; // r5 char *v15; // r2 cocos2d::CCString *v16; // r0 const char *CString; // r9 size_t v18; // r0 int *v19; // r0 char v20; // [sp+8h] [bp-2Ch] BYREF char v21; // [sp+9h] [bp-2Bh] BYREF const char *v22; // [sp+10h] [bp-24h] unsigned __int8 v23; // [sp+14h] [bp-20h] BYREF char v24; // [sp+15h] [bp-1Fh] BYREF char *v25; // [sp+1Ch] [bp-18h] int v26; // [sp+20h] [bp-14h] BYREF int v27; // [sp+24h] [bp-10h] int v28; // [sp+28h] [bp-Ch] result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( result == 1 ) { v5 = *((_DWORD *)this + 138); if ( v5 ) { std::string::basic_string(&v26, v5 + 596); v6 = (v26 & 1) != 0 ? v27 : (int)(unsigned __int8)v26 >> 1; result = std::string::~string((int)&v26); if ( v6 ) { std::string::basic_string(&v26, *((_DWORD *)this + 138) + 596); v7 = StarInfoPopup::createFromString((unsigned __int8 *)&v26); LABEL_22: v12 = v7; std::string::~string((int)&v26); return (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v12 + 656))(v12); } } } else { result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( result == 2 ) { v8 = *((_DWORD *)this + 138); if ( v8 ) { std::string::basic_string(&v26, v8 + 608); v9 = (v26 & 1) != 0 ? v27 : (int)(unsigned __int8)v26 >> 1; result = std::string::~string((int)&v26); if ( v9 ) { std::string::basic_string(&v26, *((_DWORD *)this + 138) + 608); v7 = StarInfoPopup::createFromStringMoons((unsigned __int8 *)&v26); goto LABEL_22; } } } else { result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( result == 3 ) { v10 = *((_DWORD *)this + 138); if ( v10 ) { std::string::basic_string(&v26, v10 + 584); v11 = (v26 & 1) != 0 ? v27 : (int)(unsigned __int8)v26 >> 1; result = std::string::~string((int)&v26); if ( v11 ) { std::string::basic_string(&v26, *((_DWORD *)this + 138) + 584); v7 = DemonInfoPopup::createFromString((unsigned __int8 *)&v26); goto LABEL_22; } } } else { result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( result == 4 ) { v13 = *((_DWORD *)this + 138); if ( v13 ) { GameToolbox::pointsToString((GameToolbox *)&v20, *(_DWORD *)(v13 + 544)); if ( (v20 & 1) != 0 ) v14 = v22; else v14 = &v21; GameToolbox::pointsToString((GameToolbox *)&v23, *(_DWORD *)(*((_DWORD *)this + 138) + 548)); if ( (v23 & 1) != 0 ) v15 = v25; else v15 = &v24; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Followers: %s\n" "Following: %s\n" "Follower counts update once per hour.\n" "A new follow can take up to an hour to show.", v14, v15, v23 << 31); CString = (const char *)cocos2d::CCString::getCString(v16); v26 = 0; v27 = 0; v28 = 0; v18 = strlen(CString); std::string::__init(&v26, CString, v18); v19 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Followers", (int)&v26, (ButtonSprite *)"OK", nullptr, 380.0); (*(void (__fastcall **)(int *))(*v19 + 656))(v19); std::string::~string((int)&v26); std::string::~string((int)&v23); return std::string::~string((int)&v20); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source