//
// std::__ndk1::vector>::allocate from 0x410510 to 0x410534 (36 bytes)
//
// 2 xrefs:
// > std::__ndk1::vector>::assign @ 0x410610
// > std::__ndk1::__tree,std::__ndk1::vector>>,std::__ndk1::__map_value_compare,std::__ndk1::__value_type,std::__ndk1::vector>>,std::__ndk1::less>,true>,std::__ndk1::allocator,std::__ndk1::vector>>>>::__emplace_multi const,std::__ndk1::vector>> const&> @ 0x410678
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:35 +0000
//
int __fastcall std::vector::allocate(_DWORD *a1, unsigned int a2)
{
int v3; // r4
int result; // r0
if ( a2 > 0x9249249 )
sub_3878B8();
v3 = 28 * a2;
result = operator new(28 * a2);
a1[1] = result;
*a1 = result;
a1[2] = v3 + result;
return result;
}