//
// sub_100507CE4 from 0x100507ce4 to 0x100507d2c (72 bytes)
//
// 2 xrefs:
// > sub_100507288 @ 0x1005073f4
// > sub_100507288 @ 0x1005076ec
//
// 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:57 +0000
//
__int64 __fastcall sub_100507CE4(__int64 a1, __int64 a2)
{
__int64 result; // x0
void *v3; // x0
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 640LL))(a2);
if ( result )
{
result = *(unsigned int *)(result + 376);
if ( (int)result >= 1 )
{
v3 = ProfilePage::create(result, 0);
return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v3 + 1312LL))(v3);
}
}
return result;
}