//
// std::__ndk1::vector>::__append from 0x72b70c to 0x72b828 (284 bytes)
//
// 1 xrefs:
// > ReadArchive::process @ 0x72c060
//
// 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:58:16 +0000
//
void __fastcall std::vector::__append(const void ***a1, unsigned int a2)
{
const void **v3; // r2
const void **v5; // r1
KeyframeObject *v6; // r0
_DWORD *v7; // r0
int v8; // r7
unsigned int v9; // r1
unsigned int v10; // r5
const void **v11; // r0
const void **v12; // r6
const void **v13; // r5
const void **v14; // r0
KeyframeObject *v15; // r2
const void **v16; // r3
const void **v17; // r1
const void **v18; // r2
const void **v19; // [sp+0h] [bp-18h] BYREF
const void **v20; // [sp+4h] [bp-14h]
KeyframeObject *v21; // [sp+8h] [bp-10h]
const void **v22; // [sp+Ch] [bp-Ch]
_DWORD *v23; // [sp+10h] [bp-8h]
v3 = a1[2];
v5 = a1[1];
if ( 1022611261 * (((char *)v3 - (char *)v5) >> 4) < a2 )
{
v7 = a1 + 2;
v8 = (char *)v5 - (char *)*a1;
v9 = a2 + 1022611261 * (v8 >> 4);
if ( v9 > (unsigned int)&unk_C30C30 )
sub_38A528();
if ( (unsigned int)(1022611261 * (((char *)v3 - (char *)*a1) >> 4)) > 0x618617 )
{
v10 = (unsigned int)&unk_C30C30;
}
else
{
v10 = 2045222522 * (((char *)v3 - (char *)*a1) >> 4);
if ( v10 < v9 )
v10 = a2 + 1022611261 * (v8 >> 4);
}
v23 = v7;
v22 = nullptr;
if ( v10 )
v11 = (const void **)operator new(336 * v10);
else
v11 = nullptr;
v19 = v11;
v21 = (KeyframeObject *)((char *)v11 + v8);
v20 = (const void **)((char *)v11 + v8);
v22 = &v11[84 * v10];
do
{
if ( v21 )
KeyframeObject::KeyframeObject(v21);
--a2;
v21 = (KeyframeObject *)((char *)v21 + 336);
}
while ( a2 );
v12 = *a1;
v13 = a1[1];
while ( 1 )
{
v14 = v20;
if ( v13 == v12 )
break;
v13 -= 84;
if ( v20 != (const void **)&dword_150 )
KeyframeObject::KeyframeObject((KeyframeObject *)(v20 - 84), v13);
v20 -= 84;
}
v15 = (KeyframeObject *)a1[1];
v16 = *a1;
a1[1] = (const void **)v21;
v17 = v22;
*a1 = v14;
v21 = v15;
v18 = a1[2];
v19 = v16;
a1[2] = v17;
v20 = v16;
v22 = v18;
std::__split_buffer::~__split_buffer((int)&v19);
}
else
{
do
{
v6 = (KeyframeObject *)a1[1];
if ( v6 )
KeyframeObject::KeyframeObject(v6);
--a2;
a1[1] += 84;
}
while ( a2 );
}
}