//
// AutoBackupPopup::buildRows from 0x73ed6c to 0x73f43a (1742 bytes)
//
// 3 xrefs:
// > AutoBackupPopup::textChanged @ 0x73f52e
// > AutoBackupPopup::init @ 0x742550
// > AutoBackupPopup::backupsChanged @ 0x74277e
//
// 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:58:33 +0000
//
void __fastcall AutoBackupPopup::buildRows(AutoBackupPopup *this)
{
char *v2; // r2
int v3; // r4
int v4; // r0
AutoBackupPopup::BackupFile *v5; // r0
unsigned int i; // r4
int v7; // r1
int v8; // r3
int v9; // r3
unsigned int v10; // r7
int v11; // r3
AutoBackupPopup::BackupFile *v12; // r0
AutoBackupPopup::BackupFile *v13; // r1
unsigned __int8 *v14; // r0
int v15; // r3
int v16; // r2
int v17; // r2
unsigned __int8 *v18; // r1
char *v19; // r5
unsigned __int8 *v20; // r6
char *v21; // r3
int v22; // r9
unsigned __int8 *v23; // lr
char *v24; // r9
int v25; // t1
_BOOL4 v26; // r5
unsigned int v27; // r4
int v28; // r5
unsigned __int8 *v29; // r5
int *v30; // r3
char *v31; // r1
int v32; // r4
int v33; // r0
_DWORD *v34; // r2
_DWORD *v35; // r3
const char *v36; // r1
char *v37; // r1
ScrollableContentLayer *v38; // r0
float v39; // r1
int v40; // r7
int v41; // r5
int v42; // r4
int v43; // r3
int v44; // r4
float v45; // s19
int v46; // r6
const char *v47; // r1
int v48; // r8
cocos2d::CCNodeRGBA *v49; // r6
_BOOL4 v50; // r1
CCMenuItemToggler *v51; // r0
CCMenuItemToggler *v52; // r8
void (__fastcall *v53)(CCMenuItemToggler *, _BYTE *); // r10
CCMenuItemToggler **v54; // r3
float v55; // s17
ButtonSprite *v56; // r0
int v57; // r8
void (__fastcall *v58)(int, _BYTE *); // r10
const char *v59; // r1
int v60; // r8
void (__fastcall *v61)(int, _DWORD); // r10
int v62; // r0
float v63; // s20
float v64; // s20
float v65; // s17
int v66; // r8
void (__fastcall *v67)(int, _BYTE *); // r10
const char *v68; // r2
float v69; // s17
cocos2d::CCLabelBMFont *v70; // r0
cocos2d::CCLabelBMFont *v71; // r8
void (__fastcall *v72)(cocos2d::CCLabelBMFont *, _BYTE *); // r10
void (__fastcall *v73)(cocos2d::CCLabelBMFont *, _BYTE *); // r10
const void *v74; // r1
signed int v75; // r2
bool v76; // nf
char *v77; // r1
size_t v78; // r2
_DWORD *v79; // r0
int v80; // r1
cocos2d::CCLabelBMFont *v81; // r2
const char **v82; // r0
const char *v83; // r2
cocos2d::CCLabelBMFont *v84; // r0
cocos2d::CCString *v85; // r0
char *CString; // r0
cocos2d::CCLabelBMFont *v87; // r4
void (__fastcall *v88)(cocos2d::CCLabelBMFont *, _BYTE *); // r10
void (__fastcall *v89)(cocos2d::CCLabelBMFont *, _BYTE *); // r10
float v90; // [sp+10h] [bp-7Ch]
CCMenuItemToggler *v91[7]; // [sp+30h] [bp-5Ch] BYREF
_BYTE v92[8]; // [sp+4Ch] [bp-40h] BYREF
int *v93; // [sp+54h] [bp-38h] BYREF
_DWORD *v94; // [sp+58h] [bp-34h] BYREF
int v95; // [sp+5Ch] [bp-30h]
_DWORD v96[2]; // [sp+60h] [bp-2Ch] BYREF
cocos2d::CCLabelBMFont *v97; // [sp+68h] [bp-24h]
int v98[3]; // [sp+6Ch] [bp-20h] BYREF
int v99; // [sp+78h] [bp-14h] BYREF
size_t v100; // [sp+7Ch] [bp-10h]
char *v101; // [sp+80h] [bp-Ch]
(*(void (__fastcall **)(AutoBackupPopup *))(*(_DWORD *)this + 676))(this);
PagedListPopup::clearStatus(this);
v3 = *((_DWORD *)this + 158);
while ( 1 )
{
v4 = *((_DWORD *)this + 159);
if ( v3 == v4 )
break;
v5 = (AutoBackupPopup::BackupFile *)(v4 - 64);
*((_DWORD *)this + 159) = v5;
AutoBackupPopup::BackupFile::~BackupFile(v5);
}
for ( i = 0; ; ++i )
{
v7 = *((_DWORD *)this + 155);
v8 = *((_DWORD *)this + 156) - v7;
if ( i >= v8 >> 6 )
break;
v9 = *((unsigned __int8 *)this + 644);
v10 = i << 6;
if ( (v9 & 1) != 0 )
v11 = *((_DWORD *)this + 162);
else
v11 = v9 >> 1;
if ( v11 )
{
sub_73C56C(&v99, v7 + v10 + 24);
if ( (v99 & 1) != 0 )
{
v14 = (unsigned __int8 *)v101;
v15 = v100;
}
else
{
v15 = (int)(unsigned __int8)v99 >> 1;
v14 = (unsigned __int8 *)&v99 + 1;
}
v16 = *((unsigned __int8 *)this + 644);
if ( (v16 & 1) != 0 )
{
v17 = *((_DWORD *)this + 162);
v18 = *((unsigned __int8 **)this + 163);
}
else
{
v17 = v16 >> 1;
v18 = (unsigned __int8 *)this + 645;
}
if ( v15 < (unsigned int)v17 )
goto LABEL_80;
if ( v17 )
{
v19 = (char *)&v14[v15];
if ( v15 >= v17 )
{
v20 = v14;
LABEL_21:
while ( 1 )
{
v21 = (char *)v20;
if ( v20 == (unsigned __int8 *)&v19[1 - v17] )
break;
v22 = *v20++;
if ( v22 == *v18 )
{
v23 = v18;
v24 = v21;
while ( ++v23 != &v18[v17] )
{
v25 = (unsigned __int8)*++v24;
if ( v25 != *v23 )
goto LABEL_21;
}
goto LABEL_28;
}
}
}
v21 = v19;
LABEL_28:
if ( v21 != v19 )
{
v26 = v21 - (char *)v14 != -1;
goto LABEL_30;
}
LABEL_80:
v26 = 0;
}
else
{
v26 = 1;
}
LABEL_30:
std::string::~string((int)&v99);
if ( !v26 )
continue;
}
v12 = *((AutoBackupPopup::BackupFile **)this + 159);
v13 = (AutoBackupPopup::BackupFile *)(*((_DWORD *)this + 155) + v10);
if ( v12 == *((AutoBackupPopup::BackupFile **)this + 160) )
{
std::vector
::__push_back_slow_path(
(unsigned int *)this + 158,
v13);
}
else
{
if ( v12 )
AutoBackupPopup::BackupFile::BackupFile(v12, v13);
*((_DWORD *)this + 159) += 64;
}
}
AutoBackupPopup::updateSummary((int)this, v7, v2, v8);
v27 = 0;
v94 = nullptr;
v95 = 0;
v93 = (int *)&v94;
while ( 1 )
{
v28 = *((_DWORD *)this + 158);
if ( v27 >= (*((_DWORD *)this + 159) - v28) >> 6 )
break;
v29 = (unsigned __int8 *)(v28 + (v27 << 6));
if ( std::__tree::__count_unique((int)this + 680, v29) )
std::__tree::__emplace_unique_key_args((int)v92, &v93, v29, (int)v29);
++v27;
}
v30 = *((int **)this + 170);
v31 = (char *)this + 684;
v32 = *((_DWORD *)this + 172);
v33 = v95;
*((_DWORD *)this + 170) = v93;
v93 = v30;
v34 = v94;
v35 = *((_DWORD **)this + 171);
*((_DWORD *)this + 172) = v33;
*((_DWORD *)this + 171) = v34;
v94 = v35;
v95 = v32;
if ( v33 )
*(_DWORD *)&byte_8[(_DWORD)v34] = v31;
else
*((_DWORD *)this + 170) = v31;
if ( v95 )
v35[2] = &v94;
else
v93 = (int *)&v94;
AutoBackupPopup::updateSelectUI((GJSelectionStrip **)this);
if ( *((_DWORD *)this + 158) == *((_DWORD *)this + 159) )
{
if ( *((_DWORD *)this + 155) == *((_DWORD *)this + 156) )
v37 = "No backups yet";
else
v37 = "No matching backups";
PagedListPopup::showStatus(this, (cocos2d::CCLabelBMFont *)v37);
v38 = *((ScrollableContentLayer **)this + 136);
v39 = 0.0;
}
else
{
v40 = 0;
v41 = *(_DWORD *)(*((_DWORD *)this + 136) + 320);
while ( 1 )
{
v42 = *((_DWORD *)this + 158);
v43 = (*((_DWORD *)this + 159) - v42) >> 6;
if ( v40 >= v43 )
break;
v44 = v42 + (v40 << 6);
v45 = (float)((float)v40 * 40.0) + 20.0;
v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v36);
v48 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v47);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v46 + 80))(v46, 1058642330);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 80))(v48, 1058642330);
v91[2] = nullptr;
v91[1] = (CCMenuItemToggler *)AutoBackupPopup::onToggleRow;
v49 = CCMenuItemToggler::create(v48, v46, (int)this, (int)AutoBackupPopup::onToggleRow, 0);
v91[0] = v49;
v50 = std::__tree::__count_unique((int)this + 680, (unsigned __int8 *)v44) != 0;
CCMenuItemToggler::toggle(v49, v50);
v51 = v91[0];
*((_BYTE *)v91[0] + 309) = 1;
CCMenuItemToggler::setSizeMult(v51, 1.3);
(*(void (__fastcall **)(CCMenuItemToggler *, int))(*(_DWORD *)v91[0] + 36))(v91[0], v40);
v52 = v91[0];
v53 = *(void (__fastcall **)(CCMenuItemToggler *, _BYTE *))(*(_DWORD *)v91[0] + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, 17.0, -v45);
v53(v52, v92);
(*(void (__fastcall **)(int, CCMenuItemToggler *, int))(*(_DWORD *)v41 + 232))(v41, v91[0], 2);
v54 = *((CCMenuItemToggler ***)this + 174);
if ( v54 == *((CCMenuItemToggler ***)this + 175) )
{
std::vector::__push_back_slow_path((int)this + 692, v91);
}
else
{
if ( v54 )
*v54 = v91[0];
*((_DWORD *)this + 174) += 4;
}
v55 = (float)(*((float *)this + 138) - 10.0) - 10.0;
v56 = ButtonSprite::create(
(ButtonSprite *)"Restore",
(const char *)&word_32,
0,
0.4,
1,
"bigFont.fnt",
"GJ_button_01.png",
COERCE_CONST_CHAR_(22.0),
v90);
v91[4] = nullptr;
v91[3] = (CCMenuItemToggler *)AutoBackupPopup::onRestore;
v57 = CCMenuItemSpriteExtra::create((int)v56, 0, (int)this, (int)AutoBackupPopup::onRestore, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v57 + 36))(v57, v40);
v58 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v57 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, v55 - 25.0, -v45);
v58(v57, v92);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v41 + 232))(v41, v57, 2);
v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"threadBtn_delete_001.png", v59);
v61 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v60 + 80);
v62 = (*(int (__fastcall **)(int))(*(_DWORD *)v60 + 164))(v60);
v61(v60, 22.0 / *(float *)(v62 + 4));
v63 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v60 + 164))(v60);
v64 = v63 * (*(float (__fastcall **)(int))(*(_DWORD *)v60 + 84))(v60);
v91[5] = (CCMenuItemToggler *)AutoBackupPopup::onDelete;
v91[6] = nullptr;
v65 = (float)((float)(v55 - 50.0) - 10.0) - 10.0;
v66 = CCMenuItemSpriteExtra::create(v60, 0, (int)this, (int)AutoBackupPopup::onDelete, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v66 + 36))(v66, v40);
v67 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v66 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, v65 - (float)(v64 * 0.5), -v45);
v67(v66, v92);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v41 + 232))(v41, v66, 2);
v69 = v65 - v64;
if ( (*(_BYTE *)(v44 + 24) & 1) != 0 )
v70 = *(cocos2d::CCLabelBMFont **)(v44 + 32);
else
v70 = (cocos2d::CCLabelBMFont *)(v44 + 25);
v71 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v70, "bigFont.fnt", v68);
v72 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v71 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, 0.0, 0.5);
v72(v71, v92);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v71 + 80))(v71, 1055286886);
cocos2d::CCLabelBMFont::limitLabelWidth(v71, (float)(v69 - 34.0) - 10.0, 0.45, 0.2);
v73 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v71 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, 34.0, 8.0 - v45);
v73(v71, v92);
(*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v41 + 232))(v41, v71, 1);
v75 = *(unsigned __int8 *)(v44 + 36);
v98[0] = 0;
v76 = (v75 & 1) != 0;
v98[1] = 0;
if ( (v75 & 1) == 0 )
v75 >>= 1;
v98[2] = 0;
if ( v76 )
v75 = *(_DWORD *)(v44 + 40);
else
v74 = (const void *)(v44 + 37);
if ( v76 )
v74 = *(const void **)(v44 + 44);
std::string::__init(v98, v74, v75, v75 + 3);
std::string::append(v98, " ", 3u);
formatBytes(&v99, *(_DWORD *)(v44 + 60));
if ( (v99 & 1) != 0 )
{
v77 = v101;
v78 = v100;
}
else
{
v78 = (int)(unsigned __int8)v99 >> 1;
v77 = (char *)&v99 + 1;
}
v79 = std::string::append(v98, v77, v78);
v80 = v79[1];
v81 = (cocos2d::CCLabelBMFont *)v79[2];
v96[0] = *v79;
v96[1] = v80;
v97 = v81;
*v79 = 0;
v79[1] = 0;
v79[2] = 0;
std::string::~string((int)&v99);
std::string::~string((int)v98);
v82 = (const char **)std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find(
(int)this + 656,
(unsigned __int8 *)(v44 + 12));
v83 = (char *)this + 660;
if ( v82 != (const char **)((char *)this + 660) )
{
v85 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)" Rev: %i", v82[7]);
CString = (char *)cocos2d::CCString::getCString(v85);
std::string::append(v96, CString);
}
if ( (v96[0] & 1) != 0 )
v84 = v97;
else
v84 = (cocos2d::CCLabelBMFont *)((char *)v96 + 1);
v87 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v84, "chatFont.fnt", v83);
v88 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v87 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, 0.0, 0.5);
v88(v87, v92);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v87 + 80))(v87, 1056964608);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v87 + 512))(v87, 160);
cocos2d::CCLabelBMFont::limitLabelWidth(v87, (float)(v69 - 34.0) - 10.0, 0.5, 0.2);
v89 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v87 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, 34.0, (float)-v45 - 9.0);
v89(v87, v92);
(*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v41 + 232))(v41, v87, 1);
++v40;
std::string::~string((int)v96);
}
v38 = *((ScrollableContentLayer **)this + 136);
v39 = (float)(unsigned int)v43 * 40.0;
}
ScrollableContentLayer::setContentHeight(v38, v39);
std::__tree::destroy((int)&v93, v94);
}