//
// KeybindingsLayer::tintGlyph from 0x9955ec to 0x995684 (152 bytes)
//
// 4 xrefs:
// > KeybindingsLayer::buildContentForTab @ 0x996894
// > KeybindingsLayer::buildContentForTab @ 0x9968bc
// > ControllerInputNode::refreshVisuals @ 0xc96264
// > ??> @ 0x8e6a8
//
// 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 12:58:01 +0000
//
__int64 __fastcall KeybindingsLayer::tintGlyph(__int64 a1, __int64 a2)
{
__int64 result; // x0
unsigned int *v4; // x1
__int64 *v5; // x19
__int64 *i; // x20
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
v7 = a2;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 960LL))(a1, &v7);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
v4 = *(unsigned int **)(result + 56);
result = *v4;
if ( (_DWORD)result )
{
v5 = *((__int64 **)v4 + 2);
for ( i = &v5[(unsigned int)result - 1];
i >= v5;
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)result + 960LL))(result, &v7) )
{
result = *v5;
if ( !*v5 )
break;
++v5;
}
}
}
return result;
}