//
// sub_10054194C from 0x10054194c to 0x1005419ac (96 bytes)
//
// 2 xrefs:
// > sub_10051F7D0 @ 0x10051f8bc
// > sub_1005251E8 @ 0x100525274
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10054194C(__int64 a1)
{
__int64 v1; // x8
__int64 v3; // x8
if ( *(_DWORD *)(a1 + 4) == 4096 )
{
if ( (*(_DWORD *)a1 & 0xFFFFFF00) == 0x300 )
{
v1 = *(_QWORD *)(a1 + 128);
if ( v1 )
return *(_QWORD *)(v1 + 992);
else
return 0;
}
else
{
return 0;
}
}
else
{
v3 = *(_QWORD *)(a1 + 408);
if ( !v3 )
return *(_QWORD *)(*(_QWORD *)(a1 + 368) + 272LL);
return v3;
}
}