//
// sub_BD460 from 0xbd460 to 0xbd4e4 (132 bytes)
//
// 1 xrefs:
// > sub_BB7E4 @ 0xbb7ec
//
// This function is hookable on this platform (idp: arm, 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:14:42 +0000
//
__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;
}