//
// sub_1006047B0 from 0x1006047b0 to 0x10060480e (94 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097ed30
//
// 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_1006047B0(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rcx
__int64 v3; // rdx
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 32) + 944LL))(*(_QWORD *)(a1 + 32));
result = *(_QWORD *)(a1 + 32);
if ( result && *(_QWORD *)(a1 + 48) && *(int *)(a1 + 40) > 0 )
{
result = *(unsigned int *)(result + 472);
v2 = 8;
v3 = 0;
do
{
*(_DWORD *)(*(_QWORD *)(a1 + 48) + v2) = result;
++v3;
v2 += 20;
}
while ( v3 < *(int *)(a1 + 40) );
}
return result;
}