// // AutoBackupPopup::buildRows from 0xc57938 to 0xc58548 (3088 bytes) // // 4 xrefs: // > AutoBackupPopup::textChanged @ 0xc58660 // > AutoBackupPopup::init @ 0xc5d700 // > AutoBackupPopup::backupsChanged @ 0xc5da78 // > @ 0x4f7b0 // // 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:13 +0000 // __int64 __fastcall AutoBackupPopup::buildRows(AutoBackupPopup *this) { __int64 v2; // x19 __int64 i; // x0 void **v4; // x0 __int64 v5; // x0 __int64 v6; // x23 unsigned __int64 v7; // x22 _BYTE *v8; // x24 __int64 v9; // x2 __int64 *v10; // x19 __int64 v11; // x20 __int64 v12; // x1 __int64 v13; // x1 __int64 v14; // x1 __int64 v15; // x1 __int64 v16; // x5 __int64 v17; // x20 __int64 v18; // x23 unsigned __int64 v19; // x19 __int64 v20; // x2 __int64 *v21; // x5 __int64 v22; // x3 const char *v23; // x1 __int64 v24; // x24 __int64 v25; // x0 __int64 v26; // x19 ScrollableContentLayer *v27; // x0 __int64 v28; // x22 __int64 v29; // x25 int v30; // w23 size_t v31; // x2 const void *v32; // x1 char *v33; // x1 size_t v34; // x2 __int64 v35; // x0 __int64 v36; // x3 unsigned int *v37; // x0 const char *v38; // x2 cocos2d::CCString *v39; // x0 size_t v40; // x0 cocos2d::CCLabelBMFont *v41; // x0 cocos2d::CCLabelBMFont *v42; // x26 void (__fastcall *v43)(cocos2d::CCLabelBMFont *, char *); // x24 void (__fastcall *v44)(cocos2d::CCLabelBMFont *, char *); // x20 __int64 v45; // x20 float v46; // s10 __int64 v47; // x19 const char *v48; // x1 __int64 v49; // x24 CCMenuItemToggler *v50; // x19 unsigned __int8 v51; // w1 CCMenuItemToggler *v52; // x0 CCMenuItemToggler *v53; // x24 void (__fastcall *v54)(CCMenuItemToggler *, char *); // x27 const char *v55; // x6 CCMenuItemToggler **v56; // x1 float v57; // s8 __int64 v58; // x0 __int64 v59; // x27 void (__fastcall *v60)(__int64, char *); // x24 const char *v61; // x1 __int64 v62; // x24 void (__fastcall *v63)(__int64, float); // x27 __int64 v64; // x0 float v65; // s11 float v66; // s11 float v67; // s8 __int64 v68; // x24 void (__fastcall *v69)(__int64, char *); // x27 float v70; // s8 cocos2d::CCLabelBMFont *v71; // x0 cocos2d::CCLabelBMFont *v72; // x26 void (__fastcall *v73)(cocos2d::CCLabelBMFont *, char *); // x24 float v74; // s8 void (__fastcall *v75)(cocos2d::CCLabelBMFont *, char *); // x24 unsigned __int8 v76; // w2 char *v77; // x8 size_t v78; // x1 unsigned __int8 *v79; // x9 size_t v80; // x0 _BOOL4 v81; // w19 __int64 v83; // x1 char *v84; // x4 __int64 v85; // x0 char *v86; // x1 char *v87; // x11 char *v88; // x10 unsigned __int8 *v89; // x0 char *v90; // x4 char *v91; // x12 unsigned __int8 *v92; // x2 char *v93; // x5 int v94; // t1 char *v95; // x1 char *CString; // [xsp+B8h] [xbp+B8h] CCMenuItemToggler *v97; // [xsp+C8h] [xbp+C8h] BYREF char v98[8]; // [xsp+D0h] [xbp+D0h] BYREF __int64 *v99; // [xsp+D8h] [xbp+D8h] BYREF __int64 v100; // [xsp+E0h] [xbp+E0h] BYREF __int64 v101; // [xsp+E8h] [xbp+E8h] _QWORD v102[2]; // [xsp+F0h] [xbp+F0h] BYREF void *v103; // [xsp+100h] [xbp+100h] __int64 v104[2]; // [xsp+108h] [xbp+108h] BYREF void *v105; // [xsp+118h] [xbp+118h] __int64 v106; // [xsp+120h] [xbp+120h] BYREF size_t v107; // [xsp+128h] [xbp+128h] void *v108; // [xsp+130h] [xbp+130h] (*(void (__fastcall **)(AutoBackupPopup *))(*(_QWORD *)this + 1352LL))(this); PagedListPopup::clearStatus((__int64)this); v2 = *((_QWORD *)this + 106); for ( i = *((_QWORD *)this + 107); v2 != i; i = *((_QWORD *)this + 107) ) { v4 = (void **)(i - 128); *((_QWORD *)this + 107) = v4; AutoBackupPopup::BackupFile::~BackupFile(v4); } v5 = *((_QWORD *)this + 103); if ( (*((_QWORD *)this + 104) - v5) >> 7 ) { v6 = 0; v7 = 0; v8 = (char *)this + 872; do { v9 = *v8 >> 1; if ( (*v8 & 1) != 0 ) v9 = *((_QWORD *)this + 110); if ( !v9 ) { LABEL_8: v10 = *((__int64 **)this + 107); v5 = *((_QWORD *)this + 103); v11 = v5 + v6; if ( v10 == *((__int64 **)this + 108) ) { std::vector::__push_back_slow_path( (__int64 **)this + 106, v11); v5 = *((_QWORD *)this + 103); } else { if ( v10 ) { *v10 = 0; v10[1] = 0; v10[2] = 0; if ( (*(_BYTE *)v11 & 1) != 0 ) { std::string::__init(v10, *(void **)(v11 + 16), *(_QWORD *)(v11 + 8)); } else { v12 = *(_QWORD *)(v11 + 8); *v10 = *(_QWORD *)v11; v10[1] = v12; v10[2] = *(_QWORD *)(v11 + 16); } v10[3] = 0; v10[4] = 0; v10[5] = 0; if ( (*(_BYTE *)(v11 + 24) & 1) != 0 ) { std::string::__init(v10 + 3, *(void **)(v11 + 40), *(_QWORD *)(v11 + 32)); } else { v13 = *(_QWORD *)(v11 + 32); v10[3] = *(_QWORD *)(v11 + 24); v10[4] = v13; v10[5] = *(_QWORD *)(v11 + 40); } v10[6] = 0; v10[7] = 0; v10[8] = 0; if ( (*(_BYTE *)(v11 + 48) & 1) != 0 ) { std::string::__init(v10 + 6, *(void **)(v11 + 64), *(_QWORD *)(v11 + 56)); } else { v14 = *(_QWORD *)(v11 + 56); v10[6] = *(_QWORD *)(v11 + 48); v10[7] = v14; v10[8] = *(_QWORD *)(v11 + 64); } v10[9] = 0; v10[10] = 0; v10[11] = 0; if ( (*(_BYTE *)(v11 + 72) & 1) != 0 ) { std::string::__init(v10 + 9, *(void **)(v11 + 88), *(_QWORD *)(v11 + 80)); } else { v15 = *(_QWORD *)(v11 + 80); v10[9] = *(_QWORD *)(v11 + 72); v10[10] = v15; v10[11] = *(_QWORD *)(v11 + 88); } v10[12] = 0; v10[13] = 0; v10[14] = 0; if ( (*(_BYTE *)(v11 + 96) & 1) != 0 ) { std::string::__init(v10 + 12, *(void **)(v11 + 112), *(_QWORD *)(v11 + 104)); } else { v16 = *(_QWORD *)(v11 + 104); v10[12] = *(_QWORD *)(v11 + 96); v10[13] = v16; v10[14] = *(_QWORD *)(v11 + 112); } v10[15] = *(_QWORD *)(v11 + 120); v10 = *((__int64 **)this + 107); v5 = *((_QWORD *)this + 103); } *((_QWORD *)this + 107) = v10 + 16; } goto LABEL_22; } sub_C51FBC(v5 + v6 + 48, &v106); if ( (v106 & 1) != 0 ) { v77 = (char *)v108; v78 = v107; } else { v78 = (unsigned __int8)v106 >> 1; v77 = (char *)&v106 + 1; } if ( (*v8 & 1) != 0 ) { v79 = *((unsigned __int8 **)this + 111); v80 = *((_QWORD *)this + 110); } else { v79 = (unsigned __int8 *)this + 873; v80 = *v8 >> 1; } v81 = 0; if ( v78 < v80 || (v81 = 1, !v80) || (v81 = 0, (__int64)v80 > (__int64)v78) || (v86 = &v77[v78], v87 = &v86[1 - v80], v87 == v77) ) { LABEL_61: if ( (v106 & 1) == 0 ) { LABEL_62: if ( v81 ) goto LABEL_8; goto LABEL_63; } } else { v88 = v77 + 1; v89 = &v79[v80]; while ( 1 ) { v90 = v88 - 1; v91 = v88; if ( (unsigned __int8)*(v88 - 1) == *v79 ) break; LABEL_93: ++v88; if ( v91 == v87 ) { v81 = 0; if ( (v106 & 1) == 0 ) goto LABEL_62; goto LABEL_64; } } v92 = v79; v93 = v88 - 1; while ( ++v92 != v89 ) { v94 = (unsigned __int8)*++v93; if ( v94 != *v92 ) goto LABEL_93; } v81 = 0; if ( v86 == v90 ) goto LABEL_61; v81 = v90 - v77 != -1; if ( (v106 & 1) == 0 ) goto LABEL_62; } LABEL_64: operator delete(v108); if ( v81 ) goto LABEL_8; LABEL_63: v5 = *((_QWORD *)this + 103); LABEL_22: ++v7; v6 += 128; } while ( v7 < (*((_QWORD *)this + 104) - v5) >> 7 ); } AutoBackupPopup::updateSummary(this); v17 = *((_QWORD *)this + 106); v18 = *((_QWORD *)this + 107); v100 = 0; v101 = 0; v99 = &v100; v19 = 0; if ( !((v18 - v17) >> 7) ) { v83 = *((_QWORD *)this + 119); v84 = (char *)this + 952; v85 = *((_QWORD *)this + 120); v99 = *((__int64 **)this + 118); *((_QWORD *)this + 119) = 0; v100 = v83; *((_QWORD *)this + 120) = 0; v101 = v85; goto LABEL_80; } do { while ( !std::__tree::__count_unique((__int64)this + 944, v17 + (v19 << 7)) ) { if ( ++v19 >= (v18 - v17) >> 7 ) goto LABEL_28; } std::__tree::__emplace_unique_key_args( (__int64)&v99, v17 + (v19 << 7), (_QWORD *)(v17 + (v19 << 7))); v17 = *((_QWORD *)this + 106); ++v19; v18 = *((_QWORD *)this + 107); } while ( v19 < (v18 - v17) >> 7 ); LABEL_28: v20 = v101; v84 = (char *)this + 952; v21 = *((__int64 **)this + 118); v83 = *((_QWORD *)this + 119); v22 = v100; v85 = *((_QWORD *)this + 120); *((_QWORD *)this + 118) = v99; v99 = v21; *((_QWORD *)this + 119) = v22; v100 = v83; *((_QWORD *)this + 120) = v20; v101 = v85; if ( !v20 ) { LABEL_80: *((_QWORD *)this + 118) = v84; if ( !v85 ) goto LABEL_81; LABEL_30: *(_QWORD *)(v83 + 16) = &v100; goto LABEL_31; } *(_QWORD *)((char *)&word_10 + v22) = v84; if ( v101 ) goto LABEL_30; LABEL_81: v99 = &v100; LABEL_31: AutoBackupPopup::updateSelectUI((GJSelectionStrip **)this); v24 = *((_QWORD *)this + 106); v25 = *((_QWORD *)this + 107); if ( v24 == v25 ) { if ( *((_QWORD *)this + 103) == *((_QWORD *)this + 104) ) v95 = "No backups yet"; else v95 = "No matching backups"; PagedListPopup::showStatus(this, (cocos2d::CCLabelBMFont *)v95); ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 86), 0.0); } else { v26 = (v25 - v24) >> 7; v27 = *((ScrollableContentLayer **)this + 86); v28 = *((_QWORD *)v27 + 52); if ( (int)v26 > 0 ) { v29 = 0; v30 = 0; do { while ( 1 ) { v45 = v24 + v29; v46 = (float)((float)v30 * 40.0) + 20.0; v47 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v23); v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v48); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.6); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.6); v50 = (CCMenuItemToggler *)CCMenuItemToggler::create( v49, v47, (__int64)this, (__int64)AutoBackupPopup::onToggleRow, 0); v97 = v50; v51 = std::__tree::__count_unique((__int64)this + 944, v45) != 0; CCMenuItemToggler::toggle(v50, v51); v52 = v97; *((_BYTE *)v97 + 393) = 1; CCMenuItemToggler::setSizeMult(v52, 1.3); (*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(*(_QWORD *)v97 + 72LL))(v97, (unsigned int)v30); v53 = v97; v54 = *(void (__fastcall **)(CCMenuItemToggler *, char *))(*(_QWORD *)v97 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 17.0, -v46); v54(v53, v98); (*(void (__fastcall **)(__int64, CCMenuItemToggler *, __int64))(*(_QWORD *)v28 + 464LL))(v28, v97, 2); v56 = *((CCMenuItemToggler ***)this + 122); if ( *((CCMenuItemToggler ***)this + 123) == v56 ) { std::vector::__push_back_slow_path( (__int64)this + 968, &v97); } else { if ( v56 ) { *v56 = v97; v56 = *((CCMenuItemToggler ***)this + 122); } *((_QWORD *)this + 122) = v56 + 1; } v57 = (float)(*((float *)this + 176) - 10.0) - 10.0; v58 = ButtonSprite::create( (ButtonSprite *)"Restore", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_01.png", v55, 22.0); v59 = CCMenuItemSpriteExtra::create(v58, 0, (__int64)this, (__int64)AutoBackupPopup::onRestore, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v59 + 72LL))(v59, (unsigned int)v30); v60 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v59 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v57 - 25.0, -v46); v60(v59, v98); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v28 + 464LL))(v28, v59, 2); v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"threadBtn_delete_001.png", v61); v63 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v62 + 160LL); v64 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v62 + 328LL))(v62); v63(v62, 22.0 / *(float *)(v64 + 4)); v65 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v62 + 328LL))(v62); v66 = v65 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v62 + 168LL))(v62); v67 = (float)((float)(v57 - 50.0) - 10.0) - 10.0; v68 = CCMenuItemSpriteExtra::create(v62, 0, (__int64)this, (__int64)AutoBackupPopup::onDelete, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v68 + 72LL))(v68, (unsigned int)v30); v69 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v68 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v67 - (float)(v66 * 0.5), -v46); v69(v68, v98); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v28 + 464LL))(v28, v68, 2); v70 = v67 - v66; v71 = (cocos2d::CCLabelBMFont *)(v45 + 49); if ( (*(_BYTE *)(v45 + 48) & 1) != 0 ) v71 = *(cocos2d::CCLabelBMFont **)(v45 + 64); v72 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v71, "bigFont.fnt", (const char *)(v45 + 48)); v73 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v72 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 0.0, 0.5); v73(v72, v98); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v72 + 160LL))(v72, 0.45); v74 = (float)(v70 - 34.0) - 10.0; cocos2d::CCLabelBMFont::limitLabelWidth(v72, v74, 0.45, 0.2); v75 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v72 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 34.0, 8.0 - v46); v75(v72, v98); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v28 + 464LL))(v28, v72, 1); v76 = *(_BYTE *)(v45 + 72); v104[0] = 0; v104[1] = 0; v105 = nullptr; if ( (v76 & 1) != 0 ) { v31 = *(_QWORD *)(v45 + 80); v32 = *(const void **)(v45 + 88); } else { v31 = v76 >> 1; v32 = (const void *)(v45 + 73); } std::string::__init(v104, v32, v31, v31 + 3); std::string::append((__int64)v104, " ", 3u); formatBytes(&v106, *(_DWORD *)(v45 + 120)); if ( (v106 & 1) != 0 ) { v33 = (char *)v108; v34 = v107; } else { v34 = (unsigned __int8)v106 >> 1; v33 = (char *)&v106 + 1; } v35 = std::string::append((__int64)v104, v33, v34); v36 = *(_QWORD *)(v35 + 8); v102[0] = *(_QWORD *)v35; v102[1] = v36; v103 = *(void **)(v35 + 16); *(_QWORD *)v35 = 0; *(_QWORD *)(v35 + 8) = 0; *(_QWORD *)(v35 + 16) = 0; if ( (v106 & 1) != 0 ) operator delete(v108); if ( (v104[0] & 1) != 0 ) operator delete(v105); v37 = (unsigned int *)std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find( (__int64)this + 896, v45 + 24); if ( v37 != (unsigned int *)((char *)this + 904) ) { v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)" Rev: %i", (const char *)v37[14]); CString = (char *)cocos2d::CCString::getCString(v39); v40 = strlen(CString); std::string::append((__int64)v102, CString, v40); } v41 = (v102[0] & 1) != 0 ? (cocos2d::CCLabelBMFont *)v103 : (cocos2d::CCLabelBMFont *)((char *)v102 + 1); v42 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v41, "chatFont.fnt", v38); v43 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v42 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 0.0, 0.5); v43(v42, v98); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v42 + 160LL))(v42, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v42 + 1024LL))(v42, 4294967200LL); cocos2d::CCLabelBMFont::limitLabelWidth(v42, v74, 0.5, 0.2); v44 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v42 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 34.0, (float)-v46 - 9.0); v44(v42, v98); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v28 + 464LL))(v28, v42, 1); if ( (v102[0] & 1) != 0 ) break; v24 = *((_QWORD *)this + 106); ++v30; v29 += 128; v26 = (*((_QWORD *)this + 107) - v24) >> 7; if ( v30 >= (int)v26 ) goto LABEL_72; } ++v30; v29 += 128; operator delete(v103); v24 = *((_QWORD *)this + 106); v26 = (*((_QWORD *)this + 107) - v24) >> 7; } while ( v30 < (int)v26 ); LABEL_72: v27 = *((ScrollableContentLayer **)this + 86); } ScrollableContentLayer::setContentHeight(v27, (float)(unsigned __int64)v26 * 40.0); } std::__tree::~__tree((__int64)&v99); return _stack_chk_guard; }