//
// sub_10050D428 from 0x10050d428 to 0x10050d4d0 (168 bytes)
//
// 1 xrefs:
// > ThreadOptionsPopup::init @ 0x10050ce4c
//
// 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
//
void __fastcall sub_10050D428(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x8
int v4; // w21
char *v5; // x1
char v6; // w0
char v7; // w20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
v2 = GameLevelManager::sharedState();
v3 = *(_QWORD *)(a1 + 1032);
v4 = *(_DWORD *)(v3 + 56);
if ( *(_BYTE *)(v3 + 204) )
v5 = "0";
else
v5 = "1";
sub_100009900(__p, v5);
v6 = sub_1000C8838(v2, v4, 10, (__int64)__p);
v7 = v6;
if ( v9 < 0 )
{
operator delete(__p[0]);
if ( (v7 & 1) == 0 )
return;
}
else if ( (v6 & 1) == 0 )
{
return;
}
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
*(_DWORD *)(a1 + 1048) = 10;
}