//
// sub_1008DBBF0 from 0x1008dbbf0 to 0x1008dbc75 (133 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb2858
//
// 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:37:44 +0000
//
__int64 __fastcall sub_1008DBBF0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v5; // rdi
__int64 v6; // r12
__int64 result; // rax
_QWORD *v8; // rdi
v5 = *(_QWORD *)(a1 + 400);
if ( v5 )
{
v6 = *(unsigned __int8 *)(v5 + 480);
sub_10096C5E0(v5, a2);
result = 8 * v6 + 912;
if ( *(_BYTE *)(a1 + 408) != 1 )
return result;
}
else
{
result = 912;
if ( *(_BYTE *)(a1 + 408) != 1 )
return result;
}
v8 = *(_QWORD **)(a1 + 392);
if ( v8 || (v8 = *(_QWORD **)(a1 + 232)) != nullptr )
result = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*v8 + result))(v8, a2, a3);
*(_BYTE *)(a1 + 408) = 0;
return result;
}