//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:47 +0000
//
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;
}