//
// sub_10050D0D0 from 0x10050d0d0 to 0x10050d154 (132 bytes)
//
// 1 xrefs:
// > ThreadOptionsPopup::init @ 0x10050cd54
//
// 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_10050D0D0(_QWORD *a1)
{
__int64 v2; // x20
__int64 v3; // x20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
v2 = a1[129];
sub_100009900(__p, "");
v3 = sub_10052176C(v2, 0, __p);
if ( v6 < 0 )
operator delete(__p[0]);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1368LL))(a1, 0);
}