//
// InfoLayer::refreshBulkUI from 0x53cfc8 to 0x53d0a8 (224 bytes)
//
// 5 xrefs:
// > InfoLayer::setupBulkUI @ 0x53d2be
// > InfoLayer::clearBulkSelection @ 0x53dd90
// > InfoLayer::setupCommentsBrowser @ 0x53e16c
// > InfoLayer::onCommentCellToggled @ 0x54097c
// > InfoLayer::onBulkSelectAll @ 0x540a7a
//
// 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:52:15 +0000
//
InfoLayer *__fastcall InfoLayer::refreshBulkUI(InfoLayer *this)
{
InfoLayer *v1; // r5
int v2; // r4
void (*v3)(void); // r3
cocos2d::CCArray *v4; // r0
const char *v5; // r1
int v6; // r6
void (__fastcall *v7)(int, int); // r7
cocos2d::CCString *v8; // r0
int CString; // r0
v1 = this;
if ( *((_DWORD *)this + 163) && *((_DWORD *)this + 164) && *((_DWORD *)this + 165) )
{
v2 = InfoLayer::canBulkDelete(this);
if ( v2 )
{
v2 = *((_DWORD *)v1 + 162);
if ( v2 )
{
v4 = *(cocos2d::CCArray **)(v2 + 328);
if ( v4 )
v2 = cocos2d::CCArray::count(v4) != 0;
else
v2 = 0;
}
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 164) + 172))(*((_DWORD *)v1 + 164), v2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 164) + 528))(*((_DWORD *)v1 + 164), v2);
v5 = *((const char **)v1 + 168);
if ( v2 )
v2 = (int)v5 > 0;
v6 = *((_DWORD *)v1 + 163);
v7 = *(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 464);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"(%i)", v5);
CString = cocos2d::CCString::getCString(v8);
v7(v6, CString);
v3 = *(void (**)(void))(**((_DWORD **)v1 + 163) + 172);
}
else
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)v1 + 163) + 172))(*((_DWORD *)v1 + 163), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)v1 + 164) + 172))(*((_DWORD *)v1 + 164), 0);
v3 = *(void (**)(void))(**((_DWORD **)v1 + 164) + 528);
}
v3();
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 165) + 172))(*((_DWORD *)v1 + 165), v2);
return (InfoLayer *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 165) + 528))(*((_DWORD *)v1 + 165), v2);
}
return this;
}