// // AccountReviewPopup::onDone from 0xc4ec78 to 0xc4f2bc (1604 bytes) // // 3 xrefs: // > @ 0x679d8 // > AccountReviewPopup::init @ 0xc45220 // > @ 0x1542860 // // 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 13:05:07 +0000 // __int64 __fastcall AccountReviewPopup::onDone(AccountReviewPopup *this, cocos2d::CCObject *a2) { int v3; // w0 int v4; // w1 unsigned __int64 v5; // x0 __int64 *v6; // x0 __int64 v7; // x3 __int64 v8; // x1 char *v9; // x1 const char *v10; // x1 cocos2d::CCString *v11; // x0 char *CString; // x0 const char *v13; // x1 cocos2d::CCString *v14; // x0 char *v15; // x0 char *v16; // x0 __int64 v17; // x3 _QWORD *v18; // x0 char *v19; // x0 __int64 v20; // x3 _QWORD *v21; // x0 char *v22; // x0 __int64 v23; // x3 _QWORD *v24; // x0 __int64 v25; // x0 char *v26; // x19 char *v27; // x0 const char *v29; // x1 char *v30; // x2 const char *v31; // [xsp+48h] [xbp+48h] BYREF __int64 v32[2]; // [xsp+50h] [xbp+50h] BYREF void *v33; // [xsp+60h] [xbp+60h] __int64 v34[3]; // [xsp+68h] [xbp+68h] BYREF void *v35; // [xsp+80h] [xbp+80h] BYREF char *v36; // [xsp+88h] [xbp+88h] unsigned __int64 v37; // [xsp+90h] [xbp+90h] void *v38; // [xsp+98h] [xbp+98h] BYREF _QWORD *v39; // [xsp+A0h] [xbp+A0h] unsigned __int64 v40; // [xsp+A8h] [xbp+A8h] __int64 v41; // [xsp+B0h] [xbp+B0h] BYREF __int64 v42; // [xsp+B8h] [xbp+B8h] void *v43; // [xsp+C0h] [xbp+C0h] __int64 v44; // [xsp+C8h] [xbp+C8h] BYREF __int64 v45; // [xsp+D0h] [xbp+D0h] void *v46; // [xsp+D8h] [xbp+D8h] __int64 v47; // [xsp+E0h] [xbp+E0h] BYREF __int64 v48; // [xsp+E8h] [xbp+E8h] void *v49; // [xsp+F0h] [xbp+F0h] v3 = *((unsigned __int8 *)this + 1232); v32[0] = 0; v32[1] = 0; v33 = nullptr; if ( v3 ) { v4 = *((_DWORD *)this + 254); LODWORD(v5) = *((_DWORD *)this + 251); v44 = 0; if ( v4 <= 0 ) v5 = (unsigned int)v5; else v5 = (unsigned int)(v5 + 1); v45 = 0; v46 = nullptr; if ( (int)v5 > 0 ) { sub_C3FA54((char *)v5, (__int64)"item", v34); v6 = std::string::insert(v34, 0, "clears "); v7 = v6[1]; v47 = *v6; v48 = v7; v49 = (void *)v6[2]; *v6 = 0; v6[1] = 0; v6[2] = 0; if ( (v44 & 1) != 0 ) { *(_BYTE *)v46 = 0; v45 = 0; } else { LOWORD(v44) = 0; } std::string::reserve(&v44, 0); v46 = v49; v44 = v47; v45 = v48; if ( (v34[0] & 1) != 0 ) operator delete((void *)v34[2]); } if ( !*((_DWORD *)this + 229) ) { v8 = (unsigned __int8)v44 >> 1; if ( (v44 & 1) != 0 ) v8 = v45; if ( v8 ) v9 = " and the case"; else v9 = "closes the case"; std::string::append((__int64)&v44, v9); } if ( (v44 & 1) != 0 ) { if ( !v45 ) { LABEL_18: v10 = (char *)this + 849; if ( (*((_BYTE *)this + 848) & 1) != 0 ) v10 = *((const char **)this + 108); v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Close the case on %s?\n" "Nothing to clear, this just logs the review.", v10, (char *)this + 848); LABEL_21: CString = (char *)cocos2d::CCString::getCString(v11); std::string::assign(v32, CString); if ( (v44 & 1) != 0 ) operator delete(v46); goto LABEL_26; } } else if ( !((unsigned __int8)v44 >> 1) ) { goto LABEL_18; } v29 = (char *)this + 849; if ( (*((_BYTE *)this + 848) & 1) != 0 ) v29 = *((const char **)this + 108); if ( (v44 & 1) != 0 ) v30 = (char *)v46; else v30 = (char *)&v44 + 1; v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Close the case on %s?\nEvery pick %s. What happened?", v29, v30); goto LABEL_21; } v13 = (char *)this + 849; if ( (*((_BYTE *)this + 848) & 1) != 0 ) v13 = *((const char **)this + 108); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Close the case on %s?\n" "Clears the reports and the case. What happened?", v13, (char *)this + 848); v15 = (char *)cocos2d::CCString::getCString(v14); std::string::assign(v32, v15); LABEL_26: v35 = nullptr; v36 = nullptr; v37 = 0; v38 = nullptr; v39 = nullptr; v40 = 0; v41 = 0; v42 = 0; v43 = nullptr; std::string::__init(&v41, "Nothing Needed", 0xEu); v16 = v36; if ( v37 <= (unsigned __int64)v36 ) { std::vector::__push_back_slow_path((void ***)&v35, &v41); if ( (v41 & 1) == 0 ) goto LABEL_30; LABEL_73: operator delete(v43); v18 = v39; v31 = "GJ_button_04.png"; if ( (unsigned __int64)v39 < v40 ) goto LABEL_31; LABEL_74: std::vector::__push_back_slow_path((__int64)&v38, &v31); goto LABEL_34; } if ( v36 ) { v17 = v42; *(_QWORD *)v36 = v41; *((_QWORD *)v16 + 1) = v17; *(_QWORD *)((char *)&word_10 + (_QWORD)v16) = v43; v16 = v36; v41 = 0; v42 = 0; v43 = nullptr; } v36 = v16 + 24; if ( (v41 & 1) != 0 ) goto LABEL_73; LABEL_30: v18 = v39; v31 = "GJ_button_04.png"; if ( (unsigned __int64)v39 >= v40 ) goto LABEL_74; LABEL_31: if ( v18 ) { *v18 = "GJ_button_04.png"; v18 = v39; } v39 = v18 + 1; LABEL_34: v44 = 0; v45 = 0; v46 = nullptr; std::string::__init(&v44, "Content Removed", 0xFu); v19 = v36; if ( (unsigned __int64)v36 >= v37 ) { std::vector::__push_back_slow_path((void ***)&v35, &v44); } else { if ( v36 ) { v20 = v45; *(_QWORD *)v36 = v44; *((_QWORD *)v19 + 1) = v20; *((_QWORD *)v19 + 2) = v46; v19 = v36; v44 = 0; v45 = 0; v46 = nullptr; } v36 = v19 + 24; } if ( (v44 & 1) != 0 ) operator delete(v46); v21 = v39; v31 = "GJ_button_05.png"; if ( (unsigned __int64)v39 >= v40 ) { std::vector::__push_back_slow_path((__int64)&v38, &v31); } else { if ( v39 ) { *v39 = "GJ_button_05.png"; v21 = v39; } v39 = v21 + 1; } v47 = 0; v48 = 0; v49 = nullptr; std::string::__init(&v47, "Penalty Applied", 0xFu); v22 = v36; if ( (unsigned __int64)v36 >= v37 ) { std::vector::__push_back_slow_path((void ***)&v35, &v47); } else { if ( v36 ) { v23 = v48; *(_QWORD *)v36 = v47; *((_QWORD *)v22 + 1) = v23; *((_QWORD *)v22 + 2) = v49; v22 = v36; v47 = 0; v48 = 0; v49 = nullptr; } v36 = v22 + 24; } if ( (v47 & 1) != 0 ) operator delete(v49); v24 = v39; v31 = "GJ_button_06.png"; if ( (unsigned __int64)v39 >= v40 ) { std::vector::__push_back_slow_path((__int64)&v38, &v31); } else { if ( v39 ) { *v39 = "GJ_button_06.png"; v24 = v39; } v39 = v24 + 1; } v25 = ReviewChoiceSheet::create( (__int64)this + 824, 2, "Clear", (char *)v32, (__int64 *)&v35, &v38, 1u, "All options clear the reports and close the case.\n" "Your choice only sets the label shown in History.\n" "\n" "Nothing Needed: No violation found.\n" "Content Removed: Content removed, no account penalty.\n" "Penalty Applied: Account banned or restricted.\n" "Pick this even if content was also removed.\n" "\n" "Only the highest action taken is shown."); (*(void (__fastcall **)(__int64))(*(_QWORD *)v25 + 1312LL))(v25); if ( v38 ) { if ( v38 != v39 ) v39 += ~((unsigned __int64)((char *)(v39 - 1) - (_BYTE *)v38) >> 3); operator delete(v38); } v26 = (char *)v35; if ( v35 ) { v27 = v36; if ( v35 != v36 ) { do { v36 = v27 - 24; std::string::~string((__int64)(v27 - 24)); v27 = v36; } while ( v26 != v36 ); v27 = (char *)v35; } operator delete(v27); } if ( (v32[0] & 1) != 0 ) operator delete(v33); return _stack_chk_guard; }