//
// VirtualKeyboardNode::refreshModifierVisuals from 0x10052f7f0 to 0x10052f8dc (236 bytes)
//
// 3 xrefs:
// > VirtualKeyboardNode::buildKeys @ 0x10052f610
// > VirtualKeyboardNode::onKey @ 0x10052f7ec
// > VirtualKeyboardNode::resetModifiers @ 0x10052f8e4
//
// 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 11:07:20 +0000
//
__int64 __fastcall VirtualKeyboardNode::refreshModifierVisuals(__int64 result)
{
__int64 v1; // x19
_QWORD *v2; // x20
__int64 v3; // x10
int v4; // w9
_QWORD *v5; // x8
__int16 v6; // [xsp+8h] [xbp-48h] BYREF
char v7; // [xsp+Ah] [xbp-46h]
char v8; // [xsp+Dh] [xbp-43h]
__int16 v9; // [xsp+Eh] [xbp-42h]
v1 = 0;
v8 = *(_BYTE *)(result + 338);
v2 = (_QWORD *)(result + 352);
v9 = *(_WORD *)(result + 336);
do
{
v3 = *v2;
if ( *v2 )
{
v4 = dword_1007706AC[v1];
v5 = v2;
do
{
if ( *(_DWORD *)(v3 + 32) >= v4 )
v5 = (_QWORD *)v3;
v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 32) < v4));
}
while ( v3 );
if ( v5 != v2 && v4 >= *((_DWORD *)v5 + 8) )
{
result = *(_QWORD *)(v5[5] + 648LL);
if ( result )
{
if ( *(&v8 + v1) == 1 )
{
v7 = 120;
v6 = -136;
}
else
{
v7 = -1;
v6 = -1;
}
result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)result + 960LL))(result, &v6);
}
}
}
++v1;
}
while ( v1 != 3 );
return result;
}