//
// KeybindingsLayer::tintGlyph from 0x1000241dc to 0x10002426c (144 bytes)
//
// 3 xrefs:
// > KeybindingsLayer::buildContentForTab @ 0x100024a3c
// > KeybindingsLayer::buildContentForTab @ 0x100024a9c
// > ControllerInputNode::refreshVisuals @ 0x1004ab45c
//
// 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 10:57:24 +0000
//
_QWORD *__fastcall KeybindingsLayer::tintGlyph(__int64 a1, int a2)
{
_QWORD *result; // x0
unsigned int *v4; // x9
__int64 v5; // x8
_QWORD **v6; // x19
unsigned __int64 v7; // x20
__int16 v8; // [xsp+Ch] [xbp-14h] BYREF
char v9; // [xsp+Eh] [xbp-12h]
v8 = a2;
v9 = BYTE2(a2);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1 + 960LL))(a1, &v8);
result = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
v4 = (unsigned int *)result[7];
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((_QWORD ***)v4 + 2);
v7 = (unsigned __int64)&v6[v5 - 1];
do
{
result = *v6;
if ( !*v6 )
break;
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int16 *))(*result + 960LL))(result, &v8);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
return result;
}