//
// KeybindingsLayer::tintGlyph from 0x589448 to 0x589494 (76 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::buildContentForTab @ 0x58a2aa
// > ControllerInputNode::refreshVisuals @ 0x7652c6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:00 +0000
//
_DWORD *__fastcall KeybindingsLayer::tintGlyph(int a1, int a2)
{
_DWORD *result; // r0
_DWORD *v4; // r2
_DWORD *v5; // r5
_DWORD *v6; // r4
_DWORD *v7; // t1
int v8; // [sp+4h] [bp-4h] BYREF
v8 = a2;
(*(void (__fastcall **)(int, int *))(*(_DWORD *)a1 + 480))(a1, &v8);
result = (_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 244))(a1);
if ( result )
{
v4 = (_DWORD *)result[13];
if ( *v4 )
{
v5 = (_DWORD *)v4[3];
v6 = &v5[*v4 - 1];
while ( v5 <= v6 )
{
v7 = (_DWORD *)*v5++;
result = v7;
if ( !v7 )
break;
result = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int *))(*result + 480))(result, &v8);
}
}
}
return result;
}