//
// std::__ndk1::vector>::allocate from 0x40395c to 0x40397c (32 bytes)
//
// 12 xrefs:
// > std::__ndk1::vector>::vector @ 0x403992
// > std::__ndk1::vector>::assign @ 0x403aca
// > DeathMarkerLayer::init @ 0x76cc48
// > std::__ndk1::vector>::assign @ 0x7718dc
// > std::__ndk1::vector>::vector @ 0x771c42
// > DeathTrackerPopup::buildAttemptLine @ 0x77266e
// > ReportPopup::reasonIndicesForType @ 0x79f68a
// > ReportPopup::reasonIndicesForType @ 0x79f6a4
// > ReportPopup::reasonIndicesForType @ 0x79f6c8
// > ReportPopup::reasonIndicesForType @ 0x79f6e4
// > ReportPopup::reasonIndicesForTextModeration @ 0x79f71e
// > ReportPopup::reasonIndicesForUploadModeration @ 0x79f752
//
// 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:26 +0000
//
int __fastcall std::vector::allocate(_DWORD *a1, unsigned int a2)
{
int v3; // r4
int result; // r0
if ( a2 >= 0x40000000 )
sub_3878B8();
v3 = 4 * a2;
result = operator new(4 * a2);
a1[1] = result;
*a1 = result;
a1[2] = v3 + result;
return result;
}