//
// GJSelectionStrip::setCount from 0x5d5068 to 0x5d50da (114 bytes)
//
// 5 xrefs:
// > LevelBrowserLayer::updateSelectUI @ 0x4a4afa
// > GJSelectionStrip::setStripVisible @ 0x5d5100
// > FRequestProfilePage::updateSelectUI @ 0x5f0fba
// > AutoBackupPopup::updateSelectUI @ 0x73c482
// > MessageThreadsPage::updateSelectUI @ 0x746864
//
// 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:54:08 +0000
//
int __fastcall GJSelectionStrip::setCount(GJSelectionStrip *this, const char *a2)
{
int v3; // r3
int result; // r0
int v6; // r5
int (__fastcall *v7)(int, int); // r7
cocos2d::CCString *v8; // r0
int CString; // r0
unsigned int i; // r5
int v11; // r2
int v12; // r0
v3 = *((unsigned __int8 *)this + 296);
result = *((_DWORD *)this + 72);
if ( !v3 )
a2 = nullptr;
if ( result )
{
(*(void (__fastcall **)(int, bool))(*(_DWORD *)result + 172))(result, (int)a2 > 0);
v6 = *((_DWORD *)this + 72);
v7 = *(int (__fastcall **)(int, int))(*(_DWORD *)v6 + 464);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"(%i)", a2);
CString = cocos2d::CCString::getCString(v8);
result = v7(v6, CString);
}
for ( i = 0; ; ++i )
{
v11 = *((_DWORD *)this + 75);
if ( i >= (*((_DWORD *)this + 76) - v11) >> 2 )
break;
v12 = *(_DWORD *)(v11 + 4 * i);
result = (*(int (__fastcall **)(int, bool))(*(_DWORD *)v12 + 172))(v12, (int)a2 > 0);
}
return result;
}