//
// std::__ndk1::vector EditorSoundConfigInfoLayer::init @ 0x787904
// > EditorSoundConfigInfoLayer::init @ 0x787982
// > EditorSoundConfigInfoLayer::init @ 0x787a02
// > EditorSoundConfigInfoLayer::init @ 0x787a7a
//
// 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:33 +0000
//
void __fastcall std::vector>::__push_back_slow_path(
int a1,
_DWORD *a2)
{
int v4; // r6
unsigned int v5; // r3
unsigned int v6; // r4
unsigned int v7; // r4
int v8; // r0
int v9; // r2
bool v10; // zf
int v11; // r3
int v12; // r4
int v13; // r6
signed int v14; // r2
void *v15; // r3
void *v16; // r0
v4 = *(_DWORD *)(a1 + 4) - *(_DWORD *)a1;
v5 = (v4 >> 3) + 1;
if ( v5 >= 0x20000000 )
sub_38B188();
v6 = (*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 3;
if ( v6 > 0xFFFFFFE )
{
v7 = 0x1FFFFFFF;
LABEL_9:
v8 = operator new(8 * v7);
goto LABEL_11;
}
v7 = 2 * v6;
if ( v7 < v5 )
v7 = (v4 >> 3) + 1;
if ( v7 )
goto LABEL_9;
v8 = 0;
LABEL_11:
v9 = a2[1];
v11 = v8 + v4;
v10 = v8 + v4 == 0;
v12 = v8 + 8 * v7;
if ( v8 + v4 )
*(_DWORD *)(v8 + v4) = *a2;
v13 = v11 + 8;
if ( !v10 )
*(_DWORD *)(v11 + 4) = v9;
v14 = *(_DWORD *)(a1 + 4) - *(_DWORD *)a1;
v15 = (void *)(v11 - v14);
if ( v14 > 7 )
v15 = memcpy(v15, *(const void **)a1, v14);
v16 = *(void **)a1;
*(_DWORD *)(a1 + 8) = v12;
*(_DWORD *)a1 = v15;
*(_DWORD *)(a1 + 4) = v13;
if ( v16 )
operator delete(v16);
}