//
// sub_1403BB730 from 0x1403bb730 to 0x1403bb7a7 (119 bytes)
//
// 3 xrefs:
// > sub_1403A5660 @ 0x1403a57a9
// > sub_1403BB6A0 @ 0x1403bb6a0
// > ??> @ 0x1406d71d8
//
// 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_1403BB730(__int64 a1)
{
_QWORD *v2; // rcx
__int64 result; // rax
v2 = *(_QWORD **)a1;
if ( v2 )
{
if ( (unsigned __int64)(68 * ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) / 68LL)) >= 0x1000 )
{
if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v2 = (_QWORD *)*(v2 - 1);
}
j_j_free(v2);
result = 0;
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
}
return result;
}