//
// sub_100949F20 from 0x100949f20 to 0x100949f80 (96 bytes)
//
// 2 xrefs:
// > ThreadOptionsPopup::init @ 0x100949a9b
// > ThreadOptionsPopup::init @ 0x100949cd4
//
// 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:38:35 +0000
//
__int64 __fastcall sub_100949F20(_QWORD *a1)
{
__int64 v2; // rdi
__int64 v3; // r14
_WORD v5[8]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
v2 = a1[129];
v5[0] = 0;
v3 = sub_100966780(v2, 0, v5);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1368LL))(a1, 0);
}