//
// InfoLayer::refreshBulkUI from 0x907c88 to 0x907e2c (420 bytes)
//
// 7 xrefs:
// > InfoLayer::setupBulkUI @ 0x90810c
// > InfoLayer::clearBulkSelection @ 0x9098b0
// > InfoLayer::setupCommentsBrowser @ 0x909ba0
// > InfoLayer::onCommentCellToggled @ 0x90d724
// > InfoLayer::onCommentCellToggled @ 0x90d920
// > InfoLayer::onBulkSelectAll @ 0x90daf0
// > ??> @ 0xff850
//
// 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 12:57:10 +0000
//
_QWORD *__fastcall InfoLayer::refreshBulkUI(_QWORD *this)
{
_QWORD *v1; // x19
__int64 v2; // x0
cocos2d::CCArray *v3; // x0
_BOOL4 v4; // w20
__int64 v5; // x21
const char *v6; // x1
unsigned int v7; // w20
void (__fastcall *v8)(__int64, __int64); // x22
cocos2d::CCString *v9; // x0
__int64 CString; // x0
v1 = this;
if ( *(this + 113) && *(this + 114) && *(this + 115) )
{
if ( InfoLayer::canBulkDelete((_BOOL8)this) )
{
v2 = v1[112];
v4 = v2 && (v3 = *(cocos2d::CCArray **)(v2 + 432)) != nullptr && cocos2d::CCArray::count(v3) != 0;
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)v1[114] + 344LL))(v1[114], v4);
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)v1[114] + 1056LL))(v1[114], v4);
v5 = v1[113];
v6 = (const char *)v1[118];
v7 = v4 && (int)v6 > 0;
v8 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 928LL);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"(%i)", v6);
CString = cocos2d::CCString::getCString(v9);
v8(v5, CString);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[113] + 344LL))(v1[113], v7);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[115] + 344LL))(v1[115], v7);
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[115] + 1056LL))(v1[115], v7);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[113] + 344LL))(v1[113], 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[114] + 344LL))(v1[114], 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[114] + 1056LL))(v1[114], 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[115] + 344LL))(v1[115], 0);
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v1[115] + 1056LL))(v1[115], 0);
}
}
return this;
}