//
// sub_100482E40 from 0x100482e40 to 0x100482ea2 (98 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:30:41 +0000
//
__int64 __fastcall sub_100482E40(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rdi
__int64 v3; // rax
int v4; // esi
unsigned int *v5; // rax
__int64 v6; // rcx
unsigned __int64 v7; // rax
unsigned __int64 v8; // rcx
result = a1;
v2 = *(_QWORD *)(a1 + 712);
if ( v2 )
{
v3 = *(_QWORD *)(result + 656);
v4 = 0;
if ( v3 )
{
v5 = *(unsigned int **)(v3 + 56);
v6 = *v5;
if ( *v5 )
{
v7 = *((_QWORD *)v5 + 2);
v8 = v7 + 8 * v6 - 8;
v4 = 0;
do
{
if ( !*(_QWORD *)v7 )
break;
v4 += *(unsigned __int8 *)(*(_QWORD *)v7 + 771LL);
v7 += 8LL;
}
while ( v7 <= v8 );
}
}
return sub_10029CC00(v2, v4);
}
return result;
}