//
// ThreadViewPopup::messageWithID from 0x746dc2 to 0x746df6 (52 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::threadUpdateFinished @ 0x75d8e0
// > ThreadViewPopup::threadMessagesFinished @ 0x75eaca
//
// 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:43 +0000
//
int __fastcall ThreadViewPopup::messageWithID(cocos2d::CCArray **this, __int64 a2)
{
signed int i; // r6
int result; // r0
for ( i = 0; i < cocos2d::CCArray::count(*(this + 142)); ++i )
{
result = cocos2d::CCArray::objectAtIndex(*(this + 142), i);
if ( *(_QWORD *)(result + 56) == a2 )
return result;
}
return 0;
}