//
// MessageThreadsPage::onMarkRead from 0x74fdac to 0x74fe76 (202 bytes)
//
// 0 xrefs:
//
// 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:50 +0000
//
int __fastcall MessageThreadsPage::onMarkRead(cocos2d::CCArray **this, cocos2d::CCObject *a2, int a3, int a4)
{
int result; // r0
signed int v6; // r4
GameLevelManager *v7; // r0
int v8; // r8
int v9; // r2
int v10; // r3
cocos2d::CCString *v11; // r0
char *CString; // r0
GameManager *v13; // r0
GameLevelManager *updated; // r0
cocos2d::CCArray **v15; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v16; // [sp+4h] [bp-Ch]
int v17; // [sp+8h] [bp-8h]
int v18; // [sp+Ch] [bp-4h]
v15 = this;
v16 = a2;
v17 = a3;
v18 = a4;
result = MessageThreadsPage::selectedCount((MessageThreadsPage *)this);
if ( result && *(this + 147) )
{
v6 = 0;
v15 = nullptr;
v16 = nullptr;
v17 = 0;
while ( 1 )
{
v7 = (GameLevelManager *)cocos2d::CCArray::count(*(this + 147));
if ( v6 >= (int)v7 )
break;
v8 = cocos2d::CCArray::objectAtIndex(*(this + 147), v6);
if ( *(_BYTE *)(v8 + 208) )
{
v9 = (unsigned __int8)v15 << 31;
if ( ((unsigned __int8)v15 & 1) != 0 )
v10 = (int)v16;
else
v10 = (int)(unsigned __int8)v15 >> 1;
if ( v10 )
std::string::append(&v15, ",");
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(v8 + 52),
v9);
CString = (char *)cocos2d::CCString::getCString(v11);
std::string::append(&v15, CString);
}
++v6;
}
v13 = (GameManager *)GameLevelManager::sharedState(v7);
updated = (GameLevelManager *)GameLevelManager::updateThread(v13, nullptr, 3, (unsigned __int8 *)&v15);
if ( updated )
*(_DWORD *)(GameLevelManager::sharedState(updated) + 840) = this + 130;
return std::string::~string((int)&v15);
}
return result;
}