//
// sub_BD460 from 0xbd460 to 0xbd4e4 (132 bytes)
//
// 1 xrefs:
// > sub_BB7E4 @ 0xbb7ec
//
// 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_BD460(__int64 a1)
{
__int64 *v1; // x19
__int64 v2; // x8
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x22
v1 = (__int64 *)(a1 + 49712);
v2 = *(_QWORD *)(a1 + 49712);
if ( v2 )
{
v3 = 0;
v4 = 0;
v5 = a1 + 544;
while ( v4 < *((int *)v1 + 3) )
{
sub_BCA0C((char *)(v2 + v3));
v2 = *v1;
++v4;
*(_QWORD *)(*v1 + v3 + 81976) = v5;
v3 += 81992;
}
}
return 0;
}