// // ReportPopup::onSubmit from 0x79fac4 to 0x79ff3a (1142 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:59:53 +0000 // char **__fastcall ReportPopup::onSubmit(ReportPopup *this, cocos2d::CCObject *a2) { int *v3; // r0 int *v4; // r0 unsigned int v5; // r5 int v6; // r1 char *v7; // r0 int v8; // r3 const char *v9; // r5 char *v10; // r9 size_t v11; // r0 int v12; // r2 int v13; // r3 int v14; // r5 size_t v15; // r2 int v16; // r1 int v17; // r3 char *v18; // r0 unsigned __int8 *v19; // r1 char *v20; // r0 unsigned __int8 *v21; // r2 int v22; // t1 int v23; // r3 const char *v24; // r5 size_t v25; // r0 unsigned int *v26; // r3 int v27; // r1 char *v28; // r2 int v29; // r2 char *v30; // r1 size_t v31; // r2 int *v32; // r0 int v33; // r1 char *v34; // r2 int *v35; // r0 int v36; // r1 int v37; // r2 char *v38; // r1 size_t v39; // r2 int v40; // r5 size_t v41; // r5 char *v42; // r6 char *v43; // r1 int *v44; // r0 int v45; // r1 int v46; // r2 char *v47; // r1 size_t v48; // r2 char *v49; // r1 char *v50; // r2 cocos2d::CCString *v51; // r0 char *CString; // r5 size_t v53; // r0 char *v54; // r4 size_t v55; // r0 char **v56; // r4 char *v58; // [sp+20h] [bp-5Ch] BYREF char *v59; // [sp+24h] [bp-58h] _DWORD v60[2]; // [sp+2Ch] [bp-50h] BYREF char *v61; // [sp+34h] [bp-48h] int v62; // [sp+38h] [bp-44h] BYREF int v63; // [sp+3Ch] [bp-40h] char *v64; // [sp+40h] [bp-3Ch] int v65[3]; // [sp+44h] [bp-38h] BYREF unsigned int v66; // [sp+50h] [bp-2Ch] BYREF int v67; // [sp+54h] [bp-28h] char *v68; // [sp+58h] [bp-24h] int v69; // [sp+5Ch] [bp-20h] BYREF int v70; // [sp+60h] [bp-1Ch] char *v71; // [sp+64h] [bp-18h] int v72; // [sp+68h] [bp-14h] BYREF size_t v73; // [sp+6Ch] [bp-10h] char *v74; // [sp+70h] [bp-Ch] ReportPopup::selectedReasons((ReportPopup *)&v58, this); if ( v58 == v59 ) { v69 = 0; v70 = 0; v71 = nullptr; std::string::__init(&v69, "Please select at least one reason.", 0x22u); v3 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Report", (int)&v69, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(int *))(*v3 + 656))(v3); v4 = &v69; goto LABEL_72; } v5 = 0; v60[0] = 0; v60[1] = 0; v61 = nullptr; while ( v5 < (v59 - v58) >> 2 ) { std::string::append(v60, "\n- "); v7 = (char *)ReportPopup::reasonLabel(*(_DWORD *)&v58[4 * v5], v6); std::string::append(v60, v7); std::string::append(v60, ""); ++v5; } v8 = *((_DWORD *)this + 180); switch ( v8 ) { case 3: case 7: v9 = "comment"; goto LABEL_76; case 4: v9 = "post"; goto LABEL_76; case 5: v9 = "message"; goto LABEL_76; case 6: v9 = "friend request"; goto LABEL_76; case 8: if ( *((__int64 *)this + 95) < 1 ) v9 = (const char *)&unk_B6B226; else v9 = "message"; LABEL_76: v10 = ""; break; default: v9 = (const char *)&unk_B6B226; if ( v8 ) v10 = ""; else v10 = ""; break; } v62 = 0; v63 = 0; v64 = nullptr; v11 = strlen(v9); std::string::__init(&v62, v9, v11); v12 = *((unsigned __int8 *)this + 732); v13 = *((unsigned __int8 *)this + 768); v14 = v12 & 1; if ( (v12 & 1) != 0 ) v15 = *((_DWORD *)this + 184); else v15 = v12 >> 1; v16 = v13 & 1; if ( (v13 & 1) != 0 ) v17 = *((_DWORD *)this + 193); else v17 = v13 >> 1; if ( v15 != v17 ) { LABEL_36: if ( (v62 & 1) != 0 ) v23 = v63; else v23 = (int)(unsigned __int8)v62 >> 1; if ( v23 ) v24 = " in "; else v24 = (const char *)&unk_B6B226; memset(v65, 0, sizeof(v65)); v25 = strlen(v24); std::string::__init(v65, v24, v25); v26 = std::string::append(v65, v10); v27 = v26[1]; v28 = (char *)v26[2]; v66 = *v26; v67 = v27; v68 = v28; *v26 = 0; v26[1] = 0; v26[2] = 0; v29 = *((unsigned __int8 *)this + 732); if ( (v29 & 1) != 0 ) { v30 = *((char **)this + 185); v31 = *((_DWORD *)this + 184); } else { v30 = (char *)this + 733; v31 = v29 >> 1; } v32 = std::string::append(&v66, v30, v31); v33 = v32[1]; v34 = (char *)v32[2]; v69 = *v32; v70 = v33; v71 = v34; *v32 = 0; v32[1] = 0; v32[2] = 0; v35 = std::string::append(&v69, ""); v36 = v35[1]; v37 = v35[2]; v72 = *v35; v73 = v36; v74 = (char *)v37; *v35 = 0; v35[1] = 0; v35[2] = 0; if ( (v72 & 1) != 0 ) { v38 = v74; v39 = v73; } else { v39 = (int)(unsigned __int8)v72 >> 1; v38 = (char *)&v72 + 1; } std::string::append(&v62, v38, v39); std::string::~string((int)&v72); std::string::~string((int)&v69); std::string::~string((int)&v66); std::string::~string((int)v65); goto LABEL_48; } if ( v14 ) v18 = *((char **)this + 185); else v18 = (char *)this + 733; if ( v16 ) v19 = *((unsigned __int8 **)this + 194); else v19 = (unsigned __int8 *)this + 769; if ( v14 ) { if ( !v15 || !memcmp(v18, v19, v15) ) goto LABEL_48; goto LABEL_36; } v20 = v18 - 1; v21 = &v19[v15]; while ( v19 != v21 ) { v22 = (unsigned __int8)*++v20; if ( v22 != *v19 ) goto LABEL_36; ++v19; } LABEL_48: v40 = *((unsigned __int8 *)this + 768); if ( (v40 & 1) != 0 ) { v41 = *((_DWORD *)this + 193); if ( v41 ) { LABEL_78: v66 = 0; v67 = 0; v68 = nullptr; if ( v41 + 8 > 0xFFFFFFEF ) sub_38B650(); if ( v41 + 8 > 0xA ) { v42 = (char *)operator new((v41 + 24) & 0xFFFFFFF0); v66 = (v41 + 24) & 0xFFFFFFF0 | 1; v68 = v42; v67 = 8; } else { v42 = (char *)&v66 + 1; LOBYTE(v66) = 16; } std::char_traits::copy(v42, " by ", 8u); v42[8] = 0; if ( (*((_BYTE *)this + 768) & 1) != 0 ) v43 = *((char **)this + 194); else v43 = (char *)this + 769; std::string::append(&v66, v43, v41); v44 = std::string::append(&v66, ""); v45 = v44[1]; v46 = v44[2]; v72 = *v44; v73 = v45; v74 = (char *)v46; *v44 = 0; v44[1] = 0; v44[2] = 0; if ( (v72 & 1) != 0 ) { v47 = v74; v48 = v73; } else { v48 = (int)(unsigned __int8)v72 >> 1; v47 = (char *)&v72 + 1; } std::string::append(&v62, v47, v48); std::string::~string((int)&v72); std::string::~string((int)&v66); } } else { v41 = v40 >> 1; if ( v41 ) goto LABEL_78; } if ( (v62 & 1) != 0 ) v49 = v64; else v49 = (char *)&v62 + 1; if ( (v60[0] & 1) != 0 ) v50 = v61; else v50 = (char *)v60 + 1; v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Report %s for:%s\n" "False reports may result in action against your own account.", v49, v50, LOBYTE(v60[0])); CString = (char *)cocos2d::CCString::getCString(v51); v69 = 0; v70 = 0; v71 = nullptr; v53 = strlen(CString); std::string::__init(&v69, CString, v53); v54 = (char *)this + 712; if ( (v69 & 1) == 0 ) CString = (char *)&v69 + 1; v72 = 0; if ( (v69 & 1) != 0 ) CString = v71; v73 = 0; v74 = nullptr; v55 = strlen(CString); std::string::__init(&v72, CString, v55); v56 = (char **)FLAlertLayer::create( (int)v54, (cocos2d::CCLabelBMFont *)"Confirm Report", (int)&v72, (ButtonSprite *)"Cancel", (ButtonSprite *)"Report", 380.0, 0, 0, 1.0); std::string::~string((int)&v72); (*((void (__fastcall **)(char **, int))*v56 + 9))(v56, 1); ButtonSprite::updateBGImage(v56[121], "GJ_button_06.png"); (*((void (__fastcall **)(char **))*v56 + 164))(v56); std::string::~string((int)&v69); std::string::~string((int)&v62); v4 = v60; LABEL_72: std::string::~string((int)v4); return std::__vector_base::~__vector_base(&v58); }
GD Web Decomp Icon

GD Web Decomp

Raw Source