//
// std::__ndk1::__split_buffer &>::~__split_buffer from 0x40384a to 0x403868 (30 bytes)
//
// 3 xrefs:
// > PlayLayer::saveActiveSaveObjects @ 0x407512
// > PlayLayer::saveActiveSaveObjects @ 0x4075be
// > PlayLayer::saveActiveSaveObjects @ 0x4075f0
//
// 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:47:26 +0000
//
// Alternative name is '_ZNSt6__ndk114__split_bufferI22SavedActiveObjectStateRNS_9allocatorIS1_EEED1Ev'
int __fastcall std::__split_buffer::~__split_buffer(int a1)
{
int v2; // r2
int v3; // r3
void *v4; // r0
v2 = *(_DWORD *)(a1 + 4);
while ( 1 )
{
v3 = *(_DWORD *)(a1 + 8);
if ( v2 == v3 )
break;
*(_DWORD *)(a1 + 8) = v3 - 8;
}
v4 = *(void **)a1;
if ( *(_DWORD *)a1 )
operator delete(v4);
return a1;
}