//
// std::__ndk1::vector>::vector from 0x69e854 to 0x69e8d4 (128 bytes)
//
// 4 xrefs:
// > ExplodeItemNode::createSprites @ 0x69e968
// > ExplodeItemNode::createSprites @ 0x69e970
// > ExplodeItemNode::createSprites @ 0x69e978
// > ExplodeItemNode::createSprites @ 0x69e980
//
// 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:56:21 +0000
//
// Alternative name is '_ZNSt6__ndk16vectorIfNS_9allocatorIfEEEC1Ej'
_DWORD *__fastcall std::vector::vector(_DWORD *a1, unsigned int a2)
{
unsigned int v3; // r5
std::logic_error *exception; // r5
int v5; // r6
int v6; // r0
_DWORD *v7; // r3
*a1 = 0;
a1[1] = 0;
v3 = a2;
a1[2] = 0;
if ( a2 )
{
if ( a2 >= 0x40000000 )
{
exception = (std::logic_error *)_cxa_allocate_exception(8u);
std::logic_error::logic_error(exception, "vector");
*(_DWORD *)exception = &off_D1546C;
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::length_error,
(void (*)(void *))std::length_error::~length_error);
}
v5 = 4 * a2;
v6 = operator new(4 * a2);
a1[1] = v6;
*a1 = v6;
a1[2] = v5 + v6;
do
{
v7 = (_DWORD *)a1[1];
if ( v7 )
*v7 = 0;
--v3;
a1[1] += 4;
}
while ( v3 );
}
return a1;
}