//
// sub_B4A10 from 0xb4a10 to 0xb4ab0 (160 bytes)
//
// 1 xrefs:
// > sub_B496C @ 0xb49f0
//
// 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_B4A10(__int64 a1, int a2, _DWORD *a3)
{
int v3; // w8
__int64 result; // x0
if ( a2 < 0 )
return 28;
v3 = *(_DWORD *)(a1 + 8);
if ( v3 < a2 )
return 28;
result = sub_B5954(a1, (unsigned int)(v3 + 1));
if ( !(_DWORD)result )
{
if ( *(_DWORD *)(a1 + 8) - a2 > 0 )
memmove(
(void *)(*(_QWORD *)a1 + 4LL * a2 + 4),
(const void *)(*(_QWORD *)a1 + 4LL * a2),
4LL * (*(_DWORD *)(a1 + 8) - a2));
*(_DWORD *)(*(_QWORD *)a1 + 4LL * a2) = *a3;
++*(_DWORD *)(a1 + 8);
return 0;
}
return result;
}