//
// sub_1004F9A24 from 0x1004f9a24 to 0x1004f9a8c (104 bytes)
//
// 1 xrefs:
// > ThreadViewPopup::init @ 0x1004f8894
//
// 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:49 +0000
//
__int64 __fastcall sub_1004F9A24(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // x0
v2 = *(_QWORD *)(a1 + 912);
if ( !v2 || (result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1048LL))(v2), (_DWORD)result) )
{
v4 = *(_QWORD *)(a1 + 928);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1160LL))(v4, 0);
v5 = sub_1004FC1D4(a1 + 680);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
return result;
}