//
// sub_100553E50 from 0x100553e50 to 0x100553f18 (200 bytes)
//
// 0 xrefs:
//
// 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:32:04 +0000
//
void __fastcall sub_100553E50(__int64 a1)
{
__int64 v2; // rax
std::string *v3; // rdi
unsigned int v4; // r14d
__int64 v5; // r14
unsigned int v6; // ecx
__int64 v7; // rcx
int v8; // esi
__int64 v9; // rdx
if ( *(_DWORD *)(a1 + 900) == 5 && *(_BYTE *)(a1 + 1000) == 1 && !*(_BYTE *)(a1 + 1844) )
{
v2 = GameManager::sharedState();
if ( !(unsigned __int8)GameManager::getGameVariable(v2, "0203") )
{
v3 = (std::string *)(a1 + 1816);
v4 = *(unsigned __int8 *)(a1 + 1816);
if ( (v4 & 1) != 0 )
v5 = *(_QWORD *)(a1 + 1824);
else
v5 = v4 >> 1;
std::string::operator=(v3, (const std::string *)(a1 + 1784));
v6 = *(unsigned __int8 *)(a1 + 1816);
if ( !v5 )
{
v9 = (v6 & 1) != 0 ? *(_QWORD *)(a1 + 1824) : v6 >> 1;
v8 = 1;
if ( v9 )
goto LABEL_18;
}
if ( (v6 & 1) != 0 )
v7 = *(_QWORD *)(a1 + 1824);
else
v7 = v6 >> 1;
if ( !v7 )
{
v8 = 0;
LABEL_18:
*(_DWORD *)(a1 + 1840) = v8;
}
}
}
}