//
// sub_E30A50 from 0xe30a50 to 0xe30ac4 (116 bytes)
//
// 1 xrefs:
// > sub_E09B74 @ 0xe09b90
//
// This function is hookable on this platform (idp: arm, 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 13:09:55 +0000
//
__int64 __fastcall sub_E30A50(__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_154A3E0(item_count, 0x78u);
if ( v7 )
{
*(_QWORD *)(a1 + 1464) = item_count;
*(_QWORD *)(v2 + 2864) = v7;
*(_QWORD *)(v2 + 2872) = 1;
}
else
{
return 27;
}
}
return v3;
}