//
// KeybindSet::unbindChord from 0x1004f1e68 to 0x1004f1f00 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009942f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:06:45 +0000
//
__int64 __fastcall KeybindSet::unbindChord(__int64 result, int a2, int a3)
{
__int64 v3; // x9
__int64 v4; // x19
_QWORD *v5; // x20
__int64 v6; // x21
int v7; // [xsp+Ch] [xbp-24h] BYREF
v7 = a2;
v3 = *(_QWORD *)(result + 16);
if ( v3 )
{
v4 = result;
v5 = (_QWORD *)(result + 8);
v6 = result + 16;
do
{
if ( *(_DWORD *)(v3 + 32) >= a3 )
v6 = v3;
v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 32) < a3));
}
while ( v3 );
if ( v6 != result + 16 && *(_DWORD *)(v6 + 32) <= a3 )
{
result = sub_10005484C((_QWORD *)(v6 + 40), &v7);
if ( !*(_QWORD *)(v6 + 56) )
result = (__int64)sub_1003BC24C(v5, v6);
*(_BYTE *)(v4 + 32) = 1;
}
}
return result;
}