//
// sub_BDC92 from 0xbdc92 to 0xbdcd0 (62 bytes)
//
// 3 xrefs:
// > sub_51F60 @ 0x51f88
// > sub_6E1AC @ 0x6e2be
// > sub_BDCD0 @ 0xbdce0
//
// 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
//
int __fastcall sub_BDC92(int a1, int a2, int a3, const char *a4, unsigned int a5, int a6, int a7)
{
int v7; // r4
unsigned __int64 *v8; // r0
unsigned __int64 *v9; // r1
int result; // r0
v7 = a3;
if ( a3 < 1 )
v7 = 8;
v8 = sub_BD410(a1, a2 + v7 + 4, a4, a5, a6, a7);
if ( !v8 )
return 0;
v9 = v8;
result = ((unsigned int)v8 + v7 + 3) & -v7;
*(_DWORD *)(result - 4) = v9;
return result;
}