//
// sub_10050E274 from 0x10050e274 to 0x10050e2bc (72 bytes)
//
// 2 xrefs:
// > ThreadOptionsPopup::threadUpdateFailed @ 0x10050e13c
// > ThreadOptionsPopup::onClose @ 0x10050e4fc
//
// 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:01 +0000
//
__int64 __fastcall sub_10050E274(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
__int64 v4; // x8
result = GameLevelManager::sharedState();
if ( *(_QWORD *)(result + 1264) == a1 + 1016 )
{
result = GameLevelManager::sharedState();
v3 = *(_QWORD *)(a1 + 1040);
if ( v3 )
v4 = v3 + 672;
else
v4 = 0;
*(_QWORD *)(result + 1264) = v4;
}
return result;
}