//
// sub_1004AB194 from 0x1004ab194 to 0x1004ab228 (148 bytes)
//
// 1 xrefs:
// > ControllerInputNode::init @ 0x1004aaf80
//
// 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:06:07 +0000
//
__int64 __fastcall sub_1004AB194(__int64 a1, __int64 a2)
{
int v3; // w21
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x1
v3 = *((_DWORD *)&unk_100981198 + 8 * (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2));
*(_DWORD *)(a1 + 332) = v3;
result = ControllerInputNode::refreshVisuals(a1);
v5 = *(_QWORD *)(a1 + 320);
if ( v5 )
{
v6 = GJKeybindManager::encodeChord((unsigned int)(unsigned __int8)(*(_BYTE *)(a1 + 328) & v3) + v3, 0, 0, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 16LL))(v5, v6);
}
return result;
}