//
// std::__ndk1::vector>::allocate from 0x796e10 to 0x796e58 (72 bytes)
//
// 3 xrefs:
// > std::__ndk1::vector>::vector @ 0x7b870c
// > std::__ndk1::vector>::assign @ 0x7b8bc0
// > ??> @ 0x74ba8
//
// 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 12:53:34 +0000
//
__int64 __fastcall std::vector::allocate(__int64 *a1, unsigned __int64 a2)
{
unsigned __int64 v3; // x19
__int64 result; // x0
if ( a2 > 0x3FFFFFFFFFFFFFFLL )
sub_62C35C();
v3 = a2 << 6;
result = operator new(a2 << 6);
a1[1] = result;
*a1 = result;
a1[2] = result + v3;
return result;
}