//
// ThreadOptionsPopup::onViewProfile from 0x1400f5a30 to 0x1400f5a74 (68 bytes)
//
// 2 xrefs:
// > ThreadOptionsPopup::init @ 0x1400f4976
// > ??> @ 0x140915254
//
// 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:38 +0000
//
__int64 __fastcall ThreadOptionsPopup::onViewProfile(_QWORD *a1)
{
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rax
result = a1[127];
v3 = *(unsigned int *)(result + 60);
if ( (int)v3 > 0 )
{
v4 = ProfilePage::create(v3, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1104LL))(a1, 0);
}
return result;
}