//
// KeybindingsLayer::~KeybindingsLayer from 0x58b0ec to 0x58b22c (320 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'KeybindingsLayer::~KeybindingsLayer @ 0x58b244
// > KeybindingsLayer::~KeybindingsLayer @ 0x58b24c
// > LevelBindingsLayer::~LevelBindingsLayer @ 0x7978bc
//
// 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:53:02 +0000
//
// Alternative name is '_ZN16KeybindingsLayerD1Ev'
void __fastcall KeybindingsLayer::~KeybindingsLayer(KeybindingsLayer *this)
{
int v1; // r7
char *v3; // r1
size_t v4; // r2
_DWORD *v5; // r0
int v6; // r1
int v7; // r2
cocos2d::CCObject *v8; // r0
int v9; // r0
_DWORD v10[3]; // [sp+0h] [bp-2Ch] BYREF
int v11[3]; // [sp+Ch] [bp-20h] BYREF
unsigned __int8 v12; // [sp+18h] [bp-14h] BYREF
char v13; // [sp+19h] [bp-13h] BYREF
size_t v14; // [sp+1Ch] [bp-10h]
char *v15; // [sp+20h] [bp-Ch]
v1 = *((_DWORD *)this + 194);
*(_DWORD *)this = &off_CB4120;
*((_DWORD *)this + 66) = &off_CB4438;
*((_DWORD *)this + 67) = &off_CB4470;
*((_DWORD *)this + 68) = &off_CB447C;
*((_DWORD *)this + 69) = &off_CB448C;
*((_DWORD *)this + 70) = &off_CB44A0;
*((_DWORD *)this + 79) = &off_CB44B8;
*((_DWORD *)this + 83) = &off_CB44F8;
*((_DWORD *)this + 110) = &off_CB4508;
*((_DWORD *)this + 130) = &off_CB452C;
*((_DWORD *)this + 131) = &off_CB4538;
if ( v1 && *((int *)this + 184) >= 0 )
{
memset(v11, 0, sizeof(v11));
std::string::__init(v11, "keybindings.tab.", 0x10u);
std::to_string((int)&v12);
if ( (v12 & 1) != 0 )
{
v3 = v15;
v4 = v14;
}
else
{
v4 = (int)v12 >> 1;
v3 = &v13;
}
v5 = std::string::append(v11, v3, v4);
v6 = v5[1];
v7 = v5[2];
v10[0] = *v5;
v10[1] = v6;
v10[2] = v7;
*v5 = 0;
v5[1] = 0;
v5[2] = 0;
ScrollableContentLayer::persistScrollOffset(v1, (unsigned __int8 *)v10);
std::string::~string((int)v10);
std::string::~string((int)&v12);
std::string::~string((int)v11);
}
KeybindingsLayer::s_lastActiveTab = *((_DWORD *)this + 184);
std::string::operator=((unsigned __int8 *)&KeybindingsLayer::s_lastSearchText, (unsigned __int8 *)this + 788);
v8 = *((cocos2d::CCObject **)this + 188);
if ( v8 )
cocos2d::CCObject::release(v8);
if ( *((_BYTE *)this + 760) )
{
v9 = *((_DWORD *)this + 189);
if ( v9 )
(*(void (__fastcall **)(int))(*(_DWORD *)v9 + 4))(v9);
}
std::string::~string((int)this + 788);
TabbedPopupLayer::~TabbedPopupLayer(this);
}