//
// sub_BBA890 from 0xbba890 to 0xbba904 (116 bytes)
//
// 1 xrefs:
// > sub_B939BC @ 0xb939d8
//
// 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_BBA890(__int64 a1, size_t item_count)
{
__int64 v2; // x20
unsigned int v3; // w21
void *v7; // x0
v2 = a1 + 0x8000;
v3 = 0;
if ( !*(_QWORD *)(a1 + 35632) )
{
v7 = off_1231020(item_count, 0x78u);
if ( v7 )
{
*(_QWORD *)(a1 + 1464) = item_count;
*(_QWORD *)(v2 + 2864) = v7;
*(_QWORD *)(v2 + 2872) = 1;
}
else
{
return 27;
}
}
return v3;
}