//
// EditorSoundsLayer::~EditorSoundsLayer from 0x78b518 to 0x78b63c (292 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'EditorSoundsLayer::~EditorSoundsLayer @ 0x78b654
// > EditorSoundsLayer::~EditorSoundsLayer @ 0x78b65c
//
// 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:36 +0000
//
// Alternative name is '_ZN17EditorSoundsLayerD1Ev'
void __fastcall EditorSoundsLayer::~EditorSoundsLayer(EditorSoundsLayer *this)
{
int v1; // r7
char *v3; // r1
size_t v4; // r2
_DWORD *v5; // r0
int v6; // r1
int v7; // r2
_DWORD v8[3]; // [sp+0h] [bp-2Ch] BYREF
int v9[3]; // [sp+Ch] [bp-20h] BYREF
unsigned __int8 v10; // [sp+18h] [bp-14h] BYREF
char v11; // [sp+19h] [bp-13h] BYREF
size_t v12; // [sp+1Ch] [bp-10h]
char *v13; // [sp+20h] [bp-Ch]
v1 = *((_DWORD *)this + 196);
*(_DWORD *)this = &off_CF9F48;
*((_DWORD *)this + 66) = &off_CFA244;
*((_DWORD *)this + 67) = &off_CFA27C;
*((_DWORD *)this + 68) = &off_CFA288;
*((_DWORD *)this + 69) = &off_CFA298;
*((_DWORD *)this + 70) = &off_CFA2AC;
*((_DWORD *)this + 79) = &off_CFA2C4;
*((_DWORD *)this + 83) = &off_CFA304;
*((_DWORD *)this + 110) = &off_CFA314;
*((_DWORD *)this + 130) = &off_CFA338;
*((_DWORD *)this + 131) = &off_CFA344;
if ( v1 && *((int *)this + 184) >= 0 )
{
memset(v9, 0, sizeof(v9));
std::string::__init(v9, "editorsounds.tab.", 0x11u);
std::to_string((int)&v10);
if ( (v10 & 1) != 0 )
{
v3 = v13;
v4 = v12;
}
else
{
v4 = (int)v10 >> 1;
v3 = &v11;
}
v5 = std::string::append(v9, v3, v4);
v6 = v5[1];
v7 = v5[2];
v8[0] = *v5;
v8[1] = v6;
v8[2] = v7;
*v5 = 0;
v5[1] = 0;
v5[2] = 0;
ScrollableContentLayer::persistScrollOffset(v1, (unsigned __int8 *)v8);
std::string::~string((int)v8);
std::string::~string((int)&v10);
std::string::~string((int)v9);
}
EditorSoundsLayer::s_lastActiveTab = *((_DWORD *)this + 184);
std::string::operator=((unsigned __int8 *)&EditorSoundsLayer::s_lastSearchText, (unsigned __int8 *)this + 768);
std::string::~string((int)this + 768);
TabbedPopupLayer::~TabbedPopupLayer(this);
}