//
// std::__ndk1::vector>::vector from 0x76af7a to 0x76b060 (230 bytes)
//
// 1 xrefs:
// > DeathMarkerLayer::init @ 0x76cc90
//
// 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:59:11 +0000
//
// Alternative name is '_ZNSt6__ndk16vectorIbNS_9allocatorIbEEEC1EjRKb'
int *__fastcall std::vector::vector(int *a1, unsigned int a2, unsigned __int8 *a3)
{
unsigned int v5; // r4
unsigned int v6; // r3
int v7; // r2
unsigned int v8; // r0
int v9; // r1
int v10; // r3
char *v11; // r5
unsigned int v12; // lr
unsigned int v13; // r7
unsigned int v14; // r4
unsigned int v15; // lr
unsigned int v16; // r7
unsigned int v17; // r4
*a1 = 0;
v5 = a2;
a1[1] = 0;
a1[2] = 0;
if ( a2 )
{
std::vector::allocate(a1, a2);
v6 = a1[1];
v7 = *a3;
a1[1] = v5 + v6;
v8 = v6 >> 5;
v9 = *a1;
v10 = v6 & 0x1F;
v11 = (char *)(*a1 + 4 * v8);
if ( v7 )
{
if ( v10 )
{
v12 = v5;
v11 += 4;
if ( v5 >= 32 - v10 )
v12 = 32 - v10;
v5 -= v12;
*(_DWORD *)(v9 + 4 * v8) |= (-1 << v10) & (0xFFFFFFFF >> (32 - v10 - v12));
}
v13 = v5 >> 5;
memset(v11, -1, 4 * (v5 >> 5));
v14 = v5 - 32 * (v5 >> 5);
if ( v14 )
*(_DWORD *)&v11[4 * v13] |= 0xFFFFFFFF >> (32 - v14);
}
else
{
if ( v10 )
{
v15 = v5;
v11 += 4;
if ( v5 >= 32 - v10 )
v15 = 32 - v10;
v5 -= v15;
*(_DWORD *)(v9 + 4 * v8) &= ~((-1 << v10) & (0xFFFFFFFF >> (32 - v10 - v15)));
}
v16 = v5 >> 5;
memset(v11, 0, 4 * (v5 >> 5));
v17 = v5 - 32 * (v5 >> 5);
if ( v17 )
*(_DWORD *)&v11[4 * v16] &= ~(0xFFFFFFFF >> (32 - v17));
}
}
return a1;
}