//
// ThreadViewPopup::messageWithID from 0xc65a04 to 0xc65a64 (96 bytes)
//
// 3 xrefs:
// > ThreadViewPopup::threadUpdateFinished @ 0xc895e0
// > ThreadViewPopup::threadMessagesFinished @ 0xc8aaf0
// > ??> @ 0xce158
//
// 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 13:05:24 +0000
//
__int64 __fastcall ThreadViewPopup::messageWithID(cocos2d::CCArray **this, __int64 a2)
{
unsigned int v4; // w19
__int64 result; // x0
int v6; // w0
bool v7; // nf
bool v8; // vf
unsigned int v9; // w1
v4 = 0;
while ( 1 )
{
v6 = cocos2d::CCArray::count(*(this + 95));
v8 = __OFSUB__(v4, v6);
v7 = (int)(v4 - v6) < 0;
v9 = v4++;
if ( v7 == v8 )
break;
result = cocos2d::CCArray::objectAtIndex(*(this + 95), v9);
if ( *(_QWORD *)(result + 56) == a2 )
return result;
}
return 0;
}