//
// sub_1400BD9D0 from 0x1400bd9d0 to 0x1400bda52 (130 bytes)
//
// 2 xrefs:
// > sub_1400BD650 @ 0x1400bd77c
// > sub_1400BD650 @ 0x1400bd78b
//
// This function is hookable on this platform (idp: pc, 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 11:26:17 +0000
//
_OWORD *__fastcall sub_1400BD9D0(__int64 a1, __int64 a2, _OWORD *a3)
{
_OWORD *result; // rax
__int64 v4; // r8
char *v5; // r9
result = a3;
if ( a1 != a2 )
{
v4 = a1 + 24;
v5 = (char *)result - a1;
do
{
v4 += 40;
*result = 0;
*(_QWORD *)&v5[v4 - 48] = 0;
*(_QWORD *)&v5[v4 - 40] = 0;
*result = *(_OWORD *)(v4 - 64);
result[1] = *(_OWORD *)(v4 - 48);
*(_QWORD *)(v4 - 48) = 0;
result = (_OWORD *)((char *)result + 40);
*(_QWORD *)(v4 - 40) = 15;
*(_BYTE *)(v4 - 64) = 0;
*(_WORD *)&v5[v4 - 32] = *(_WORD *)(v4 - 32);
v5[v4 - 30] = *(_BYTE *)(v4 - 30);
v5[v4 - 29] = *(_BYTE *)(v4 - 29);
}
while ( v4 - 24 != a2 );
}
return result;
}