//
// sub_1000D2C90 from 0x1000d2c90 to 0x1000d2ccd (61 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:20:53 +0000
//
__int64 __fastcall sub_1000D2C90(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rcx
__int64 result; // rax
if ( byte_100BE7AC1 != 1 )
return *(_QWORD *)(a1 + 14832);
v1 = *(_QWORD *)(a1 + 14248);
if ( !v1 )
return *(_QWORD *)(a1 + 14832);
v2 = *(_QWORD *)(v1 + 1496);
if ( !v2 )
return *(_QWORD *)(a1 + 14832);
result = 0;
if ( *(_DWORD *)(v2 + 1248) == 1 )
return v2;
return result;
}