//
// sub_10094A490 from 0x10094a490 to 0x10094a510 (128 bytes)
//
// 1 xrefs:
// > ThreadOptionsPopup::init @ 0x100949c9e
//
// 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
//
void __fastcall sub_10094A490(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rcx
int v3; // esi
char updated; // r14
std::string v5; // [rsp+8h] [rbp-28h] BYREF
v1 = GameLevelManager::sharedState();
v2 = *(_QWORD *)(a1 + 1032);
v3 = *(_DWORD *)(v2 + 56);
LOBYTE(v2) = *(_BYTE *)(v2 + 274);
v5.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)2;
*(_WORD *)((char *)&v5.__r_.__value_.__l.0 + 1) = (unsigned __int8)v2 ^ 0x31;
updated = GameLevelManager::updateThread(v1, v3, 15, &v5);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
if ( updated )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
*(_DWORD *)(a1 + 1048) = 15;
}
}