//
// KeybindSet::unbindChord from 0x79a16e to 0x79a214 (166 bytes)
//
// 0 xrefs:
//
// 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:48 +0000
//
void __fastcall KeybindSet::unbindChord(KeybindSet *this, int a2, int a3)
{
int *v5; // r0
int *v6; // r4
int *v7; // r7
int *v8; // r6
int *i; // r3
int *v10; // r1
_DWORD *v11; // r0
int *v12; // r3
_DWORD *v13; // r0
int *v14; // r3
int v15; // [sp+4h] [bp-4h] BYREF
v15 = a3;
v5 = std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::find(
(int)this + 4,
&v15);
v6 = v5;
if ( v5 != (int *)((char *)this + 8) )
{
v7 = (int *)v5[6];
v8 = v5 + 6;
for ( i = v7; i; i = v10 )
{
if ( i[4] >= a2 )
{
v10 = (int *)*i;
}
else
{
v10 = (int *)i[1];
i = v8;
}
v8 = i;
}
if ( v8 != v5 + 6 && a2 >= v8[4] )
{
v11 = std::__tree_next *>(v8);
v12 = (int *)v6[5];
--v6[7];
if ( v12 == v8 )
v6[5] = (int)v11;
std::__tree_remove *>(v7, v8);
operator delete(v8);
}
if ( !v6[7] )
{
v13 = std::__tree_next *>(v6);
v14 = *((int **)this + 1);
--*((_DWORD *)this + 3);
if ( v14 == v6 )
*((_DWORD *)this + 1) = v13;
std::__tree_remove *>(*((int **)this + 2), v6);
std::__tree::destroy((int)(v6 + 5), (_DWORD *)v6[6]);
operator delete(v6);
}
*((_BYTE *)this + 16) = 1;
}
}