//
// KeybindSet::actionsForChord from 0xcf3128 to 0xcf324c (292 bytes)
//
// 2 xrefs:
// > ??> @ 0x7e1d8
// > ??> @ 0x1504468
//
// 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 13:06:46 +0000
//
_QWORD *__usercall KeybindSet::actionsForChord@(KeybindSet *this@, int a2@, _QWORD *a3@)
{
char *v3; // x22
char *v6; // x20
__int64 *i; // x0
int v8; // w1
_DWORD *v10; // x0
*a3 = 0;
v3 = (char *)this + 16;
a3[1] = 0;
a3[2] = 0;
v6 = *((char **)this + 1);
if ( v6 != (char *)this + 16 )
{
LABEL_2:
while ( 2 )
{
for ( i = *((__int64 **)v6 + 6); ; i = (__int64 *)i[1] )
{
if ( !i )
{
LABEL_6:
v6 = (char *)std::__tree_next *>(v6);
if ( v3 != v6 )
goto LABEL_2;
return a3;
}
while ( 1 )
{
v8 = *((_DWORD *)i + 7);
if ( a2 >= v8 )
break;
i = (__int64 *)*i;
if ( !i )
goto LABEL_6;
}
if ( a2 <= v8 )
break;
}
v10 = (_DWORD *)a3[1];
if ( v10 == (_DWORD *)a3[2] )
{
std::vector::__push_back_slow_path((__int64)a3, (_DWORD *)v6 + 8);
v6 = (char *)std::__tree_next *>(v6);
if ( v3 != v6 )
continue;
}
else
{
if ( v10 )
{
*v10 = *((_DWORD *)v6 + 8);
v10 = (_DWORD *)a3[1];
}
a3[1] = v10 + 1;
v6 = (char *)std::__tree_next *>(v6);
if ( v3 != v6 )
continue;
}
break;
}
}
return a3;
}