//
// std::__ndk1::vector>::allocate from 0xca0450 to 0xca0494 (68 bytes)
//
// 3 xrefs:
// > std::__ndk1::vector>::vector @ 0xca04d0
// > std::__ndk1::vector>::push_back @ 0xca127c
// > ??> @ 0xbe5d0
//
// 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:05:59 +0000
//
__int64 __fastcall std::vector::allocate(__int64 *a1, __int64 a2)
{
unsigned __int64 v3; // x19
__int64 result; // x0
if ( a2 < 0 )
sub_630938();
v3 = ((unsigned __int64)(a2 - 1) >> 6) + 1;
result = operator new(8 * v3);
a1[1] = 0;
*a1 = result;
a1[2] = v3;
return result;
}