//
// std::__ndk1::vector>::vector from 0xb53c70 to 0xb53d80 (272 bytes)
//
// 6 xrefs:
// > ExplodeItemNode::createSprites @ 0xb53efc
// > ExplodeItemNode::createSprites @ 0xb53f08
// > ExplodeItemNode::createSprites @ 0xb53f14
// > ExplodeItemNode::createSprites @ 0xb53f20
// > ??> @ 0x5db38
// > ??> @ 0x71e90
//
// 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 13:02:00 +0000
//
// Alternative name is '_ZNSt6__ndk16vectorIfNS_9allocatorIfEEEC2Em'
_QWORD *__fastcall std::vector::vector(_QWORD *result, unsigned __int64 a2)
{
_QWORD *v2; // x20
unsigned __int64 v3; // x19
__int64 v4; // x21
std::logic_error *exception; // x21
v2 = result;
*result = 0;
v3 = a2;
result[1] = 0;
result[2] = 0;
if ( a2 )
{
if ( a2 > 0x3FFFFFFFFFFFFFFFLL )
{
exception = (std::logic_error *)_cxa_allocate_exception(0x10u);
std::logic_error::logic_error(exception, "vector");
*(_QWORD *)exception = off_1536D28;
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::length_error,
(void (*)(void *))std::logic_error::~logic_error);
}
v4 = 4 * a2;
result = (_QWORD *)operator new(4 * a2);
v2[1] = result;
*v2 = result;
v2[2] = (char *)result + v4;
do
{
if ( result )
{
*(_DWORD *)result = 0;
result = (_QWORD *)v2[1];
}
result = (_QWORD *)((char *)result + 4);
--v3;
v2[1] = result;
}
while ( v3 );
}
return result;
}