//
// sub_10050D340 from 0x10050d340 to 0x10050d39c (92 bytes)
//
// 1 xrefs:
// > ThreadOptionsPopup::init @ 0x10050ce00
//
// 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:07:00 +0000
//
__int64 __fastcall sub_10050D340(_QWORD *a1)
{
__int64 result; // x0
void *v3; // x0
result = *(unsigned int *)(a1[129] + 60LL);
if ( (int)result >= 1 )
{
v3 = ProfilePage::create(result, 0);
(*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 1312LL))(v3);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1368LL))(a1, 0);
}
return result;
}