//
// sub_1004FAB30 from 0x1004fab30 to 0x1004fab9c (108 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::threadUpdateFinished @ 0x1004fc9a0
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe18c
//
// 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 11:06:50 +0000
//
__int64 __fastcall sub_1004FAB30(__int64 a1, __int64 a2)
{
unsigned int v4; // w21
__int64 result; // x0
if ( (int)sub_1002E757C(*(_QWORD *)(a1 + 760)) < 1 )
return 0;
v4 = 0;
while ( 1 )
{
result = sub_1002E75A0(*(_QWORD *)(a1 + 760), v4);
if ( *(_QWORD *)(result + 56) == a2 )
break;
if ( (int)++v4 >= (int)sub_1002E757C(*(_QWORD *)(a1 + 760)) )
return 0;
}
return result;
}