//
// GJKeybindManager::isExclusive from 0xc0878c to 0xc08818 (140 bytes)
//
// 2 xrefs:
// > GJKeybindManager::actionsForKey @ 0xc0a0ec
// > ??> @ 0xe9350
//
// 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:03:52 +0000
//
__int64 __fastcall GJKeybindManager::isExclusive(GJKeybindManager *this)
{
__int64 *v1; // x1
__int64 v2; // x7
unsigned __int64 v3; // x5
unsigned __int64 v4; // x2
unsigned __int64 v5; // x2
LODWORD(v1) = 0;
if ( qword_155EB50 )
{
v2 = qword_155EB50 - 1;
if ( ((qword_155EB50 - 1) & qword_155EB50) != 0 )
v3 = (int)this % (unsigned __int64)qword_155EB50;
else
v3 = (int)this & (unsigned __int64)v2;
v1 = *(__int64 **)(qword_155EB48 + 8 * v3);
if ( v1 )
{
while ( 1 )
{
v1 = (__int64 *)*v1;
if ( !v1 )
break;
v4 = v1[1];
if ( ((qword_155EB50 - 1) & qword_155EB50) != 0 )
v5 = v4 % qword_155EB50;
else
v5 = v2 & v4;
if ( v3 != v5 )
goto LABEL_9;
if ( *((_DWORD *)v1 + 4) == (_DWORD)this )
return 1;
}
}
else
{
LABEL_9:
LODWORD(v1) = 0;
}
}
return (unsigned int)v1;
}