// // ReportPopup::createForFriendRequest from 0x7a1438 to 0x7a1580 (328 bytes) // // 1 xrefs: // > FriendRequestPopup::onReport @ 0x5d3700 // // 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:59:54 +0000 // _DWORD *__fastcall ReportPopup::createForFriendRequest(ReportPopup *this, GJFriendRequest *a2) { int v3; // r4 int v4; // r0 _DWORD *v5; // r4 GameLevelManager *v6; // r0 cocos2d::CCDictionary **v7; // r0 _BYTE *v8; // r2 int v9; // r3 int v10; // r0 int v11; // r1 _BYTE *v12; // r2 _BYTE *v13; // r2 int v14; // r3 int v15; // r0 int v16; // r1 _BYTE *v17; // r2 const ReportPopupConfig *v18; // r1 int v20; // [sp+4h] [bp-78h] BYREF int v21; // [sp+8h] [bp-74h] _BYTE *v22; // [sp+Ch] [bp-70h] int v23; // [sp+10h] [bp-6Ch] BYREF int v24; // [sp+14h] [bp-68h] _BYTE *v25; // [sp+18h] [bp-64h] char *v26[3]; // [sp+1Ch] [bp-60h] BYREF char *v27; // [sp+28h] [bp-54h] BYREF _DWORD *v28; // [sp+2Ch] [bp-50h] int v29; // [sp+34h] [bp-48h] BYREF int v30; // [sp+38h] [bp-44h] _BYTE *v31; // [sp+3Ch] [bp-40h] int v32; // [sp+40h] [bp-3Ch] BYREF int v33; // [sp+44h] [bp-38h] _BYTE *v34; // [sp+48h] [bp-34h] unsigned __int8 v35[12]; // [sp+58h] [bp-24h] BYREF char *v36; // [sp+64h] [bp-18h] BYREF if ( !this ) return nullptr; v3 = *((_DWORD *)this + 67); v4 = GJAccountManager::sharedState(this); if ( v3 == *(_DWORD *)(v4 + 280) - *(_DWORD *)(v4 + 284) ) return nullptr; std::string::basic_string((int *)&v27, (int)this + 276); if ( ((unsigned __int8)v27 & 1) != 0 ) v5 = v28; else v5 = (_DWORD *)((int)(unsigned __int8)v27 >> 1); std::string::~string((int)&v27); if ( v5 ) { ReportPopupConfig::ReportPopupConfig((ReportPopupConfig *)&v27); v27 = &byte_6; v28 = *((_DWORD **)this + 66); v7 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v6); GameLevelManager::tryGetUsername((GameLevelManager *)&v20, v7, *((_DWORD *)this + 67)); v9 = v29 & 1; if ( (v29 & 1) != 0 ) { v8 = v31; v9 = 0; } else { BYTE1(v29) = v29 & 1; } if ( (v29 & 1) != 0 ) { *v8 = v9; v30 = v9; } else { LOBYTE(v29) = v9; } std::string::reserve(&v29, 0); v10 = v20; v11 = v21; v12 = v22; v20 = 0; v21 = 0; v22 = nullptr; v29 = v10; v30 = v11; v31 = v12; std::string::~string((int)&v20); std::string::operator=(v35, (unsigned __int8 *)&v29); std::string::basic_string(&v23, (int)this + 276); v14 = v32 & 1; if ( (v32 & 1) != 0 ) { v13 = v34; v14 = 0; } else { BYTE1(v32) = v32 & 1; } if ( (v32 & 1) != 0 ) { *v13 = v14; v33 = v14; } else { LOBYTE(v32) = v14; } std::string::reserve(&v32, 0); v15 = v23; v16 = v24; v17 = v25; v23 = 0; v24 = 0; v25 = nullptr; v32 = v15; v33 = v16; v34 = v17; std::string::~string((int)&v23); ReportPopup::reasonIndicesForType((ReportPopup *)v26, 6); sub_79F2A8(&v36, v26); std::__vector_base::~__vector_base(v26); v5 = ReportPopup::create((ReportPopup *)&v27, v18); ReportPopupConfig::~ReportPopupConfig(&v27); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source