//
// sub_1008F5BC0 from 0x1008f5bc0 to 0x1008f5c1e (94 bytes)
//
// 1 xrefs:
// > sub_1008F3770 @ 0x1008f3b1f
//
// 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 12:37:58 +0000
//
void *__fastcall sub_1008F5BC0(__int64 a1)
{
void *result; // rax
__int64 v2; // rax
if ( *(_QWORD *)(a1 + 1088) )
{
v2 = GameManager::sharedState();
GameManager::setGameVariable(v2, "0047");
result = ProfilePage::create(*(_DWORD *)(*(_QWORD *)(a1 + 1088) + 340LL), 0);
if ( result )
return (void *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)result + 1312LL))(result);
}
return result;
}