//
// VirtualKeyboardNode::refreshModifierVisuals from 0xd08898 to 0xd089c8 (304 bytes)
//
// 6 xrefs:
// > VirtualKeyboardNode::onKey @ 0xd08a28
// > VirtualKeyboardNode::onKey @ 0xd08a80
// > VirtualKeyboardNode::onKey @ 0xd08aac
// > VirtualKeyboardNode::resetModifiers @ 0xd08abc
// > VirtualKeyboardNode::buildKeys @ 0xd094ac
// > ??> @ 0xc3a00
//
// 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 13:06:57 +0000
//
__int64 __fastcall VirtualKeyboardNode::refreshModifierVisuals(VirtualKeyboardNode *this)
{
_QWORD *v1; // x20
__int64 v2; // x19
char v3; // w2
char v4; // w1
char v5; // w0
__int64 *v6; // x0
_QWORD *v7; // x3
int v8; // w2
__int64 v9; // x0
void (*v10)(void); // x2
_BYTE v12[8]; // [xsp+48h] [xbp+48h] BYREF
char v13; // [xsp+50h] [xbp+50h]
char v14; // [xsp+51h] [xbp+51h]
char v15; // [xsp+52h] [xbp+52h]
_DWORD v16[4]; // [xsp+58h] [xbp+58h]
v16[0] = 16;
v1 = (_QWORD *)((char *)this + 352);
v2 = 0;
v3 = *((_BYTE *)this + 338);
v4 = *((_BYTE *)this + 336);
v5 = *((_BYTE *)this + 337);
v12[0] = v3;
v16[1] = 17;
v12[1] = v4;
v16[2] = 18;
v12[2] = v5;
do
{
v6 = (__int64 *)*v1;
if ( *v1 )
{
v7 = v1;
v8 = v16[v2];
do
{
while ( *((_DWORD *)v6 + 8) >= v8 )
{
v7 = v6;
v6 = (__int64 *)*v6;
if ( !v6 )
goto LABEL_6;
}
v6 = (__int64 *)v6[1];
}
while ( v6 );
LABEL_6:
if ( v1 != v7 && *((_DWORD *)v7 + 8) <= v8 )
{
v9 = *(_QWORD *)(v7[5] + 648LL);
if ( v9 )
{
v10 = *(void (**)(void))(*(_QWORD *)v9 + 960LL);
if ( v12[v2] )
{
v13 = 120;
v14 = -1;
v15 = 120;
}
else
{
v13 = -1;
v14 = -1;
v15 = -1;
}
v10();
}
}
}
++v2;
}
while ( v2 != 3 );
return _stack_chk_guard;
}