//
// sub_100556DE0 from 0x100556de0 to 0x100556e78 (152 bytes)
//
// 1 xrefs:
// > sub_10095E5D0 @ 0x10095e61d
//
// 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:05 +0000
//
_WORD *__fastcall sub_100556DE0(_WORD *a1, __int64 a2)
{
unsigned int v2; // eax
_QWORD *v3; // r14
v2 = *(unsigned __int8 *)(a2 + 1816);
if ( (v2 & 1) != 0 )
{
if ( !*(_QWORD *)(a2 + 1824) )
{
LABEL_10:
*a1 = 0;
return a1;
}
}
else if ( !(v2 >> 1) )
{
goto LABEL_10;
}
if ( !*(_DWORD *)(a2 + 1848) )
goto LABEL_10;
v3 = (_QWORD *)sub_100923C60(a2 + 1816);
sub_100923E40(v3, *(unsigned int *)(a2 + 1848));
if ( !v3[12] && !v3[17] && v3[19] == v3[20] )
goto LABEL_10;
sub_100923C00(a1, v3);
return a1;
}