//
// KeybindingsLayer::tintGlyph from 0x1006e24c0 to 0x1006e2548 (136 bytes)
//
// 3 xrefs:
// > sub_1008B5C30 @ 0x1008b5e2d
// > sub_1008B5C30 @ 0x1008b5f5d
// > sub_1008B5C30 @ 0x1008b608d
//
// This function is hookable on this platform (idp: pc, 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:35:45 +0000
//
unsigned int *__fastcall KeybindingsLayer::tintGlyph(__int64 a1, int a2)
{
__int64 v2; // rax
unsigned int *result; // rax
_QWORD *v4; // r14
unsigned __int64 v5; // r15
__int16 v6; // [rsp+0h] [rbp-1Ch] BYREF
char v7; // [rsp+2h] [rbp-1Ah]
char v8; // [rsp+3h] [rbp-19h]
v8 = HIBYTE(v2);
v6 = a2;
v7 = BYTE2(a2);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1 + 960LL))(a1, &v6);
result = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v4 = *((_QWORD **)result + 2);
v5 = (unsigned __int64)&v4[*result - 1];
do
{
if ( !*v4 )
break;
result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, __int16 *))(*(_QWORD *)*v4 + 960LL))(*v4, &v6);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
return result;
}