//
// ThreadViewPopup::senderScoreFor from 0x1400e5030 to 0x1400e50d5 (165 bytes)
//
// 3 xrefs:
// > ThreadViewPopup::mountVirtualRow @ 0x1400e1f5b
// > ThreadViewPopup::senderNameFor @ 0x1400e4dfa
// > ??> @ 0x140914c30
//
// This function is hookable on this platform (idp: pc, 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 11:26:32 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCObject *__fastcall ThreadViewPopup::senderScoreFor(__int64 a1, int a2)
{
__int64 v4; // rcx
cocos2d::CCArray *ThreadMembers; // rdi
signed int i; // ebx
signed int v7; // eax
struct cocos2d::CCObject *result; // rax
void *v9; // [rsp+30h] [rbp+8h]
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v9 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
ThreadMembers = (cocos2d::CCArray *)GameLevelManager::getThreadMembers(
v4,
*(unsigned int *)(*(_QWORD *)(a1 + 744) + 56LL));
for ( i = 0; ; ++i )
{
v7 = ThreadMembers ? cocos2d::CCArray::count(ThreadMembers) : 0;
if ( i >= v7 )
break;
result = cocos2d::CCArray::objectAtIndex(ThreadMembers, i);
if ( *((_DWORD *)result + 98) == a2 )
return result;
}
return nullptr;
}